|
|
@@ -108,7 +108,9 @@ const form = ref({
|
|
|
const rules = ref({
|
|
|
depId: [{ required: true, message: "部门不能为空", trigger: "blur" }],
|
|
|
roleIds: [{ required: true, message: "角色不能为空", trigger: "blur" }],
|
|
|
- userName: [{ required: true, message: "用户名不能为空", trigger: "blur" }]
|
|
|
+ userName: [{ required: true, message: "用户名不能为空", trigger: "blur" }],
|
|
|
+ realName: [{ required: true, message: "姓名名不能为空", trigger: "blur" }],
|
|
|
+ phone: [{ required: true, message: "手机号不能为空", trigger: "blur" }]
|
|
|
})
|
|
|
|
|
|
function reset() {
|
|
|
@@ -148,14 +150,14 @@ function submitForm() {
|
|
|
} else {
|
|
|
ElMessage({
|
|
|
message: res.msg,
|
|
|
- type: warning
|
|
|
+ type: "warning"
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
ElMessage({
|
|
|
message: res.msg,
|
|
|
- type: warning
|
|
|
+ type: "warning"
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
@@ -176,14 +178,14 @@ function submitForm() {
|
|
|
} else {
|
|
|
ElMessage({
|
|
|
message: res.msg,
|
|
|
- type: warning
|
|
|
+ type: "warning"
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
ElMessage({
|
|
|
message: res.msg,
|
|
|
- type: warning
|
|
|
+ type: "warning"
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
@@ -237,11 +239,11 @@ function delUserBtn(row) {
|
|
|
} else {
|
|
|
ElMessage({
|
|
|
message: res.msg,
|
|
|
- type: warning
|
|
|
+ type: "warning"
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- }).catch(() => ElMessage.info("已取消"))
|
|
|
+ })
|
|
|
}
|
|
|
const selectionChangeData = ref([])
|
|
|
function selectionChange(value) {
|
|
|
@@ -276,11 +278,11 @@ function delUserMoreBtn() {
|
|
|
} else {
|
|
|
ElMessage({
|
|
|
message: res.msg,
|
|
|
- type: warning
|
|
|
+ type: "warning"
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- }).catch(() => ElMessage.info("已取消"))
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
function resetUserPwdBtn(row) {
|
|
|
@@ -297,11 +299,11 @@ function resetUserPwdBtn(row) {
|
|
|
} else {
|
|
|
ElMessage({
|
|
|
message: res.msg,
|
|
|
- type: warning
|
|
|
+ type: "warning"
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- }).catch(() => ElMessage.info("已取消"))
|
|
|
+ })
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
@@ -470,7 +472,6 @@ function resetUserPwdBtn(row) {
|
|
|
<el-input
|
|
|
v-model="form.userName"
|
|
|
placeholder="请输入用户名"
|
|
|
- clearable
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -510,7 +511,6 @@ function resetUserPwdBtn(row) {
|
|
|
<el-input
|
|
|
v-model="form.realName"
|
|
|
placeholder="请输入姓名"
|
|
|
- clearable
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -519,7 +519,6 @@ function resetUserPwdBtn(row) {
|
|
|
<el-input
|
|
|
v-model="form.phone"
|
|
|
placeholder="请输入手机号"
|
|
|
- clearable
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|