Browse Source

地图实时刷新事件

develop
lau572 4 months ago
parent
commit
d9a895edad
  1. 4
      ruoyi-ui/src/views/websocket.vue

4
ruoyi-ui/src/views/websocket.vue

@ -107,7 +107,6 @@ export default {
break;
case "0":
this.$emit("newEvent", params);
this.$root.$emit('refreshMap');
break;
case "3":
case "externalPlatformOffline":
@ -116,7 +115,6 @@ export default {
break;
case "2":
this.triggerAlert()
this.$root.$emit('refreshMap');
setTimeout(() => {
this.$emit("newEvent", params);
}, 1000); // 1000 = 1
@ -130,7 +128,6 @@ export default {
}else{
this.$emit("newEvent", params);
}
this.$root.$emit('refreshMap');
break;
case "deviceState":
this.EventBus.$emit("deviceState", contentList);
@ -138,6 +135,7 @@ export default {
case "eventCount":
this.$root.$emit('update-warning', content);
this.$root.$emit('refreshMap');
break;
case "eventProcess":
this.$root.$emit('update-eventProcess', content);

Loading…
Cancel
Save