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) {