Browse Source

感知事件 修改提交

wangqin
Joe 10 months ago
parent
commit
fff40a15ff
  1. 6
      ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/index.vue
  2. 77
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/PerceiveEvent/index.vue
  3. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/index.vue

6
ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/index.vue

@ -110,9 +110,9 @@ export default {
} }
} }
}, },
created() { // created() {
this.reset(true); // this.reset(true);
}, // },
computed: { computed: {
modelFormData: { modelFormData: {
get() { get() {

77
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/PerceiveEvent/index.vue

@ -3,7 +3,7 @@
<div class="PerceiveEvent"> <div class="PerceiveEvent">
<Video class="item-video" /> <Video class="item-video" />
<LineChart class="chart" /> <LineChart class="chart" />
<Form class="form" v-model="data" ref="FormConfigRef" :formList="formList" column="1" /> <Form class="form" v-loading="loading" :value="data" ref="FormConfigRef" :formList="formList" column="1" />
</div> </div>
<template #footer> <template #footer>
@ -43,17 +43,18 @@ export default {
}, },
data() { data() {
return { return {
loading: true,
activeName: 'first', activeName: 'first',
deviceControlVisible: false, deviceControlVisible: false,
btnLoading: false, btnLoading: false,
data: { data: {
deviceType: "行车诱导", // deviceType: "",
deviceStation: "k094+079", // deviceStation: "k094+079",
roadName: "G35济泽高速", // roadName: "G35",
direction: "1", // direction: "1",
deviceState: "0", // deviceState: "0",
deviceVendors: "XXX厂家", // deviceVendors: "XXX",
time: "2023/01/02 09:09:09" // time: "2023/01/02 09:09:09"
}, },
formList: [ formList: [
{ {
@ -127,13 +128,63 @@ export default {
} }
}, },
async created() { async created() {
this.data = { ...this.dialogData, roadName: null }; this.getDetails();
this.formList[4].options.options = WarningSubclassList[this.data.warningType] || []
console.log("%c [ this.data ]-108-「index.vue」", "font-size:15px; background:#1be811; color:#5fff55;", this.data);
}, },
methods: { methods: {
getDetails() {
request({
url: `/dc/system/event/${this.dialogData.id}`,
method: "GET",
params: {}
})
.then(({ data, code }) => {
if (code != 200) return Message.error("详情获取失败");
// data = {
// "searchValue": null,
// "createBy": null,
// "createTime": "2024-07-23 14:18:58",
// "updateBy": null,
// "updateTime": "2024-02-01 15:55:34",
// "remark": "111",
// "params": {},
// "id": "1",
// "stakeMark": "k103+900",
// "direction": "1",
// "deptId": null,
// "warningState": 1,
// "warningTime": null,
// "userId": null,
// "warningSource": 1,
// "warningLevel": null,
// "warningType": 1,
// "warningSubclass": null,
// "warningTitle": null,
// "otherConfig": null,
// "lane": null,
// "sectionName": null,
// "number": 0,
// "type": null,
// "sectionId": null,
// "longitude": "116.493888",
// "latitude": "36.291145"
// };
this.data = { ...data, roadName: null };
this.formList[4].options.options = WarningSubclassList[data.warningType] || [];
setTimeout(() => {
this.$refs.FormConfigRef.reset(true);
});
})
.catch(() => {
Message.error("详情获取失败");
})
.finally(() => {
this.loading = false;
})
},
updateEvent() { updateEvent() {
// s // s
this.btnLoading = true; this.btnLoading = true;

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/index.vue

@ -49,7 +49,7 @@ export default {
}, },
data() { data() {
return { return {
activeName: "EmergencyAgencies", activeName: "FirstResponders",
panels: [ panels: [
{ {
label: "应急人员", label: "应急人员",

Loading…
Cancel
Save