diff --git a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js index 2db40659..804a9146 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js +++ b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js @@ -114,7 +114,7 @@ export const station = { key: "stakeMark[1]", }, ], - } + }, }; export const startStation = { @@ -132,16 +132,20 @@ export const startStation = { }, }, key: "startStakeMark[0]", - default:55, + default: "55", rules: [ { message: "请补全桩号", callback(value, data) { - if (!((value+'')?.trim() && data.startStakeMark[1]?.trim())) return false - else return true - } - } - ] + console.log(value, data.startStakeMark); + if ( + !((value + "")?.trim() && (data.startStakeMark[1] + "")?.trim()) + ) + return false; + else return true; + }, + }, + ], }, { prefix: { @@ -150,11 +154,11 @@ export const startStation = { color: "#3DE8FF", }, }, - default: 378, - key: "startStakeMark[1]" + default: "378", + key: "startStakeMark[1]", }, ], - } + }, }; export const endStation = { @@ -172,16 +176,19 @@ export const endStation = { }, }, key: "endStakeMark[0]", - default: 208, + default: "208", rules: [ { message: "请补全桩号", callback(value, data) { - if (!((value + '')?.trim() && data.endStakeMark[1]?.trim())) return false - else return true - } - } - ] + if ( + !((value + "")?.trim() && (data.endStakeMark[1] + "")?.trim()) + ) + return false; + else return true; + }, + }, + ], }, { prefix: { @@ -190,11 +197,11 @@ export const endStation = { color: "#3DE8FF", }, }, - default: 153, + default: "153", key: "endStakeMark[1]", }, ], - } + }, }; export const startEndStation = { @@ -345,7 +352,6 @@ export const eventLevel = { }, }; - export const laneOccupancy = { label: "车道占用:", key: "lang", @@ -1238,7 +1244,7 @@ export const congestionCause = { label: "备注项添加", }, ], - 2 : [ + 2: [ { key: "1", label: "主线车流量大", @@ -1247,9 +1253,9 @@ export const congestionCause = { key: "2", label: "收费站出口车流量大导致主线压车", }, - ] - } - config.options.options = (value != 1 ? ad[1] : ad[2]); + ], + }; + config.options.options = value != 1 ? ad[1] : ad[2]; }, }, };