瀏覽代碼

clear time now

tags/v1.0.0^2
zhangtao 2 年之前
父節點
當前提交
31d2114d21
共有 1 個檔案被更改,包括 8 行新增1 行删除
  1. +8
    -1
      src/views/task-manage/all-task/tools/form.js

+ 8
- 1
src/views/task-manage/all-task/tools/form.js 查看文件

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

Loading…
取消
儲存