diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/PerceiveEvent/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/PerceiveEvent/index.vue index de64fd58..aaabf6de 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/PerceiveEvent/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/PerceiveEvent/index.vue @@ -27,6 +27,7 @@ import { Message } from "element-ui"; import { WarningTypeList, WarningSubclassList } from "@screen/utils/enum.js" // import { getRoadInfoByStakeMark, getProduct } from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js" import { dialogDelayVisible } from "./../mixin" +import { LaneOccupancyList } from "@screen/utils/enum.js" // 感知事件 export default { @@ -109,28 +110,7 @@ export default { type: "RadioGroup", options: { activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", - options: [ - { - key: "0", - label: "应急", - }, - { - key: "1", - label: "行1", - }, - { - key: "2", - label: "行2", - }, - { - key: "3", - label: "行3", - }, - { - key: "4", - label: "行4", - }, - ], + options: LaneOccupancyList, }, }, { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue index ea19cb5a..96beb4bc 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue @@ -64,6 +64,7 @@ export default { { label: '车道列表', key: "lang", + enum: "LaneOccupancy", gridColumn: '2' }, { diff --git a/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js b/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js index 050dff77..282c0fa8 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js +++ b/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js @@ -208,3 +208,29 @@ export const WarningSubclassList = Object.keys(WarningSubclass).reduce( }, {} ); + +export const LaneOccupancy = { + 0: { + text: "应急车道", + }, + 1: { + text: "行1", + }, + 2: { + text: "行2", + }, + 3: { + text: "行3", + }, + 4: { + text: "行4", + }, +}; + +export const LaneOccupancyList = Object.keys(LaneOccupancy).map((key) => { + return { + value: key, + key, + label: LaneOccupancy[key].text, + }; +});