Commit df6a8a3c by ningjihai

用户管理-角色

parent 557a94d0
......@@ -12,7 +12,7 @@
class="custom-dialog"
width="900px"
>
<div class="dialog-content" style="padding: 20px; padding-bottom: 80px;height: 700px;overflow-y: auto;">
<div class="dialog-content" style="padding: 20px; padding-bottom: 80px;overflow-y: auto;">
<el-form
ref="formRef"
:model="form"
......@@ -274,8 +274,8 @@ const handleSubmit = () => {
}else{
const res = checkNameExit({ rolename: form.rolename });
if (res.code !== 'POP_00014') {
console.error('角色名已存在:', res.msg);
if (res.flag === false) {
console.error(res.msg);
return
}
// 调用add方法
......@@ -347,8 +347,8 @@ const changeCheckNameExit = async () => {
if (form.rolename && !form.id) {
try {
const res = await checkNameExit({ rolename: form.rolename });
if (res.code !== 'POP_00014') {
console.error('角色名已存在:', res.msg);
if (res.flag == false) {
console.error(res.msg);
} else {
console.log('角色名可用');
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论