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.
- package/dist/index.common.js +38 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +38 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -29608,6 +29608,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29608
29608
|
getObjectUseTimes: function() { return /* reexport */ getObjectUseTimes; },
|
|
29609
29609
|
getOfficeInfosByIDs: function() { return /* reexport */ getOfficeInfosByIDs; },
|
|
29610
29610
|
getPageIDByComponentID: function() { return /* reexport */ getPageIDByComponentID; },
|
|
29611
|
+
getPlatformBortherMenusByMenuID: function() { return /* reexport */ getPlatformBortherMenusByMenuID; },
|
|
29612
|
+
getPlatformMenuMappingsByRoleIDs: function() { return /* reexport */ getPlatformMenuMappingsByRoleIDs; },
|
|
29611
29613
|
getPojectDptsByUserAndGroupID: function() { return /* reexport */ getPojectDptsByUserAndGroupID; },
|
|
29612
29614
|
getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
|
|
29613
29615
|
getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
|
|
@@ -30046,6 +30048,41 @@ const getLoginPortalAccountKey = async (loginName, groupID) => {
|
|
|
30046
30048
|
return result;
|
|
30047
30049
|
};
|
|
30048
30050
|
|
|
30051
|
+
/**
|
|
30052
|
+
* 获取该平台菜单同级得其他兄弟菜单
|
|
30053
|
+
* @param {*} menu_id
|
|
30054
|
+
* @returns
|
|
30055
|
+
*/
|
|
30056
|
+
const getPlatformBortherMenusByMenuID = async menu_id => {
|
|
30057
|
+
let queryData_groupData = {
|
|
30058
|
+
"param": {
|
|
30059
|
+
"menu_id": menu_id
|
|
30060
|
+
}
|
|
30061
|
+
};
|
|
30062
|
+
let result = await request.post(`/dataservice/rest/orchestration/getPlatformBortherMenusByMenuID`, queryData_groupData);
|
|
30063
|
+
let menuDatas = result.data.menuDatas;
|
|
30064
|
+
//获取菜单数据
|
|
30065
|
+
return menuDatas;
|
|
30066
|
+
};
|
|
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
|
+
|
|
30049
30086
|
/**
|
|
30050
30087
|
* 转换门户菜单数据
|
|
30051
30088
|
* @param {*} datas 所有的快捷菜单访问信息
|
|
@@ -30085,6 +30122,7 @@ const transformPortalData = (datas, menuTypes, filterObjectMap) => {
|
|
|
30085
30122
|
//如果存在快捷菜单映射数据或者是主菜单入口
|
|
30086
30123
|
//如果是主菜单或者存在快捷访问映射或者孩子存在快捷访问映射或者是应用默认的菜单,则纳入到菜单中
|
|
30087
30124
|
if (filterObjectMap && filterObjectMap[id] || data.type == "4" || parentMaps[id] || data.is_app_defalut == "1") {
|
|
30125
|
+
//TODO:判断是否有平台系统的menu_id权限,有可能有映射权限,但角色没有平台权限,则不显示
|
|
30088
30126
|
menuMaps[id] = tempMenuData;
|
|
30089
30127
|
}
|
|
30090
30128
|
}
|