@indfnd/utils 0.1.25 → 0.1.26

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,8 @@
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.26](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.25...v0.1.26) (2025-10-10)
6
+
5
7
  ### [0.1.25](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.24...v0.1.25) (2025-09-04)
6
8
 
7
9
 
@@ -3271,10 +3271,16 @@ function getProdConfig() {
3271
3271
  showMenus: typeof window !== "undefined" && window.top === window.self
3272
3272
  };
3273
3273
  }
3274
+ let config = {};
3274
3275
  function useConfig(isDev) {
3275
- return isDev ? Object.assign({}, baseConfig, getDevConfig()) : Object.assign({}, baseConfig, getProdConfig());
3276
+ config = isDev ? Object.assign({}, baseConfig, getDevConfig()) : Object.assign({}, baseConfig, getProdConfig());
3277
+ return config;
3278
+ }
3279
+ useConfig();
3280
+ function setConfig(key, value) {
3281
+ baseConfig[key] = value;
3282
+ config[key] = value;
3276
3283
  }
3277
- const config = useConfig();
3278
3284
  const SUCCESS_CODE = 1;
3279
3285
  const NO_SESSION_CODE = 10106;
3280
3286
  let timer = null;
@@ -11257,6 +11263,9 @@ function logoutApi() {
11257
11263
  }
11258
11264
  const CONTEXT$1 = config.ismAmServerContext;
11259
11265
  function listComTreeApi(params) {
11266
+ if (config.useDddComItemTree) {
11267
+ return instance.get(`${config.ucExtServerContext}/manage/tree/getBusiComTree`, { params });
11268
+ }
11260
11269
  return instance.get(`${CONTEXT$1}/tree/com/listComTree`, { params });
11261
11270
  }
11262
11271
  const UC_CONTEXT$1 = config.ucExtServerContext;
@@ -11265,6 +11274,11 @@ function listIndexDescApi(params) {
11265
11274
  }
11266
11275
  const CONTEXT = config.ismAmServerContext;
11267
11276
  function listItemTreeApi(params) {
11277
+ if (config.useDddComItemTree) {
11278
+ return instance.get(`${config.ucExtServerContext}/manage/tree/getProductInfoAsTreeData`, {
11279
+ params
11280
+ });
11281
+ }
11268
11282
  return instance.get(`${CONTEXT}/tree/item/listItemTree`, { params });
11269
11283
  }
11270
11284
  function getPriceInfo() {
@@ -11277,4 +11291,4 @@ const UC_CONTEXT = config.ucExtServerContext;
11277
11291
  function listUserTreeApi(params) {
11278
11292
  return instance.get(`${UC_CONTEXT}/tree/uc-user/listUserTree`, { params });
11279
11293
  }
11280
- 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, setContentType, setIndexDescCache, setLocalStorage, setPermissionCache, setSessionStorage, setToken, setUserInfoCache, stopPropagation, str2Date, toChies, toFixed, toThousands, updatePasswordApi, useConfig, uuid };
11294
+ 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 };