| | |
| | | /** |
| | | * 菜单的根节点主键,这个是平台定义的 |
| | | */ |
| | | private final String ROOT_MENU_ID = "modelManagmentNode"; |
| | | private final String ROOT_MENU_ID = "business"; |
| | | |
| | | /** |
| | | * 管理功能模块菜单根节点 |
| | | */ |
| | | private final String SYSTEMMANAGMENTNODE = "systemManagmentNode"; |
| | | private final String SYSTEMMANAGMENTNODE = "system"; |
| | | |
| | | /** |
| | | * 操作类型管理菜单根节点 |
| | |
| | | menuVO.setHasChildren(false); |
| | | menuVO.setCategory(1); |
| | | menuVO.setFunctionType(2); |
| | | menuVO.setSource(info.image); |
| | | buttonList.add(menuVO); |
| | | } |
| | | } |
| | |
| | | //} |
| | | functionVO.setPath(menu.resourceB); |
| | | functionVO.setParentId(menu.parentId); |
| | | functionVO.setCode(menu.aliasName); |
| | | //functionVO.setCode(menu.aliasName); |
| | | functionVO.setAlias(menu.aliasName); |
| | | functionVO.setName(menu.name); |
| | | functionVO.getMeta().put("keepAlive",false); |
| | | functionVO.getMeta().put("keepAlive",true); |
| | | functionVO.setSort((int) menu.seq); |
| | | try { |
| | | functionVO.setChildren(findChildFunctionVO(menu.id, map)); |
| | |
| | | return menuVOList; |
| | | } |
| | | boolean isFunctionObject = Func.isNotBlank(modeType) && modeType.equalsIgnoreCase("FunctionObject"); |
| | | if(parentId.equals("systemManagmentNode") || parentId.equals("modelManagmentNode") || isFunctionObject){ |
| | | if(parentId.equals("system") || parentId.equals("business") || isFunctionObject){ |
| | | int childType = this.checkChildObject(parentId); |
| | | if(isFunctionObject){ |
| | | try { |
| | |
| | | menuVO.setHasChildren(false); |
| | | menuVO.setCategory(1); |
| | | menuVO.setFunctionType(3); |
| | | menuVO.setSource(info.image); |
| | | menuVOList.add(menuVO); |
| | | } |
| | | } |
| | |
| | | try{ |
| | | MenuVO parentNode = null; |
| | | //将返回的节点外层套上当前父节点 |
| | | if("systemManagmentNode".equals(parentId)){ |
| | | if("system".equals(parentId)){ |
| | | parentNode = JsonConfigReader.getSysModuleConf().getSystemManagmentNode(); |
| | | }else if("modelManagmentNode".equals(parentId)){ |
| | | }else if("business".equals(parentId)){ |
| | | parentNode = JsonConfigReader.getSysModuleConf().getModelManagmentNode(); |
| | | } |
| | | //如果查询的是第一层节点就需要直接返回systemManagmentNode或modelManagmentNode节点 |
| | |
| | | menuVO.setFunctionType(2); |
| | | menuVO.setChildType(0); |
| | | menuVO.setRemark(operateInfo.desc); |
| | | menuVO.getMeta().put("keepAlive",false); |
| | | menuVO.getMeta().put("keepAlive",true); |
| | | menuVO.setSort((int) operateInfo.seq); |
| | | menuVO.setModeType("operateObject"); |
| | | menuVO.setHasChildren(false); |
| | | menuVO.setSource(operateInfo.image); |
| | | menuVOList.add(menuVO); |
| | | } |
| | | }catch (PLException e) { |
| | |
| | | menuVO.setResourceMobile(funcInfo.resourceMobile); |
| | | menuVO.setPath(funcInfo.resourceB); |
| | | menuVO.setParentId(funcInfo.parentId); |
| | | menuVO.setCode(funcInfo.aliasName); |
| | | //menuVO.setCode(funcInfo.aliasName); |
| | | menuVO.setAlias(funcInfo.aliasName); |
| | | menuVO.setName(funcInfo.name); |
| | | menuVO.getMeta().put("keepAlive",false); |
| | | menuVO.getMeta().put("keepAlive",true); |
| | | menuVO.setSort((int) funcInfo.seq); |
| | | menuVO.setRemark(funcInfo.desc); |
| | | if(this.checkChildObject(menuVO.getId()) == 0){ |
| | | menuVO.setHasChildren(false); |
| | | }else{ |
| | |
| | | functionVO.setFunctionType(menu.functionType); |
| | | functionVO.setIsValid(menu.isValid); |
| | | functionVO.setPath(menu.resourceB); |
| | | functionVO.setCode(menu.aliasName); |
| | | //functionVO.setCode(menu.aliasName); |
| | | functionVO.setAlias(menu.aliasName); |
| | | functionVO.setParentId(menu.parentId); |
| | | functionVO.setName(menu.name); |
| | | functionVO.getMeta().put("keepAlive",false); |
| | | functionVO.getMeta().put("keepAlive",true); |
| | | functionVO.setSort((int) menu.seq); |
| | | functionVO.setRemark(menu.desc); |
| | | functionVO.setChildren(findChildFunctionVO(menu.id,map)); |
| | | if(functionVO.getChildren().size() > 0){ |
| | | functionVO.setHasChildren(true); |
| | |
| | | menuVO.setParentId(funcObj.parentId); |
| | | menuVO.setChildType((int) type); |
| | | menuVO.setName(funcObj.name); |
| | | menuVO.getMeta().put("keepAlive",false); |
| | | menuVO.getMeta().put("keepAlive",true); |
| | | menuVO.setSort((int) funcObj.seq); |
| | | menuVO.setRemark(funcObj.desc); |
| | | findChildAuthFunctionVO(menuVO, isAll); |
| | | functionVO.getChildren().add(menuVO); |
| | | functionVO.setHasChildren(true); |
| | |
| | | /* if(resourceControlTypeEnum == null){ |
| | | resourceControlTypeEnum = ResourceControlTypeEnum.BS; |
| | | }*/ |
| | | Map<String, RoleRightVO> roleRightMap = uiManagerServiceI.getRoleRightMap(null); |
| | | Map<String, List<RoleRightVO>> roleRightMap = uiManagerServiceI.getRoleRightMap(null); |
| | | for (PLUILayout allPLUILayout : platformClientUtil.getUIService().getAllPLUILayouts()) { |
| | | if(treeQueryObject.getConditionMap().getOrDefault("type","").equals(allPLUILayout.plRelatedType) |
| | | && treeQueryObject.getConditionMap().getOrDefault("context","").equals(allPLUILayout.plCode)){ |