htui-yllkbz 2.0.9 → 2.0.11

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.
@@ -104936,12 +104936,13 @@ var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
104936
104936
  * @Author: hutao
104937
104937
  * @Date: 2022-07-18 15:01:02
104938
104938
  * @LastEditors: hutao
104939
- * @LastEditTime: 2025-08-01 15:40:35
104939
+ * @LastEditTime: 2026-01-27 16:41:28
104940
104940
  */
104941
104941
 
104942
104942
 
104943
104943
 
104944
104944
 
104945
+ const dataCache = {};
104945
104946
  /** 生成唯一Id
104946
104947
  * @params e 生成的id位数 默认32
104947
104948
  */
@@ -105162,6 +105163,9 @@ const roundHalfToEven = (num, precision = 2) => {
105162
105163
  };
105163
105164
  /** 获取所有部门信息 */
105164
105165
  const getAllOrg = () => {
105166
+ if (dataCache.allOrg) {
105167
+ return dataCache.allOrg;
105168
+ }
105165
105169
  const baseDataItem = {};
105166
105170
  let resData = {
105167
105171
  baseData: {
@@ -105201,10 +105205,14 @@ const getAllOrg = () => {
105201
105205
  });
105202
105206
  }
105203
105207
  getBaseDataItem(organizationUnit);
105208
+ dataCache.allOrg = baseDataItem;
105204
105209
  return baseDataItem;
105205
105210
  };
105206
105211
  /** 获取所有角色信息 */
105207
105212
  const getAllRole = () => {
105213
+ if (dataCache.allRole) {
105214
+ return dataCache.allRole;
105215
+ }
105208
105216
  const baseDataItem = {};
105209
105217
  let resData = {
105210
105218
  baseData: {
@@ -105244,10 +105252,14 @@ const getAllRole = () => {
105244
105252
  });
105245
105253
  }
105246
105254
  getBaseDataItem(roleList);
105255
+ dataCache.allRole = baseDataItem;
105247
105256
  return baseDataItem;
105248
105257
  };
105249
105258
  /** 获取所有用户信息 */
105250
105259
  const getAllUser = () => {
105260
+ if (dataCache.allUser) {
105261
+ return dataCache.allUser;
105262
+ }
105251
105263
  const baseDataItem = {};
105252
105264
  let resData = {
105253
105265
  baseData: {
@@ -105289,10 +105301,14 @@ const getAllUser = () => {
105289
105301
  });
105290
105302
  }
105291
105303
  getBaseDataItem(items);
105304
+ dataCache.allUser = baseDataItem;
105292
105305
  return baseDataItem;
105293
105306
  };
105294
105307
  /** 获取所有的base信息通过KEY:VALUE形式 */
105295
105308
  const getAllBaseData = () => {
105309
+ if (dataCache.allBaseData) {
105310
+ return dataCache.allBaseData;
105311
+ }
105296
105312
  const baseDataItem = {};
105297
105313
  let resData = {
105298
105314
  baseData: {
@@ -105334,6 +105350,7 @@ const getAllBaseData = () => {
105334
105350
  });
105335
105351
  }
105336
105352
  getBaseDataItem(items);
105353
+ dataCache.allBaseData = baseDataItem;
105337
105354
  return baseDataItem;
105338
105355
  };
105339
105356
  function getCurrentTime() {
@@ -105389,7 +105406,7 @@ function getSupport() {
105389
105406
  }
105390
105407
  function trackPageAndGenerateNumber() {
105391
105408
  // 检查localStorage中是否有首次加载时间记录
105392
- getSupport();
105409
+ //getSupport()
105393
105410
  const systemConfig = localStorage.getItem('systemConfig_1');
105394
105411
  // 如果是第一次加载,记录当前时间
105395
105412
  if (!systemConfig) {
Binary file
package/lib/htui.umd.js CHANGED
@@ -104945,12 +104945,13 @@ var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
104945
104945
  * @Author: hutao
104946
104946
  * @Date: 2022-07-18 15:01:02
104947
104947
  * @LastEditors: hutao
104948
- * @LastEditTime: 2025-08-01 15:40:35
104948
+ * @LastEditTime: 2026-01-27 16:41:28
104949
104949
  */
104950
104950
 
104951
104951
 
104952
104952
 
104953
104953
 
104954
+ const dataCache = {};
104954
104955
  /** 生成唯一Id
104955
104956
  * @params e 生成的id位数 默认32
104956
104957
  */
@@ -105171,6 +105172,9 @@ const roundHalfToEven = (num, precision = 2) => {
105171
105172
  };
105172
105173
  /** 获取所有部门信息 */
105173
105174
  const getAllOrg = () => {
105175
+ if (dataCache.allOrg) {
105176
+ return dataCache.allOrg;
105177
+ }
105174
105178
  const baseDataItem = {};
105175
105179
  let resData = {
105176
105180
  baseData: {
@@ -105210,10 +105214,14 @@ const getAllOrg = () => {
105210
105214
  });
105211
105215
  }
105212
105216
  getBaseDataItem(organizationUnit);
105217
+ dataCache.allOrg = baseDataItem;
105213
105218
  return baseDataItem;
105214
105219
  };
105215
105220
  /** 获取所有角色信息 */
105216
105221
  const getAllRole = () => {
105222
+ if (dataCache.allRole) {
105223
+ return dataCache.allRole;
105224
+ }
105217
105225
  const baseDataItem = {};
105218
105226
  let resData = {
105219
105227
  baseData: {
@@ -105253,10 +105261,14 @@ const getAllRole = () => {
105253
105261
  });
105254
105262
  }
105255
105263
  getBaseDataItem(roleList);
105264
+ dataCache.allRole = baseDataItem;
105256
105265
  return baseDataItem;
105257
105266
  };
105258
105267
  /** 获取所有用户信息 */
105259
105268
  const getAllUser = () => {
105269
+ if (dataCache.allUser) {
105270
+ return dataCache.allUser;
105271
+ }
105260
105272
  const baseDataItem = {};
105261
105273
  let resData = {
105262
105274
  baseData: {
@@ -105298,10 +105310,14 @@ const getAllUser = () => {
105298
105310
  });
105299
105311
  }
105300
105312
  getBaseDataItem(items);
105313
+ dataCache.allUser = baseDataItem;
105301
105314
  return baseDataItem;
105302
105315
  };
105303
105316
  /** 获取所有的base信息通过KEY:VALUE形式 */
105304
105317
  const getAllBaseData = () => {
105318
+ if (dataCache.allBaseData) {
105319
+ return dataCache.allBaseData;
105320
+ }
105305
105321
  const baseDataItem = {};
105306
105322
  let resData = {
105307
105323
  baseData: {
@@ -105343,6 +105359,7 @@ const getAllBaseData = () => {
105343
105359
  });
105344
105360
  }
105345
105361
  getBaseDataItem(items);
105362
+ dataCache.allBaseData = baseDataItem;
105346
105363
  return baseDataItem;
105347
105364
  };
105348
105365
  function getCurrentTime() {
@@ -105398,7 +105415,7 @@ function getSupport() {
105398
105415
  }
105399
105416
  function trackPageAndGenerateNumber() {
105400
105417
  // 检查localStorage中是否有首次加载时间记录
105401
- getSupport();
105418
+ //getSupport()
105402
105419
  const systemConfig = localStorage.getItem('systemConfig_1');
105403
105420
  // 如果是第一次加载,记录当前时间
105404
105421
  if (!systemConfig) {
Binary file