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 CHANGED
@@ -4885,6 +4885,7 @@ __webpack_require__.d(__webpack_exports__, {
4885
4885
  getMenuDatasByRoleIDs: function() { return /* reexport */ getMenuDatasByRoleIDs; },
4886
4886
  getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
4887
4887
  getRoleIDsByUserAndGroupID: function() { return /* reexport */ getRoleIDsByUserAndGroupID; },
4888
+ getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
4888
4889
  queryAssetById: function() { return /* reexport */ queryAssetById; },
4889
4890
  queryGroupIDByOfficeId: function() { return /* reexport */ queryGroupIDByOfficeId; },
4890
4891
  registerEventListener: function() { return /* reexport */ registerEventListener; },
@@ -4991,6 +4992,21 @@ const queryAssetById = (id, count = 200) => request.post(`/asset/getAssetData?as
4991
4992
  filters: []
4992
4993
  });
4993
4994
 
4995
+ /**
4996
+ * 获取URL参数值
4997
+ * @param {} eventName
4998
+ * @param {*} actionFun
4999
+ */
5000
+ const getUrlParamValue = (urlStr, paramName) => {
5001
+ try {
5002
+ const url = new URL(urlStr);
5003
+ const value = url.searchParams.get(paramName);
5004
+ return value;
5005
+ } catch (err) {
5006
+ console.error('URL 格式错误:', err);
5007
+ return "";
5008
+ }
5009
+ };
4994
5010
  /**
4995
5011
  * 注册事件监听器
4996
5012
  * @param {} eventName
@@ -5194,6 +5210,7 @@ const transformPortalData = (datas, menuTypes, filterObjectMap) => {
5194
5210
  if (parentType) {
5195
5211
  let type_childens = parentType.children;
5196
5212
  type_childens.push(tempMenuData);
5213
+ tempMenuData.typeItem = parentType;
5197
5214
  } else {
5198
5215
  let menuTypeObj = menuTypeMaps[tempType];
5199
5216
  let parentType = menuTypeObj ? {
@@ -5212,6 +5229,7 @@ const transformPortalData = (datas, menuTypes, filterObjectMap) => {
5212
5229
  let type_childens = parentType.children;
5213
5230
  type_childens.push(tempMenuData);
5214
5231
  parentTypes.push(parentType);
5232
+ tempMenuData.typeItem = parentType;
5215
5233
  }
5216
5234
  }
5217
5235
  }