Pārlūkot izejas kodu

clear time now

tags/v1.0.0^2
zhangtao pirms 2 gadiem
vecāks
revīzija
31d2114d21
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. +8
    -1
      src/views/task-manage/all-task/tools/form.js

+ 8
- 1
src/views/task-manage/all-task/tools/form.js Parādīt failu

@@ -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 }}}
]
})

Notiek ielāde…
Atcelt
Saglabāt