feat:(REQ-2545) 去掉菜单树查询,设置节点做特殊逻辑显示
This commit is contained in:
parent
4973fe248b
commit
b82206fb67
@ -126,10 +126,6 @@ public class PermissionQueryServiceImpl implements PermissionQueryService {
|
||||
@Value("${use.old.auth:true}")
|
||||
private boolean USE_OLD_AUTH;
|
||||
|
||||
/**
|
||||
* 设置菜单节点的uniCode
|
||||
*/
|
||||
private static final String SETTING_UNI_CODE = "cms:ent_setting_9544";
|
||||
@Override
|
||||
public List<NavTreeResp> getNavTree(NavTreeReq req) {
|
||||
//构造参数
|
||||
@ -329,9 +325,8 @@ public class PermissionQueryServiceImpl implements PermissionQueryService {
|
||||
.collect(Collectors.toList());
|
||||
// 组装导航树
|
||||
// 过滤掉隐藏的节点,因为存在某些节点被隐藏,需要把这些节点和子节点给过滤掉
|
||||
// 特殊逻辑:设置菜单节点会被设置成隐藏,但是需要返回,否则前端就需要写死
|
||||
return TreeUtil.buildTree(treePermissionResps,
|
||||
(Function<TreePermissionResp, Boolean>) e -> Objects.equals(e.getUniCode(), SETTING_UNI_CODE) || Objects.equals(DISPLAY_STATUS, e.getStatus()));
|
||||
(Function<TreePermissionResp, Boolean>) e -> Objects.equals(DISPLAY_STATUS, e.getStatus()));
|
||||
}
|
||||
|
||||
private List<ProductFeatureRelationVO> getProductFeatureRelationByWorkspace(Set<Long> workspaceIds) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user