isdata-customer-sdk 0.1.18 → 0.1.19
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 +18 -0
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +18 -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
|
@@ -4895,6 +4895,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
4895
4895
|
getMenuDatasByRoleIDs: function() { return /* reexport */ getMenuDatasByRoleIDs; },
|
|
4896
4896
|
getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
|
|
4897
4897
|
getRoleIDsByUserAndGroupID: function() { return /* reexport */ getRoleIDsByUserAndGroupID; },
|
|
4898
|
+
getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
|
|
4898
4899
|
queryAssetById: function() { return /* reexport */ queryAssetById; },
|
|
4899
4900
|
queryGroupIDByOfficeId: function() { return /* reexport */ queryGroupIDByOfficeId; },
|
|
4900
4901
|
registerEventListener: function() { return /* reexport */ registerEventListener; },
|
|
@@ -5001,6 +5002,21 @@ const queryAssetById = (id, count = 200) => request.post(`/asset/getAssetData?as
|
|
|
5001
5002
|
filters: []
|
|
5002
5003
|
});
|
|
5003
5004
|
|
|
5005
|
+
/**
|
|
5006
|
+
* 获取URL参数值
|
|
5007
|
+
* @param {} eventName
|
|
5008
|
+
* @param {*} actionFun
|
|
5009
|
+
*/
|
|
5010
|
+
const getUrlParamValue = (urlStr, paramName) => {
|
|
5011
|
+
try {
|
|
5012
|
+
const url = new URL(urlStr);
|
|
5013
|
+
const value = url.searchParams.get(paramName);
|
|
5014
|
+
return value;
|
|
5015
|
+
} catch (err) {
|
|
5016
|
+
console.error('URL 格式错误:', err);
|
|
5017
|
+
return "";
|
|
5018
|
+
}
|
|
5019
|
+
};
|
|
5004
5020
|
/**
|
|
5005
5021
|
* 注册事件监听器
|
|
5006
5022
|
* @param {} eventName
|
|
@@ -5204,6 +5220,7 @@ const transformPortalData = (datas, menuTypes, filterObjectMap) => {
|
|
|
5204
5220
|
if (parentType) {
|
|
5205
5221
|
let type_childens = parentType.children;
|
|
5206
5222
|
type_childens.push(tempMenuData);
|
|
5223
|
+
tempMenuData.typeItem = parentType;
|
|
5207
5224
|
} else {
|
|
5208
5225
|
let menuTypeObj = menuTypeMaps[tempType];
|
|
5209
5226
|
let parentType = menuTypeObj ? {
|
|
@@ -5222,6 +5239,7 @@ const transformPortalData = (datas, menuTypes, filterObjectMap) => {
|
|
|
5222
5239
|
let type_childens = parentType.children;
|
|
5223
5240
|
type_childens.push(tempMenuData);
|
|
5224
5241
|
parentTypes.push(parentType);
|
|
5242
|
+
tempMenuData.typeItem = parentType;
|
|
5225
5243
|
}
|
|
5226
5244
|
}
|
|
5227
5245
|
}
|