From 33ea88f35e895bdf167cf6f7a8772753aee78ba7 Mon Sep 17 00:00:00 2001 From: qiudan <1044775178@qq.com> Date: Sun, 29 Oct 2023 22:24:48 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index 2fae557..0c18713 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -978,9 +978,9 @@ export default { }, //感知编码开关事件 showPerception(val) { - if (val == 1) { - this.$message.warning('必须填写完整感知编码!'); - } + // if (val == 1) { + // this.$message.warning('必须填写完整感知编码!'); + // } this.switchValue = val; this.perception.scene = ''; //场景 this.perception.position = ''; //方位 @@ -1323,7 +1323,7 @@ export default { }, //获取视频分析结果 analysisData() { - var ip = window.location.host.split(":")[0]; + var ip = window.location.host.split(':')[0]; // var ip = '172.16.1.168'; //http://172.16.1.168 console.log('ip', ip); getAnalysisData(this.$route.query.id, ip).then((res) => { @@ -1363,7 +1363,7 @@ export default { //分析结束传参 postTraffic() { - var ip = window.location.host.split(":")[0]; + var ip = window.location.host.split(':')[0]; // var ip = '172.16.1.168'; //http://172.16.1.168:5000 console.log('ip', ip); getAnalysisData(this.$route.query.id, ip).then((res) => { @@ -1530,10 +1530,10 @@ export default { const temp = utf8decoder.decode(u8arr); // 将二进制数据转为字符串 var detId = []; const msgN = JSON.parse(temp); - console.log("周期统计实时累计数据主题",msgN) + console.log('周期统计实时累计数据主题', msgN); this.cycleAccumulateData = msgN; } catch (error) {} - break; + break; case 'VideoStatusData': try { const utf8decoder = new TextDecoder(); @@ -1710,6 +1710,12 @@ export default { } }); }); + } else { + let startSectionArr = []; + this.sectionals.forEach((items) => { + startSectionArr.push(items.graphicName); + }); + this.componentForm.startSection = startSectionArr; } if (res.data.data.endSectionIds != '') { console.log('endSectionIds', res.data.data.endSectionIds); @@ -1726,6 +1732,12 @@ export default { } }); }); + } else { + let endSectionArr = []; + this.sectionals.forEach((items) => { + endSectionArr.push(items.graphicName); + }); + this.componentForm.endSection = endSectionArr; } if (this.componentForm.presentationForm != '') { var arr = [];