isdata-customer-sdk 0.2.20 → 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.
package/dist/index.umd.js CHANGED
@@ -29609,6 +29609,7 @@ __webpack_require__.d(__webpack_exports__, {
29609
29609
  getOfficeInfosByIDs: function() { return /* reexport */ getOfficeInfosByIDs; },
29610
29610
  getPageIDByComponentID: function() { return /* reexport */ getPageIDByComponentID; },
29611
29611
  getPlatformBortherMenusByMenuID: function() { return /* reexport */ getPlatformBortherMenusByMenuID; },
29612
+ getPlatformMenuMappingsByRoleIDs: function() { return /* reexport */ getPlatformMenuMappingsByRoleIDs; },
29612
29613
  getPojectDptsByUserAndGroupID: function() { return /* reexport */ getPojectDptsByUserAndGroupID; },
29613
29614
  getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
29614
29615
  getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
@@ -30046,6 +30047,12 @@ const getLoginPortalAccountKey = async (loginName, groupID) => {
30046
30047
  let result = await request.post(`/dataservice/rest/orchestration/getLoginPortalAccountKey`, queryData);
30047
30048
  return result;
30048
30049
  };
30050
+
30051
+ /**
30052
+ * 获取该平台菜单同级得其他兄弟菜单
30053
+ * @param {*} menu_id
30054
+ * @returns
30055
+ */
30049
30056
  const getPlatformBortherMenusByMenuID = async menu_id => {
30050
30057
  let queryData_groupData = {
30051
30058
  "param": {
@@ -30058,6 +30065,24 @@ const getPlatformBortherMenusByMenuID = async menu_id => {
30058
30065
  return menuDatas;
30059
30066
  };
30060
30067
 
30068
+ /**
30069
+ * 通过角色IDS获取该平台菜单权限映射
30070
+ * @param {*} menu_id
30071
+ * @returns
30072
+ */
30073
+ const getPlatformMenuMappingsByRoleIDs = async (role_ids, app_id) => {
30074
+ let queryData_groupData = {
30075
+ "param": {
30076
+ "role_ids": role_ids,
30077
+ "app_id": app_id
30078
+ }
30079
+ };
30080
+ let result = await request.post(`/dataservice/rest/orchestration/getPlatformMenuMappingsByRoleIDs`, queryData_groupData);
30081
+ let mappingDatas = result.data.mappingDatas;
30082
+ //获取菜单数据
30083
+ return mappingDatas;
30084
+ };
30085
+
30061
30086
  /**
30062
30087
  * 转换门户菜单数据
30063
30088
  * @param {*} datas 所有的快捷菜单访问信息