fix: useTable warning

This commit is contained in:
xingyu
2022-07-25 22:54:12 +08:00
parent 3d0cb5200b
commit 877254af10
11 changed files with 87 additions and 23 deletions

View File

@ -42,6 +42,28 @@ const crudSchemas = reactive<CrudSchema[]>([
field: 'status',
dictType: DICT_TYPE.COMMON_STATUS
},
{
label: t('common.createTime'),
field: 'createTime',
table: {
show: false
},
form: {
show: false
},
detail: {
show: false
},
search: {
show: true,
component: 'DatePicker',
componentProps: {
type: 'datetimerange',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)]
}
}
},
{
label: t('form.remark'),
field: 'remark',

View File

@ -21,7 +21,7 @@ const { getList, setSearchParams, delList, exportList } = methods
// 导出操作
const handleExport = async () => {
await exportList('用户数据.xls')
await exportList('岗位数据.xls')
}
// ========== CRUD 相关 ==========

View File

@ -115,7 +115,7 @@ const crudSchemas = reactive<CrudSchema[]>([
show: true,
component: 'DatePicker',
componentProps: {
type: 'daterange',
type: 'datetimerange',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
defaultTime: [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)]
}