Commit ed4544d0 authored by 前端-许佳敏's avatar 前端-许佳敏

fix:用户管理-权限控制

parent b879f033
......@@ -61,12 +61,17 @@ export const UserDetailSchema:ISchema = {
required: true,
properties: {
countryCode: {
required: true,
type: 'string',
enum: ['+86'],
"x-mega-props": {
wrapperCol: 24
},
"x-rules": [
{
required: true,
message: '请选择'
},
],
"x-component-props": {
flexcol: {
span: 6
......@@ -75,13 +80,16 @@ export const UserDetailSchema:ISchema = {
},
phone: {
type: 'number',
required: true,
"x-mega-props": {
wrapperCol: 24,
full: true
},
"x-rules": [
{
required: true,
message: '请输入手机号'
},
{
pattern: PATTERN_MAPS.phone,
message: '请输入正确的手机号'
}
......@@ -127,25 +135,35 @@ export const UserDetailSchema:ISchema = {
orgName: {
type: 'string',
title: '所属组织机构',
required: true,
'x-component-props': {
disabled: true,
addonAfter: "{{connectCategory}}"
},
"x-rules": [
{
required: true,
message: '请关联组织机构'
}
]
},
orgId: {
type: 'string',
visible: false
},
memberRoleIds: {
required: true,
type: 'array:string',
"x-component": 'tableTagList',
"x-component-props": {
extra: "{{addRoles}}",
callback: "{{callback}}"
},
title: '关联角色'
title: '关联角色',
"x-rules": [
{
required: true,
message: '请选择关联角色'
}
]
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment