|
@ -3,6 +3,60 @@ import * as PresetFormItems from "@screen/common/PresetFormItems.js"; |
|
|
// import { merge, cloneDeep } from "lodash";
|
|
|
// import { merge, cloneDeep } from "lodash";
|
|
|
|
|
|
|
|
|
import {directionOptions} from '@screen/utils/enum.js'; |
|
|
import {directionOptions} from '@screen/utils/enum.js'; |
|
|
|
|
|
import {cloneDeep, merge} from "lodash"; |
|
|
|
|
|
const station = { |
|
|
|
|
|
label: "桩号:", |
|
|
|
|
|
key: "stakeMark", |
|
|
|
|
|
required: true, |
|
|
|
|
|
type: "MultipleLabelItem", |
|
|
|
|
|
options: { |
|
|
|
|
|
options: [ |
|
|
|
|
|
{ |
|
|
|
|
|
prefix: { |
|
|
|
|
|
text: "K", |
|
|
|
|
|
style: { |
|
|
|
|
|
color: "#3DE8FF", |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
key: "stakeMark[0]", |
|
|
|
|
|
rules: [ |
|
|
|
|
|
{ |
|
|
|
|
|
message: "请补全桩号", |
|
|
|
|
|
callback(value, data) { |
|
|
|
|
|
if (value || data.stakeMark[1]){ |
|
|
|
|
|
return /^0\d{2}|\d{3}$/.test(value); |
|
|
|
|
|
} else { |
|
|
|
|
|
return true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
prefix: { |
|
|
|
|
|
text: "+", |
|
|
|
|
|
style: { |
|
|
|
|
|
color: "#3DE8FF", |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
key: "stakeMark[1]", |
|
|
|
|
|
rules: [ |
|
|
|
|
|
{ |
|
|
|
|
|
message: "请补全桩号", |
|
|
|
|
|
callback(value, data) { |
|
|
|
|
|
if (value || data.stakeMark[0]){ |
|
|
|
|
|
return /^0\d{2}|\d{3}$/.test(value); |
|
|
|
|
|
} else { |
|
|
|
|
|
return true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
}; |
|
|
export const searchFormList = [ |
|
|
export const searchFormList = [ |
|
|
{ |
|
|
{ |
|
|
label: "处理状态:", |
|
|
label: "处理状态:", |
|
@ -24,9 +78,79 @@ export const searchFormList = [ |
|
|
type: "datePicker", |
|
|
type: "datePicker", |
|
|
options: { |
|
|
options: { |
|
|
type: "daterange", |
|
|
type: "daterange", |
|
|
format: "yyyy-MM-dd", |
|
|
format: "yyyy-MM-dd HH:mm:ss", |
|
|
valueFormat: "yyyy-MM-dd", |
|
|
valueFormat: "yyyy-MM-dd HH:mm:ss", |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "设备类型:", |
|
|
|
|
|
key: "deviceType", |
|
|
|
|
|
type: "select", |
|
|
|
|
|
clearable: true, |
|
|
|
|
|
options: { |
|
|
|
|
|
options: [ |
|
|
|
|
|
{ key: 1, label: "摄像机" }, |
|
|
|
|
|
{ key: 2, label: "可变信息标志" }, |
|
|
|
|
|
{ key: 3, label: "气象监测器" }, |
|
|
|
|
|
{ key: 4, label: "出口诱导灯" }, |
|
|
|
|
|
{ key: 5, label: "语音广播" }, |
|
|
|
|
|
{ key: 6, label: "护栏碰撞" }, |
|
|
|
|
|
{ key: 7, label: "毫米波雷达" }, |
|
|
|
|
|
{ key: 8, label: "合流区预警" }, |
|
|
|
|
|
{ key: 9, label: "智慧锥桶" }, |
|
|
|
|
|
{ key: 10, label: "激光疲劳唤醒" }, |
|
|
|
|
|
{ key: 11, label: "一类交通量调查站" }, |
|
|
|
|
|
{ key: 12, label: "行车诱导" }, |
|
|
|
|
|
{ key: 13, label: "智能设备箱" }, |
|
|
|
|
|
{ key: 14, label: "光线在线监测" }, |
|
|
|
|
|
{ key: 15, label: "太阳能板" }, |
|
|
|
|
|
{ key: 16, label: "远端机" }, |
|
|
|
|
|
{ key: 17, label: "一体机柜" }, |
|
|
|
|
|
{ key: 18, label: "一体机柜空调" } |
|
|
|
|
|
], |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
...station, |
|
|
|
|
|
label: "开始桩号:", |
|
|
|
|
|
required: false, |
|
|
|
|
|
}, |
|
|
|
|
|
merge(cloneDeep(station), { |
|
|
|
|
|
options: { |
|
|
|
|
|
options: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: "endStakeMark[0]", |
|
|
|
|
|
rules: [ |
|
|
|
|
|
{ |
|
|
|
|
|
message: "请补全桩号", |
|
|
|
|
|
callback(value, data) { |
|
|
|
|
|
if (value || data.endStakeMark[1]){ |
|
|
|
|
|
return /^0\d{2}|\d{3}$/.test(value); |
|
|
|
|
|
} else { |
|
|
|
|
|
return true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
key: "endStakeMark[1]", |
|
|
|
|
|
rules: [ |
|
|
|
|
|
{ |
|
|
|
|
|
message: "请补全桩号", |
|
|
|
|
|
callback(value, data) { |
|
|
|
|
|
if (value || data.endStakeMark[0]){ |
|
|
|
|
|
return /^0\d{2}|\d{3}$/.test(value); |
|
|
|
|
|
} else { |
|
|
|
|
|
return true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
label: "结束桩号:", |
|
|
|
|
|
required: false, |
|
|
|
|
|
}), |
|
|
]; |
|
|
]; |
|
|