Browse Source

事件提示音

develop
王兴琳 5 days ago
parent
commit
97d046cdb1
  1. 7
      ruoyi-ui/src/views/websocket.vue

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

@ -107,12 +107,17 @@ export default {
case "0": case "0":
case "3": case "3":
case "2": case "2":
this.triggerAlert()
setTimeout(() => {
this.$emit("newEvent", params);
}, 1000); // 1000 = 1
break;
case "externalPlatformOffline": case "externalPlatformOffline":
case "trafficFlowDataEarlyWarning": case "trafficFlowDataEarlyWarning":
this.$emit("newEvent", params); this.$emit("newEvent", params);
break; break;
case "1": case "1":
if(content.event.warningSource ==5||content.event.warningType==10||content.event.warningType==11){ if(content.event.warningType==10||content.event.warningType==11){
this.triggerAlert() this.triggerAlert()
setTimeout(() => { setTimeout(() => {
this.$emit("newEvent", params); this.$emit("newEvent", params);

Loading…
Cancel
Save