|
@ -3,13 +3,13 @@ |
|
|
<div class="PerceiveEvent"> |
|
|
<div class="PerceiveEvent"> |
|
|
<Video class="item-video" /> |
|
|
<Video class="item-video" /> |
|
|
<LineChart class="chart" /> |
|
|
<LineChart class="chart" /> |
|
|
<Form class="form" :value="data" ref="FormConfigRef" :formList="formList" column="1" /> |
|
|
<Form class="form" v-model="data" ref="FormConfigRef" :formList="formList" column="1" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<template #footer> |
|
|
<template #footer> |
|
|
<Button>误操作</Button> |
|
|
<Button>误操作</Button> |
|
|
<Button style="background-color: rgba(0, 179, 204, 0.3);">取消</Button> |
|
|
<Button style="background-color: rgba(0, 179, 204, 0.3);" @click.native="obverseVisible = false">取消</Button> |
|
|
<Button>确定</Button> |
|
|
<Button @click.native="updateEvent" :loading="btnLoading">确定</Button> |
|
|
</template> |
|
|
</template> |
|
|
</Dialog> |
|
|
</Dialog> |
|
|
</template> |
|
|
</template> |
|
@ -21,6 +21,8 @@ import Descriptions from '@screen/components/Descriptions.vue'; |
|
|
import LineChart from './components/LineChart/index.vue'; |
|
|
import LineChart from './components/LineChart/index.vue'; |
|
|
import Video from "@screen/components/Video"; |
|
|
import Video from "@screen/components/Video"; |
|
|
import Form from '@screen/components/FormConfig'; |
|
|
import Form from '@screen/components/FormConfig'; |
|
|
|
|
|
import request from "@/utils/request"; |
|
|
|
|
|
import { Message } from "element-ui"; |
|
|
|
|
|
|
|
|
import { WarningTypeList, WarningSubclassList } from "@screen/utils/enum.js" |
|
|
import { WarningTypeList, WarningSubclassList } from "@screen/utils/enum.js" |
|
|
// import { getRoadInfoByStakeMark, getProduct } from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js" |
|
|
// import { getRoadInfoByStakeMark, getProduct } from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js" |
|
@ -42,6 +44,7 @@ export default { |
|
|
return { |
|
|
return { |
|
|
activeName: 'first', |
|
|
activeName: 'first', |
|
|
deviceControlVisible: false, |
|
|
deviceControlVisible: false, |
|
|
|
|
|
btnLoading: false, |
|
|
data: { |
|
|
data: { |
|
|
deviceType: "行车诱导", |
|
|
deviceType: "行车诱导", |
|
|
deviceStation: "k094+079", |
|
|
deviceStation: "k094+079", |
|
@ -92,7 +95,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: "事件描述:", |
|
|
label: "事件描述:", |
|
|
key: "desc.duration", |
|
|
key: "remark", |
|
|
options: { |
|
|
options: { |
|
|
type: "textarea", |
|
|
type: "textarea", |
|
|
maxlength: 100, |
|
|
maxlength: 100, |
|
@ -113,7 +116,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
key: 1, |
|
|
key: 1, |
|
|
label: "行", |
|
|
label: "行1", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
key: 2, |
|
|
key: 2, |
|
@ -151,6 +154,39 @@ export default { |
|
|
console.log("%c [ this.data ]-108-「index.vue」", "font-size:15px; background:#1be811; color:#5fff55;", this.data); |
|
|
console.log("%c [ this.data ]-108-「index.vue」", "font-size:15px; background:#1be811; color:#5fff55;", this.data); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
updateEvent() { |
|
|
|
|
|
// s |
|
|
|
|
|
this.btnLoading = true; |
|
|
|
|
|
|
|
|
|
|
|
console.log({ |
|
|
|
|
|
id: this.dialogData.id, |
|
|
|
|
|
warningType: this.data.warningType, |
|
|
|
|
|
warningSubclass: this.data.warningSubclass, |
|
|
|
|
|
remark: this.data.remark, |
|
|
|
|
|
lane: this.data.lane |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
request({ |
|
|
|
|
|
url: `/perceivedEvents/warning/updateWarning`, |
|
|
|
|
|
method: "post", |
|
|
|
|
|
data: { |
|
|
|
|
|
id: this.dialogData.id, |
|
|
|
|
|
warningType: this.data.warningType, |
|
|
|
|
|
warningSubclass: this.data.warningSubclass, |
|
|
|
|
|
remark: this.data.remark, |
|
|
|
|
|
lane: this.data.lane |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.then(() => { |
|
|
|
|
|
Message.success("提交成功"); |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(() => { |
|
|
|
|
|
Message.error("提交失败"); |
|
|
|
|
|
}) |
|
|
|
|
|
.finally(() => { |
|
|
|
|
|
this.btnLoading = false; |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|