isdata-customer-sdk 0.1.28 → 0.1.30
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.js +21 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +21 -1
- 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.js
CHANGED
|
@@ -4890,6 +4890,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
4890
4890
|
getMenuDatasByRoleIDs: function() { return /* reexport */ getMenuDatasByRoleIDs; },
|
|
4891
4891
|
getOfficeInfosByIDs: function() { return /* reexport */ getOfficeInfosByIDs; },
|
|
4892
4892
|
getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
|
|
4893
|
+
getPortalPageMenuID: function() { return /* reexport */ getPortalPageMenuID; },
|
|
4893
4894
|
getRoleIDsByUserAndGroupID: function() { return /* reexport */ getRoleIDsByUserAndGroupID; },
|
|
4894
4895
|
getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
|
|
4895
4896
|
loginAccount: function() { return /* reexport */ loginAccount; },
|
|
@@ -5345,6 +5346,25 @@ const getCurrentUserPortalPageID = async userData => {
|
|
|
5345
5346
|
return portal_id;
|
|
5346
5347
|
};
|
|
5347
5348
|
|
|
5349
|
+
/**
|
|
5350
|
+
* 获取当前用户在门户中的默认页面ID
|
|
5351
|
+
*
|
|
5352
|
+
* 该方法用于获取当前用户在门户中的默认页面ID
|
|
5353
|
+
* @param {信息} userData
|
|
5354
|
+
* @returns
|
|
5355
|
+
*/
|
|
5356
|
+
const getPortalPageMenuID = async (pageID, app_id) => {
|
|
5357
|
+
let queryData = {
|
|
5358
|
+
"param": {
|
|
5359
|
+
"id": pageID,
|
|
5360
|
+
"appid": app_id
|
|
5361
|
+
}
|
|
5362
|
+
};
|
|
5363
|
+
let response = await request.post(`/dataservice/rest/orchestration/getPortalPageMenuID`, queryData);
|
|
5364
|
+
let menu_id = response.data.menu_id;
|
|
5365
|
+
return menu_id;
|
|
5366
|
+
};
|
|
5367
|
+
|
|
5348
5368
|
/**
|
|
5349
5369
|
* 通过账户名获取集团组织映射数据
|
|
5350
5370
|
* @param {*} account
|
|
@@ -5388,7 +5408,7 @@ const getOfficeInfosByIDs = async group_ids => {
|
|
|
5388
5408
|
"ids": group_ids
|
|
5389
5409
|
}
|
|
5390
5410
|
};
|
|
5391
|
-
let resultData = request.post(`/dataservice/rest/orchestration/getOfficeInfosByIDs`, queryData_groupData);
|
|
5411
|
+
let resultData = await request.post(`/dataservice/rest/orchestration/getOfficeInfosByIDs`, queryData_groupData);
|
|
5392
5412
|
let groupDatas = resultData.data.officeInfos;
|
|
5393
5413
|
return groupDatas;
|
|
5394
5414
|
};
|