isdata-customer-sdk 0.1.18 → 0.1.20
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 +46 -0
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +46 -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.js
CHANGED
|
@@ -4881,12 +4881,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4881
4881
|
__webpack_require__.d(__webpack_exports__, {
|
|
4882
4882
|
fireEvent: function() { return /* reexport */ fireEvent; },
|
|
4883
4883
|
getAppPortalMenuDatas: function() { return /* reexport */ getAppPortalMenuDatas; },
|
|
4884
|
+
getMappingAppInfoByID: function() { return /* reexport */ getMappingAppInfoByID; },
|
|
4884
4885
|
getMenuDatasByGroupID: function() { return /* reexport */ getMenuDatasByGroupID; },
|
|
4885
4886
|
getMenuDatasByRoleIDs: function() { return /* reexport */ getMenuDatasByRoleIDs; },
|
|
4886
4887
|
getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
|
|
4887
4888
|
getRoleIDsByUserAndGroupID: function() { return /* reexport */ getRoleIDsByUserAndGroupID; },
|
|
4889
|
+
getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
|
|
4888
4890
|
queryAssetById: function() { return /* reexport */ queryAssetById; },
|
|
4889
4891
|
queryGroupIDByOfficeId: function() { return /* reexport */ queryGroupIDByOfficeId; },
|
|
4892
|
+
queryOfficeInfosById: function() { return /* reexport */ queryOfficeInfosById; },
|
|
4890
4893
|
registerEventListener: function() { return /* reexport */ registerEventListener; },
|
|
4891
4894
|
removeEventListener: function() { return /* reexport */ removeEventListener; },
|
|
4892
4895
|
transformPortalData: function() { return /* reexport */ transformPortalData; }
|
|
@@ -4991,6 +4994,21 @@ const queryAssetById = (id, count = 200) => request.post(`/asset/getAssetData?as
|
|
|
4991
4994
|
filters: []
|
|
4992
4995
|
});
|
|
4993
4996
|
|
|
4997
|
+
/**
|
|
4998
|
+
* 获取URL参数值
|
|
4999
|
+
* @param {} eventName
|
|
5000
|
+
* @param {*} actionFun
|
|
5001
|
+
*/
|
|
5002
|
+
const getUrlParamValue = (urlStr, paramName) => {
|
|
5003
|
+
try {
|
|
5004
|
+
const url = new URL(urlStr);
|
|
5005
|
+
const value = url.searchParams.get(paramName);
|
|
5006
|
+
return value;
|
|
5007
|
+
} catch (err) {
|
|
5008
|
+
console.error('URL 格式错误:', err);
|
|
5009
|
+
return "";
|
|
5010
|
+
}
|
|
5011
|
+
};
|
|
4994
5012
|
/**
|
|
4995
5013
|
* 注册事件监听器
|
|
4996
5014
|
* @param {} eventName
|
|
@@ -5194,6 +5212,7 @@ const transformPortalData = (datas, menuTypes, filterObjectMap) => {
|
|
|
5194
5212
|
if (parentType) {
|
|
5195
5213
|
let type_childens = parentType.children;
|
|
5196
5214
|
type_childens.push(tempMenuData);
|
|
5215
|
+
tempMenuData.typeItem = parentType;
|
|
5197
5216
|
} else {
|
|
5198
5217
|
let menuTypeObj = menuTypeMaps[tempType];
|
|
5199
5218
|
let parentType = menuTypeObj ? {
|
|
@@ -5212,6 +5231,7 @@ const transformPortalData = (datas, menuTypes, filterObjectMap) => {
|
|
|
5212
5231
|
let type_childens = parentType.children;
|
|
5213
5232
|
type_childens.push(tempMenuData);
|
|
5214
5233
|
parentTypes.push(parentType);
|
|
5234
|
+
tempMenuData.typeItem = parentType;
|
|
5215
5235
|
}
|
|
5216
5236
|
}
|
|
5217
5237
|
}
|
|
@@ -5278,6 +5298,32 @@ const queryGroupIDByOfficeId = async id => {
|
|
|
5278
5298
|
let group_id = groupDptData.id;
|
|
5279
5299
|
return group_id;
|
|
5280
5300
|
};
|
|
5301
|
+
|
|
5302
|
+
// 查询门户映射应用信息
|
|
5303
|
+
// * @param appID 应用ID
|
|
5304
|
+
// * @param groupID 集团ID
|
|
5305
|
+
const getMappingAppInfoByID = async (appID, groupID) => {
|
|
5306
|
+
let queryData = {
|
|
5307
|
+
"param": {
|
|
5308
|
+
"appID": appID,
|
|
5309
|
+
"groupID": groupID
|
|
5310
|
+
}
|
|
5311
|
+
};
|
|
5312
|
+
let resultData = await request.post(`/dataservice/rest/orchestration/getPortalMappingAppInfoByID`, queryData);
|
|
5313
|
+
let appInfo = resultData.data.appInfo;
|
|
5314
|
+
return appInfo;
|
|
5315
|
+
};
|
|
5316
|
+
|
|
5317
|
+
/**
|
|
5318
|
+
* 查询当前企业组织信息
|
|
5319
|
+
* @param id 组织ID
|
|
5320
|
+
*
|
|
5321
|
+
*/
|
|
5322
|
+
const queryOfficeInfosById = async queryData => {
|
|
5323
|
+
let resultData = await request.post(`/dataservice/rest/orchestration/getOfficeInfosByID`, queryData);
|
|
5324
|
+
let groupDptData = resultData.data.officeData;
|
|
5325
|
+
return groupDptData;
|
|
5326
|
+
};
|
|
5281
5327
|
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
|
|
5282
5328
|
|
|
5283
5329
|
|