diff --git a/src/views/pages/civilizedCity/index.vue b/src/views/pages/civilizedCity/index.vue index 4f772e2..4c76b68 100644 --- a/src/views/pages/civilizedCity/index.vue +++ b/src/views/pages/civilizedCity/index.vue @@ -506,12 +506,7 @@ export default { bus.$off('openCurrentVideoSurveillance') bus.$on('openCurrentVideoSurveillance', (channelCode) => { this.openVideo = true - if (!this.channelCode.includes(channelCode)) { - console.log(this.channelCode, channelCode, '====>实时监控') - this.channelCode.unshift(channelCode) - } else { - this.$message.warning('该实时监控已经加入视频列表了!') - } + this.channelCode.unshift(channelCode) }) bus.$off('closeVideoDia') bus.$on('closeVideoDia', () => { diff --git a/src/views/pages/construction/index.vue b/src/views/pages/construction/index.vue index bb132d5..b1dcbf1 100644 --- a/src/views/pages/construction/index.vue +++ b/src/views/pages/construction/index.vue @@ -180,12 +180,7 @@ export default { bus.$off('openCurrentVideoSurveillance') bus.$on('openCurrentVideoSurveillance', (channelCode) => { this.openVideo = true - if (!this.channelCode.includes(channelCode)) { - console.log(this.channelCode, channelCode, '====>实时监控') - this.channelCode.unshift(channelCode) - } else { - this.$message.warning('该实时监控已经加入视频列表了!') - } + this.channelCode.unshift(channelCode) }) bus.$off('roadCauseAnalysis') diff --git a/src/views/pages/roadGovernance/components/RoadMain.vue b/src/views/pages/roadGovernance/components/RoadMain.vue index 3c271d2..ff61d9b 100644 --- a/src/views/pages/roadGovernance/components/RoadMain.vue +++ b/src/views/pages/roadGovernance/components/RoadMain.vue @@ -297,12 +297,7 @@ export default { bus.$off('openCurrentVideoSurveillance') bus.$on('openCurrentVideoSurveillance', (channelCode) => { this.openVideo = true - if (!this.channelCode.includes(channelCode)) { - console.log(this.channelCode, channelCode, '====>实时监控') - this.channelCode.unshift(channelCode) - } else { - this.$message.warning('该实时监控已经加入视频列表了!') - } + this.channelCode.unshift(channelCode) }) // 累计事件数量 diff --git a/src/views/pages/videoSurveillance/index.vue b/src/views/pages/videoSurveillance/index.vue index 4011796..04be56e 100644 --- a/src/views/pages/videoSurveillance/index.vue +++ b/src/views/pages/videoSurveillance/index.vue @@ -200,12 +200,7 @@ export default { bus.$off('openCurrentVideoSurveillance') bus.$on('openCurrentVideoSurveillance', channelCode => { this.openVideo = true - if (!this.channelCode.includes(channelCode)) { - console.log(this.channelCode, channelCode, '====>实时监控') - this.channelCode.unshift(channelCode) - } else { - this.$message.warning('该实时监控已经加入视频列表了!') - } + this.channelCode.unshift(channelCode) }) }, methods: {