| | |
| | | import com.vci.model.SmRoleForPlatform1; |
| | | import com.vci.omd.utils.ObjectTool; |
| | | import com.vci.pagemodel.MenuVO; |
| | | import com.vci.pagemodel.RoleRightVO; |
| | | import com.vci.pagemodel.SmFunctionVO; |
| | | import com.vci.pagemodel.UIContentVO; |
| | | import com.vci.starter.web.constant.QueryOptionConstant; |
| | |
| | | import com.vci.web.properties.JsonConfigReader; |
| | | import com.vci.web.service.ISmFunctionQueryService; |
| | | import com.vci.web.service.UIEngineServiceI; |
| | | import com.vci.web.service.UIManagerServiceI; |
| | | import com.vci.web.service.WebBoServiceI; |
| | | import com.vci.starter.web.util.Lcm.Func; |
| | | import com.vci.web.util.PlatformClientUtil; |
| | |
| | | private ISmFunctionQueryService self; |
| | | |
| | | @Autowired |
| | | private UIEngineServiceI uiEngineServiceI; |
| | | private UIEngineServiceI uiEngineServiceI; |
| | | |
| | | @Autowired |
| | | private UIManagerServiceI uiManagerServiceI; |
| | | |
| | | @Autowired |
| | | private RightControlUtil rightControlUtil; |
| | | |
| | | @Autowired |
| | | private PlatformClientUtil platformClientUtil; |
| | | |
| | | @Autowired |
| | | RightControlUtil rightControlUtil; |
| | | |
| | | /** |
| | | * 查询所有的功能 |
| | |
| | | @Override |
| | | public UIContentVO getUIContentByBtmTypeAndId(TreeQueryObject treeQueryObject, ResourceControlTypeEnum resourceControlTypeEnum) throws PLException { |
| | | SessionInfo sessionInfo = WebUtil.getCurrentUserSessionInfoNotException(); |
| | | if(resourceControlTypeEnum == null){ |
| | | /* if(resourceControlTypeEnum == null){ |
| | | resourceControlTypeEnum = ResourceControlTypeEnum.BS; |
| | | } |
| | | }*/ |
| | | Map<String, 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)){ |
| | | return uiEngineServiceI.UIContentDO2VO(allPLUILayout,true); |
| | | return uiEngineServiceI.UIContentDO2VO(allPLUILayout,true,roleRightMap); |
| | | } |
| | | } |
| | | return null; |