回退 'Pull Request !92 : 角色管理页面:分配功能和分配按钮窗口标题增加角色名'

This commit is contained in:
季圣华
2024-11-01 15:58:11 +00:00
committed by Gitee
parent e932166007
commit c38c2fc529
3 changed files with 7 additions and 30 deletions

View File

@@ -115,14 +115,13 @@
checkUserBusiness({'type': 'RoleFunctions','keyId': this.roleId}).then((res)=>{
if(res.data && res.data.id) {
formData.id=res.data.id
formData.name=res.data.name
obj=editUserBusiness(formData);
} else {
obj=addUserBusiness(formData);
}
obj.then((res)=>{
if(res.code === 200){
that.$emit('ok', this.roleId, this.model.name);
that.$emit('ok', this.roleId);
}else{
that.$message.warning(res.data.message);
}