feat: 时间段选择器拓展

This commit is contained in:
puhui999
2025-04-04 15:58:04 +08:00
parent e140270b26
commit 196218ae33
6 changed files with 87 additions and 10 deletions

View File

@@ -3,8 +3,9 @@ import type { OnActionClickFn, VxeTableGridOptions } from '#/adapter/vxe-table';
import type { SystemRoleApi } from '#/api/system/role';
import { z } from '#/adapter/form';
import { DICT_TYPE, getDictOptions } from '#/utils/dict';
import { CommonStatusEnum, SystemDataScopeEnum } from '#/utils/constants';
import { DICT_TYPE, getDictOptions } from '#/utils/dict';
import { rangePickerExtend } from '#/utils/TimeUtils';
/** 新增/修改的表单 */
export function useFormSchema(): VbenFormSchema[] {
@@ -173,6 +174,10 @@ export function useGridFormSchema(): VbenFormSchema[] {
fieldName: 'createTime',
label: '创建时间',
component: 'RangePicker',
componentProps: {
allowClear: true,
...rangePickerExtend(),
},
},
];
}
@@ -254,9 +259,9 @@ export function useGridColumns<T = SystemRoleApi.SystemRole>(
{
code: 'assign-menu',
text: '菜单权限',
}
},
],
},
},
];
}
}