From af5e7b9d7c93891700e30838988ff45b1326101c Mon Sep 17 00:00:00 2001 From: qiudan <1044775178@qq.com> Date: Fri, 15 Dec 2023 17:54:01 +0800 Subject: [PATCH] =?UTF-8?q?OD=E5=BC=B9=E6=A1=86=E4=BC=98=E5=8C=96=EF=BC=8C?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=80=89=E6=8B=A9=E4=B8=80=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index 583c9c0..74dcd6c 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -353,7 +353,9 @@ - + +
注意:OD组件消耗性能极高,可能会造成分析延迟,(起点个数*终点个数)值不要太大!
+
{{ @@ -1154,7 +1156,7 @@ export default { 'detection' + this.number, 'img' + this.number, 'TargetAnalysisStatusData', - 'TrafficAnalysisStatusData', + 'TrafficAnalysisStatusData' ]; // console.log('在test1/index视频页面number-',this.number) window.PubScribe(this.topicSends, this.number, this.realInfo, false, this.$route.query.id); @@ -1170,7 +1172,7 @@ export default { 'trigger-' + this.$route.query.id, 'cycle_time-' + this.$route.query.id, 'cycle_statistics-' + this.$route.query.id, - 'cycle_accumulate-' + this.$route.query.id, + 'cycle_accumulate-' + this.$route.query.id ]; // console.log('在test1/index视频页面number-',this.number) window.PubScribe(this.topicSends, this.number, this.realInfo, false, this.$route.query.id); @@ -1802,8 +1804,10 @@ export default { this.sectionals.forEach((items) => { startSectionArr.push(items.graphicName); }); - this.componentForm.startSection = startSectionArr; - this.handleCheckedStartSection(startSectionArr) + if (startSectionArr.length > 0) { + this.componentForm.startSection = [startSectionArr[0]]; + this.handleCheckedStartSection([startSectionArr[0]]); + } } if (res.data.data.endSectionIds != '') { //console.log('endSectionIds', res.data.data.endSectionIds); @@ -1825,8 +1829,10 @@ export default { this.sectionals.forEach((items) => { endSectionArr.push(items.graphicName); }); - this.componentForm.endSection = endSectionArr; - this.handleCheckedendSection(endSectionArr) + if (endSectionArr.length > 0) { + this.componentForm.endSection = [endSectionArr[0]]; + this.handleCheckedendSection([endSectionArr[0]]); + } } if (this.componentForm.presentationForm != '') { var arr = []; @@ -2553,6 +2559,10 @@ export default { // console.log('改变起点', value); var startSectionIdArr = []; var startSectionNameArr = []; + if (value.length == 0) { + this.componentForm.startSectionIds = ''; + this.componentForm.startSectionNames = ''; + } value.forEach((item) => { this.sectionals.forEach((items) => { if (item == items.graphicName) { @@ -2571,6 +2581,10 @@ export default { //console.log('改变终点', value); var endSectionIdArr = []; var endSectionNameArr = []; + if (value.length == 0) { + this.componentForm.endSectionIds = ''; + this.componentForm.endSectionNames = ''; + } value.forEach((item) => { this.sectionals.forEach((items) => { if (item == items.graphicName) {