干燥机配套车间生产管理系统/云平台服务端
baoshiwei
2023-06-07 34ff338ff4d6575f9a25457286b3a5aad6b8823b
src/views/system/usersetting/UserSetting.data.ts
@@ -1,13 +1,13 @@
import { FormSchema } from '/@/components/Form/index';
import { rules } from '/@/utils/helper/validator';
import { FormSchema } from '/@/components/Form/index'
import { rules } from '/@/utils/helper/validator'
export interface ListItem {
  key: string;
  title: string;
  description: string;
  extra?: string;
  avatar?: string;
  color?: string;
   key: string
   title: string
   description: string
   extra?: string
   avatar?: string
   color?: string
}
// tab的list
@@ -16,28 +16,27 @@
    key: '1',
    name: '个人信息',
    component: 'BaseSetting',
    icon:'ant-design:user-outlined'
      icon: 'ant-design:user-outlined',
  },
  {
    key: '2',
    name: '我的租户',
    component: 'TenantSetting',
    icon:'ant-design:team-outlined'
  },
   {
    key: '3',
    name: '账号安全',
    component: 'AccountSetting',
    icon:'ant-design:lock-outlined'
  },
  {
    key: '4',
    name: '第三方APP',
    component: 'WeChatDingSetting',
    icon: 'ant-design:contacts-outlined',
  },
];
   // {
   //   key: '2',
   //   name: '我的租户',
   //   component: 'TenantSetting',
   //   icon:'ant-design:team-outlined'
   // },
   //  {
   //   key: '3',
   //   name: '账号安全',
   //   component: 'AccountSetting',
   //   icon:'ant-design:lock-outlined'
   // },
   // {
   //   key: '4',
   //   name: '第三方APP',
   //   component: 'WeChatDingSetting',
   //   icon: 'ant-design:contacts-outlined',
   // },
]
/**
 * 用户表单
@@ -48,7 +47,7 @@
    component: 'Input',
    label: '姓名',
    colProps: { span: 24 },
    required:true
      required: true,
  },
  {
    field: 'birthday',
@@ -57,7 +56,7 @@
    colProps: { span: 24 },
    componentProps:{
      showTime:false,
      valueFormat:"YYYY-MM-DD",
         valueFormat: 'YYYY-MM-DD',
      getPopupContainer: () => document.body,
    },
  },
@@ -77,7 +76,7 @@
          value: 2,
        },
      ],
    }
      },
  },
  {
    field: 'relTenantIds',
@@ -87,8 +86,8 @@
    componentProps:{
      mode:'multiple',
      dictCode:'sys_tenant,name,id',
      disabled:true
    }
         disabled: true,
      },
  },
  {
    field: 'post',
@@ -98,8 +97,8 @@
    componentProps:{
      mode:'multiple',
      dictCode:'sys_position,name,code',
      disabled:true
    }
         disabled: true,
      },
  },
  {
    label: '',
@@ -143,4 +142,4 @@
    component: 'InputPassword',
    dynamicRules: ({ values }) => rules.confirmPassword(values, true),
  },
];
]