|
|
@ -36,75 +36,13 @@ export const addEditFormList = [ |
|
|
|
required: true, |
|
|
|
}, |
|
|
|
|
|
|
|
merge(cloneDeep(PresetFormItems.station), { |
|
|
|
required: false, |
|
|
|
label: "起始桩号:", |
|
|
|
options: { |
|
|
|
options: [ |
|
|
|
{ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
message: "请补全桩号", |
|
|
|
callback(value, data) { |
|
|
|
if (!value?.trim() && data.startStakeMark[1]?.trim()) |
|
|
|
return false; |
|
|
|
else return true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
key: "startStakeMark[0]", |
|
|
|
}, |
|
|
|
{ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
message: "请补全桩号", |
|
|
|
callback(value, data) { |
|
|
|
if (!value?.trim() && data.startStakeMark[0]?.trim()) |
|
|
|
return false; |
|
|
|
else return true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
key: "startStakeMark[1]", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
merge(cloneDeep(PresetFormItems.startStation), { |
|
|
|
required: true, |
|
|
|
}), |
|
|
|
|
|
|
|
merge(cloneDeep(PresetFormItems.station), { |
|
|
|
required: false, |
|
|
|
label: "结束桩号:", |
|
|
|
options: { |
|
|
|
options: [ |
|
|
|
{ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
message: "请补全桩号", |
|
|
|
callback(value, data) { |
|
|
|
if (!value?.trim() && data.endStakeMark[1]?.trim()) |
|
|
|
return false; |
|
|
|
else return true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
key: "endStakeMark[0]", |
|
|
|
}, |
|
|
|
{ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
message: "请补全桩号", |
|
|
|
callback(value, data) { |
|
|
|
if (!value?.trim() && data.endStakeMark[0]?.trim()) |
|
|
|
return false; |
|
|
|
else return true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
key: "endStakeMark[1]", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
merge(cloneDeep(PresetFormItems.endStation), { |
|
|
|
required: true, |
|
|
|
}), |
|
|
|
|
|
|
|
{ |
|
|
|
label: "辖区路段编号:", |
|
|
|
key: "roadCode", |
|
|
|