fix: datetimerange type error

This commit is contained in:
xingyu
2022-07-21 16:51:58 +08:00
parent bc233df980
commit 1b2c2b4257
11 changed files with 62 additions and 108 deletions

View File

@ -41,7 +41,10 @@ const crudSchemas = reactive<CrudSchema[]>([
},
{
label: '操作人员',
field: 'userNickname'
field: 'userNickname',
search: {
show: true
}
},
{
label: '操作明细',
@ -63,40 +66,37 @@ const crudSchemas = reactive<CrudSchema[]>([
},
{
label: '操作结果',
field: 'resultCode'
field: 'resultCode',
search: {
show: true,
component: 'Select',
componentProps: {
options: [
{ label: '成功', value: true },
{ label: '失败', value: false }
]
}
}
},
{
label: '操作日期',
field: 'startTime',
form: {
show: false
}
},
{
label: '执行时长',
field: 'duration'
},
{
label: '操作日期',
field: 'daterange',
table: {
show: false
},
form: {
show: false
},
detail: {
show: false
},
search: {
show: true,
component: 'DatePicker',
componentProps: {
type: 'daterange',
valueFormat: 'YYYY-MM-DD'
type: 'datetimerange',
valueFormat: 'YYYY-MM-DD HH:mm:ss'
}
}
},
{
label: '执行时长',
field: 'duration'
},
{
label: t('table.action'),
field: 'action',