diff --git a/ruoyi-ui/src/api/commandDispatch/index.js b/ruoyi-ui/src/api/commandDispatch/index.js index 3b48be4b..730f528b 100644 --- a/ruoyi-ui/src/api/commandDispatch/index.js +++ b/ruoyi-ui/src/api/commandDispatch/index.js @@ -72,3 +72,12 @@ export function postNoSkipClear(data) { data, }); } + +// 新增事件侧重要素 +// export function postNoSkipClear(data) { +// return request({ +// url: "/dc/system/event/skipClear", +// method: "post", +// data, +// }); +// } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/StatsDialogVisible/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/StatsDialogVisible/index.vue index 92c48579..8ff73b7a 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/StatsDialogVisible/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/StatsDialogVisible/index.vue @@ -25,8 +25,8 @@ {{ item.name }} @@ -40,8 +40,8 @@ {{ item.vehiclePlate + item.vehicleText }} @@ -91,12 +91,24 @@ export default { vehicle: Array, id: Number, }, + watch: { + employees(val, oldVal) { + if (val !== oldVal) { + this.form.employees = val; + } + }, + vehicle(val, oldVal) { + if (val !== oldVal) { + this.form.vehicle = val; + } + }, + }, data() { return { form: { - dispatchId: this.id, - employees: this.employees, - vehicle: this.vehicle, + dispatchId: "", + employees: [], + vehicle: [], }, submitting: false, }; @@ -115,12 +127,30 @@ export default { methods: { handleSubmit() { this.form.dispatchId = this.id; - postUpdateSource(this.form).then((res) => { - this.$emit("handleRefresh"); - }); + console.log("data", this.data); + let employeesData = this.form.employees; + console.log("this.form,this.form", this.form); + // employeesData.forEach((item) => { + // for (let i = 0; i < this.data.length; i++) { + // if (this.data[i].employeesMap.length > 0) { + // for (let j = 0; j < this.data[i].employeesMap.length; j++) { + // if (this.data[i].employeesMap[j].id == item) { + // this.form.employees(...) + + // item.id = item; + // item.name = this.data[i].employeesMap[j].name; + // } + // } + // } + // } + // }); + this.form.vehicle; + + // postUpdateSource(this.form).then((res) => { + // this.$emit("handleRefresh"); + // }); }, }, - mounted() {}, }; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/index.vue index c4dc1f7b..2d538317 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/index.vue @@ -18,9 +18,9 @@
{{ item.shiftsName }}: {{ item.shiftsNumber }} - +
@@ -111,6 +111,8 @@ export default { }); this.dispatchList = res.data.listData; this.dispatchData = res.data.resource; + this.staff = []; + this.vehicle = []; res.data.resource.resource.forEach((element) => { if (element.dispatchType == 1) { this.staff.push(element); @@ -125,11 +127,15 @@ export default { } }); }); - res.data.employeesChoice.forEach((element) => { - this.employeesChoice.push(element.id); + this.employeesChoice = []; + this.vehiclesChoice = []; + this.staff.forEach((element) => { + this.employeesChoice.push(element); + // this.employeesChoice.push(element.resourceId); }); - res.data.vehiclesChoice.forEach((element) => { - this.vehiclesChoice.push(element.id); + this.vehicle.forEach((element) => { + this.vehiclesChoice.push(element); + // this.vehiclesChoice.push(element.resourceId); }); }); }, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogVisible/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogVisible/data.js new file mode 100644 index 00000000..5f23bdd1 --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogVisible/data.js @@ -0,0 +1,406 @@ +export const formList = [ + { + label: "事故类型:", + key: "stringEventSource", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "交通事故类型:", + key: "stakeMark", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "事件等级:", + key: "direction", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "报警人姓名:", + key: "stringEventType", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "报警人电话:", + key: "eventCause", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "地点方式:", + key: "stringEventState", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "路线:", + key: "nickName", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "方向:", + key: "startTime", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "桩号:", + key: "nickName", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "事件发生时间:", + key: "endTime", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "预计解除时间:", + key: "startTime", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "压车:", + key: "nickName", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "天气情况:", + key: "startTime", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "影响:", + key: "nickName", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "前方是否倒货:", + key: "startTime", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "前方是否养护施工:", + key: "nickName", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "前方是否拥堵:", + key: "startTime", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "是否分岔路口:", + key: "nickName", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "是否处在弯道:", + key: "startTime", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "是否处在隧道:", + key: "nickName", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "交警电话:", + key: "startTime", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "清障电话:", + key: "nickName", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "酒落物名称:", + key: "startTime", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "车主电话:", + key: "nickName", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "经验总结:", + key: "startTime", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "超时原因:", + key: "nickName", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "来源:", + key: "startTime", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "车道占用:", + key: "startTime", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "伤亡情况:", + key: "nickName", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "车辆情况:", + key: "startTime", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "事件标题:", + key: "nickName", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "事件描述:", + key: "startTime", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + // { + // label: "完结时间:", + // key: "endTime", + // type: "input", + // options: { + // disabled: true, + // placeholder: '' + // } + // }, + // { + // label: "事件描述:", + // key: "direction", + // type: "input", + // gridColumn: 3, + // options: { + // disabled: true, + // placeholder: "", + // }, + // }, +]; + +export const reportList = [ + { + label: "车型及车牌号:", + key: "eventCause", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "分流点名称及桩号:", + key: "eventCause", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + + { + label: "目前处置进度:", + key: "eventCause", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "已采取的措施:", + key: "eventCause", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "是否启动应急预案:", + key: "eventCause", + type: "radio", + options: { + disabled: true, + placeholder: "", + }, + }, + + { + label: "交警是否到达:", + key: "eventCause", + type: "radio", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "医疗是否到达:", + key: "eventCause", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + + { + label: "是否做好情报板提示工作:", + key: "eventCause", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + { + label: "是否有危化品泄露:", + key: "eventCause", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, + + { + label: "消防是否到达:", + key: "eventCause", + type: "input", + options: { + disabled: true, + placeholder: "", + }, + }, +]; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogVisible/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogVisible/index.vue new file mode 100644 index 00000000..b3510579 --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogVisible/index.vue @@ -0,0 +1,253 @@ + + + + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/index.vue index 8a4399cc..e5efb5a1 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/index.vue @@ -1,94 +1,95 @@ + + + +
暂无数据
+
+ + + + + + + - - - - 发送 - - -
- - + + + + +