fix(core): 统一创建时间字段名从 createTime 到 creationTime
This commit is contained in:
@@ -93,9 +93,9 @@ export function useColumns(
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
field: 'createTime',
|
||||
field: 'creationTime',
|
||||
resizable: false,
|
||||
title: $t('system.dept.createTime'),
|
||||
title: $t('system.dept.creationTime'),
|
||||
width: 'auto',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -68,8 +68,8 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
||||
},
|
||||
{
|
||||
component: 'RangePicker',
|
||||
fieldName: 'createTime',
|
||||
label: $t('system.role.createTime'),
|
||||
fieldName: 'creationTime',
|
||||
label: $t('system.role.creationTime'),
|
||||
},
|
||||
];
|
||||
}
|
||||
@@ -104,8 +104,8 @@ export function useColumns<T = SystemRoleApi.SystemRole>(
|
||||
title: $t('system.role.remark'),
|
||||
},
|
||||
{
|
||||
field: 'createTime',
|
||||
title: $t('system.role.createTime'),
|
||||
field: 'creationTime',
|
||||
title: $t('system.role.creationTime'),
|
||||
width: 200,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ const [FormDrawer, formDrawerApi] = useVbenDrawer({
|
||||
|
||||
const [Grid, gridApi] = useVbenVxeGrid({
|
||||
formOptions: {
|
||||
fieldMappingTime: [['createTime', ['startTime', 'endTime']]],
|
||||
fieldMappingTime: [['creationTime', ['startTime', 'endTime']]],
|
||||
schema: useGridFormSchema(),
|
||||
submitOnChange: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user