|
|
@ -28,7 +28,7 @@ |
|
|
|
<script> |
|
|
|
import Button from '@screen/components/Buttons/Button.vue'; |
|
|
|
import Form from '@screen/components/FormConfig'; |
|
|
|
import * as PresetFormItems from "@screen/pages/control/event/event/FormEvent/PresetFormItems.js"; |
|
|
|
import * as PresetFormItems from "@screen/common/PresetFormItems.js"; |
|
|
|
import { merge, cloneDeep } from "lodash" |
|
|
|
import request from "@/utils/request"; |
|
|
|
|
|
|
@ -42,74 +42,8 @@ export default { |
|
|
|
return { |
|
|
|
activeIcon: null, |
|
|
|
formList: [ |
|
|
|
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.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]", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
}), |
|
|
|
PresetFormItems.startStation, |
|
|
|
PresetFormItems.endStation, |
|
|
|
{ |
|
|
|
label: "设备类型:", |
|
|
|
key: "deviceType", |
|
|
|