mirror of https://gitee.com/stylefeng/roses
【8.3.1】【role】更新选中状态填充的问题
parent
f3e6531935
commit
a429b65fc3
|
@ -107,10 +107,22 @@ public class RoleBindPermissionFactory {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (RoleBindPermissionItem roleBindPermissionItem : beFilled) {
|
for (RoleBindPermissionItem roleBindPermissionItem : beFilled) {
|
||||||
|
|
||||||
|
// 针对菜单的选中填充
|
||||||
if (rolePermissionList.contains(Convert.toLong(roleBindPermissionItem.getNodeId()))) {
|
if (rolePermissionList.contains(Convert.toLong(roleBindPermissionItem.getNodeId()))) {
|
||||||
roleBindPermissionItem.setChecked(true);
|
roleBindPermissionItem.setChecked(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 针对功能的选中填充
|
||||||
|
List<RoleBindPermissionItem> functionList = roleBindPermissionItem.getFunctionList();
|
||||||
|
if (ObjectUtil.isNotEmpty(functionList)) {
|
||||||
|
for (RoleBindPermissionItem bindPermissionItem : functionList) {
|
||||||
|
if (rolePermissionList.contains(Convert.toLong(bindPermissionItem.getNodeId()))) {
|
||||||
|
bindPermissionItem.setChecked(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fillSubItemCheckedFlag(roleBindPermissionItem.getChildren(), rolePermissionList);
|
fillSubItemCheckedFlag(roleBindPermissionItem.getChildren(), rolePermissionList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue