@indfnd/utils 0.1.30 → 0.1.32

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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.32](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.31...v0.1.32) (2026-01-15)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 修改getApplicationTreeApi请求方式 ([1538571](http://git.inspur.com/imp-ec/ind-front/ind-utils/commit/1538571d0a87a4a210d21e5037a94d1be5e123ae))
11
+
12
+ ### [0.1.31](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.30...v0.1.31) (2026-01-14)
13
+
5
14
  ### [0.1.30](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.29...v0.1.30) (2026-01-14)
6
15
 
7
16
 
@@ -114,13 +114,13 @@ function clearPermissionCache() {
114
114
  }
115
115
  const USER_INFO_KEY = "lambo-userInfo";
116
116
  function getUserInfoCache() {
117
- return getLocalStorage(USER_INFO_KEY);
117
+ return getSessionStorage(USER_INFO_KEY);
118
118
  }
119
119
  function setUserInfoCache(data2) {
120
- setLocalStorage(USER_INFO_KEY, data2);
120
+ setSessionStorage(USER_INFO_KEY, data2);
121
121
  }
122
122
  function clearUserInfoCache() {
123
- removeLocalStorage(USER_INFO_KEY);
123
+ removeSessionStorage(USER_INFO_KEY);
124
124
  }
125
125
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
126
126
  function getAugmentedNamespace(n) {
@@ -11375,9 +11375,9 @@ function listComTreeApi(params) {
11375
11375
  }
11376
11376
  return instance.get(`${CONTEXT$1}/tree/com/listComTree`, { params });
11377
11377
  }
11378
- const UC_CONTEXT$1 = config.ucExtServerContext;
11378
+ const UC_CONTEXT$2 = config.ucExtServerContext;
11379
11379
  function listIndexDescApi(params) {
11380
- return instance.get(`${UC_CONTEXT$1}/index-desc/list`, { params });
11380
+ return instance.get(`${UC_CONTEXT$2}/index-desc/list`, { params });
11381
11381
  }
11382
11382
  const CONTEXT = config.ismAmServerContext;
11383
11383
  function listItemTreeApi(params) {
@@ -11394,6 +11394,27 @@ function getPriceInfo() {
11394
11394
  function getItem(params) {
11395
11395
  return instance.get(`${CONTEXT}/basic/getItem`, { params });
11396
11396
  }
11397
+ const UC_CONTEXT$1 = config.ucExtServerContext;
11398
+ const DATAVERSION_KEY$1 = "ind-cache-dataVersion-applicationTree";
11399
+ function getApplicationTreeApi(params) {
11400
+ return __async(this, null, function* () {
11401
+ var _a;
11402
+ const cachedData = getLocalStorage(DATAVERSION_KEY$1);
11403
+ const dataVersionList = yield instance.get(`${UC_CONTEXT$1}/cacheManage/getCacheDataVersion`, {});
11404
+ const serverVersion = dataVersionList.data["applicationTree"];
11405
+ if ((cachedData == null ? void 0 : cachedData.dataVersion) !== serverVersion) {
11406
+ const response = yield instance.formPost(`${UC_CONTEXT$1}/tree/uc-application/getApplicationTree`, {
11407
+ params
11408
+ });
11409
+ const dataValue = {
11410
+ dataVersion: serverVersion,
11411
+ response
11412
+ };
11413
+ setLocalStorage(DATAVERSION_KEY$1, dataValue);
11414
+ }
11415
+ return (_a = getLocalStorage(DATAVERSION_KEY$1)) == null ? void 0 : _a.response;
11416
+ });
11417
+ }
11397
11418
  const UC_CONTEXT = config.ucExtServerContext;
11398
11419
  const DATAVERSION_KEY = "ind-cache-dataVersion-organTree";
11399
11420
  function listUserTreeApi(params) {
@@ -11413,4 +11434,4 @@ function listUserTreeApi(params) {
11413
11434
  return (_a = getLocalStorage(DATAVERSION_KEY)) == null ? void 0 : _a.response;
11414
11435
  });
11415
11436
  }
11416
- export { Base64ForLogin, CONTENT_TYPE, IS_OR_NOT_ENUM, IS_OR_NOT_ENUM_KEY, IS_OR_NOT_ENUM_LIST, MIME_TYPE, UC_ENUM, addMenuCollectApi, instance as axios, base64ToBlob, blobToBase64, checkIdCard, checkPhone, checkTel, checkVehicleNo, clearIndexDescCache, clearPermissionCache, clearSessionStorage, clearUserInfoCache, config, cryptor, deleteMenuCollectApi, deleteMenuHistoryApi, exportJsonToExcel, flattenRow2ColumnData, formatDate, formatDateChinese, formatDecimal, formatHalfYear, formatQuarter, getAppListApi, getCaptchaURL, getContentType, getDictApi, getDictMapApi, getDictsMapApi, getExcelColumnIdx, getGlobalPolicyApi, getHalfYear, getHalfYearBeginMonth, getHalfYearEndMonth, getHalfYearNum, getIndexDescCache, getItem, getLocalStorage, getMaxTabNumValueApi, getMenuCollectApi, getMenuHistoryApi, getOssFileApi, getOssFileUrl, getPermissionApi, getPermissionCache, getPreviewUrlApi, getPriceInfo, getQuarter, getQuarterBeginMonth, getQuarterEndMonth, getQuarterNum, getSessionStorage, getToken, getType, getUrlParams, getUserInfoApi, getUserInfoCache, guid, importJsonFromExcel, isArguments, isArray, isArrayLike, isBoolean, isDate, isDecimal, isElement, isEmpty, isEqual, isEqualWith, isError, isEven, isFinite$1 as isFinite, isFunction, isInteger, isNegative, isNil, isNull, isNumber, isNumberEqual, isObject, isObjectLike, isOdd, isPlainObject, isPositive, isPromise, isPrototype, isRegExp2 as isRegExp, isString, isType, isUndefined, listComTreeApi, listIndexDescApi, listItemTreeApi, listUserTreeApi, loginApi, logoutApi, menuHistoryApi, numToChineseNumerals, numToDX, off, on, preventDefault, putOssFileApi, putOssFileUrl, quarter2Chinese, removeLocalStorage, removeMenuCollectApi, removeSessionStorage, renderColumnEnums, renderEnumData, renderEnumList, renderFieldEnums, responseInterceptors, round, row2column, setConfig, setContentType, setIndexDescCache, setLocalStorage, setPermissionCache, setSessionStorage, setToken, setUserInfoCache, stopPropagation, str2Date, toChies, toFixed, toThousands, updatePasswordApi, useConfig, uuid, wrapApi };
11437
+ export { Base64ForLogin, CONTENT_TYPE, IS_OR_NOT_ENUM, IS_OR_NOT_ENUM_KEY, IS_OR_NOT_ENUM_LIST, MIME_TYPE, UC_ENUM, addMenuCollectApi, instance as axios, base64ToBlob, blobToBase64, checkIdCard, checkPhone, checkTel, checkVehicleNo, clearIndexDescCache, clearPermissionCache, clearSessionStorage, clearUserInfoCache, config, cryptor, deleteMenuCollectApi, deleteMenuHistoryApi, exportJsonToExcel, flattenRow2ColumnData, formatDate, formatDateChinese, formatDecimal, formatHalfYear, formatQuarter, getAppListApi, getApplicationTreeApi, getCaptchaURL, getContentType, getDictApi, getDictMapApi, getDictsMapApi, getExcelColumnIdx, getGlobalPolicyApi, getHalfYear, getHalfYearBeginMonth, getHalfYearEndMonth, getHalfYearNum, getIndexDescCache, getItem, getLocalStorage, getMaxTabNumValueApi, getMenuCollectApi, getMenuHistoryApi, getOssFileApi, getOssFileUrl, getPermissionApi, getPermissionCache, getPreviewUrlApi, getPriceInfo, getQuarter, getQuarterBeginMonth, getQuarterEndMonth, getQuarterNum, getSessionStorage, getToken, getType, getUrlParams, getUserInfoApi, getUserInfoCache, guid, importJsonFromExcel, isArguments, isArray, isArrayLike, isBoolean, isDate, isDecimal, isElement, isEmpty, isEqual, isEqualWith, isError, isEven, isFinite$1 as isFinite, isFunction, isInteger, isNegative, isNil, isNull, isNumber, isNumberEqual, isObject, isObjectLike, isOdd, isPlainObject, isPositive, isPromise, isPrototype, isRegExp2 as isRegExp, isString, isType, isUndefined, listComTreeApi, listIndexDescApi, listItemTreeApi, listUserTreeApi, loginApi, logoutApi, menuHistoryApi, numToChineseNumerals, numToDX, off, on, preventDefault, putOssFileApi, putOssFileUrl, quarter2Chinese, removeLocalStorage, removeMenuCollectApi, removeSessionStorage, renderColumnEnums, renderEnumData, renderEnumList, renderFieldEnums, responseInterceptors, round, row2column, setConfig, setContentType, setIndexDescCache, setLocalStorage, setPermissionCache, setSessionStorage, setToken, setUserInfoCache, stopPropagation, str2Date, toChies, toFixed, toThousands, updatePasswordApi, useConfig, uuid, wrapApi };