|
|
@@ -85,7 +85,14 @@ export const form = reactive({ |
|
|
|
{ type: 'select', key: 'airportId', label: '巡检机场', props: { options: airOptions }}, |
|
|
|
{ type: 'select', key: 'inspectionLine', label: '巡检路线', props: { options: lineOptions }}, |
|
|
|
{ type: 'select', key: 'type', label: '任务类型', props: { options: TASK_TYPE }}, |
|
|
|
{ type: 'date', key: 'executionStartTime', label: '巡检时间', props: { type: 'datetime', valueFormat: 'yyyy-MM-dd HH:mm:ss', format: 'yyyy-MM-dd HH:mm:ss', isDateDisabled: (ts) => { return ts < (Date.now() - 24 * 60 * 60 * 1000) }, isTimeDisabled: disableTime }}, |
|
|
|
{ type: 'date', key: 'executionStartTime', label: '巡检时间', props: { |
|
|
|
type: 'datetime', |
|
|
|
valueFormat: 'yyyy-MM-dd HH:mm:ss', format: 'yyyy-MM-dd HH:mm:ss', |
|
|
|
isDateDisabled: (ts) => { return ts < (Date.now() - 24 * 60 * 60 * 1000) }, |
|
|
|
isTimeDisabled: disableTime, |
|
|
|
actions: ['clear', 'confirm'], |
|
|
|
timePickerProps: { actions: ['confirm'] } |
|
|
|
}}, |
|
|
|
{ type: 'input', key: 'note', label: '备注', props: { type: 'textarea', autosize: { minRows: 3, maxRows: 3 }}} |
|
|
|
] |
|
|
|
}) |