Browse Source

刷新事件监听

wangqin
zhoule 7 months ago
parent
commit
a61be15844
  1. 6
      ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/WarningList.vue
  2. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/PerceiveEvent/index.vue
  3. 3
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue
  4. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue

6
ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/WarningList.vue

@ -68,8 +68,14 @@ export default {
computed: {
},
mounted() {
//
this.$root.$on('refresh-event', this.getMainData);
this.getMainData();
},
beforeDestroy() {
//
this.$root.$off('refresh-event', this.getMainData);
},
methods: {
onChangeTab(tab, event) {
console.log(tab, event);

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/PerceiveEvent/index.vue

@ -227,6 +227,8 @@ export default {
},
"special"
);
//
this.$root.$emit('refresh-event');
// markerClusterIns.setData();
});
});

3
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue

@ -168,7 +168,10 @@ export default {
else this.$message.error(result?.msg);
this.$emit('traffic-relieve', this.data);
//
this.$root.$emit('refresh-event');
});
})
.catch(() => { });
},

4
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue

@ -262,6 +262,8 @@ export default {
else Message.error(result?.msg);
this.modelVisible = false;
this.$emit("queryData", true);
//
this.$root.$emit('delete-event');
});
} else {
request({
@ -272,6 +274,8 @@ export default {
else Message.error(result?.msg);
this.modelVisible = false;
this.$emit("queryData", true);
//
this.$root.$emit('delete-event');
});
}
});

Loading…
Cancel
Save