liu
2026-10-26 910b2ead53df78a62a06d1bdfc3e05c8c5b5fc65
src/views/system/user/data.ts
@@ -2,10 +2,10 @@
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';
@@ -32,6 +32,15 @@
        placeholder: '请输入用户名称',
      },
      rules: 'required',
    },
    {
      fieldName: 'nickname',
      label: '用户昵称',
      component: 'Input',
      componentProps: {
        placeholder: '请输入用户昵称',
        allowClear: true,
      },
    },
    {
      label: '用户密码',
@@ -260,11 +269,11 @@
export function useGridFormSchema(): VbenFormSchema[] {
  return [
    {
      fieldName: 'username',
      label: '用户名称',
      fieldName: 'keyword',
      label: '用户名称/昵称',
      component: 'Input',
      componentProps: {
        placeholder: '请输入用户名称',
        placeholder: '搜索名称或昵称',
        allowClear: true,
      },
    },