@witlink/usercenter 1.2.71 → 1.2.72

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.
@@ -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";
@@ -9037,7 +9037,7 @@ function createColumn($xeTable, options, renderOptions) {
9037
9037
  }
9038
9038
  function watchColumn($xeTable, props, column) {
9039
9039
  Object.keys(props).forEach((name) => {
9040
- watch$1(() => props[name], (value) => {
9040
+ watch(() => props[name], (value) => {
9041
9041
  column.update(name, value);
9042
9042
  if ($xeTable) {
9043
9043
  if (name === "filters") {
@@ -11622,7 +11622,7 @@ const TableHeaderComponent = defineVxeComponent({
11622
11622
  ])
11623
11623
  ]);
11624
11624
  };
11625
- watch$1(() => props.tableColumn, uploadColumn);
11625
+ watch(() => props.tableColumn, uploadColumn);
11626
11626
  onMounted(() => {
11627
11627
  nextTick(() => {
11628
11628
  const { fixedType } = props;
@@ -31341,13 +31341,13 @@ const VxeTableComponent = defineVxeComponent({
31341
31341
  ]);
31342
31342
  };
31343
31343
  const dataFlag = ref(0);
31344
- watch$1(() => props.data ? props.data.length : -1, () => {
31344
+ watch(() => props.data ? props.data.length : -1, () => {
31345
31345
  dataFlag.value++;
31346
31346
  });
31347
- watch$1(() => props.data, () => {
31347
+ watch(() => props.data, () => {
31348
31348
  dataFlag.value++;
31349
31349
  });
31350
- watch$1(dataFlag, () => {
31350
+ watch(dataFlag, () => {
31351
31351
  const { initStatus } = internalData;
31352
31352
  const value = props.data || [];
31353
31353
  if (value && value.length >= 2e4) {
@@ -31368,93 +31368,93 @@ const VxeTableComponent = defineVxeComponent({
31368
31368
  });
31369
31369
  });
31370
31370
  const staticColumnFlag = ref(0);
31371
- watch$1(() => reactData.staticColumns.length, () => {
31371
+ watch(() => reactData.staticColumns.length, () => {
31372
31372
  staticColumnFlag.value++;
31373
31373
  });
31374
- watch$1(() => reactData.staticColumns, () => {
31374
+ watch(() => reactData.staticColumns, () => {
31375
31375
  staticColumnFlag.value++;
31376
31376
  });
31377
- watch$1(staticColumnFlag, () => {
31377
+ watch(staticColumnFlag, () => {
31378
31378
  nextTick(() => handleInitColumn(xeUtils.clone(reactData.staticColumns)));
31379
31379
  });
31380
31380
  const tableColumnFlag = ref(0);
31381
- watch$1(() => reactData.tableColumn.length, () => {
31381
+ watch(() => reactData.tableColumn.length, () => {
31382
31382
  tableColumnFlag.value++;
31383
31383
  });
31384
- watch$1(() => reactData.tableColumn, () => {
31384
+ watch(() => reactData.tableColumn, () => {
31385
31385
  tableColumnFlag.value++;
31386
31386
  });
31387
- watch$1(tableColumnFlag, () => {
31387
+ watch(tableColumnFlag, () => {
31388
31388
  tablePrivateMethods.analyColumnWidth();
31389
31389
  });
31390
- watch$1(() => reactData.upDataFlag, () => {
31390
+ watch(() => reactData.upDataFlag, () => {
31391
31391
  nextTick(() => {
31392
31392
  tableMethods.updateData();
31393
31393
  });
31394
31394
  });
31395
- watch$1(() => reactData.reColumnFlag, () => {
31395
+ watch(() => reactData.reColumnFlag, () => {
31396
31396
  nextTick(() => {
31397
31397
  tableMethods.refreshColumn();
31398
31398
  });
31399
31399
  });
31400
31400
  const reLayoutFlag = ref(0);
31401
- watch$1(computeSize, () => {
31401
+ watch(computeSize, () => {
31402
31402
  reLayoutFlag.value++;
31403
31403
  });
31404
- watch$1(() => props.showHeader, () => {
31404
+ watch(() => props.showHeader, () => {
31405
31405
  reLayoutFlag.value++;
31406
31406
  });
31407
- watch$1(() => props.showFooter, () => {
31407
+ watch(() => props.showFooter, () => {
31408
31408
  reLayoutFlag.value++;
31409
31409
  });
31410
- watch$1(() => reactData.overflowX, () => {
31410
+ watch(() => reactData.overflowX, () => {
31411
31411
  reLayoutFlag.value++;
31412
31412
  });
31413
- watch$1(() => reactData.overflowY, () => {
31413
+ watch(() => reactData.overflowY, () => {
31414
31414
  reLayoutFlag.value++;
31415
31415
  });
31416
- watch$1(() => props.height, () => {
31416
+ watch(() => props.height, () => {
31417
31417
  reLayoutFlag.value++;
31418
31418
  });
31419
- watch$1(() => props.maxHeight, () => {
31419
+ watch(() => props.maxHeight, () => {
31420
31420
  reLayoutFlag.value++;
31421
31421
  });
31422
- watch$1(computeScrollbarXToTop, () => {
31422
+ watch(computeScrollbarXToTop, () => {
31423
31423
  reLayoutFlag.value++;
31424
31424
  });
31425
- watch$1(computeScrollbarYToLeft, () => {
31425
+ watch(computeScrollbarYToLeft, () => {
31426
31426
  reLayoutFlag.value++;
31427
31427
  });
31428
- watch$1(() => VxeUI.getLanguage(), () => {
31428
+ watch(() => VxeUI.getLanguage(), () => {
31429
31429
  reLayoutFlag.value++;
31430
31430
  });
31431
- watch$1(() => {
31431
+ watch(() => {
31432
31432
  const scrollbarXOpts = computeScrollbarXOpts.value;
31433
31433
  return scrollbarXOpts.visible;
31434
31434
  }, () => {
31435
31435
  reLayoutFlag.value++;
31436
31436
  });
31437
- watch$1(() => {
31437
+ watch(() => {
31438
31438
  const scrollbarYOpts = computeScrollbarYOpts.value;
31439
31439
  return scrollbarYOpts.visible;
31440
31440
  }, () => {
31441
31441
  reLayoutFlag.value++;
31442
31442
  });
31443
- watch$1(reLayoutFlag, () => {
31443
+ watch(reLayoutFlag, () => {
31444
31444
  $xeTable.recalculate(true);
31445
31445
  });
31446
31446
  const footFlag = ref(0);
31447
- watch$1(() => props.footerData ? props.footerData.length : -1, () => {
31447
+ watch(() => props.footerData ? props.footerData.length : -1, () => {
31448
31448
  footFlag.value++;
31449
31449
  });
31450
- watch$1(() => props.footerData, () => {
31450
+ watch(() => props.footerData, () => {
31451
31451
  footFlag.value++;
31452
31452
  });
31453
- watch$1(footFlag, () => {
31453
+ watch(footFlag, () => {
31454
31454
  internalData.footerFullDataRowData = {};
31455
31455
  $xeTable.updateFooter();
31456
31456
  });
31457
- watch$1(() => props.syncResize, (value) => {
31457
+ watch(() => props.syncResize, (value) => {
31458
31458
  if (value) {
31459
31459
  handleUpdateResize();
31460
31460
  nextTick(() => {
@@ -31464,46 +31464,46 @@ const VxeTableComponent = defineVxeComponent({
31464
31464
  }
31465
31465
  });
31466
31466
  const mergeCellFlag = ref(0);
31467
- watch$1(() => props.mergeCells ? props.mergeCells.length : -1, () => {
31467
+ watch(() => props.mergeCells ? props.mergeCells.length : -1, () => {
31468
31468
  mergeCellFlag.value++;
31469
31469
  });
31470
- watch$1(() => props.mergeCells, () => {
31470
+ watch(() => props.mergeCells, () => {
31471
31471
  mergeCellFlag.value++;
31472
31472
  });
31473
- watch$1(mergeCellFlag, () => {
31473
+ watch(mergeCellFlag, () => {
31474
31474
  handleUpdateMergeBodyCells(props.mergeCells || []);
31475
31475
  });
31476
31476
  const mergeHeaderItemFlag = ref(0);
31477
- watch$1(() => props.mergeHeaderCells ? props.mergeHeaderCells.length : -1, () => {
31477
+ watch(() => props.mergeHeaderCells ? props.mergeHeaderCells.length : -1, () => {
31478
31478
  mergeHeaderItemFlag.value++;
31479
31479
  });
31480
- watch$1(() => props.mergeHeaderCells, () => {
31480
+ watch(() => props.mergeHeaderCells, () => {
31481
31481
  mergeHeaderItemFlag.value++;
31482
31482
  });
31483
- watch$1(mergeHeaderItemFlag, () => {
31483
+ watch(mergeHeaderItemFlag, () => {
31484
31484
  handleUpdateMergeHeaderCells(props.mergeHeaderCells || []);
31485
31485
  });
31486
31486
  const mergeFooteCellFlag = ref(0);
31487
- watch$1(() => props.mergeFooterCells ? props.mergeFooterCells.length : -1, () => {
31487
+ watch(() => props.mergeFooterCells ? props.mergeFooterCells.length : -1, () => {
31488
31488
  mergeFooteCellFlag.value++;
31489
31489
  });
31490
- watch$1(() => props.mergeFooterCells, () => {
31490
+ watch(() => props.mergeFooterCells, () => {
31491
31491
  mergeFooteCellFlag.value++;
31492
31492
  });
31493
- watch$1(() => props.mergeFooterItems ? props.mergeFooterItems.length : -1, () => {
31493
+ watch(() => props.mergeFooterItems ? props.mergeFooterItems.length : -1, () => {
31494
31494
  mergeFooteCellFlag.value++;
31495
31495
  });
31496
- watch$1(() => props.mergeFooterItems, () => {
31496
+ watch(() => props.mergeFooterItems, () => {
31497
31497
  mergeFooteCellFlag.value++;
31498
31498
  });
31499
- watch$1(mergeFooteCellFlag, () => {
31499
+ watch(mergeFooteCellFlag, () => {
31500
31500
  const mFooterCells = props.mergeFooterCells || props.mergeFooterItems;
31501
31501
  handleUpdateMergeFooterCells(mFooterCells || []);
31502
31502
  });
31503
- watch$1(computeRowGroupFields, (val) => {
31503
+ watch(computeRowGroupFields, (val) => {
31504
31504
  handleUpdateRowGroup(val);
31505
31505
  });
31506
- watch$1(computeRowField, () => {
31506
+ watch(computeRowField, () => {
31507
31507
  const { inited, tableFullData } = internalData;
31508
31508
  if (inited) {
31509
31509
  handleKeyField();
@@ -31514,7 +31514,7 @@ const VxeTableComponent = defineVxeComponent({
31514
31514
  }
31515
31515
  });
31516
31516
  if ($xeTabs) {
31517
- watch$1(() => $xeTabs ? $xeTabs.reactData.resizeFlag : null, () => {
31517
+ watch(() => $xeTabs ? $xeTabs.reactData.resizeFlag : null, () => {
31518
31518
  handleGlobalResizeEvent();
31519
31519
  });
31520
31520
  }
@@ -35280,7 +35280,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
35280
35280
  getCurrentMenuAuthList(activeAuthId.value);
35281
35281
  }
35282
35282
  }
35283
- watch$1(
35283
+ watch(
35284
35284
  () => userStore.userLanguage,
35285
35285
  () => {
35286
35286
  if (!showTable.value) {
@@ -35770,7 +35770,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35770
35770
  emit("update:value", value);
35771
35771
  }
35772
35772
  };
35773
- watch$1(
35773
+ watch(
35774
35774
  () => props.value,
35775
35775
  (value) => {
35776
35776
  if (value && value.length > 0 && value[0]) {
@@ -36009,15 +36009,15 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
36009
36009
  form.value.branchId = val || "";
36010
36010
  }
36011
36011
  const initData = async () => {
36012
- const { result } = await getUserUpdateLoad({ userId: props.params.userId });
36012
+ const { result = {} } = await getUserUpdateLoad({
36013
+ userId: props.params.userId
36014
+ });
36013
36015
  data.value = {
36014
36016
  ...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
- }
36017
+ deptId: result.deptId ? [result.deptId + ""] : [],
36018
+ roleId: result.roleId ? [result.roleId + ""] : [],
36019
+ roleIdOthers: result.roleIdOthers ? result.roleIdOthers.split(",") : [],
36020
+ branchId: result.branchId
36021
36021
  };
36022
36022
  branchDisabled.value = result.businessFlag === "1";
36023
36023
  roleId.value = result.roleId;
@@ -38316,7 +38316,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38316
38316
  if (props.dictType) {
38317
38317
  fetchDict();
38318
38318
  }
38319
- watch$1(
38319
+ watch(
38320
38320
  () => dictMap.value,
38321
38321
  () => {
38322
38322
  if (dictMapModel.value && typeof dictMapModel.value === "object") {
@@ -42061,13 +42061,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
42061
42061
  }
42062
42062
  emit("loaded", orgType.value);
42063
42063
  };
42064
- watch$1(
42064
+ watch(
42065
42065
  () => props.value,
42066
42066
  (val) => {
42067
42067
  val && val[0] ? currValue.value = val : currValue.value = [];
42068
42068
  }
42069
42069
  );
42070
- watch$1(isopen, (val) => {
42070
+ watch(isopen, (val) => {
42071
42071
  if (!val) {
42072
42072
  emit("click");
42073
42073
  }
@@ -42176,7 +42176,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
42176
42176
  const { result } = await getTimezoneCombo({});
42177
42177
  TimeZome.value = result;
42178
42178
  };
42179
- watch$1(
42179
+ watch(
42180
42180
  () => props.value,
42181
42181
  (value) => {
42182
42182
  value && value[0] ? currValue.value = value : null;
@@ -42253,7 +42253,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
42253
42253
  emit("update:value", value);
42254
42254
  }
42255
42255
  };
42256
- watch$1(
42256
+ watch(
42257
42257
  () => props.value,
42258
42258
  (value) => {
42259
42259
  value && value[0] ? currValue.value = value : null;
@@ -42363,7 +42363,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
42363
42363
  onPopupVisibleChange,
42364
42364
  getObject
42365
42365
  });
42366
- watch$1(
42366
+ watch(
42367
42367
  () => props.defaultVal,
42368
42368
  (val) => {
42369
42369
  initSelect(val);
@@ -44098,7 +44098,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
44098
44098
  const onChange = () => {
44099
44099
  emit("change", seaValue.value);
44100
44100
  };
44101
- watch$1(
44101
+ watch(
44102
44102
  () => props.value,
44103
44103
  (v) => {
44104
44104
  seaValue.value = v;
@@ -44596,7 +44596,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
44596
44596
  date.setMinutes(date.getMinutes() + offset.value);
44597
44597
  return dayjs(dayjs(date), format.value);
44598
44598
  }
44599
- watch$1(
44599
+ watch(
44600
44600
  () => props.value,
44601
44601
  (val) => {
44602
44602
  curValue.value = val ? formatDate(val) : null;
@@ -44659,7 +44659,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44659
44659
  date.setMinutes(date.getMinutes() + offset);
44660
44660
  return toFormatDate(date, dateFormat.value);
44661
44661
  };
44662
- watch$1(
44662
+ watch(
44663
44663
  () => props.defaultValue,
44664
44664
  (val) => {
44665
44665
  curValue.value = formatDate(val);