From 2c4f91d7abebafdf69ecc97546a5615cd711efbb Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 6 Feb 2020 10:29:59 +0800 Subject: [PATCH] =?UTF-8?q?iscs=20=E7=BB=98=E5=9B=BE=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iscs/iscsDraw/iscsAcsOperate/index.vue | 1 + src/views/iscs/iscsDraw/iscsAfcOperate/index.vue | 1 + src/views/iscs/iscsDraw/iscsBasOperate/index.vue | 3 +++ src/views/iscs/iscsDraw/iscsCctvOperate/index.vue | 2 +- src/views/iscsSystem/index.vue | 4 +++- 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/iscs/iscsDraw/iscsAcsOperate/index.vue b/src/views/iscs/iscsDraw/iscsAcsOperate/index.vue index 195f8df4b..1cfe76cfc 100644 --- a/src/views/iscs/iscsDraw/iscsAcsOperate/index.vue +++ b/src/views/iscs/iscsDraw/iscsAcsOperate/index.vue @@ -82,6 +82,7 @@ export default { } }, mounted() { + this.$emit('iscsChange', this.$route.params.id); }, beforeDestroy() { diff --git a/src/views/iscs/iscsDraw/iscsAfcOperate/index.vue b/src/views/iscs/iscsDraw/iscsAfcOperate/index.vue index 0b34355af..a24e16c7d 100644 --- a/src/views/iscs/iscsDraw/iscsAfcOperate/index.vue +++ b/src/views/iscs/iscsDraw/iscsAfcOperate/index.vue @@ -103,6 +103,7 @@ export default { } }, mounted() { + this.$emit('iscsChange', this.$route.params.id); }, beforeDestroy() { diff --git a/src/views/iscs/iscsDraw/iscsBasOperate/index.vue b/src/views/iscs/iscsDraw/iscsBasOperate/index.vue index 54cd28324..570337c87 100644 --- a/src/views/iscs/iscsDraw/iscsBasOperate/index.vue +++ b/src/views/iscs/iscsDraw/iscsBasOperate/index.vue @@ -170,6 +170,9 @@ export default { enabledTab: 'frozenPump' }; }, + mounted() { + this.$emit('iscsChange', this.$route.params.id); + }, methods:{ createDataModel(model) { const newModel = deviceFactory(model._type, model); diff --git a/src/views/iscs/iscsDraw/iscsCctvOperate/index.vue b/src/views/iscs/iscsDraw/iscsCctvOperate/index.vue index f20c3d089..94d015bf6 100644 --- a/src/views/iscs/iscsDraw/iscsCctvOperate/index.vue +++ b/src/views/iscs/iscsDraw/iscsCctvOperate/index.vue @@ -93,9 +93,9 @@ export default { } }, mounted() { + this.$emit('iscsChange', this.$route.params.id); }, beforeDestroy() { - }, methods: { createDataModel(model) { diff --git a/src/views/iscsSystem/index.vue b/src/views/iscsSystem/index.vue index d45214c85..59cd097f7 100644 --- a/src/views/iscsSystem/index.vue +++ b/src/views/iscsSystem/index.vue @@ -152,7 +152,9 @@ export default { }, // 右键点击事件 onContextMenu(em) { - this.$store.dispatch('iscs/setUpdateDeviceData', em.eventTarget.model); + if (em.eventTarget) { + this.$store.dispatch('iscs/setUpdateDeviceData', em.eventTarget.model); + } }, // 绘图时调用,元素可拖拽 drawIscsInit() {