From e9d0592ddece354f4bd9abdd563c617d077d3eb7 Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Thu, 11 Aug 2022 16:58:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F=E8=A7=86=E9=A2=91=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E3=80=82=E5=8F=AF=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pages/civilizedCity/index.vue | 7 +------ src/views/pages/construction/index.vue | 7 +------ src/views/pages/roadGovernance/components/RoadMain.vue | 7 +------ src/views/pages/videoSurveillance/index.vue | 7 +------ 4 files changed, 4 insertions(+), 24 deletions(-) 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: {