| | |
| | | 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 |
| | |
| | | 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', |
| | | // }, |
| | | ] |
| | | |
| | | /** |
| | | * 用户表单 |
| | |
| | | component: 'Input', |
| | | label: '姓名', |
| | | colProps: { span: 24 }, |
| | | required:true |
| | | required: true, |
| | | }, |
| | | { |
| | | field: 'birthday', |
| | |
| | | colProps: { span: 24 }, |
| | | componentProps:{ |
| | | showTime:false, |
| | | valueFormat:"YYYY-MM-DD", |
| | | valueFormat: 'YYYY-MM-DD', |
| | | getPopupContainer: () => document.body, |
| | | }, |
| | | }, |
| | |
| | | value: 2, |
| | | }, |
| | | ], |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | field: 'relTenantIds', |
| | |
| | | componentProps:{ |
| | | mode:'multiple', |
| | | dictCode:'sys_tenant,name,id', |
| | | disabled:true |
| | | } |
| | | disabled: true, |
| | | }, |
| | | }, |
| | | { |
| | | field: 'post', |
| | |
| | | componentProps:{ |
| | | mode:'multiple', |
| | | dictCode:'sys_position,name,code', |
| | | disabled:true |
| | | } |
| | | disabled: true, |
| | | }, |
| | | }, |
| | | { |
| | | label: '', |
| | |
| | | component: 'InputPassword', |
| | | dynamicRules: ({ values }) => rules.confirmPassword(values, true), |
| | | }, |
| | | ]; |
| | | ] |