From 52970e9e9aa12b7e205e7a8e986548b16a42c9d6 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 8 Feb 2023 15:19:48 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=BF=E7=9C=9F=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E3=80=91iscs=E7=95=8C=E9=9D=A2=EF=BC=8C=E5=B1=8F=E8=94=BD?= =?UTF-8?q?=E9=97=A8=E7=B3=BB=E7=BB=9F=E5=88=87=E6=8D=A2=E8=BD=A6=E7=AB=99?= =?UTF-8?q?=E6=97=B6=E4=BB=A5=E5=89=8D=E6=98=AF=E6=9C=89=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E7=9A=84=EF=BC=8C=E7=8E=B0=E5=9C=A8=E6=B2=A1=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iscs/iscsSystemNew/stationConfig/iscsCanvas.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/iscs/iscsSystemNew/stationConfig/iscsCanvas.vue b/src/views/iscs/iscsSystemNew/stationConfig/iscsCanvas.vue index b026f9661..9a169deef 100644 --- a/src/views/iscs/iscsSystemNew/stationConfig/iscsCanvas.vue +++ b/src/views/iscs/iscsSystemNew/stationConfig/iscsCanvas.vue @@ -47,6 +47,7 @@ export default { return ['iscs', (Math.random().toFixed(5)) * 100000].join('_'); } }, + watch: { '$store.state.iscs.alarmList': function(list) { if (list.length) { @@ -60,6 +61,9 @@ export default { document.querySelector('#teleRing').pause(); this.$store.commit('iscs/setCloseMusic', 0); } + }, + '$store.state.socket.iscsStateMessages': function (list) { + this.$store.dispatch('iscs/updateIscsState', list); } }, methods:{