isdata-customer-sdk 0.2.19 → 0.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29590,6 +29590,8 @@ __webpack_require__.d(__webpack_exports__, {
29590
29590
  getObjectUseTimes: function() { return /* reexport */ getObjectUseTimes; },
29591
29591
  getOfficeInfosByIDs: function() { return /* reexport */ getOfficeInfosByIDs; },
29592
29592
  getPageIDByComponentID: function() { return /* reexport */ getPageIDByComponentID; },
29593
+ getPlatformBortherMenusByMenuID: function() { return /* reexport */ getPlatformBortherMenusByMenuID; },
29594
+ getPlatformMenuMappingsByRoleIDs: function() { return /* reexport */ getPlatformMenuMappingsByRoleIDs; },
29593
29595
  getPojectDptsByUserAndGroupID: function() { return /* reexport */ getPojectDptsByUserAndGroupID; },
29594
29596
  getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
29595
29597
  getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
@@ -30028,6 +30030,41 @@ const getLoginPortalAccountKey = async (loginName, groupID) => {
30028
30030
  return result;
30029
30031
  };
30030
30032
 
30033
+ /**
30034
+ * 获取该平台菜单同级得其他兄弟菜单
30035
+ * @param {*} menu_id
30036
+ * @returns
30037
+ */
30038
+ const getPlatformBortherMenusByMenuID = async menu_id => {
30039
+ let queryData_groupData = {
30040
+ "param": {
30041
+ "menu_id": menu_id
30042
+ }
30043
+ };
30044
+ let result = await request.post(`/dataservice/rest/orchestration/getPlatformBortherMenusByMenuID`, queryData_groupData);
30045
+ let menuDatas = result.data.menuDatas;
30046
+ //获取菜单数据
30047
+ return menuDatas;
30048
+ };
30049
+
30050
+ /**
30051
+ * 通过角色IDS获取该平台菜单权限映射
30052
+ * @param {*} menu_id
30053
+ * @returns
30054
+ */
30055
+ const getPlatformMenuMappingsByRoleIDs = async (role_ids, app_id) => {
30056
+ let queryData_groupData = {
30057
+ "param": {
30058
+ "role_ids": role_ids,
30059
+ "app_id": app_id
30060
+ }
30061
+ };
30062
+ let result = await request.post(`/dataservice/rest/orchestration/getPlatformMenuMappingsByRoleIDs`, queryData_groupData);
30063
+ let mappingDatas = result.data.mappingDatas;
30064
+ //获取菜单数据
30065
+ return mappingDatas;
30066
+ };
30067
+
30031
30068
  /**
30032
30069
  * 转换门户菜单数据
30033
30070
  * @param {*} datas 所有的快捷菜单访问信息
@@ -30067,6 +30104,7 @@ const transformPortalData = (datas, menuTypes, filterObjectMap) => {
30067
30104
  //如果存在快捷菜单映射数据或者是主菜单入口
30068
30105
  //如果是主菜单或者存在快捷访问映射或者孩子存在快捷访问映射或者是应用默认的菜单,则纳入到菜单中
30069
30106
  if (filterObjectMap && filterObjectMap[id] || data.type == "4" || parentMaps[id] || data.is_app_defalut == "1") {
30107
+ //TODO:判断是否有平台系统的menu_id权限,有可能有映射权限,但角色没有平台权限,则不显示
30070
30108
  menuMaps[id] = tempMenuData;
30071
30109
  }
30072
30110
  }