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.umd.js
CHANGED
|
@@ -4891,12 +4891,15 @@ __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
|
+
getMappingAppInfoByID: function() { return /* reexport */ getMappingAppInfoByID; },
|
|
4894
4895
|
getMenuDatasByGroupID: function() { return /* reexport */ getMenuDatasByGroupID; },
|
|
4895
4896
|
getMenuDatasByRoleIDs: function() { return /* reexport */ getMenuDatasByRoleIDs; },
|
|
4896
4897
|
getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
|
|
4897
4898
|
getRoleIDsByUserAndGroupID: function() { return /* reexport */ getRoleIDsByUserAndGroupID; },
|
|
4899
|
+
getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
|
|
4898
4900
|
queryAssetById: function() { return /* reexport */ queryAssetById; },
|
|
4899
4901
|
queryGroupIDByOfficeId: function() { return /* reexport */ queryGroupIDByOfficeId; },
|
|
4902
|
+
queryOfficeInfosById: function() { return /* reexport */ queryOfficeInfosById; },
|
|
4900
4903
|
registerEventListener: function() { return /* reexport */ registerEventListener; },
|
|
4901
4904
|
removeEventListener: function() { return /* reexport */ removeEventListener; },
|
|
4902
4905
|
transformPortalData: function() { return /* reexport */ transformPortalData; }
|
|
@@ -5001,6 +5004,21 @@ const queryAssetById = (id, count = 200) => request.post(`/asset/getAssetData?as
|
|
|
5001
5004
|
filters: []
|
|
5002
5005
|
});
|
|
5003
5006
|
|
|
5007
|
+
/**
|
|
5008
|
+
* 获取URL参数值
|
|
5009
|
+
* @param {} eventName
|
|
5010
|
+
* @param {*} actionFun
|
|
5011
|
+
*/
|
|
5012
|
+
const getUrlParamValue = (urlStr, paramName) => {
|
|
5013
|
+
try {
|
|
5014
|
+
const url = new URL(urlStr);
|
|
5015
|
+
const value = url.searchParams.get(paramName);
|
|
5016
|
+
return value;
|
|
5017
|
+
} catch (err) {
|
|
5018
|
+
console.error('URL 格式错误:', err);
|
|
5019
|
+
return "";
|
|
5020
|
+
}
|
|
5021
|
+
};
|
|
5004
5022
|
/**
|
|
5005
5023
|
* 注册事件监听器
|
|
5006
5024
|
* @param {} eventName
|
|
@@ -5204,6 +5222,7 @@ const transformPortalData = (datas, menuTypes, filterObjectMap) => {
|
|
|
5204
5222
|
if (parentType) {
|
|
5205
5223
|
let type_childens = parentType.children;
|
|
5206
5224
|
type_childens.push(tempMenuData);
|
|
5225
|
+
tempMenuData.typeItem = parentType;
|
|
5207
5226
|
} else {
|
|
5208
5227
|
let menuTypeObj = menuTypeMaps[tempType];
|
|
5209
5228
|
let parentType = menuTypeObj ? {
|
|
@@ -5222,6 +5241,7 @@ const transformPortalData = (datas, menuTypes, filterObjectMap) => {
|
|
|
5222
5241
|
let type_childens = parentType.children;
|
|
5223
5242
|
type_childens.push(tempMenuData);
|
|
5224
5243
|
parentTypes.push(parentType);
|
|
5244
|
+
tempMenuData.typeItem = parentType;
|
|
5225
5245
|
}
|
|
5226
5246
|
}
|
|
5227
5247
|
}
|
|
@@ -5288,6 +5308,32 @@ const queryGroupIDByOfficeId = async id => {
|
|
|
5288
5308
|
let group_id = groupDptData.id;
|
|
5289
5309
|
return group_id;
|
|
5290
5310
|
};
|
|
5311
|
+
|
|
5312
|
+
// 查询门户映射应用信息
|
|
5313
|
+
// * @param appID 应用ID
|
|
5314
|
+
// * @param groupID 集团ID
|
|
5315
|
+
const getMappingAppInfoByID = async (appID, groupID) => {
|
|
5316
|
+
let queryData = {
|
|
5317
|
+
"param": {
|
|
5318
|
+
"appID": appID,
|
|
5319
|
+
"groupID": groupID
|
|
5320
|
+
}
|
|
5321
|
+
};
|
|
5322
|
+
let resultData = await request.post(`/dataservice/rest/orchestration/getPortalMappingAppInfoByID`, queryData);
|
|
5323
|
+
let appInfo = resultData.data.appInfo;
|
|
5324
|
+
return appInfo;
|
|
5325
|
+
};
|
|
5326
|
+
|
|
5327
|
+
/**
|
|
5328
|
+
* 查询当前企业组织信息
|
|
5329
|
+
* @param id 组织ID
|
|
5330
|
+
*
|
|
5331
|
+
*/
|
|
5332
|
+
const queryOfficeInfosById = async queryData => {
|
|
5333
|
+
let resultData = await request.post(`/dataservice/rest/orchestration/getOfficeInfosByID`, queryData);
|
|
5334
|
+
let groupDptData = resultData.data.officeData;
|
|
5335
|
+
return groupDptData;
|
|
5336
|
+
};
|
|
5291
5337
|
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
|
|
5292
5338
|
|
|
5293
5339
|
|