|
@@ -180,7 +180,7 @@ export const formSchema: FormSchema[] = [
|
|
|
field: 'workNo',
|
|
|
|
|
|
component: 'Input',
|
|
|
- dynamicRules: ({ model, schema }) => rules.duplicateCheckRule('sys_user', 'work_no', model, schema, true),
|
|
|
+
|
|
|
},
|
|
|
{
|
|
|
label: '职务',
|
|
@@ -234,19 +234,19 @@ export const formSchema: FormSchema[] = [
|
|
|
};
|
|
|
},
|
|
|
},
|
|
|
- {
|
|
|
- label: '租户',
|
|
|
- field: 'relTenantIds',
|
|
|
- component: 'ApiSelect',
|
|
|
- componentProps: {
|
|
|
- mode: 'multiple',
|
|
|
- api: getAllTenantList,
|
|
|
- numberToString: true,
|
|
|
- labelField: 'name',
|
|
|
- valueField: 'id',
|
|
|
- immediate: false,
|
|
|
- },
|
|
|
- },
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
{
|
|
|
label: '身份',
|
|
|
field: 'userIdentity',
|
|
@@ -301,24 +301,24 @@ export const formSchema: FormSchema[] = [
|
|
|
field: 'email',
|
|
|
component: 'Input',
|
|
|
|
|
|
- dynamicRules: ({ model, schema }) => {
|
|
|
- return [
|
|
|
- { ...rules.duplicateCheckRule('sys_user', 'email', model, schema, true)[0], trigger: 'blur' },
|
|
|
- { ...rules.rule('email', false)[0], trigger: 'blur' },
|
|
|
- ];
|
|
|
- },
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
{
|
|
|
label: '手机号码',
|
|
|
field: 'phone',
|
|
|
component: 'Input',
|
|
|
|
|
|
- dynamicRules: ({ model, schema }) => {
|
|
|
- return [
|
|
|
- { ...rules.duplicateCheckRule('sys_user', 'phone', model, schema, true)[0], trigger: 'blur' },
|
|
|
- { pattern: /^1[3456789]\d{9}$/, message: '手机号码格式有误', trigger: 'blur' },
|
|
|
- ];
|
|
|
- },
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
{
|
|
|
label: '座机',
|