feat:【ele】【crm】statistics 的部分(除 performance 外)

This commit is contained in:
YunaiV
2025-11-19 09:17:14 +08:00
parent 7baf8d7e06
commit 9dbfe579e2
20 changed files with 35 additions and 49 deletions

View File

@@ -1,7 +1,7 @@
import type { VbenFormSchema } from '#/adapter/form';
import { useUserStore } from '@vben/stores';
import { beginOfDay, endOfDay, handleTree } from '@vben/utils';
import { beginOfDay, endOfDay, formatDate, handleTree } from '@vben/utils';
import { getSimpleDeptList } from '#/api/system/dept';
import { getSimpleUserList } from '#/api/system/user';
@@ -33,12 +33,20 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
shortcuts: [],
// TODO @AI这里有问题只选择年份
type: 'year',
format: 'YYYY',
},
defaultValue: [
beginOfDay(new Date(new Date().getFullYear(), 0, 1)),
endOfDay(new Date(new Date().getFullYear(), 11, 31)),
formatDate(
beginOfDay(new Date(new Date().getFullYear(), 0, 1)),
'YYYY-MM-DD HH:mm:ss',
),
formatDate(
endOfDay(new Date(new Date().getFullYear(), 11, 31)),
'YYYY-MM-DD HH:mm:ss',
),
],
},
{