|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
import { BasicColumn } from '/@/components/Table'; |
|
|
|
|
import { FormSchema } from '/@/components/Table'; |
|
|
|
|
import { getAllRolesListNoByTenant, getAllTenantList } from './user.api'; |
|
|
|
|
import { getAllRolesListNoByTenant,getAllRolesListNoByExcludeTenant, getAllTenantList } from './user.api'; |
|
|
|
|
import { rules } from '/@/utils/helper/validator'; |
|
|
|
|
import { render } from '/@/utils/common/renderUtils'; |
|
|
|
|
export const columns: BasicColumn[] = [ |
|
|
|
@ -172,7 +172,7 @@ export const formSchemaZJ: FormSchema[] = [ |
|
|
|
|
component: 'Input', |
|
|
|
|
dynamicRules: ({ model, schema }) => rules.duplicateCheckRule('sys_user', 'work_no', model, schema, true), |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
/*{ |
|
|
|
|
label: '职务', |
|
|
|
|
field: 'post', |
|
|
|
|
required: false, |
|
|
|
@ -181,14 +181,13 @@ export const formSchemaZJ: FormSchema[] = [ |
|
|
|
|
rowKey: 'code', |
|
|
|
|
labelKey: 'name', |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
},*/ |
|
|
|
|
{ |
|
|
|
|
label: '角色', |
|
|
|
|
field: 'selectedroles', |
|
|
|
|
component: 'ApiSelect', |
|
|
|
|
componentProps: { |
|
|
|
|
mode: 'multiple', |
|
|
|
|
api: getAllRolesListNoByTenant, |
|
|
|
|
api: getAllRolesListNoByExcludeTenant, |
|
|
|
|
labelField: 'roleName', |
|
|
|
|
valueField: 'id', |
|
|
|
|
}, |
|
|
|
@ -218,7 +217,7 @@ export const formSchemaZJ: FormSchema[] = [ |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
/*{ |
|
|
|
|
label: '租户', |
|
|
|
|
field: 'relTenantIds', |
|
|
|
|
component: 'ApiSelect', |
|
|
|
@ -229,8 +228,8 @@ export const formSchemaZJ: FormSchema[] = [ |
|
|
|
|
labelField: 'name', |
|
|
|
|
valueField: 'id', |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
},*/ |
|
|
|
|
/*{ |
|
|
|
|
label: '身份', |
|
|
|
|
field: 'userIdentity', |
|
|
|
|
component: 'RadioGroup', |
|
|
|
@ -246,8 +245,8 @@ export const formSchemaZJ: FormSchema[] = [ |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
},*/ |
|
|
|
|
/* { |
|
|
|
|
label: '负责部门', |
|
|
|
|
field: 'departIds', |
|
|
|
|
component: 'Select', |
|
|
|
@ -255,7 +254,7 @@ export const formSchemaZJ: FormSchema[] = [ |
|
|
|
|
mode: 'multiple', |
|
|
|
|
}, |
|
|
|
|
ifShow: ({ values }) => values.userIdentity == 2, |
|
|
|
|
}, |
|
|
|
|
},*/ |
|
|
|
|
{ |
|
|
|
|
label: '头像', |
|
|
|
|
field: 'avatar', |
|
|
|
@ -283,25 +282,13 @@ export const formSchemaZJ: FormSchema[] = [ |
|
|
|
|
label: '邮箱', |
|
|
|
|
field: 'email', |
|
|
|
|
component: 'Input', |
|
|
|
|
dynamicRules: ({ model, schema }) => { |
|
|
|
|
return [ |
|
|
|
|
{ ...rules.duplicateCheckRule('sys_user', 'email', model, schema, true)[0] }, |
|
|
|
|
{ ...rules.rule('email', false)[0] }, |
|
|
|
|
]; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '手机号码', |
|
|
|
|
field: 'phone', |
|
|
|
|
component: 'Input', |
|
|
|
|
dynamicRules: ({ model, schema }) => { |
|
|
|
|
return [ |
|
|
|
|
{ ...rules.duplicateCheckRule('sys_user', 'phone', model, schema, true)[0] }, |
|
|
|
|
{ pattern: /^1[3456789]\d{9}$/, message: '手机号码格式有误' }, |
|
|
|
|
]; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
/*{ |
|
|
|
|
label: '座机', |
|
|
|
|
field: 'telephone', |
|
|
|
|
component: 'Input', |
|
|
|
@ -317,7 +304,7 @@ export const formSchemaZJ: FormSchema[] = [ |
|
|
|
|
type: 'radio', |
|
|
|
|
stringToNumber: true, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
},*/ |
|
|
|
|
{ |
|
|
|
|
label: '专家毕业院校', |
|
|
|
|
field: 'expSc', |
|
|
|
@ -546,17 +533,17 @@ export const formSchema: FormSchema[] = [ |
|
|
|
|
component: 'Input', |
|
|
|
|
rules: [{ pattern: /^0\d{2,3}-[1-9]\d{6,7}$/, message: '请输入正确的座机号码' }], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '工作流引擎', |
|
|
|
|
field: 'activitiSync', |
|
|
|
|
defaultValue: 1, |
|
|
|
|
component: 'JDictSelectTag', |
|
|
|
|
componentProps: { |
|
|
|
|
dictCode: 'activiti_sync', |
|
|
|
|
type: 'radio', |
|
|
|
|
stringToNumber: true, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
// {
|
|
|
|
|
// label: '工作流引擎',
|
|
|
|
|
// field: 'activitiSync',
|
|
|
|
|
// defaultValue: 1,
|
|
|
|
|
// component: 'JDictSelectTag',
|
|
|
|
|
// componentProps: {
|
|
|
|
|
// dictCode: 'activiti_sync',
|
|
|
|
|
// type: 'radio',
|
|
|
|
|
// stringToNumber: true,
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
export const formPasswordSchema: FormSchema[] = [ |
|
|
|
|