flx:修复bug
This commit is contained in:
parent
e57b69ae29
commit
7703b58530
Binary file not shown.
|
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 114 KiB |
BIN
src/assets/images/smartPartyBuilding/classification_bg1.png
Normal file
BIN
src/assets/images/smartPartyBuilding/classification_bg1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 97 KiB |
@ -18,7 +18,7 @@
|
||||
<div></div>
|
||||
</div>
|
||||
<div class="title">{{ item.classificationName || " " }}</div>
|
||||
<div class="time">{{ item.children instanceof Array && item.children.length > 0 ? 2 : 1 }}</div>
|
||||
<div class="time">{{ item.children instanceof Array && item.children.length > 0 ? item.children.length : 1 }}</div>
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
<div class="notoDta" v-else>
|
||||
@ -91,12 +91,15 @@ const onListActive = (item: any, type: number) => {
|
||||
if (type == 1) {
|
||||
partyInfo.frameworkFlag = true;
|
||||
partyInfo.classificationId = item.id;
|
||||
loadChildrenInfo.partyList = [];
|
||||
loadWorkInfo.partyList = [];
|
||||
emits("openDialog", 99);
|
||||
loadChildrenInfo.pageNo = 1;
|
||||
getPartyConstruction();
|
||||
} else if (type == 2) {
|
||||
loadChildrenInfo.classificationId = item.id;
|
||||
loadWorkInfo.pageNo = 1;
|
||||
loadWorkInfo.partyList = [];
|
||||
getPartyConstructionMember();
|
||||
}
|
||||
};
|
||||
|
||||
@ -72,21 +72,25 @@ const videoInfo = reactive({
|
||||
secondTime: 0
|
||||
});
|
||||
const getLiveScreenDanmuList = async () => {
|
||||
let data = {
|
||||
projectSn: store.sn,
|
||||
pageNo: 1,
|
||||
pageSize: 2,
|
||||
userId: store.userId
|
||||
};
|
||||
const res: any = await getLiveScreenDanmuPage(data, true);
|
||||
if (res.result) {
|
||||
// console.log("我是弹幕", res.result.records);
|
||||
videoInfo.barrageString = res.result.records[0].content;
|
||||
const htmlText = videoInfo.barrageString.replace(/<[^>]*>/g, "");
|
||||
videoInfo.secondTime = Math.ceil(htmlText.length / 1.2);
|
||||
// console.log(videoInfo.secondTime);
|
||||
// videoInfo.videoList = res.result.records;
|
||||
}
|
||||
// let data = {
|
||||
// projectSn: store.sn,
|
||||
// pageNo: 1,
|
||||
// pageSize: 2,
|
||||
// userId: store.userId
|
||||
// };
|
||||
// const res: any = await getLiveScreenDanmuPage(data, true);
|
||||
// if (res.result) {
|
||||
// // console.log("我是弹幕", res.result.records);
|
||||
// videoInfo.barrageString = res.result.records[0].content;
|
||||
// const htmlText = videoInfo.barrageString.replace(/<[^>]*>/g, "");
|
||||
// videoInfo.secondTime = Math.ceil(htmlText.length / 1.2);
|
||||
// // console.log(videoInfo.secondTime);
|
||||
// // videoInfo.videoList = res.result.records;
|
||||
// }
|
||||
videoInfo.barrageString =
|
||||
'<p><span style="font-family: 宋体;">项目党建工作理念:党建统领、思想铸魂、安全铸基、质量铸根、人才铸本</span></p>';
|
||||
const htmlText = videoInfo.barrageString.replace(/<[^>]*>/g, "");
|
||||
videoInfo.secondTime = Math.ceil(htmlText.length / 1.2);
|
||||
};
|
||||
onMounted(() => {
|
||||
getPromoteVideo();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user