diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue index fc25dace..824b4f4c 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue @@ -139,7 +139,15 @@ export default { methods: { handleClickTabs() { }, goDispatch() { - this.$router.push(`/control/event/commandDispatch?id=${this.dialogData.id}`); + request({ + url: `/dc/system/event/dcEventState/${this.dialogData.id}/1`, + method: "put", + }) + .then(({ code, data }) => { + if (code != 200) return; + this.$router.push(`/control/event/commandDispatch?id=${this.dialogData.id}`); + }) + .catch((err) => { }); }, goStrategy() { this.$router.push(`/control/device/strategy`);