|
@@ -285,6 +285,11 @@ public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permiss
|
|
|
}
|
|
|
}
|
|
|
for (SysModule module : moduleList) {
|
|
|
+ if(timeType.getProjectCustom()==0){
|
|
|
+ if(module.getName().equals("项目表单设置")){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (module.getParentId() == null) {
|
|
|
menuList.add(module);
|
|
|
}
|
|
@@ -296,6 +301,12 @@ public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permiss
|
|
|
}
|
|
|
for (SysModule mainMenu : menuList) {
|
|
|
List<SysModule> list = moduleList.stream().filter(mod -> mainMenu.getId().equals(mod.getParentId())).collect(Collectors.toList());
|
|
|
+ if(timeType.getProjectCustom()==0){
|
|
|
+ Optional<SysModule> first = list.stream().filter(l -> l.getName().equals("项目表单设置")).findFirst();
|
|
|
+ if(first.isPresent()){
|
|
|
+ list.remove(first.get());
|
|
|
+ }
|
|
|
+ }
|
|
|
mainMenu.setChildren(list);
|
|
|
}
|
|
|
|