用户管理-新增:用户名称和角色为必选

prod
schry 2 years ago
parent 074c791ff1
commit 0df1f26048

@ -205,7 +205,7 @@
</el-row>
<el-row :gutter="20" type="flex">
<el-col :span="11" type="flex">
<el-form-item label="角色">
<el-form-item label="角色" prop="roles">
<el-checkbox-group v-model="formData.roles" :disabled="formData.id == 1" >
<el-checkbox
v-for="item in roles"
@ -340,6 +340,12 @@ export default {
depts: [
{required: true, message: "请选择所属部门", trigger: "change"}
],
roles: [
{required: true, message: "请选择用户角色"}
],
employeeName: [
{required: true, message: "请输入用户名称", trigger: "blur"}
]
},
editRules: {
userName: [

Loading…
Cancel
Save