isdata-customer-sdk 0.1.21 → 0.1.23
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
|
@@ -4891,6 +4891,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4891
4891
|
__webpack_require__.d(__webpack_exports__, {
|
|
4892
4892
|
fireEvent: function() { return /* reexport */ fireEvent; },
|
|
4893
4893
|
getAppPortalMenuDatas: function() { return /* reexport */ getAppPortalMenuDatas; },
|
|
4894
|
+
getCurrentUserPortalPageID: function() { return /* reexport */ getCurrentUserPortalPageID; },
|
|
4894
4895
|
getMappingAppInfoByID: function() { return /* reexport */ getMappingAppInfoByID; },
|
|
4895
4896
|
getMenuDatasByGroupID: function() { return /* reexport */ getMenuDatasByGroupID; },
|
|
4896
4897
|
getMenuDatasByRoleIDs: function() { return /* reexport */ getMenuDatasByRoleIDs; },
|
|
@@ -4899,6 +4900,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
4899
4900
|
getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
|
|
4900
4901
|
queryAssetById: function() { return /* reexport */ queryAssetById; },
|
|
4901
4902
|
queryGroupIDByOfficeId: function() { return /* reexport */ queryGroupIDByOfficeId; },
|
|
4903
|
+
queryGroupInfosByOfficeId: function() { return /* reexport */ queryGroupInfosByOfficeId; },
|
|
4902
4904
|
queryOfficeInfosById: function() { return /* reexport */ queryOfficeInfosById; },
|
|
4903
4905
|
registerEventListener: function() { return /* reexport */ registerEventListener; },
|
|
4904
4906
|
removeEventListener: function() { return /* reexport */ removeEventListener; },
|
|
@@ -5071,6 +5073,11 @@ const getPoratlAppID = (isPortalAction, appVariables) => {
|
|
|
5071
5073
|
}
|
|
5072
5074
|
});
|
|
5073
5075
|
}
|
|
5076
|
+
// 如果appVariables中也没有,则从window.appSdk.getAppId()获取
|
|
5077
|
+
// 这通常是因为在非门户应用中使用了门户相关的功能
|
|
5078
|
+
if (!portal_app_id) {
|
|
5079
|
+
portal_app_id = window.appSdk.getAppId();
|
|
5080
|
+
}
|
|
5074
5081
|
}
|
|
5075
5082
|
return portal_app_id;
|
|
5076
5083
|
};
|
|
@@ -5309,6 +5316,38 @@ const queryGroupIDByOfficeId = async id => {
|
|
|
5309
5316
|
return group_id;
|
|
5310
5317
|
};
|
|
5311
5318
|
|
|
5319
|
+
/**
|
|
5320
|
+
* 获取当前用户默认的门户页面ID
|
|
5321
|
+
*
|
|
5322
|
+
* 该方法用于获取当前用户在门户中的默认页面ID
|
|
5323
|
+
* @param {信息} userData
|
|
5324
|
+
* @returns
|
|
5325
|
+
*/
|
|
5326
|
+
const getCurrentUserPortalPageID = userData => {
|
|
5327
|
+
let queryData = {
|
|
5328
|
+
"param": {
|
|
5329
|
+
"userData": userData
|
|
5330
|
+
}
|
|
5331
|
+
};
|
|
5332
|
+
return request.post(`/dataservice/rest/orchestration/getPortalPageID`, queryData);
|
|
5333
|
+
};
|
|
5334
|
+
|
|
5335
|
+
/**
|
|
5336
|
+
* 查询当前企业组织的集团组织ID
|
|
5337
|
+
* @param id 组织ID
|
|
5338
|
+
*
|
|
5339
|
+
*/
|
|
5340
|
+
const queryGroupInfosByOfficeId = async id => {
|
|
5341
|
+
let queryData_office = {
|
|
5342
|
+
"param": {
|
|
5343
|
+
"id": id
|
|
5344
|
+
}
|
|
5345
|
+
};
|
|
5346
|
+
let result = await request.post(`/dataservice/rest/orchestration/getGroupIDByDptID`, queryData_office);
|
|
5347
|
+
let groupDptData = result.data.resultDptData;
|
|
5348
|
+
return groupDptData;
|
|
5349
|
+
};
|
|
5350
|
+
|
|
5312
5351
|
// 查询门户映射应用信息
|
|
5313
5352
|
// * @param appID 应用ID
|
|
5314
5353
|
// * @param groupID 集团ID
|