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