角色管理页面:分配功能和分配按钮窗口标题增加角色名

This commit is contained in:
dell3501
2024-10-21 21:42:35 +08:00
parent 9797478a4c
commit ce39fd6f0b
3 changed files with 30 additions and 7 deletions

View File

@@ -115,13 +115,14 @@
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);
that.$emit('ok', this.roleId, this.model.name);
}else{
that.$message.warning(res.data.message);
}