| | |
| | | import type { VxeTableGridOptions } from '#/adapter/vxe-table'; |
| | | import type { SystemUserApi } from '#/api/system/user'; |
| | | |
| | | import { CommonStatusEnum, DICT_TYPE } from '../../../packages/constants/src'; |
| | | import { getDictOptions } from '../../../packages/effects/hooks/src'; |
| | | import { $t } from '../../../packages/locales/src'; |
| | | import { handleTree } from '../../../packages/utils/src'; |
| | | import { CommonStatusEnum, DICT_TYPE } from '@vben/constants'; |
| | | import { getDictOptions } from '@vben/hooks'; |
| | | import { $t } from '@vben/locales'; |
| | | import { handleTree } from '@vben/utils'; |
| | | |
| | | import { z } from '#/adapter/form'; |
| | | import { getDeptList } from '#/api/system/dept'; |
| | |
| | | placeholder: '请输入用户名称', |
| | | }, |
| | | rules: 'required', |
| | | }, |
| | | { |
| | | fieldName: 'nickname', |
| | | label: '用户昵称', |
| | | component: 'Input', |
| | | componentProps: { |
| | | placeholder: '请输入用户昵称', |
| | | allowClear: true, |
| | | }, |
| | | }, |
| | | { |
| | | label: '用户密码', |
| | |
| | | export function useGridFormSchema(): VbenFormSchema[] { |
| | | return [ |
| | | { |
| | | fieldName: 'username', |
| | | label: '用户名称', |
| | | fieldName: 'keyword', |
| | | label: '用户名称/昵称', |
| | | component: 'Input', |
| | | componentProps: { |
| | | placeholder: '请输入用户名称', |
| | | placeholder: '搜索名称或昵称', |
| | | allowClear: true, |
| | | }, |
| | | }, |