| | |
| | | import { useUserStore } from '@vben/stores'; |
| | | import { beginOfDay, endOfDay, formatDateTime, handleTree } from '@vben/utils'; |
| | | |
| | | import dayjs from 'dayjs'; |
| | | |
| | | import { getSimpleDeptList } from '#/api/system/dept'; |
| | | import { getSimpleUserList } from '#/api/system/user'; |
| | | import { getRangePickerDefaultProps } from '#/utils'; |
| | |
| | | format: 'YYYY-MM-DD', |
| | | }, |
| | | defaultValue: [ |
| | | formatDateTime(beginOfDay(new Date(Date.now() - 3600 * 1000 * 24 * 7))), |
| | | formatDateTime(endOfDay(new Date(Date.now() - 3600 * 1000 * 24))), |
| | | formatDateTime(beginOfDay(dayjs().subtract(2, 'month').toDate())), |
| | | formatDateTime(endOfDay(new Date())), |
| | | ], |
| | | }, |
| | | { |