@witlink/usercenter 1.2.71 → 1.2.73

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.
@@ -1,4 +1,4 @@
1
- import './assets/main.71f2a74d.css';var __defProp = Object.defineProperty;
1
+ import './assets/main.13921abe.css';var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -8,7 +8,7 @@ import { useI18n } from "vue-i18n";
8
8
  import { defineStore, createPinia } from "pinia";
9
9
  import Axios from "axios";
10
10
  import { notification, App, Drawer, Button, ConfigProvider, message, Modal, Checkbox as Checkbox$1, Divider as Divider$1 } from "ant-design-vue";
11
- import { ref, render, h, reactive, inject, computed, provide, createCommentVNode, defineComponent, watch as watch$1, onMounted, nextTick, onUnmounted, TransitionGroup, Teleport, resolveComponent, onActivated, onDeactivated, onBeforeUnmount, openBlock, createElementBlock, createVNode, withCtx, unref, createBlock, createElementVNode, createTextVNode, toDisplayString, Fragment, renderList, normalizeClass, normalizeStyle, mergeProps, onBeforeMount, withDirectives, vShow, useSlots, createSlots, renderSlot, normalizeProps, guardReactiveProps, withModifiers, watchEffect, mergeModels, useModel, resolveDirective } from "vue";
11
+ import { ref, render, h, reactive, inject, computed, provide, createCommentVNode, defineComponent, watch, onMounted, nextTick, onUnmounted, TransitionGroup, Teleport, resolveComponent, onActivated, onDeactivated, onBeforeUnmount, openBlock, createElementBlock, createVNode, withCtx, unref, createBlock, createElementVNode, createTextVNode, toDisplayString, Fragment, renderList, normalizeClass, normalizeStyle, mergeProps, onBeforeMount, withDirectives, vShow, useSlots, createSlots, renderSlot, normalizeProps, guardReactiveProps, withModifiers, watchEffect, mergeModels, useModel, resolveDirective } from "vue";
12
12
  import { getUserInfo as getUserInfo$1, hasPermission } from "@witlink/components/utils";
13
13
  import en_US from "ant-design-vue/es/locale/en_US";
14
14
  import zh_CN from "ant-design-vue/es/locale/zh_CN";
@@ -156,10 +156,12 @@ const instance = Axios.create({
156
156
  });
157
157
  function handleReqConfig(config2) {
158
158
  const token = storage.get(ACCESS_TOKEN);
159
+ const userStore = useUserStore();
159
160
  if (token) {
160
161
  config2.headers = {
161
162
  ...config2.headers,
162
- [ACCESS_TOKEN]: token
163
+ [ACCESS_TOKEN]: token,
164
+ isoCode: userStore.userLanguage
163
165
  };
164
166
  }
165
167
  return config2;
@@ -9037,7 +9039,7 @@ function createColumn($xeTable, options, renderOptions) {
9037
9039
  }
9038
9040
  function watchColumn($xeTable, props, column) {
9039
9041
  Object.keys(props).forEach((name) => {
9040
- watch$1(() => props[name], (value) => {
9042
+ watch(() => props[name], (value) => {
9041
9043
  column.update(name, value);
9042
9044
  if ($xeTable) {
9043
9045
  if (name === "filters") {
@@ -11622,7 +11624,7 @@ const TableHeaderComponent = defineVxeComponent({
11622
11624
  ])
11623
11625
  ]);
11624
11626
  };
11625
- watch$1(() => props.tableColumn, uploadColumn);
11627
+ watch(() => props.tableColumn, uploadColumn);
11626
11628
  onMounted(() => {
11627
11629
  nextTick(() => {
11628
11630
  const { fixedType } = props;
@@ -31341,13 +31343,13 @@ const VxeTableComponent = defineVxeComponent({
31341
31343
  ]);
31342
31344
  };
31343
31345
  const dataFlag = ref(0);
31344
- watch$1(() => props.data ? props.data.length : -1, () => {
31346
+ watch(() => props.data ? props.data.length : -1, () => {
31345
31347
  dataFlag.value++;
31346
31348
  });
31347
- watch$1(() => props.data, () => {
31349
+ watch(() => props.data, () => {
31348
31350
  dataFlag.value++;
31349
31351
  });
31350
- watch$1(dataFlag, () => {
31352
+ watch(dataFlag, () => {
31351
31353
  const { initStatus } = internalData;
31352
31354
  const value = props.data || [];
31353
31355
  if (value && value.length >= 2e4) {
@@ -31368,93 +31370,93 @@ const VxeTableComponent = defineVxeComponent({
31368
31370
  });
31369
31371
  });
31370
31372
  const staticColumnFlag = ref(0);
31371
- watch$1(() => reactData.staticColumns.length, () => {
31373
+ watch(() => reactData.staticColumns.length, () => {
31372
31374
  staticColumnFlag.value++;
31373
31375
  });
31374
- watch$1(() => reactData.staticColumns, () => {
31376
+ watch(() => reactData.staticColumns, () => {
31375
31377
  staticColumnFlag.value++;
31376
31378
  });
31377
- watch$1(staticColumnFlag, () => {
31379
+ watch(staticColumnFlag, () => {
31378
31380
  nextTick(() => handleInitColumn(xeUtils.clone(reactData.staticColumns)));
31379
31381
  });
31380
31382
  const tableColumnFlag = ref(0);
31381
- watch$1(() => reactData.tableColumn.length, () => {
31383
+ watch(() => reactData.tableColumn.length, () => {
31382
31384
  tableColumnFlag.value++;
31383
31385
  });
31384
- watch$1(() => reactData.tableColumn, () => {
31386
+ watch(() => reactData.tableColumn, () => {
31385
31387
  tableColumnFlag.value++;
31386
31388
  });
31387
- watch$1(tableColumnFlag, () => {
31389
+ watch(tableColumnFlag, () => {
31388
31390
  tablePrivateMethods.analyColumnWidth();
31389
31391
  });
31390
- watch$1(() => reactData.upDataFlag, () => {
31392
+ watch(() => reactData.upDataFlag, () => {
31391
31393
  nextTick(() => {
31392
31394
  tableMethods.updateData();
31393
31395
  });
31394
31396
  });
31395
- watch$1(() => reactData.reColumnFlag, () => {
31397
+ watch(() => reactData.reColumnFlag, () => {
31396
31398
  nextTick(() => {
31397
31399
  tableMethods.refreshColumn();
31398
31400
  });
31399
31401
  });
31400
31402
  const reLayoutFlag = ref(0);
31401
- watch$1(computeSize, () => {
31403
+ watch(computeSize, () => {
31402
31404
  reLayoutFlag.value++;
31403
31405
  });
31404
- watch$1(() => props.showHeader, () => {
31406
+ watch(() => props.showHeader, () => {
31405
31407
  reLayoutFlag.value++;
31406
31408
  });
31407
- watch$1(() => props.showFooter, () => {
31409
+ watch(() => props.showFooter, () => {
31408
31410
  reLayoutFlag.value++;
31409
31411
  });
31410
- watch$1(() => reactData.overflowX, () => {
31412
+ watch(() => reactData.overflowX, () => {
31411
31413
  reLayoutFlag.value++;
31412
31414
  });
31413
- watch$1(() => reactData.overflowY, () => {
31415
+ watch(() => reactData.overflowY, () => {
31414
31416
  reLayoutFlag.value++;
31415
31417
  });
31416
- watch$1(() => props.height, () => {
31418
+ watch(() => props.height, () => {
31417
31419
  reLayoutFlag.value++;
31418
31420
  });
31419
- watch$1(() => props.maxHeight, () => {
31421
+ watch(() => props.maxHeight, () => {
31420
31422
  reLayoutFlag.value++;
31421
31423
  });
31422
- watch$1(computeScrollbarXToTop, () => {
31424
+ watch(computeScrollbarXToTop, () => {
31423
31425
  reLayoutFlag.value++;
31424
31426
  });
31425
- watch$1(computeScrollbarYToLeft, () => {
31427
+ watch(computeScrollbarYToLeft, () => {
31426
31428
  reLayoutFlag.value++;
31427
31429
  });
31428
- watch$1(() => VxeUI.getLanguage(), () => {
31430
+ watch(() => VxeUI.getLanguage(), () => {
31429
31431
  reLayoutFlag.value++;
31430
31432
  });
31431
- watch$1(() => {
31433
+ watch(() => {
31432
31434
  const scrollbarXOpts = computeScrollbarXOpts.value;
31433
31435
  return scrollbarXOpts.visible;
31434
31436
  }, () => {
31435
31437
  reLayoutFlag.value++;
31436
31438
  });
31437
- watch$1(() => {
31439
+ watch(() => {
31438
31440
  const scrollbarYOpts = computeScrollbarYOpts.value;
31439
31441
  return scrollbarYOpts.visible;
31440
31442
  }, () => {
31441
31443
  reLayoutFlag.value++;
31442
31444
  });
31443
- watch$1(reLayoutFlag, () => {
31445
+ watch(reLayoutFlag, () => {
31444
31446
  $xeTable.recalculate(true);
31445
31447
  });
31446
31448
  const footFlag = ref(0);
31447
- watch$1(() => props.footerData ? props.footerData.length : -1, () => {
31449
+ watch(() => props.footerData ? props.footerData.length : -1, () => {
31448
31450
  footFlag.value++;
31449
31451
  });
31450
- watch$1(() => props.footerData, () => {
31452
+ watch(() => props.footerData, () => {
31451
31453
  footFlag.value++;
31452
31454
  });
31453
- watch$1(footFlag, () => {
31455
+ watch(footFlag, () => {
31454
31456
  internalData.footerFullDataRowData = {};
31455
31457
  $xeTable.updateFooter();
31456
31458
  });
31457
- watch$1(() => props.syncResize, (value) => {
31459
+ watch(() => props.syncResize, (value) => {
31458
31460
  if (value) {
31459
31461
  handleUpdateResize();
31460
31462
  nextTick(() => {
@@ -31464,46 +31466,46 @@ const VxeTableComponent = defineVxeComponent({
31464
31466
  }
31465
31467
  });
31466
31468
  const mergeCellFlag = ref(0);
31467
- watch$1(() => props.mergeCells ? props.mergeCells.length : -1, () => {
31469
+ watch(() => props.mergeCells ? props.mergeCells.length : -1, () => {
31468
31470
  mergeCellFlag.value++;
31469
31471
  });
31470
- watch$1(() => props.mergeCells, () => {
31472
+ watch(() => props.mergeCells, () => {
31471
31473
  mergeCellFlag.value++;
31472
31474
  });
31473
- watch$1(mergeCellFlag, () => {
31475
+ watch(mergeCellFlag, () => {
31474
31476
  handleUpdateMergeBodyCells(props.mergeCells || []);
31475
31477
  });
31476
31478
  const mergeHeaderItemFlag = ref(0);
31477
- watch$1(() => props.mergeHeaderCells ? props.mergeHeaderCells.length : -1, () => {
31479
+ watch(() => props.mergeHeaderCells ? props.mergeHeaderCells.length : -1, () => {
31478
31480
  mergeHeaderItemFlag.value++;
31479
31481
  });
31480
- watch$1(() => props.mergeHeaderCells, () => {
31482
+ watch(() => props.mergeHeaderCells, () => {
31481
31483
  mergeHeaderItemFlag.value++;
31482
31484
  });
31483
- watch$1(mergeHeaderItemFlag, () => {
31485
+ watch(mergeHeaderItemFlag, () => {
31484
31486
  handleUpdateMergeHeaderCells(props.mergeHeaderCells || []);
31485
31487
  });
31486
31488
  const mergeFooteCellFlag = ref(0);
31487
- watch$1(() => props.mergeFooterCells ? props.mergeFooterCells.length : -1, () => {
31489
+ watch(() => props.mergeFooterCells ? props.mergeFooterCells.length : -1, () => {
31488
31490
  mergeFooteCellFlag.value++;
31489
31491
  });
31490
- watch$1(() => props.mergeFooterCells, () => {
31492
+ watch(() => props.mergeFooterCells, () => {
31491
31493
  mergeFooteCellFlag.value++;
31492
31494
  });
31493
- watch$1(() => props.mergeFooterItems ? props.mergeFooterItems.length : -1, () => {
31495
+ watch(() => props.mergeFooterItems ? props.mergeFooterItems.length : -1, () => {
31494
31496
  mergeFooteCellFlag.value++;
31495
31497
  });
31496
- watch$1(() => props.mergeFooterItems, () => {
31498
+ watch(() => props.mergeFooterItems, () => {
31497
31499
  mergeFooteCellFlag.value++;
31498
31500
  });
31499
- watch$1(mergeFooteCellFlag, () => {
31501
+ watch(mergeFooteCellFlag, () => {
31500
31502
  const mFooterCells = props.mergeFooterCells || props.mergeFooterItems;
31501
31503
  handleUpdateMergeFooterCells(mFooterCells || []);
31502
31504
  });
31503
- watch$1(computeRowGroupFields, (val) => {
31505
+ watch(computeRowGroupFields, (val) => {
31504
31506
  handleUpdateRowGroup(val);
31505
31507
  });
31506
- watch$1(computeRowField, () => {
31508
+ watch(computeRowField, () => {
31507
31509
  const { inited, tableFullData } = internalData;
31508
31510
  if (inited) {
31509
31511
  handleKeyField();
@@ -31514,7 +31516,7 @@ const VxeTableComponent = defineVxeComponent({
31514
31516
  }
31515
31517
  });
31516
31518
  if ($xeTabs) {
31517
- watch$1(() => $xeTabs ? $xeTabs.reactData.resizeFlag : null, () => {
31519
+ watch(() => $xeTabs ? $xeTabs.reactData.resizeFlag : null, () => {
31518
31520
  handleGlobalResizeEvent();
31519
31521
  });
31520
31522
  }
@@ -34203,7 +34205,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
34203
34205
  default: withCtx(() => [
34204
34206
  withDirectives(createVNode(_component_a_button, {
34205
34207
  type: "link",
34206
- disabled: ""
34208
+ disabled: "",
34209
+ class: "wrap-btn"
34207
34210
  }, {
34208
34211
  default: withCtx(() => [
34209
34212
  createTextVNode(toDisplayString(row.name), 1)
@@ -35280,7 +35283,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
35280
35283
  getCurrentMenuAuthList(activeAuthId.value);
35281
35284
  }
35282
35285
  }
35283
- watch$1(
35286
+ watch(
35284
35287
  () => userStore.userLanguage,
35285
35288
  () => {
35286
35289
  if (!showTable.value) {
@@ -35770,7 +35773,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35770
35773
  emit("update:value", value);
35771
35774
  }
35772
35775
  };
35773
- watch$1(
35776
+ watch(
35774
35777
  () => props.value,
35775
35778
  (value) => {
35776
35779
  if (value && value.length > 0 && value[0]) {
@@ -36009,15 +36012,15 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
36009
36012
  form.value.branchId = val || "";
36010
36013
  }
36011
36014
  const initData = async () => {
36012
- const { result } = await getUserUpdateLoad({ userId: props.params.userId });
36015
+ const { result = {} } = await getUserUpdateLoad({
36016
+ userId: props.params.userId
36017
+ });
36013
36018
  data.value = {
36014
36019
  ...result,
36015
- ...{
36016
- deptId: result.deptId ? [result.deptId + ""] : [],
36017
- roleId: result.roleId ? [result.roleId + ""] : [],
36018
- roleIdOthers: result.roleIdOthers ? result.roleIdOthers.split(",") : [],
36019
- branchId: result.branchId
36020
- }
36020
+ deptId: result.deptId ? [result.deptId + ""] : [],
36021
+ roleId: result.roleId ? [result.roleId + ""] : [],
36022
+ roleIdOthers: result.roleIdOthers ? result.roleIdOthers.split(",") : [],
36023
+ branchId: result.branchId
36021
36024
  };
36022
36025
  branchDisabled.value = result.businessFlag === "1";
36023
36026
  roleId.value = result.roleId;
@@ -38316,7 +38319,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38316
38319
  if (props.dictType) {
38317
38320
  fetchDict();
38318
38321
  }
38319
- watch$1(
38322
+ watch(
38320
38323
  () => dictMap.value,
38321
38324
  () => {
38322
38325
  if (dictMapModel.value && typeof dictMapModel.value === "object") {
@@ -42061,13 +42064,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
42061
42064
  }
42062
42065
  emit("loaded", orgType.value);
42063
42066
  };
42064
- watch$1(
42067
+ watch(
42065
42068
  () => props.value,
42066
42069
  (val) => {
42067
42070
  val && val[0] ? currValue.value = val : currValue.value = [];
42068
42071
  }
42069
42072
  );
42070
- watch$1(isopen, (val) => {
42073
+ watch(isopen, (val) => {
42071
42074
  if (!val) {
42072
42075
  emit("click");
42073
42076
  }
@@ -42176,7 +42179,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
42176
42179
  const { result } = await getTimezoneCombo({});
42177
42180
  TimeZome.value = result;
42178
42181
  };
42179
- watch$1(
42182
+ watch(
42180
42183
  () => props.value,
42181
42184
  (value) => {
42182
42185
  value && value[0] ? currValue.value = value : null;
@@ -42253,7 +42256,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
42253
42256
  emit("update:value", value);
42254
42257
  }
42255
42258
  };
42256
- watch$1(
42259
+ watch(
42257
42260
  () => props.value,
42258
42261
  (value) => {
42259
42262
  value && value[0] ? currValue.value = value : null;
@@ -42363,7 +42366,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
42363
42366
  onPopupVisibleChange,
42364
42367
  getObject
42365
42368
  });
42366
- watch$1(
42369
+ watch(
42367
42370
  () => props.defaultVal,
42368
42371
  (val) => {
42369
42372
  initSelect(val);
@@ -44098,7 +44101,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
44098
44101
  const onChange = () => {
44099
44102
  emit("change", seaValue.value);
44100
44103
  };
44101
- watch$1(
44104
+ watch(
44102
44105
  () => props.value,
44103
44106
  (v) => {
44104
44107
  seaValue.value = v;
@@ -44596,7 +44599,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
44596
44599
  date.setMinutes(date.getMinutes() + offset.value);
44597
44600
  return dayjs(dayjs(date), format.value);
44598
44601
  }
44599
- watch$1(
44602
+ watch(
44600
44603
  () => props.value,
44601
44604
  (val) => {
44602
44605
  curValue.value = val ? formatDate(val) : null;
@@ -44659,7 +44662,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44659
44662
  date.setMinutes(date.getMinutes() + offset);
44660
44663
  return toFormatDate(date, dateFormat.value);
44661
44664
  };
44662
- watch$1(
44665
+ watch(
44663
44666
  () => props.defaultValue,
44664
44667
  (val) => {
44665
44668
  curValue.value = formatDate(val);