isdata-customer-sdk 0.2.20 → 0.2.22
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 +27 -2
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +27 -2
- 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.common.js
CHANGED
|
@@ -29591,6 +29591,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29591
29591
|
getOfficeInfosByIDs: function() { return /* reexport */ getOfficeInfosByIDs; },
|
|
29592
29592
|
getPageIDByComponentID: function() { return /* reexport */ getPageIDByComponentID; },
|
|
29593
29593
|
getPlatformBortherMenusByMenuID: function() { return /* reexport */ getPlatformBortherMenusByMenuID; },
|
|
29594
|
+
getPlatformMenuMappingsByRoleIDs: function() { return /* reexport */ getPlatformMenuMappingsByRoleIDs; },
|
|
29594
29595
|
getPojectDptsByUserAndGroupID: function() { return /* reexport */ getPojectDptsByUserAndGroupID; },
|
|
29595
29596
|
getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
|
|
29596
29597
|
getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
|
|
@@ -30028,6 +30029,12 @@ const getLoginPortalAccountKey = async (loginName, groupID) => {
|
|
|
30028
30029
|
let result = await request.post(`/dataservice/rest/orchestration/getLoginPortalAccountKey`, queryData);
|
|
30029
30030
|
return result;
|
|
30030
30031
|
};
|
|
30032
|
+
|
|
30033
|
+
/**
|
|
30034
|
+
* 获取该平台菜单同级得其他兄弟菜单
|
|
30035
|
+
* @param {*} menu_id
|
|
30036
|
+
* @returns
|
|
30037
|
+
*/
|
|
30031
30038
|
const getPlatformBortherMenusByMenuID = async menu_id => {
|
|
30032
30039
|
let queryData_groupData = {
|
|
30033
30040
|
"param": {
|
|
@@ -30040,6 +30047,24 @@ const getPlatformBortherMenusByMenuID = async menu_id => {
|
|
|
30040
30047
|
return menuDatas;
|
|
30041
30048
|
};
|
|
30042
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
|
+
|
|
30043
30068
|
/**
|
|
30044
30069
|
* 转换门户菜单数据
|
|
30045
30070
|
* @param {*} datas 所有的快捷菜单访问信息
|
|
@@ -32460,13 +32485,13 @@ const loginAccount = async (data, appid) => {
|
|
|
32460
32485
|
} else {
|
|
32461
32486
|
return {
|
|
32462
32487
|
code: code,
|
|
32463
|
-
message: "
|
|
32488
|
+
message: "$L{账户密码错误}!"
|
|
32464
32489
|
};
|
|
32465
32490
|
}
|
|
32466
32491
|
}
|
|
32467
32492
|
return {
|
|
32468
32493
|
code: code,
|
|
32469
|
-
message:
|
|
32494
|
+
message: result.data.message
|
|
32470
32495
|
};
|
|
32471
32496
|
};
|
|
32472
32497
|
|