Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
6e21f03b
Commit
6e21f03b
authored
Sep 03, 2021
by
季圣华
Browse files
用户编辑界面,角色选择改为必填项
parent
887d3e83
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/system/modules/UserModal.vue
View file @
6e21f03b
...
...
@@ -24,7 +24,7 @@
<a-input
placeholder=
"请输入用户姓名"
v-decorator.trim=
"[ 'username', validatorRules.username]"
/>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"角色"
>
<a-select
v-if=
"model.roleName!='租户'"
placeholder=
"选择角色"
v-decorator=
"[ 'roleId'
]"
:dropdownMatchSelectWidth=
"false"
>
<a-select
v-if=
"model.roleName!='租户'"
placeholder=
"选择角色"
v-decorator=
"[ 'roleId'
, validatorRules.roleId
]"
:dropdownMatchSelectWidth=
"false"
>
<a-select-option
v-for=
"(item,index) in roleList"
:key=
"index"
:value=
"item.id"
>
{{ item.name }}
</a-select-option>
...
...
@@ -93,6 +93,11 @@
rules
:
[{
required
:
true
,
message
:
'
请输入用户姓名!
'
}]
},
roleId
:{
rules
:
[{
required
:
true
,
message
:
'
请选择角色!
'
}]
}
},
model
:
{},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment