【8.3.1】【role】更新选中状态填充的问题

master
stylefeng 2024-10-31 12:52:55 +08:00
parent f3e6531935
commit a429b65fc3
1 changed files with 12 additions and 0 deletions

View File

@ -107,10 +107,22 @@ public class RoleBindPermissionFactory {
}
for (RoleBindPermissionItem roleBindPermissionItem : beFilled) {
// 针对菜单的选中填充
if (rolePermissionList.contains(Convert.toLong(roleBindPermissionItem.getNodeId()))) {
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);
}
}