|
|
@ -8,16 +8,16 @@ |
|
|
|
<Descriptions labelWidth="72px" :list="list" :data="data" style="gap: 18px" column="7" /> |
|
|
|
</div> |
|
|
|
<div class="foote"> |
|
|
|
<Button @click.native="handleEventRelieve" style="width: 100px;"> |
|
|
|
事件解除 |
|
|
|
</Button> |
|
|
|
<Button @click.native="goDispatch" style="width: 100px;"> |
|
|
|
设备管控 |
|
|
|
</Button> |
|
|
|
<Button @click.native="goDispatch" style="width: 100px;"> |
|
|
|
调度处置 |
|
|
|
</Button> |
|
|
|
</div> |
|
|
|
<Button @click.native="handleEventRelieve" style="width: 100px;" v-if="data.eventState == '0'"> |
|
|
|
误报 |
|
|
|
</Button> |
|
|
|
<Button @click.native="goDispatch" style="width: 100px;"> |
|
|
|
设备管控 |
|
|
|
</Button> |
|
|
|
<Button @click.native="goDispatch" style="width: 100px;"> |
|
|
|
调度处置 |
|
|
|
</Button> |
|
|
|
</div> |
|
|
|
</Dialog> |
|
|
|
</template> |
|
|
|
|
|
|
@ -138,30 +138,39 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleClickTabs() { }, |
|
|
|
goDispatch(){ |
|
|
|
goDispatch() { |
|
|
|
this.$router.push(`/control/event/commandDispatch`); |
|
|
|
}, |
|
|
|
goStrategy(){ |
|
|
|
goStrategy() { |
|
|
|
this.$router.push(`/control/device/strategy`); |
|
|
|
}, |
|
|
|
handleEventRelieve() { |
|
|
|
|
|
|
|
this.$confirm("确定解除事件吗?", "提示", { |
|
|
|
|
|
|
|
this.$confirm("确定事件误报吗?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
let data = new FormData(); |
|
|
|
data.append("eventId", this.dialogData.id); |
|
|
|
postCompleteEvent(data).then((result) => { |
|
|
|
console.log('--------',result) |
|
|
|
if (result.code != 200) return []; |
|
|
|
this.$message.success("事件解除成功"); |
|
|
|
this.$emit('traffic-relieve',this.data); |
|
|
|
// let data = new FormData(); |
|
|
|
// data.append("eventId", this.dialogData.id); |
|
|
|
// postCompleteEvent(data).then((result) => { |
|
|
|
// console.log('--------', result) |
|
|
|
// if (result.code != 200) return []; |
|
|
|
// this.$message.success("成功"); |
|
|
|
// this.$emit('traffic-relieve', this.data); |
|
|
|
// }); |
|
|
|
request({ |
|
|
|
url: `dc/system/event/${this.data.eventType}/${this.dialogData.id}`, |
|
|
|
method: "delete", |
|
|
|
}).then((result) => { |
|
|
|
if (result.code == 200) Message.success("成功!"); |
|
|
|
else Message.error(result?.msg); |
|
|
|
|
|
|
|
this.$emit('traffic-relieve', this.data); |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(() => {}); |
|
|
|
.catch(() => { }); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
@ -217,13 +226,14 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.foote{ |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
gap: 9px; |
|
|
|
width: 100%; |
|
|
|
justify-content: flex-end; |
|
|
|
margin:20px 0px -20px 0px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.foote { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
gap: 9px; |
|
|
|
width: 100%; |
|
|
|
justify-content: flex-end; |
|
|
|
margin: 20px 0px -20px 0px; |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|