diff --git a/ruoyi-ui/README.md b/ruoyi-ui/README.md index 6f9886d8..82cc4cbe 100644 --- a/ruoyi-ui/README.md +++ b/ruoyi-ui/README.md @@ -84,84 +84,13 @@ data.js 表单封装,里面会使用PresetFormItems的一些FormItem. Form表单属性介绍:
- { - key: "ServiceAreaAbnormal", //唯一标识 一般tabs才需要 - label: "服务区异常",//表单标题 - formConfig: { - formOptions: {//element中表单配置参数 - column: 2, //一行放多少元素(基于:style grid布局实现) - }, - list: [//FormItem定义 - { - label: "异常分类:", - key: "eventSubclass", - type: "RadioGroup", - isAlone: true, - required: true, - options: { - activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", - options: [ - { - key: "8-1", - label: "封闭、暂停营业", - }, - { - key: "8-2", - label: "重要设施停用", - }, - { - key: "8-3", - label: "其他异常", - }, - ], - }, - }, - PresetFormItems.freeway, - PresetFormItems.direction, - { - label: "服务区:", - key: "dcEventServiceArea.facilityId", - type: "select", - isAlone: true, - required: true, - options: { - options: [ - { - value: "选项1", - label: "黄金糕", - }, - ], - }, - }, - { - label: "出入口:", - key: "dcEventServiceArea.exitsInlets", - type: "RadioGroup", - isAlone: true, - required: true, - options: { - activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", - options: [ - { - key: "1", - label: "出口", - }, - { - key: "2", - label: "入口", - }, - ], - }, - }, - PresetFormItems.startTime, - PresetFormItems.expectedEndTime, - PresetFormItems.remark, - PresetFormItems.source, - ], - }, - } +/* + column: 一行放多少元素(基于:style grid布局实现) + formList: 表单项(FormItem)配置集合 + v-model: 双向绑定的表单数据(可以获取到表单数据(同步表单数据this.$emit("update:value", this.formData)), 也可修改表单数据) +*/ -FormItem属性介绍: +FormItem属性介绍 & ons 事件监听: export const additionalNotes = { label: "补充说明:", // 标题 @@ -184,8 +113,9 @@ export const additionalNotes = { }, ons: { //on监听 element事件 change(value, ...args) { - const { data, formList } = args.slice(-1)\[0]; //data 为数据 formList为传入的配置项 - mileCal(data); + const { data, formList } = args.slice(-1)\[0]; //data 为表单数据 formList为传入的配置项 + formList[4].options.options = []; //调整配置项 修改下拉框options选项 + this.$set(this.data, 'deviceState', undefined); //更新v-model双向绑定的表单数据 } }, }; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastParam.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastParam.vue new file mode 100644 index 00000000..e6b921b7 --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastParam.vue @@ -0,0 +1,220 @@ + + + + + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastReleases.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastReleases.vue index 019b76c1..01cbfb3f 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastReleases.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastReleases.vue @@ -1,51 +1,37 @@ @@ -55,7 +41,7 @@ import Dialog from "@screen/components/Dialog/index.vue"; import Button from "@screen/components/Buttons/Button.vue"; import Video from "@screen/components/Video"; import CheckboxGroup from "@screen/components/FormConfig/components/ElCheckboxGroup.vue"; - +import BroadcastParam from "./BroadcastParam.vue"; import request from "@/utils/request"; import { getDeviceList } from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js"; @@ -68,6 +54,7 @@ export default { Button, Video, CheckboxGroup, + BroadcastParam }, model: { prop: "visible", @@ -75,9 +62,7 @@ export default { }, props: { visible: Boolean, - deviceId: String, pileNum: String, - currentId: [String, Number], otherConfig: String, }, data() { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/index.vue index 21008c8e..033773fa 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/index.vue @@ -10,11 +10,7 @@ - + @@ -23,13 +19,7 @@ - + @@ -131,7 +121,7 @@ export default { if (roadInfo) this.data.roadName = roadInfo.roadName; }, methods: { - handleClickTabs() {}, + handleClickTabs() { }, }, }; @@ -171,7 +161,7 @@ export default { align-items: center; justify-content: end; - > div { + >div { font-size: 16px; padding: 6px 12px; } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFilter/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFilter/index.vue index e24e8e8a..2fc0ff81 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFilter/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFilter/index.vue @@ -90,7 +90,6 @@ export default { watch: { activeDeviceTypes: { handler(val) { - console.log(val, this.activeDeviceTypes, 'xxx') const options = [] for (let id of DeviceTypeIds) { if (this.activeDeviceTypes.indexOf(`路测设备_${id}`) >= 0) { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFrameControl/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFrameControl/index.vue index 31acbadd..78bf3965 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFrameControl/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFrameControl/index.vue @@ -37,10 +37,11 @@ import { delay } from "@screen/utils/common"; import { initSearch } from "@screen/utils/enum/common.js" import { DeviceForMap } from "@screen/pages/Home/components/RoadAndEvents/utils/buttonEvent" -const DeviceTopics = {} +const controlMulti = ["情报板", "行车诱导", "疲劳唤醒", "合流区", "设备箱", "语音广播"]; +const DeviceTopics = {};//6种批量控制 事件专题 {key:label} Object.keys(DeviceForMap).forEach(DeviceLabel => { - DeviceTopics[DeviceForMap[DeviceLabel].deviceType] = DeviceLabel; + controlMulti.indexOf(DeviceLabel) !== -1 && (DeviceTopics[DeviceForMap[DeviceLabel].deviceType] = DeviceLabel); }); async function setDeviceOptions(config, filterData, formList) { const data = await getDeviceList(config.deviceType, filterData).then(async (data) => { @@ -248,7 +249,7 @@ export default { const match = activeDeviceType.match(/路测设备_(\d+)/); if (match) { const deviceType = match[1]; - activeTopicOptions.push({ label: DeviceTopics[deviceType], value: deviceType }); + DeviceTopics[deviceType] && activeTopicOptions.push({ label: DeviceTopics[deviceType], value: deviceType }); } }); diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue index 74a6d568..b1ff7993 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue @@ -246,7 +246,6 @@ export default { this.emitter.emit("selectedCompleted", item); return this.$emit("onClickItem", item); } - console.log(`${key}${status ? "_close" : ""}`, this.filterData, isDefault) await eventMap[`${key}${status ? "_close" : ""}`]?.call(this, item, this.filterData, isDefault, this.cb); }, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/index.vue index b0fd17c3..fc62b317 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/index.vue @@ -1,13 +1,9 @@ @@ -180,12 +161,14 @@ export default { } else { formData.lang = ""; } + if (this.index == 2 && formData.dcEventTrafficControl.facilityId instanceof Array) { + let ids = formData.dcEventTrafficControl.facilityId.join(','); + formData.dcEventTrafficControl.facilityIds = ids + formData.dcEventTrafficControl.facilityId = '' + } if (formData.endStakeMark && formData.endStakeMark[0] != null) { let endStakeMark = formData.endStakeMark; - let strMark = - endStakeMark && endStakeMark.length > 0 - ? "K" + endStakeMark[0] + "+" + endStakeMark[1] - : ""; + let strMark = endStakeMark && endStakeMark.length > 0 ? "K" + endStakeMark[0] + "+" + endStakeMark[1] : ""; if (this.index == 3) { formData.dcEventTrafficCongestion.endStakeMark = strMark; } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/ScopeTable.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/ScopeTable.vue new file mode 100644 index 00000000..a6b44689 --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/ScopeTable.vue @@ -0,0 +1,413 @@ + + + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index copy.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index copy.vue new file mode 100644 index 00000000..653eed22 --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index copy.vue @@ -0,0 +1,472 @@ + + + + + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue index 653eed22..404e0476 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue @@ -3,12 +3,6 @@
- - - 交通事件 - 感知事件 - - @@ -18,35 +12,26 @@ - - - + +
-
- - -
*执行操作:
-
+
+ - + - -
-
- -
*恢复操作:
-
- - + +
+
@@ -65,21 +50,17 @@ import FormTable from "../formTable/index"; import Button from "@screen/components/Buttons/Button.vue"; import request from "@/utils/request"; import { Message } from "element-ui"; -import { throttle } from "lodash"; +import ScopeTable from "./ScopeTable.vue"; +import { defaultTableInfo } from "../data"; +import Table from '@screen/components/Table.vue'; import { controlModelMap, gzztMap, gzmsMap, eventSubClassMap, - trafficKV, - WarningTypeList as perceptionKV, + trafficKV } from "@screen/utils/enum.js"; -const typeMap = { - 1: trafficKV, - 2: perceptionKV, -}; - export default { name: "addAndEditDialog", components: { @@ -87,6 +68,8 @@ export default { Form, Button, FormTable, + Table, + ScopeTable }, model: { prop: "visible", @@ -112,24 +95,10 @@ export default { planId: 0, submitting: false, formData: { - eventCategory: 1, eventType: 1, triggerMechanism: "", }, - secondFormData: [ - { - deviceType: 1, - searchRule: 1, - qbb: "", - }, - ], - thirdFormData: [ - { - deviceType: 1, - searchRule: 1, - qbb: "", - }, - ], + tableData: [], deviceData: [], eventOptions: trafficKV, mechanismOptions: [ @@ -170,34 +139,17 @@ export default { if (Object.keys(this.detail).length > 0) { this.title = "修改预案"; this.dialogType = 2; - this.eventOptions = typeMap[this.detail.eventCategory]; - this.mechanismOptions = - eventSubClassMap[this.detail.eventCategory || 1][ - this.detail.eventType - ]; + this.mechanismOptions = eventSubClassMap[1][this.detail.eventType]; this.initData(this.detail.id); } else { this.title = "新增预案"; this.dialogType = 1; this.formData = { - eventCategory: 1, eventType: 1, triggerMechanism: "", }; - this.secondFormData = [ - { - deviceType: 1, - searchRule: 1, - qbb: "", - }, - ]; - this.thirdFormData = [ - { - deviceType: 1, - searchRule: 1, - qbb: "", - }, - ]; + console.log('defaultTableInfo', { ...defaultTableInfo }) + this.tableData = [{ ...defaultTableInfo }] } } return this.visible; @@ -216,43 +168,38 @@ export default { .then((result) => { if (result.code != 200) return Message.error(result?.msg); let data = result.data; - let dcExecuteAction = result.data.dcExecuteAction; + let dcExecuteAction = data.dcExecuteAction; this.planId = data.id; this.formData = { - eventCategory: data.eventCategory, planName: data.planName, eventType: data.eventType, triggerMechanism: data.triggerMechanism, }; - this.secondFormData = []; - this.thirdFormData = []; + let dcArr = []; dcExecuteAction.forEach((it) => { - let action = {}; - if (it.otherConfig) { - let config = JSON.parse(it.otherConfig); - let qbb = ""; - if (config.id) { - qbb = config.content; - config = { dcInfoBoardTemplate: config }; - } - // if (config.state) { - // config.gzms = config.state - // } - action = { ...it, ...config, qbb: qbb }; + let action = { ...it }; + if (it.executeConfig) { + let executeConfig = JSON.parse(it.executeConfig); + let execute = this.mapKeys(executeConfig, 'zx_'); + action = { ...action, ...execute }; + } + if (it.recoverConfig) { + let recoverConfig = JSON.parse(it.recoverConfig); + let recover = this.mapKeys(recoverConfig, 'hf_'); + action = { ...action, ...recover }; } if (it.deviceList) { - action.deviceList = it.deviceList + action.devList = it.deviceList .split(",") .map((str) => Number(str)); } - if (it.actionType == 1) { - this.secondFormData.push(action); - } else if (it.actionType == 2) { - this.thirdFormData.push(action); - } + + dcArr.push(action); }); - console.log("secondFormData", this.secondFormData); + this.tableData = dcArr; + + console.log("tableData", this.tableData); }) // console.log('secondFormData', this.secondFormData) // }).catch((err) => { @@ -265,6 +212,12 @@ export default { Message.error("查询事件预案列表失败", err); }); }, + mapKeys(obj, prefix) { + return Object.keys(obj).reduce((result, key) => { + result[`${prefix}${key}`] = obj[key]; + return result; + }, {}); + }, async loadData(deviceType = 1) { this.deviceData = []; let result = await request({ @@ -280,87 +233,80 @@ export default { return this.deviceData; }, changeEventType(value = 1) { - this.mechanismOptions = - eventSubClassMap[this.formData.eventCategory || 1][value]; - }, - changeRadio(value = 1) { - this.formData.triggerMechanism = ""; - this.eventOptions = typeMap[value]; - this.changeEventType(1); + console.log('changeEventType', value) + this.mechanismOptions = eventSubClassMap[1][value]; + this.formData.triggerMechanism = '' }, handleChange() { }, - formatData(it, value = 1, id = "") { - let data = { ...it, actionType: value, emergencyPlansId: id }; - if ( - it.deviceList && - typeof it.deviceList !== "string" && - it.deviceList.length > 0 - ) { - data.deviceList = it.deviceList.join(","); - } else { - data.deviceList = ""; - } - if (it.content) { - data.otherConfig = JSON.stringify({ content: it.content }); + onAdd() { + this.tableData.push({ ...defaultTableInfo }) + }, + onDel(index) { + if (this.tableData.length <= 1) { + return Message.warning('最后一项不可删除!'); } + this.tableData.splice(index, 1) + }, + formatData(it) { + let data = {}; + if (it.controlModel) { - let other = { + data = { controlModel: it.controlModel, controlModelName: controlModelMap[it.controlModel], state: it.state, name: gzztMap[it.state], }; if (it.time && it?.time[0]) { - other = { - controlModel: it.controlModel, - controlModelName: controlModelMap[it.controlModel], - state: it.state, - name: gzztMap[it.state], + data = { + ...data, startTime: it.time[0], endTime: it.time[1], }; } - data.otherConfig = JSON.stringify(other); - } - if (it.gzms) { - data.otherConfig = JSON.stringify({ - state: it.gzms, - name: gzmsMap[it.gzms], - operationDuration: it.operationDuration, - }); } return data; }, handleSubmit() { this.$refs["ruleForm"].validate((valid) => { if (valid) { - // this.submitting = false; - let secondFormTable = this.$refs["secondFormTable"].tableData || []; - let thirdFormTable = this.$refs["thirdFormTable"].tableData || []; - // let flg = false; - // for (let item of secondFormTable) { - // if (this.areAllValuesEmpty(item)) { flg = true; break }; - // } - // if (flg) return Message.warning('执行操作子项不能为空!'); - // for (let item of thirdFormTable) { - // if (this.areAllValuesEmpty(item)) { flg = true; break }; - // } - // if (flg) return Message.warning('恢复操作子项不能为空!'); - // console.log('12', secondFormTable); - // console.log('34', thirdFormTable); let dcArr = []; - let id = ""; - if (this.dialogType == 2) id = this.planId; - secondFormTable.forEach((it) => { - dcArr.push(this.formatData(it, 1, id)); - }); - thirdFormTable.forEach((it) => { - dcArr.push(this.formatData(it, 2, id)); - }); + this.tableData.forEach(item => { + let dcData = { + id: item.id || '', + deviceType: item.deviceType, + searchRule: item.searchRule, + number: item.number + } + if (this.dialogType == 2) { + dcData.emergencyPlansId = this.planId; + } + if (item.devList && item.devList.length > 0) { + dcData.deviceList = item.devList.join(","); + } + let zxData = {}, hfData = {}; + Object.keys(item).forEach(key => { + if (/^zx_/.test(key)) { + let keyName = key.substring(3); + zxData[keyName] = item[key]; + } + if (/^hf_/.test(key)) { + let keyName = key.substring(3); + hfData[keyName] = item[key]; + } + }) + if (item.deviceType == 12) { + zxData = this.formatData(zxData); + hfData = this.formatData(hfData); + } + dcData.executeConfig = JSON.stringify(zxData); + dcData.recoverConfig = JSON.stringify(hfData); + dcArr.push(dcData); + }) console.log({ ...this.formData, - dcExecuteAction: dcArr, + dcExecuteAction: dcArr }); // return; if (this.dialogType == 1) { @@ -468,5 +414,26 @@ export default { justify-content: end; gap: 15px; } + + .rowBlock { + background-color: #296887; + padding: 5px 10px; + margin-bottom: 10px; + } + +} + +.elButton { + background: #2ba8c3; + border-radius: 2px 2px 2px 2px; + color: #FFFFFF; +} + +.elButton:hover, +.elButton:focus { + background: #2ba8c3; + border-radius: 2px 2px 2px 2px; + border-color: #FFFFFF; + color: #FFFFFF; } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/data.js index c1686c21..e027ec97 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/data.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/data.js @@ -1,5 +1,4 @@ -import * as PresetFormItems from "@screen/pages/control/event/event/FormEvent/PresetFormItems.js"; -import { merge, cloneDeep } from "lodash"; +import { planDeviceOptions } from "@screen/utils/enum.js"; export const searchFormList = [ { @@ -7,50 +6,19 @@ export const searchFormList = [ key: "planName", }, { - label: "事件分类:", - key: "eventCategory", - type: "RadioGroup", + label: "设备类型:", + key: "deviceType", + type: "select", options: { - options: [ - { - key: "1", - label: "交通事件", - }, - { - key: "2", - label: "感知事件", - }, - ], + options: planDeviceOptions, }, }, - // { - // label: "时间范围:", - // key: "daterange", - // required: false, - // type: "datePicker", - // options: { - // type: "daterange", - // format: "yyyy-MM-dd HH:mm:ss", - // valueFormat: "yyyy-MM-dd HH:mm:ss", - // }, - // }, - // { - // ...PresetFormItems.station, - // label: "开始桩号:", - // required: false, - // }, - // merge(cloneDeep(PresetFormItems.station), { - // options: { - // options: [ - // { - // key: "endStakeMark[0]", - // }, - // { - // key: "endStakeMark[1]", - // }, - // ], - // }, - // label: "结束桩号:", - // required: false, - // }), ]; + +export const defaultTableInfo = { + deviceType: 2, + searchRule: 1, + number: 0, + // zx_operationType: 2, + // hf_operationType: 2, +}; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/index.vue index 838b2e1b..05462c3e 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/index.vue @@ -24,9 +24,9 @@
- - + + @@ -63,12 +63,7 @@ import request from "@/utils/request"; import { confirm } from "@screen/utils/common"; import { Message } from 'element-ui' import { searchFormList } from './data'; -import { WarningType, trafficType } from "@screen/utils/enum.js"; - -const eventTypeMap = { - 1: trafficType, - 2: WarningType, -} +import { trafficType } from "@screen/utils/enum.js"; export default { name: 'controlEventPlan', @@ -106,8 +101,7 @@ export default { }).then((result) => { if (result.code != 200) return Message.error(result?.msg); result.rows.forEach(it => { - it.strEventCategory = it.eventCategory == 1 ? '交通事件' : '感知事件'; - it.strEventType = eventTypeMap[it.eventCategory || 0][it.eventType]; + it.strEventType = trafficType[it.eventType]; // it.strDeviceType = deviceMap[it.deviceType]; }) this.tableData = result.rows; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/qbbDialog/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/qbbDialog/index.vue index 894152a4..fdefd20b 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/qbbDialog/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/qbbDialog/index.vue @@ -1,25 +1,17 @@ @@ -67,7 +51,7 @@ export default { visible: Boolean, info: { type: Object, - default: () => {}, + default: () => { }, }, }, data() { @@ -255,7 +239,7 @@ export default { opacity: 0; } -.EventAddPlanDialog { +.PlanQbbDialog { gap: 9px; width: 650px; height: 510px; diff --git a/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js b/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js index a04a0945..864c2617 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js +++ b/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js @@ -288,49 +288,49 @@ export const eventSubClassMap = { ], 2: [ { - value: 1, + value: '1', label: "高速主线", }, { - value: 2, + value: '2', label: "服务区", }, { - value: 3, + value: '3', label: "立交桥", }, { - value: 4, + value: '4', label: "收费站", }, ], 3: [ { - value: 1, + value: '1', label: "主线关闭", }, { - value: 2, + value: '2', label: "主线限行", }, { - value: 6, + value: '6', label: "收费站关闭", }, { - value: 7, + value: '7', label: "收费站限行", }, { - value: 10, + value: '10', label: "匝道立交关闭", }, { - value: 12, + value: '12', label: "匝道立交限行", }, { - value: 14, + value: '14', label: "服务区关闭", }, ], @@ -394,43 +394,43 @@ export const eventSubClassMap = { ], 7: [ { - value: 1, + value: '1', label: "道路养护施工", }, { - value: 2, + value: '2', label: "收费站养护施工", }, { - value: 3, + value: '3', label: "服务区养护施工", }, { - value: 4, + value: '4', label: "枢纽立交匝道养护施工", }, { - value: 5, + value: '5', label: "地方道路养护施工", }, { - value: 6, + value: '6', label: "道路工程建设施工", }, { - value: 7, + value: '7', label: "收费站工程建设施工", }, { - value: 8, + value: '8', label: "服务区工程建设施工", }, { - value: 9, + value: '9', label: "枢纽立交匝道工程建设施工", }, { - value: 10, + value: '10', label: "地方道路工程建设施工", }, ], @@ -450,27 +450,27 @@ export const eventSubClassMap = { ], 9: [ { - value: 1, + value: '1', label: "摄像机", }, { - value: 2, + value: '2', label: "护栏", }, { - value: 3, + value: '3', label: "隔离栅", }, { - value: 4, + value: '4', label: "情报板", }, { - value: 5, + value: '5', label: "防炫板", }, { - value: 6, + value: '6', label: "其他", }, ], @@ -514,7 +514,7 @@ export const eventSubClassMap = { ], 11: [ { - value: 1, + value: '1', label: "其他事件", }, ], @@ -763,10 +763,10 @@ export const planDeviceMap = { }; //预案设备Options export const planDeviceOptions = [ - { - value: 1, - label: "摄像机", - }, + // { + // value: 1, + // label: "摄像机", + // }, { value: 2, label: "可变信息标志", @@ -781,7 +781,7 @@ export const planDeviceOptions = [ // }, { value: 5, - label: "路段语音广播", + label: "语音广播", }, // { // value: 6, @@ -791,17 +791,17 @@ export const planDeviceOptions = [ // value: 7, // label: "毫米波雷达", // }, - { - value: 8, - label: "合流区预警", - }, + // { + // value: 8, + // label: "合流区预警", + // }, // { // value: 9, // label: "智慧锥桶", // }, { value: 10, - label: "激光疲劳唤醒", + label: "疲劳唤醒", }, // { // value: 11, @@ -813,12 +813,12 @@ export const planDeviceOptions = [ }, { value: 13, - label: "智能设备箱", - }, - { - value: 14, - label: "光线在线监测", + label: "设备箱", }, + // { + // value: 14, + // label: "光线在线监测", + // }, ]; // 非机预警事件主类