From 99e3c97bbd971baa86d50f8969d60411c53c2d0b Mon Sep 17 00:00:00 2001 From: ludc <ludc@vci-tech.com> Date: 星期一, 06 一月 2025 11:24:57 +0800 Subject: [PATCH] 菜单返回参数调整,系统模块配置菜单去掉操作模块 --- Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/SmFunctionQueryServicePlatformImpl.java | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/SmFunctionQueryServicePlatformImpl.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/SmFunctionQueryServicePlatformImpl.java index 4545527..e9c4efa 100644 --- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/SmFunctionQueryServicePlatformImpl.java +++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/SmFunctionQueryServicePlatformImpl.java @@ -58,12 +58,12 @@ /** * 鑿滃崟鐨勬牴鑺傜偣涓婚敭锛岃繖涓槸骞冲彴瀹氫箟鐨� */ - private final String ROOT_MENU_ID = "modelManagmentNode"; + private final String ROOT_MENU_ID = "business"; /** * 绠$悊鍔熻兘妯″潡鑿滃崟鏍硅妭鐐� */ - private final String SYSTEMMANAGMENTNODE = "systemManagmentNode"; + private final String SYSTEMMANAGMENTNODE = "system"; /** * 鎿嶄綔绫诲瀷绠$悊鑿滃崟鏍硅妭鐐� @@ -368,7 +368,7 @@ } } - functionVO.setBtmname("function"); + functionVO.setBtmName("function"); //鑰佺殑鏁版嵁閲屽垱寤轰汉锛屾渶鍚庝慨鏀逛汉绛夐兘娌℃湁 return functionVO; } @@ -415,10 +415,10 @@ //} 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)); @@ -461,7 +461,7 @@ 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 { @@ -522,9 +522,9 @@ 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(); } //濡傛灉鏌ヨ鐨勬槸绗竴灞傝妭鐐瑰氨闇�瑕佺洿鎺ヨ繑鍥瀞ystemManagmentNode鎴杕odelManagmentNode鑺傜偣 @@ -571,7 +571,7 @@ 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); @@ -601,10 +601,10 @@ 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); if(this.checkChildObject(menuVO.getId()) == 0){ menuVO.setHasChildren(false); @@ -648,11 +648,11 @@ 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.setChildren(findChildFunctionVO(menu.id,map)); if(functionVO.getChildren().size() > 0){ @@ -680,7 +680,7 @@ 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); findChildAuthFunctionVO(menuVO, isAll); functionVO.getChildren().add(menuVO); -- Gitblit v1.9.3