|
@ -139,7 +139,15 @@ export default { |
|
|
methods: { |
|
|
methods: { |
|
|
handleClickTabs() { }, |
|
|
handleClickTabs() { }, |
|
|
goDispatch() { |
|
|
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() { |
|
|
goStrategy() { |
|
|
this.$router.push(`/control/device/strategy`); |
|
|
this.$router.push(`/control/device/strategy`); |
|
|