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