|
|
@ -8,7 +8,7 @@ |
|
|
|
<Descriptions labelWidth="72px" :list="list" :data="data" style="gap: 18px" column="7" /> |
|
|
|
</div> |
|
|
|
<div class="foote"> |
|
|
|
<Button @click.native="submitClick" :loading="submitting" style="width: 100px;"> |
|
|
|
<Button @click.native="handleEventRelieve" style="width: 100px;"> |
|
|
|
事件解除 |
|
|
|
</Button> |
|
|
|
<Button @click.native="goStrategy" style="width: 100px;"> |
|
|
@ -30,7 +30,9 @@ import Video from "@screen/components/VideoMulti"; |
|
|
|
|
|
|
|
import request from "@/utils/request"; |
|
|
|
import { dialogDelayVisible } from "./../mixin"; |
|
|
|
|
|
|
|
import { |
|
|
|
postCompleteEvent, |
|
|
|
} from "@/api/commandDispatch"; |
|
|
|
// 所有交通事件的详情 |
|
|
|
export default { |
|
|
|
name: "TrafficIncidents", |
|
|
@ -131,7 +133,6 @@ export default { |
|
|
|
if (code != 200) return; |
|
|
|
|
|
|
|
this.data = { ...data, ...this.data }; |
|
|
|
console.log("trafficIncidents", data); |
|
|
|
}) |
|
|
|
.catch((err) => { }); |
|
|
|
}, |
|
|
@ -142,7 +143,26 @@ export default { |
|
|
|
}, |
|
|
|
goStrategy(){ |
|
|
|
this.$router.push(`/control/device/strategy`); |
|
|
|
} |
|
|
|
}, |
|
|
|
handleEventRelieve() { |
|
|
|
|
|
|
|
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); |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(() => {}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|