@witlink/usercenter 1.2.47 → 1.2.49

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.4277b25a.css';var __defProp = Object.defineProperty;
1
+ import './assets/main.0ebad3fc.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);
@@ -129,12 +129,27 @@ function is(val, type) {
129
129
  function isFunction$f(val) {
130
130
  return is(val, "Function");
131
131
  }
132
+ const isDef = (val) => {
133
+ return typeof val !== "undefined";
134
+ };
135
+ const isUndef = (val) => {
136
+ return !isDef(val);
137
+ };
132
138
  function isNumber$b(val) {
133
139
  return is(val, "Number");
134
140
  }
135
141
  function isPromise(val) {
136
142
  return is(val, "Promise") && isFunction$f(val.then) && isFunction$f(val.catch);
137
143
  }
144
+ function isString$a(val) {
145
+ return is(val, "String");
146
+ }
147
+ function isNull$a(val) {
148
+ return val === null;
149
+ }
150
+ function isNullOrUndef(val) {
151
+ return isUndef(val) || isNull$a(val);
152
+ }
138
153
  const instance = Axios.create({
139
154
  baseURL: APIBASEURL,
140
155
  timeout: TIMEOUT
@@ -31149,7 +31164,7 @@ function updateMenuTreeOrder(params) {
31149
31164
  }
31150
31165
  const _hoisted_1$n = { class: "add-menu" };
31151
31166
  const _hoisted_2$d = { class: "actions-wrap" };
31152
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
31167
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
31153
31168
  __name: "AddMenu",
31154
31169
  props: {
31155
31170
  data: {
@@ -31159,6 +31174,10 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
31159
31174
  systemId: {
31160
31175
  type: String,
31161
31176
  default: ""
31177
+ },
31178
+ isEdit: {
31179
+ type: Boolean,
31180
+ default: false
31162
31181
  }
31163
31182
  },
31164
31183
  emits: ["close", "submit"],
@@ -31171,7 +31190,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
31171
31190
  funName: "",
31172
31191
  image: "",
31173
31192
  url: "",
31174
- parentId: "",
31193
+ parentId: null,
31175
31194
  selects: [],
31176
31195
  options: []
31177
31196
  });
@@ -31273,10 +31292,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
31273
31292
  createVNode(_component_a_select, {
31274
31293
  placeholder: _ctx.$t("uc_common.plsSelect"),
31275
31294
  allowClear: "",
31295
+ disabled: props.isEdit,
31276
31296
  options: parentMenuOptions.value,
31277
31297
  value: formState.value.parentId,
31278
31298
  "onUpdate:value": _cache[3] || (_cache[3] = ($event) => formState.value.parentId = $event)
31279
- }, null, 8, ["placeholder", "options", "value"])
31299
+ }, null, 8, ["placeholder", "disabled", "options", "value"])
31280
31300
  ]),
31281
31301
  _: 1
31282
31302
  }, 8, ["label"]),
@@ -31329,28 +31349,30 @@ const _export_sfc = (sfc, props) => {
31329
31349
  }
31330
31350
  return target;
31331
31351
  };
31332
- const AddMenu = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-1d0da3f2"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/AddMenu.vue"]]);
31352
+ const AddMenu = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-1d0da3f2"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/AddMenu.vue"]]);
31333
31353
  const cssvar = "";
31334
31354
  const _hoisted_1$m = { class: "sys-functions" };
31335
31355
  const _hoisted_2$c = {
31336
31356
  key: 0,
31337
31357
  class: "left-syslist"
31338
31358
  };
31339
- const _hoisted_3$9 = { class: "page-title" };
31340
- const _hoisted_4$7 = ["onClick"];
31359
+ const _hoisted_3$a = { class: "page-title" };
31360
+ const _hoisted_4$8 = ["onClick"];
31341
31361
  const _hoisted_5$7 = ["src"];
31342
31362
  const _hoisted_6$7 = { class: "sys-item-name" };
31343
31363
  const _hoisted_7$5 = { class: "sys-item-name" };
31344
31364
  const _hoisted_8$4 = { class: "sys-item-desc" };
31345
- const _hoisted_9$4 = { class: "page-title" };
31346
- const _hoisted_10$4 = {
31365
+ const _hoisted_9$4 = {
31347
31366
  key: 0,
31367
+ class: "page-title"
31368
+ };
31369
+ const _hoisted_10$4 = {
31370
+ key: 1,
31348
31371
  class: "no-data"
31349
31372
  };
31350
31373
  const _hoisted_11$4 = { class: "no-data-text" };
31351
31374
  const _hoisted_12$4 = { style: { "height": "32px", "margin-bottom": "10px" } };
31352
- const _hoisted_13$4 = { class: "table-container" };
31353
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
31375
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
31354
31376
  __name: "index",
31355
31377
  setup(__props) {
31356
31378
  const { t: t2 } = useI18n();
@@ -31470,11 +31492,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
31470
31492
  let rowData = null;
31471
31493
  if (!row) {
31472
31494
  const { result } = await getFunctionsInsertLoad({
31473
- systemId: selectedSys.value
31495
+ systemId: selectedSys.value,
31496
+ isoCode: userStore.userLanguage
31474
31497
  });
31475
31498
  rowData = {
31476
31499
  ...result,
31477
- parentId: "",
31500
+ parentId: null,
31478
31501
  funName: "",
31479
31502
  image: "",
31480
31503
  url: "",
@@ -31483,7 +31506,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
31483
31506
  } else {
31484
31507
  const { result } = await getFunctionsUpdateLoad({
31485
31508
  systemId: row.systemId,
31486
- code: row.code
31509
+ code: row.code,
31510
+ isoCode: userStore.userLanguage
31487
31511
  });
31488
31512
  rowData = result;
31489
31513
  }
@@ -31494,6 +31518,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
31494
31518
  props: {
31495
31519
  data: rowData,
31496
31520
  systemId: selectedSys.value,
31521
+ isEdit: !!row,
31497
31522
  onClose: () => {
31498
31523
  modalStore.drawerDestroy();
31499
31524
  },
@@ -31504,7 +31529,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
31504
31529
  image: data.image,
31505
31530
  url: data.url,
31506
31531
  systemId: selectedSys.value,
31507
- parentId: data.parentId.length == "" ? rowData.parentId : data.parentId,
31532
+ parentId: data.parentId ? data.parentId : rowData.parentId,
31508
31533
  actions: data.selects.join(",")
31509
31534
  });
31510
31535
  if (result) {
@@ -31519,7 +31544,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
31519
31544
  url: data.url,
31520
31545
  code: rowData.code,
31521
31546
  systemId: selectedSys.value,
31522
- parentId: data.parentId.length == "" ? rowData.parentId : data.parentId,
31547
+ parentId: data.parentId ? data.parentId : rowData.parentId,
31523
31548
  actions: data.selects.join(",")
31524
31549
  });
31525
31550
  if (result) {
@@ -31537,7 +31562,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
31537
31562
  if (row.isLeaf) {
31538
31563
  Modal.confirm({
31539
31564
  title: row.checked ? t2("uc_fun.disable_menu") : t2("uc_fun.enable_menu"),
31540
- okText: t2("uc_common.btnDelete"),
31565
+ okText: t2("uc_common.btnConfirm"),
31541
31566
  cancelText: t2("uc_common.btnCancel"),
31542
31567
  content: row.checked ? t2("uc_fun.disable_child_content") : t2("uc_fun.enable_child_content"),
31543
31568
  icon: h(ExclamationCircleOutlined),
@@ -31559,7 +31584,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
31559
31584
  } else {
31560
31585
  Modal.confirm({
31561
31586
  title: row.checked ? t2("uc_fun.disable_menu") : t2("uc_fun.enable_menu"),
31562
- okText: t2("uc_common.btnDelete"),
31587
+ okText: t2("uc_common.btnConfirm"),
31563
31588
  cancelText: t2("uc_common.btnCancel"),
31564
31589
  content: row.checked ? t2("uc_fun.disable_parent_content") : t2("uc_fun.enable_parent_content"),
31565
31590
  icon: h(ExclamationCircleOutlined),
@@ -31649,7 +31674,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
31649
31674
  default: withCtx(() => [
31650
31675
  createElementVNode("div", _hoisted_1$m, [
31651
31676
  unref(systemId) === "usercenter" ? (openBlock(), createElementBlock("div", _hoisted_2$c, [
31652
- createElementVNode("div", _hoisted_3$9, toDisplayString(_ctx.$t("uc_fun.syslist")), 1),
31677
+ createElementVNode("div", _hoisted_3$a, toDisplayString(_ctx.$t("uc_fun.syslist")), 1),
31653
31678
  (openBlock(true), createElementBlock(Fragment, null, renderList(sysList.value, (item) => {
31654
31679
  return openBlock(), createElementBlock("div", {
31655
31680
  class: normalizeClass(["sys-item", { "sys-item-active": selectedSys.value === item.systemId }]),
@@ -31665,21 +31690,21 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
31665
31690
  createElementVNode("div", _hoisted_7$5, toDisplayString(item.systemName), 1),
31666
31691
  createElementVNode("div", _hoisted_8$4, toDisplayString(item.description), 1)
31667
31692
  ])
31668
- ], 10, _hoisted_4$7);
31693
+ ], 10, _hoisted_4$8);
31669
31694
  }), 128))
31670
31695
  ])) : createCommentVNode("v-if", true),
31671
31696
  createElementVNode("div", {
31672
31697
  class: "right-content",
31673
31698
  style: normalizeStyle({ left: unref(systemId) === "usercenter" ? "312px" : "0px" })
31674
31699
  }, [
31675
- createElementVNode("div", _hoisted_9$4, toDisplayString(_ctx.$t("uc_fun.fun_configs")), 1),
31700
+ unref(systemId) === "usercenter" ? (openBlock(), createElementBlock("div", _hoisted_9$4, toDisplayString(_ctx.$t("uc_fun.fun_configs")), 1)) : createCommentVNode("v-if", true),
31676
31701
  tableData.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_10$4, [
31677
31702
  _cache[1] || (_cache[1] = createElementVNode("img", {
31678
31703
  src: _imports_0,
31679
31704
  alt: "no data"
31680
31705
  }, null, -1)),
31681
31706
  createElementVNode("span", _hoisted_11$4, toDisplayString(_ctx.$t("uc_fun.no_sys_data")), 1)
31682
- ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
31707
+ ])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
31683
31708
  createCommentVNode(` <a-form layout="vertical" class="query-form">\r
31684
31709
  <a-form-item :label="$t('uc_fun.fun_name')">\r
31685
31710
  <a-input\r
@@ -31723,7 +31748,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
31723
31748
  _: 1
31724
31749
  }, 8, ["icon"])
31725
31750
  ]),
31726
- createElementVNode("div", _hoisted_13$4, [
31751
+ createElementVNode("div", {
31752
+ class: normalizeClass([
31753
+ unref(systemId) === "usercenter" ? "table-container" : "table-container-other"
31754
+ ])
31755
+ }, [
31727
31756
  createVNode(unref(VxeTable), {
31728
31757
  ref_key: "tableRef",
31729
31758
  ref: tableRef,
@@ -31785,7 +31814,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
31785
31814
  ]),
31786
31815
  _: 1
31787
31816
  }, 8, ["row-config", "row-drag-config", "tree-config", "data"])
31788
- ])
31817
+ ], 2)
31789
31818
  ], 64))
31790
31819
  ], 4)
31791
31820
  ])
@@ -31796,7 +31825,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
31796
31825
  }
31797
31826
  });
31798
31827
  const index_vue_vue_type_style_index_0_scoped_04710d5f_lang = "";
31799
- const index$8 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-04710d5f"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/index.vue"]]);
31828
+ const index$8 = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-04710d5f"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/index.vue"]]);
31800
31829
  function usePermissionId() {
31801
31830
  const hasPermissionId = (id) => {
31802
31831
  const hasPermission$1 = hasPermission(id);
@@ -31890,11 +31919,11 @@ function setUpdateUserName(params) {
31890
31919
  return handleRespPost({
31891
31920
  url: "/api/sys/userinfo/update-username",
31892
31921
  method: "post",
31893
- params
31922
+ data: params
31894
31923
  });
31895
31924
  }
31896
31925
  const _hoisted_1$l = { class: "textarea-wrapper" };
31897
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
31926
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
31898
31927
  __name: "InputTextarea",
31899
31928
  props: {
31900
31929
  showCount: {
@@ -31940,9 +31969,9 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
31940
31969
  }
31941
31970
  });
31942
31971
  const InputTextarea_vue_vue_type_style_index_0_scoped_939f274f_lang = "";
31943
- const InputTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-939f274f"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/inhe/input/InputTextarea.vue"]]);
31972
+ const InputTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-939f274f"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/inhe/input/InputTextarea.vue"]]);
31944
31973
  const _hoisted_1$k = ["spinning"];
31945
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
31974
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
31946
31975
  __name: "DeptEdit",
31947
31976
  emits: ["ok"],
31948
31977
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -32153,9 +32182,9 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
32153
32182
  }
32154
32183
  });
32155
32184
  const DeptEdit_vue_vue_type_style_index_0_scoped_58074060_lang = "";
32156
- const DeptEdit = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-58074060"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptEdit.vue"]]);
32185
+ const DeptEdit = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-58074060"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptEdit.vue"]]);
32157
32186
  const _hoisted_1$j = ["spinning"];
32158
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
32187
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
32159
32188
  __name: "BranchEdit",
32160
32189
  emits: ["ok"],
32161
32190
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -32190,7 +32219,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
32190
32219
  if (!value) {
32191
32220
  return Promise.resolve();
32192
32221
  }
32193
- if (!/^\d{3}$/.test(value)) {
32222
+ if (!/^\d{0,4}$/.test(value)) {
32194
32223
  return Promise.reject(t2("uc_organ.refCodePlaceholder"));
32195
32224
  }
32196
32225
  return Promise.resolve();
@@ -32358,10 +32387,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
32358
32387
  }, {
32359
32388
  default: withCtx(() => [
32360
32389
  createVNode(_component_a_input, {
32361
- placeholder: _ctx.$t("uc_organ.refCodePlaceholder"),
32390
+ placeholder: _ctx.$t("uc_common.plsEnter"),
32362
32391
  value: form.refCode,
32363
32392
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.refCode = $event),
32364
- maxLength: 3
32393
+ maxLength: 4
32365
32394
  }, null, 8, ["placeholder", "value"])
32366
32395
  ]),
32367
32396
  _: 1
@@ -32394,7 +32423,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
32394
32423
  }
32395
32424
  });
32396
32425
  const BranchEdit_vue_vue_type_style_index_0_scoped_db8da10b_lang = "";
32397
- const BranchEdit = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-db8da10b"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranchEdit.vue"]]);
32426
+ const BranchEdit = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-db8da10b"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranchEdit.vue"]]);
32398
32427
  function useSysParams() {
32399
32428
  const userStore = useUserStore();
32400
32429
  function formatDate(date, showTime = true) {
@@ -32431,7 +32460,7 @@ function useSysParams() {
32431
32460
  };
32432
32461
  }
32433
32462
  const _hoisted_1$i = { class: "branch-detail-wrap" };
32434
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
32463
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
32435
32464
  __name: "BranDetail",
32436
32465
  props: {
32437
32466
  type: {
@@ -32556,11 +32585,11 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
32556
32585
  }
32557
32586
  });
32558
32587
  const BranDetail_vue_vue_type_style_index_0_scoped_207f1e3e_lang = "";
32559
- const BranDetail = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-207f1e3e"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranDetail.vue"]]);
32588
+ const BranDetail = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-207f1e3e"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranDetail.vue"]]);
32560
32589
  const _hoisted_1$h = { class: "pay_info" };
32561
32590
  const _hoisted_2$b = { class: "pay_span" };
32562
- const _hoisted_3$8 = { class: "pay_span1" };
32563
- const _hoisted_4$6 = { class: "pay_span" };
32591
+ const _hoisted_3$9 = { class: "pay_span1" };
32592
+ const _hoisted_4$7 = { class: "pay_span" };
32564
32593
  const _hoisted_5$6 = { class: "pay_span1" };
32565
32594
  const _hoisted_6$6 = { class: "pay_span" };
32566
32595
  const _hoisted_7$4 = { class: "pay_span1" };
@@ -32572,8 +32601,8 @@ const _hoisted_12$3 = { class: "pay_span1" };
32572
32601
  const _hoisted_13$3 = { class: "pay_span" };
32573
32602
  const _hoisted_14$3 = { class: "pay_span1" };
32574
32603
  const _hoisted_15$3 = { class: "pay_span" };
32575
- const _hoisted_16$2 = { class: "pay_span1" };
32576
- const _hoisted_17$2 = { style: {
32604
+ const _hoisted_16$3 = { class: "pay_span1" };
32605
+ const _hoisted_17$3 = { style: {
32577
32606
  position: "absolute",
32578
32607
  right: 0,
32579
32608
  bottom: 0,
@@ -32584,7 +32613,7 @@ const _hoisted_17$2 = { style: {
32584
32613
  textAlign: "center",
32585
32614
  zIndex: 1
32586
32615
  } };
32587
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
32616
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
32588
32617
  __name: "DeptDetail",
32589
32618
  setup(__props, { expose: __expose }) {
32590
32619
  const visible = ref(false);
@@ -32632,8 +32661,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
32632
32661
  createElementVNode("div", null, [
32633
32662
  createElementVNode("div", _hoisted_1$h, [
32634
32663
  createElementVNode("span", _hoisted_2$b, toDisplayString(_ctx.$t("uc_organ.parentBranch")), 1),
32635
- createElementVNode("span", _hoisted_3$8, toDisplayString(insertData.parentBranch), 1),
32636
- createElementVNode("span", _hoisted_4$6, toDisplayString(_ctx.$t("uc_organ.superiorRegion")), 1),
32664
+ createElementVNode("span", _hoisted_3$9, toDisplayString(insertData.parentBranch), 1),
32665
+ createElementVNode("span", _hoisted_4$7, toDisplayString(_ctx.$t("uc_organ.superiorRegion")), 1),
32637
32666
  createElementVNode("span", _hoisted_5$6, toDisplayString(insertData.parentRegion), 1),
32638
32667
  createElementVNode("span", _hoisted_6$6, toDisplayString(_ctx.$t("uc_organ.deptName")), 1),
32639
32668
  createElementVNode("span", _hoisted_7$4, toDisplayString(insertData.name), 1),
@@ -32662,10 +32691,10 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
32662
32691
  [vShow, !insertData.udate]
32663
32692
  ]),
32664
32693
  createElementVNode("span", _hoisted_15$3, toDisplayString(_ctx.$t("uc_organ.uoperator")), 1),
32665
- createElementVNode("span", _hoisted_16$2, toDisplayString(insertData.uoperator ? insertData.uoperator : "--"), 1)
32694
+ createElementVNode("span", _hoisted_16$3, toDisplayString(insertData.uoperator ? insertData.uoperator : "--"), 1)
32666
32695
  ])
32667
32696
  ]),
32668
- createElementVNode("div", _hoisted_17$2, [
32697
+ createElementVNode("div", _hoisted_17$3, [
32669
32698
  createVNode(_component_a_button, {
32670
32699
  onClick: _cache[0] || (_cache[0] = ($event) => onCancel())
32671
32700
  }, {
@@ -32683,7 +32712,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
32683
32712
  }
32684
32713
  });
32685
32714
  const DeptDetail_vue_vue_type_style_index_0_scoped_7ab63a77_lang = "";
32686
- const DeptDetail = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-7ab63a77"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptDetail.vue"]]);
32715
+ const DeptDetail = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-7ab63a77"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptDetail.vue"]]);
32687
32716
  function useInitUserinfo() {
32688
32717
  onBeforeMount(async () => {
32689
32718
  var _a;
@@ -32700,14 +32729,14 @@ function useInitUserinfo() {
32700
32729
  }
32701
32730
  const _hoisted_1$g = { class: "organ-wrap" };
32702
32731
  const _hoisted_2$a = { class: "topInfo" };
32703
- const _hoisted_3$7 = { class: "form-btns" };
32704
- const _hoisted_4$5 = { class: "table-wrap" };
32732
+ const _hoisted_3$8 = { class: "form-btns" };
32733
+ const _hoisted_4$6 = { class: "table-wrap" };
32705
32734
  const _hoisted_5$5 = { class: "ant-dropdown-link" };
32706
32735
  const _hoisted_6$5 = {
32707
32736
  class: "ant-dropdown-link",
32708
32737
  style: { "color": "rgba(0, 0, 0, 0.25)" }
32709
32738
  };
32710
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
32739
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
32711
32740
  __name: "index",
32712
32741
  setup(__props, { expose: __expose }) {
32713
32742
  const appStore = useAppStore();
@@ -32985,7 +33014,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
32985
33014
  ]),
32986
33015
  _: 1
32987
33016
  }, 8, ["label"]),
32988
- createElementVNode("div", _hoisted_3$7, [
33017
+ createElementVNode("div", _hoisted_3$8, [
32989
33018
  createVNode(_component_uc_btn_search, {
32990
33019
  onClick: init2,
32991
33020
  showInput: false
@@ -33004,7 +33033,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
33004
33033
  _: 1
33005
33034
  })
33006
33035
  ]),
33007
- createElementVNode("div", _hoisted_4$5, [
33036
+ createElementVNode("div", _hoisted_4$6, [
33008
33037
  createVNode(_component_a_table, {
33009
33038
  columns: columns.value,
33010
33039
  "data-source": tableData.value,
@@ -33370,9 +33399,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
33370
33399
  }
33371
33400
  });
33372
33401
  const index_vue_vue_type_style_index_0_scoped_32a76766_lang = "";
33373
- const index$7 = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-32a76766"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/index.vue"]]);
33402
+ const index$7 = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-32a76766"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/index.vue"]]);
33374
33403
  const index_vue_vue_type_style_index_0_scoped_6ed6a16f_lang = "";
33375
- const _sfc_main$B = Object.assign({
33404
+ const _sfc_main$C = Object.assign({
33376
33405
  inheritAttrs: false
33377
33406
  }, {
33378
33407
  __name: "index",
@@ -33474,7 +33503,7 @@ const _sfc_main$B = Object.assign({
33474
33503
  };
33475
33504
  }
33476
33505
  });
33477
- const STable = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-6ed6a16f"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/table/index.vue"]]);
33506
+ const STable = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-6ed6a16f"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/table/index.vue"]]);
33478
33507
  function getSearchList$1(params) {
33479
33508
  return handleRespPost({
33480
33509
  url: "/api/sys/role/search-list",
@@ -33550,8 +33579,8 @@ const _hoisted_1$f = {
33550
33579
  class: "role-wrap"
33551
33580
  };
33552
33581
  const _hoisted_2$9 = { class: "form-btns" };
33553
- const _hoisted_3$6 = { style: { "height": "32px", "margin-bottom": "10px" } };
33554
- const _hoisted_4$4 = { key: 4 };
33582
+ const _hoisted_3$7 = { style: { "height": "32px", "margin-bottom": "10px" } };
33583
+ const _hoisted_4$5 = { key: 4 };
33555
33584
  const _hoisted_5$4 = {
33556
33585
  key: 1,
33557
33586
  class: "role-auth"
@@ -33577,20 +33606,20 @@ const _hoisted_13$2 = {
33577
33606
  const _hoisted_14$2 = ["onClick"];
33578
33607
  const _hoisted_15$2 = {
33579
33608
  key: 1,
33580
- class: "sys-content"
33609
+ class: "permission_config"
33581
33610
  };
33582
- const _hoisted_16$1 = { class: "sys-menu-list" };
33583
- const _hoisted_17$1 = ["onClick"];
33611
+ const _hoisted_16$2 = { class: "sys-menu-list" };
33612
+ const _hoisted_17$2 = ["onClick"];
33584
33613
  const _hoisted_18$1 = { class: "global-permission" };
33585
33614
  const _hoisted_19$1 = ["id"];
33586
33615
  const _hoisted_20$1 = { class: "module-title" };
33587
33616
  const _hoisted_21$1 = { class: "menu-title" };
33588
33617
  const _hoisted_22$1 = { class: "actions-section" };
33589
33618
  const _hoisted_23$1 = {
33590
- key: 2,
33619
+ key: 3,
33591
33620
  class: "no-auth-permission"
33592
33621
  };
33593
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
33622
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
33594
33623
  __name: "index",
33595
33624
  setup(__props) {
33596
33625
  const systemId = storage.get("systemId") || "usercenter";
@@ -33700,7 +33729,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
33700
33729
  Modal.confirm({
33701
33730
  title: t2("uc_role.disable_role"),
33702
33731
  cancelText: t2("uc_common.btnCancel"),
33703
- okText: t2("uc_common.btnDelete"),
33732
+ okText: t2("uc_common.btnConfirm"),
33704
33733
  content: t2("uc_role.disable_content"),
33705
33734
  icon: null,
33706
33735
  onOk: async () => {
@@ -33718,7 +33747,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
33718
33747
  Modal.confirm({
33719
33748
  title: t2("uc_role.enable_role"),
33720
33749
  cancelText: t2("uc_common.btnCancel"),
33721
- okText: t2("uc_common.btnDelete"),
33750
+ okText: t2("uc_common.btnConfirm"),
33722
33751
  content: t2("uc_role.enable_content"),
33723
33752
  icon: null,
33724
33753
  onOk: async () => {
@@ -34193,7 +34222,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
34193
34222
  ]),
34194
34223
  _: 1
34195
34224
  }),
34196
- createElementVNode("div", _hoisted_3$6, [
34225
+ createElementVNode("div", _hoisted_3$7, [
34197
34226
  createVNode(_component_uc_btn_add, {
34198
34227
  onClick: _cache[2] || (_cache[2] = ($event) => handleAddRole()),
34199
34228
  text: _ctx.$t("uc_role.create_role"),
@@ -34228,7 +34257,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
34228
34257
  column.key === "cdate" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
34229
34258
  createTextVNode(toDisplayString(unref(formatDate)(record.cdate) || "-"), 1)
34230
34259
  ], 64)) : createCommentVNode("v-if", true),
34231
- column.key === "action" ? (openBlock(), createElementBlock("span", _hoisted_4$4, [
34260
+ column.key === "action" ? (openBlock(), createElementBlock("span", _hoisted_4$5, [
34232
34261
  createVNode(_component_uc_btn_edit, {
34233
34262
  onClick: ($event) => handleEdit(record),
34234
34263
  type: "link"
@@ -34326,14 +34355,20 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
34326
34355
  }, toDisplayString(item.systemName || "-"), 11, _hoisted_14$2);
34327
34356
  }), 128))
34328
34357
  ])) : createCommentVNode("v-if", true),
34329
- menuModules.value.length ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
34330
- createElementVNode("div", _hoisted_16$1, [
34358
+ unref(systemId) !== "usercenter" ? (openBlock(), createElementBlock("div", _hoisted_15$2, toDisplayString(_ctx.$t("uc_role.permission_config")), 1)) : createCommentVNode("v-if", true),
34359
+ menuModules.value.length ? (openBlock(), createElementBlock("div", {
34360
+ key: 2,
34361
+ class: normalizeClass([
34362
+ unref(systemId) === "usercenter" ? "sys-content" : "sys-content-other"
34363
+ ])
34364
+ }, [
34365
+ createElementVNode("div", _hoisted_16$2, [
34331
34366
  (openBlock(true), createElementBlock(Fragment, null, renderList(parentMenuList.value, (item) => {
34332
34367
  return openBlock(), createElementBlock("div", {
34333
34368
  class: normalizeClass(["sys-menu-item", { active: item.funId === activeMenuId.value }]),
34334
34369
  onClick: ($event) => handleMenuItemClick(item),
34335
34370
  key: item.funId
34336
- }, toDisplayString(item.funName), 11, _hoisted_17$1);
34371
+ }, toDisplayString(item.funName), 11, _hoisted_17$2);
34337
34372
  }), 128))
34338
34373
  ]),
34339
34374
  createElementVNode("div", {
@@ -34419,7 +34454,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
34419
34454
  ], 8, _hoisted_19$1);
34420
34455
  }), 128))
34421
34456
  ], 512)
34422
- ])) : (openBlock(), createElementBlock("div", _hoisted_23$1, toDisplayString(_ctx.$t("uc_role.no_auth_permission")), 1))
34457
+ ], 2)) : (openBlock(), createElementBlock("div", _hoisted_23$1, toDisplayString(_ctx.$t("uc_role.no_auth_permission")), 1))
34423
34458
  ])
34424
34459
  ])
34425
34460
  ]))
@@ -34430,7 +34465,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
34430
34465
  }
34431
34466
  });
34432
34467
  const index_vue_vue_type_style_index_0_scoped_79d9b716_lang = "";
34433
- const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-79d9b716"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/index.vue"]]);
34468
+ const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-79d9b716"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/index.vue"]]);
34434
34469
  function getSearchList(params) {
34435
34470
  return handleRespPost({
34436
34471
  url: "/api/sys/user/search-list",
@@ -34494,7 +34529,7 @@ function setUserResetPwd(params) {
34494
34529
  params
34495
34530
  });
34496
34531
  }
34497
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
34532
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
34498
34533
  __name: "RoleSelect",
34499
34534
  props: {
34500
34535
  mode: {
@@ -34551,8 +34586,10 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
34551
34586
  watch(
34552
34587
  () => props.value,
34553
34588
  (value) => {
34554
- if (value && value[0]) {
34589
+ if (value && value.length > 0 && value[0]) {
34555
34590
  currValue.value = value;
34591
+ } else if (!value || value.length == 0) {
34592
+ currValue.value = [];
34556
34593
  }
34557
34594
  }
34558
34595
  );
@@ -34594,8 +34631,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
34594
34631
  };
34595
34632
  }
34596
34633
  });
34597
- const __unplugin_components_2$1 = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/RoleSelect.vue"]]);
34598
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
34634
+ const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/RoleSelect.vue"]]);
34635
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
34599
34636
  __name: "BranchSelect",
34600
34637
  setup(__props) {
34601
34638
  const options = ref([]);
@@ -34620,10 +34657,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
34620
34657
  };
34621
34658
  }
34622
34659
  });
34623
- const BranchSelect = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/BranchSelect.vue"]]);
34660
+ const BranchSelect = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/BranchSelect.vue"]]);
34624
34661
  const _hoisted_1$e = { class: "add-menu" };
34625
- const _hoisted_2$8 = ["onClick"];
34626
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
34662
+ const _hoisted_2$8 = { style: { "font-size": "12px", "color": "#86909c", "margin-left": "8px" } };
34663
+ const _hoisted_3$6 = { style: { "font-size": "12px", "color": "#86909c", "margin-left": "8px" } };
34664
+ const _hoisted_4$4 = ["onClick"];
34665
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
34627
34666
  __name: "UserEdit",
34628
34667
  props: {
34629
34668
  params: {
@@ -34691,14 +34730,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
34691
34730
  {
34692
34731
  required: true,
34693
34732
  trigger: ["change", "blur"],
34694
- message: t2("uc_user.branch_msg1"),
34695
- validator: (rule, value) => {
34696
- if (!value || /^\s+$/.test(value)) {
34697
- return Promise.reject(t2("uc_user.branch_msg1"));
34698
- } else {
34699
- return Promise.resolve();
34700
- }
34701
- }
34733
+ message: t2("uc_user.branch_msg1")
34702
34734
  }
34703
34735
  ],
34704
34736
  roleId: [
@@ -34756,11 +34788,6 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
34756
34788
  formRef.value && formRef.value.validate().then(async () => {
34757
34789
  const formData = Object.assign({}, form.value);
34758
34790
  formData.roleId = formData.roleId[0];
34759
- if (formData.deptId && formData.deptId.length > 0) {
34760
- formData.deptId = formData.deptId[0];
34761
- } else {
34762
- formData.deptId = "";
34763
- }
34764
34791
  formData.roleIdOthers = formData.roleIdOthers.join(",");
34765
34792
  formData.branchId = formData.branchId.length ? formData.branchId[formData.branchId.length - 1] : "";
34766
34793
  if (props.params.opType == "2") {
@@ -34830,7 +34857,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
34830
34857
  toggleSelectAll();
34831
34858
  }
34832
34859
  }),
34833
- h("span", { style: "margin-left: 8px" }, t2("amiConfig.selectAll"))
34860
+ h("span", { style: "margin-left: 8px" }, t2("uc_user.selectAll"))
34834
34861
  ]
34835
34862
  ),
34836
34863
  h(Divider$1, { style: "margin: 4px 0" }),
@@ -34878,7 +34905,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
34878
34905
  createVNode(_component_a_form_item, { name: "userCode" }, {
34879
34906
  label: withCtx(() => [
34880
34907
  createTextVNode(toDisplayString(_ctx.$t("uc_user.userCode")) + " ", 1),
34881
- _cache[10] || (_cache[10] = createElementVNode("span", { style: { "font-size": "12px", "color": "#86909c", "margin-left": "8px" } }, "\u7528\u6237\u521D\u59CB\u5BC6\u7801\u4E0E\u7F16\u53F7\u4E00\u81F4", -1))
34908
+ createElementVNode("span", _hoisted_2$8, toDisplayString(_ctx.$t("uc_user.pwdCodeSameNote")), 1)
34882
34909
  ]),
34883
34910
  default: withCtx(() => [
34884
34911
  createVNode(_component_a_input, {
@@ -34912,7 +34939,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
34912
34939
  }, {
34913
34940
  label: withCtx(() => [
34914
34941
  createTextVNode(toDisplayString(_ctx.$t("uc_user.userCode")) + " ", 1),
34915
- _cache[11] || (_cache[11] = createElementVNode("span", { style: { "font-size": "12px", "color": "#86909c", "margin-left": "8px" } }, "\u7528\u6237\u521D\u59CB\u5BC6\u7801\u4E0E\u7F16\u53F7\u4E00\u81F4", -1))
34942
+ createElementVNode("span", _hoisted_3$6, toDisplayString(_ctx.$t("uc_user.pwdCodeSameNote")), 1)
34916
34943
  ]),
34917
34944
  default: withCtx(() => [
34918
34945
  createVNode(_component_a_input, {
@@ -34985,7 +35012,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
34985
35012
  name: "roleId"
34986
35013
  }, {
34987
35014
  default: withCtx(() => [
34988
- createVNode(__unplugin_components_2$1, {
35015
+ createVNode(__unplugin_components_2, {
34989
35016
  placeholder: _ctx.$t("uc_common.plsSelect"),
34990
35017
  mode: "combobox",
34991
35018
  value: form.value.roleId,
@@ -35035,7 +35062,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
35035
35062
  }, ["stop"]))
35036
35063
  }, null, 8, ["checked"]),
35037
35064
  createElementVNode("span", null, toDisplayString(label), 1)
35038
- ], 8, _hoisted_2$8)
35065
+ ], 8, _hoisted_4$4)
35039
35066
  ]),
35040
35067
  _: 1
35041
35068
  }, 8, ["value", "placeholder", "options"])
@@ -35058,8 +35085,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
35058
35085
  }, {
35059
35086
  default: withCtx(() => [
35060
35087
  createVNode(_component_a_input, {
35061
- type: "number",
35062
- placeholder: _ctx.$t("uc_user.mobile_placeholder"),
35088
+ placeholder: _ctx.$t("uc_common.plsEnter"),
35063
35089
  value: form.value.mobile,
35064
35090
  "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.value.mobile = $event)
35065
35091
  }, null, 8, ["placeholder", "value"])
@@ -35148,7 +35174,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
35148
35174
  }
35149
35175
  });
35150
35176
  const UserEdit_vue_vue_type_style_index_0_scoped_e4aafb0b_lang = "";
35151
- const UserEdit = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-e4aafb0b"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/UserEdit.vue"]]);
35177
+ const UserEdit = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-e4aafb0b"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/UserEdit.vue"]]);
35152
35178
  var hash = {};
35153
35179
  var utils$9 = {};
35154
35180
  var minimalisticAssert = assert$5;
@@ -36735,7 +36761,7 @@ Hmac.prototype.digest = function digest8(enc) {
36735
36761
  hash2.sha512 = hash2.sha.sha512;
36736
36762
  hash2.ripemd160 = hash2.ripemd.ripemd160;
36737
36763
  })(hash);
36738
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
36764
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
36739
36765
  __name: "ResetPwdModal",
36740
36766
  emits: ["ok"],
36741
36767
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -36809,7 +36835,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
36809
36835
  showModal
36810
36836
  });
36811
36837
  return (_ctx, _cache) => {
36812
- const _component_a_input = Input;
36838
+ const _component_a_input_password = InputPassword;
36813
36839
  const _component_a_form_item = FormItem;
36814
36840
  const _component_a_form = Form;
36815
36841
  const _component_a_button = Button$1;
@@ -36860,7 +36886,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
36860
36886
  name: "userPwd"
36861
36887
  }, {
36862
36888
  default: withCtx(() => [
36863
- createVNode(_component_a_input, {
36889
+ createVNode(_component_a_input_password, {
36864
36890
  type: "password",
36865
36891
  style: { "width": "100%" },
36866
36892
  placeholder: _ctx.$t("uc_user.user_pwd1_placeholder"),
@@ -36875,7 +36901,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
36875
36901
  name: "userPwd1"
36876
36902
  }, {
36877
36903
  default: withCtx(() => [
36878
- createVNode(_component_a_input, {
36904
+ createVNode(_component_a_input_password, {
36879
36905
  type: "password",
36880
36906
  style: { "width": "100%" },
36881
36907
  placeholder: _ctx.$t("uc_user.user_pwd2"),
@@ -36895,9 +36921,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
36895
36921
  }
36896
36922
  });
36897
36923
  const ResetPwdModal_vue_vue_type_style_index_0_lang$1 = "";
36898
- const ResetPwdModal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/ResetPwdModal.vue"]]);
36924
+ const ResetPwdModal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/ResetPwdModal.vue"]]);
36899
36925
  const _hoisted_1$d = { class: "user-detail" };
36900
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
36926
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
36901
36927
  __name: "UserDetail",
36902
36928
  props: {
36903
36929
  data: {
@@ -36910,11 +36936,11 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
36910
36936
  const emit = __emit;
36911
36937
  const props = __props;
36912
36938
  const info = ref({
36913
- userCode: props.data.userCode || "",
36914
- userName: props.data.userName || "",
36915
- branchName: props.data.branchName || "",
36916
- mainRoleName: props.data.roleName || "",
36917
- attrRoleName: "",
36939
+ userCode: props.data.userCode || "-",
36940
+ userName: props.data.userName || "-",
36941
+ branchName: props.data.branchName || "-",
36942
+ mainRoleName: props.data.roleName || "-",
36943
+ attrRoleName: "-",
36918
36944
  telephone: "-",
36919
36945
  email: "-",
36920
36946
  desc: "-"
@@ -36925,7 +36951,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
36925
36951
  watchEffect(async () => {
36926
36952
  if (props) {
36927
36953
  const { result } = await getUserDetail({ userId: props == null ? void 0 : props.data.userId });
36928
- info.value.attrRoleName = result.roleIdOthers;
36954
+ info.value.attrRoleName = result.roleIdOthers || "-";
36929
36955
  info.value.telephone = result.mobile || "-";
36930
36956
  info.value.email = result.email || "-";
36931
36957
  info.value.desc = result.userDesc || "-";
@@ -37033,14 +37059,14 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
37033
37059
  }
37034
37060
  });
37035
37061
  const UserDetail_vue_vue_type_style_index_0_scoped_167248a6_lang = "";
37036
- const UserDetail = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-167248a6"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/UserDetail.vue"]]);
37062
+ const UserDetail = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-167248a6"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/UserDetail.vue"]]);
37037
37063
  const _hoisted_1$c = { class: "user-info" };
37038
37064
  const _hoisted_2$7 = { class: "form-btns" };
37039
37065
  const _hoisted_3$5 = { key: 1 };
37040
37066
  const _hoisted_4$3 = { key: 2 };
37041
37067
  const _hoisted_5$3 = { key: 1 };
37042
- const _hoisted_6$3 = { key: 3 };
37043
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
37068
+ const _hoisted_6$3 = { key: 4 };
37069
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
37044
37070
  __name: "index",
37045
37071
  setup(__props) {
37046
37072
  const appStore = useAppStore();
@@ -37048,6 +37074,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37048
37074
  const { t: t2 } = useI18n();
37049
37075
  const modalStore = useModalStore();
37050
37076
  const prefixCls = "uc";
37077
+ const { formatDate } = useSysParams();
37051
37078
  const queryParam = reactive({
37052
37079
  userName: "",
37053
37080
  userCode: "",
@@ -37068,7 +37095,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37068
37095
  const params = {
37069
37096
  ...parameter,
37070
37097
  ...queryParam,
37071
- roleId: queryParam.roleId.length ? queryParam.roleId[0] : "",
37098
+ roleId: queryParam.roleId[0],
37072
37099
  branchId: queryParam.branchId.length ? queryParam.branchId[queryParam.branchId.length - 1] : []
37073
37100
  };
37074
37101
  const { result } = await getSearchList(params);
@@ -37260,14 +37287,15 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37260
37287
  showUserEditDrawer.value = false;
37261
37288
  tableRef.value && tableRef.value.refresh();
37262
37289
  };
37263
- const handleReset = (clearFilters) => {
37264
- queryParam.branchId = [];
37265
- queryParam.userName = "";
37266
- queryParam.userCode = "";
37267
- queryParam.roleId = [];
37290
+ const handleReset = () => {
37291
+ Object.assign(queryParam, {
37292
+ userName: "",
37293
+ userCode: "",
37294
+ branchId: [],
37295
+ roleId: []
37296
+ });
37268
37297
  treeSelectedKeys.value = [];
37269
37298
  onSearch();
37270
- clearFilters();
37271
37299
  isFiltered.value = false;
37272
37300
  };
37273
37301
  onMounted(() => {
@@ -37277,7 +37305,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37277
37305
  return (_ctx, _cache) => {
37278
37306
  const _component_a_input = Input;
37279
37307
  const _component_a_form_item = FormItem;
37280
- const _component_role_select = __unplugin_components_2$1;
37308
+ const _component_role_select = __unplugin_components_2;
37281
37309
  const _component_uc_btn_search = resolveComponent("uc-btn-search");
37282
37310
  const _component_a_button = Button$1;
37283
37311
  const _component_a_form = Form;
@@ -37346,7 +37374,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37346
37374
  }, {
37347
37375
  default: withCtx(() => [
37348
37376
  createVNode(_component_role_select, {
37349
- placeholder: _ctx.$t("uc_user.role_placeholder"),
37377
+ placeholder: _ctx.$t("uc_common.plsSelect"),
37350
37378
  value: queryParam.roleId,
37351
37379
  "onUpdate:value": _cache[3] || (_cache[3] = ($event) => queryParam.roleId = $event)
37352
37380
  }, null, 8, ["placeholder", "value"])
@@ -37408,6 +37436,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37408
37436
  onClick: (checked) => onSwitch(checked, record)
37409
37437
  }, null, 8, ["checked", "onClick"])) : Number(record.userStatus) == 2 ? (openBlock(), createElementBlock("span", _hoisted_5$3, toDisplayString(_ctx.$t("dct.USER_STATUS2")), 1)) : createCommentVNode("v-if", true)
37410
37438
  ])) : createCommentVNode("v-if", true),
37439
+ column.key === "cdate" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
37440
+ createTextVNode(toDisplayString(unref(formatDate)(record.cdate) || "-"), 1)
37441
+ ], 64)) : createCommentVNode("v-if", true),
37411
37442
  column.key === "action" ? (openBlock(), createElementBlock("span", _hoisted_6$3, [
37412
37443
  withDirectives(createElementVNode("div", null, [
37413
37444
  createVNode(_component_uc_btn_edit, {
@@ -37456,13 +37487,13 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37456
37487
  });
37457
37488
  const index_vue_vue_type_style_index_0_scoped_451ba823_lang = "";
37458
37489
  const index_vue_vue_type_style_index_1_scoped_451ba823_lang = "";
37459
- const index$5 = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-451ba823"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/index.vue"]]);
37490
+ const index$5 = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-451ba823"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/index.vue"]]);
37460
37491
  function isValidEmail(email) {
37461
37492
  const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
37462
37493
  return emailRegex.test(email);
37463
37494
  }
37464
37495
  const _hoisted_1$b = ["spinning"];
37465
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
37496
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37466
37497
  __name: "ModalEdit",
37467
37498
  emits: ["ok", "cancel"],
37468
37499
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -37472,7 +37503,6 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37472
37503
  const formRef = ref();
37473
37504
  const change = ref(false);
37474
37505
  const btnClass = ref("sendBtn");
37475
- ref({});
37476
37506
  const secondTip = ref("60S");
37477
37507
  const form = reactive({
37478
37508
  userName: "",
@@ -37489,7 +37519,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37489
37519
  const params = reactive({
37490
37520
  opType: "",
37491
37521
  id: "",
37492
- type: ""
37522
+ type: "",
37523
+ title: ""
37493
37524
  });
37494
37525
  const initData1 = async () => {
37495
37526
  loading.value = true;
@@ -37533,8 +37564,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37533
37564
  if (params.opType == "1") {
37534
37565
  res = await setUpdateUserName({ userName: form.userName });
37535
37566
  if ((res == null ? void 0 : res.code) == 0) {
37536
- emit("ok", { ...form });
37537
- message.success("\u7528\u6237\u540D\u79F0\u5DF2\u4FEE\u6539");
37567
+ emit("ok");
37568
+ message.success(t2("uc_profile.editUserNameSucc"));
37538
37569
  visible.value = false;
37539
37570
  }
37540
37571
  } else {
@@ -37557,7 +37588,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37557
37588
  }).then((res2) => {
37558
37589
  loading.value = false;
37559
37590
  if (res2.code == 0) {
37560
- emit("ok", res2);
37591
+ emit("ok");
37561
37592
  visible.value = false;
37562
37593
  Object.assign(form, {
37563
37594
  userName: "",
@@ -37571,6 +37602,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37571
37602
  userCode: ""
37572
37603
  });
37573
37604
  pwdStrength.value = 0;
37605
+ if (params.opType == "2") {
37606
+ message.success(t2("uc_profile.editMobileSucc"));
37607
+ } else {
37608
+ message.success(t2("uc_profile.editEmailSucc"));
37609
+ }
37574
37610
  }
37575
37611
  });
37576
37612
  }
@@ -37637,7 +37673,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37637
37673
  captcha: [
37638
37674
  {
37639
37675
  required: true,
37640
- trigger: ["blur"]
37676
+ trigger: ["blur"],
37677
+ validator: function(rule, value) {
37678
+ if (!value) {
37679
+ return Promise.reject(t2("uc_personal_center.verify_code_placeholder"));
37680
+ }
37681
+ }
37641
37682
  }
37642
37683
  ]
37643
37684
  });
@@ -37691,7 +37732,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37691
37732
  createVNode(_component_a_modal, {
37692
37733
  class: "modal custom-userinfo-modal",
37693
37734
  width: 352,
37694
- title: _ctx.$t("uc_organ.branch_editdssad" + params.opType),
37735
+ title: params.title,
37695
37736
  open: visible.value,
37696
37737
  "onUpdate:open": _cache[7] || (_cache[7] = ($event) => visible.value = $event),
37697
37738
  onCancel,
@@ -37703,7 +37744,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37703
37744
  onClick: onCancel
37704
37745
  }, {
37705
37746
  default: withCtx(() => [
37706
- createTextVNode(toDisplayString(_ctx.$t("common.btn_cancel1")), 1)
37747
+ createTextVNode(toDisplayString(_ctx.$t("uc_common.btnCancel")), 1)
37707
37748
  ]),
37708
37749
  _: 1
37709
37750
  }),
@@ -37713,7 +37754,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37713
37754
  onClick: onSubmit
37714
37755
  }, {
37715
37756
  default: withCtx(() => [
37716
- createTextVNode(toDisplayString(_ctx.$t("common.btn_confirm")), 1)
37757
+ createTextVNode(toDisplayString(_ctx.$t("uc_common.btnSubmit")), 1)
37717
37758
  ]),
37718
37759
  _: 1
37719
37760
  })
@@ -37732,7 +37773,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37732
37773
  createVNode(_component_a_form_item, { name: "userName" }, {
37733
37774
  default: withCtx(() => [
37734
37775
  createVNode(_component_a_input, {
37735
- placeholder: _ctx.$t("\u8BF7\u8F93\u5165"),
37776
+ placeholder: _ctx.$t("uc_common.plsEnter"),
37736
37777
  maxLength: 20,
37737
37778
  value: form.userName,
37738
37779
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => form.userName = $event)
@@ -37755,12 +37796,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37755
37796
  }, {
37756
37797
  default: withCtx(() => [
37757
37798
  createVNode(_component_a_form_item, {
37758
- label: _ctx.$t("\u767B\u5F55\u5BC6\u7801"),
37799
+ label: _ctx.$t("uc_profile.loginPwd"),
37759
37800
  name: "pwd"
37760
37801
  }, {
37761
37802
  default: withCtx(() => [
37762
- createVNode(_component_a_input, {
37763
- placeholder: _ctx.$t("\u8BF7\u8F93\u5165"),
37803
+ createVNode(_component_a_input_password, {
37804
+ placeholder: _ctx.$t("uc_common.plsEnter"),
37764
37805
  maxLength: 20,
37765
37806
  value: form.pwd,
37766
37807
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.pwd = $event)
@@ -37769,12 +37810,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37769
37810
  _: 1
37770
37811
  }, 8, ["label"]),
37771
37812
  createVNode(_component_a_form_item, {
37772
- label: _ctx.$t("\u624B\u673A\u53F7"),
37813
+ label: _ctx.$t("uc_profile.mobile"),
37773
37814
  name: "mobile"
37774
37815
  }, {
37775
37816
  default: withCtx(() => [
37776
37817
  createVNode(_component_a_input, {
37777
- placeholder: _ctx.$t("\u8BF7\u8F93\u5165"),
37818
+ placeholder: _ctx.$t("uc_common.plsEnter"),
37778
37819
  maxLength: 50,
37779
37820
  value: form.mobile,
37780
37821
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.mobile = $event)
@@ -37799,35 +37840,35 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37799
37840
  createCommentVNode(" \u767B\u5F55\u5BC6\u7801\u5B57\u6BB5 "),
37800
37841
  createVNode(_component_a_form_item, {
37801
37842
  name: "pwd",
37802
- label: "\u767B\u5F55\u5BC6\u7801"
37843
+ label: _ctx.$t("uc_profile.loginPwd")
37803
37844
  }, {
37804
37845
  default: withCtx(() => [
37805
37846
  createVNode(_component_a_input_password, {
37806
37847
  value: form.pwd,
37807
37848
  "onUpdate:value": _cache[3] || (_cache[3] = ($event) => form.pwd = $event),
37808
- placeholder: "\u8BF7\u8F93\u5165"
37809
- }, null, 8, ["value"])
37849
+ placeholder: _ctx.$t("uc_common.plsEnter")
37850
+ }, null, 8, ["value", "placeholder"])
37810
37851
  ]),
37811
37852
  _: 1
37812
- }),
37853
+ }, 8, ["label"]),
37813
37854
  createCommentVNode(" \u90AE\u7BB1\u5B57\u6BB5 "),
37814
37855
  createVNode(_component_a_form_item, {
37815
37856
  name: "email",
37816
- label: "\u90AE\u7BB1"
37857
+ label: _ctx.$t("uc_profile.email")
37817
37858
  }, {
37818
37859
  default: withCtx(() => [
37819
37860
  createVNode(_component_a_input, {
37820
37861
  value: form.email,
37821
37862
  "onUpdate:value": _cache[4] || (_cache[4] = ($event) => form.email = $event),
37822
- placeholder: "\u8BF7\u8F93\u5165"
37823
- }, null, 8, ["value"])
37863
+ placeholder: _ctx.$t("uc_common.plsEnter")
37864
+ }, null, 8, ["value", "placeholder"])
37824
37865
  ]),
37825
37866
  _: 1
37826
- }),
37867
+ }, 8, ["label"]),
37827
37868
  createCommentVNode(" \u9A8C\u8BC1\u7801\u5B57\u6BB5 "),
37828
37869
  createVNode(_component_a_form_item, {
37829
37870
  name: "captcha",
37830
- label: "\u9A8C\u8BC1\u7801"
37871
+ label: _ctx.$t("uc_profile.verifyCode")
37831
37872
  }, {
37832
37873
  default: withCtx(() => [
37833
37874
  createVNode(_component_a_row, { gutter: 8 }, {
@@ -37837,8 +37878,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37837
37878
  createVNode(_component_a_input, {
37838
37879
  value: form.captcha,
37839
37880
  "onUpdate:value": _cache[5] || (_cache[5] = ($event) => form.captcha = $event),
37840
- placeholder: "\u8BF7\u8F93\u5165"
37841
- }, null, 8, ["value"])
37881
+ placeholder: _ctx.$t("uc_common.plsEnter")
37882
+ }, null, 8, ["value", "placeholder"])
37842
37883
  ]),
37843
37884
  _: 1
37844
37885
  }),
@@ -37864,9 +37905,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37864
37905
  })
37865
37906
  ]),
37866
37907
  _: 1
37867
- }),
37868
- createCommentVNode(" \u63D0\u4EA4\u6309\u94AE "),
37869
- createCommentVNode(' <a-form-item>\r\n <a-button type="primary" class="submit-btn" @click="handleSubmit">\r\n \u767B\u5F55\r\n </a-button>\r\n </a-form-item> ')
37908
+ }, 8, ["label"])
37870
37909
  ]),
37871
37910
  _: 1
37872
37911
  }, 8, ["model", "rules"])) : createCommentVNode("v-if", true)
@@ -37880,7 +37919,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37880
37919
  });
37881
37920
  const ModalEdit_vue_vue_type_style_index_0_scoped_8dbc9ba3_lang = "";
37882
37921
  const ModalEdit_vue_vue_type_style_index_1_lang = "";
37883
- const ModalEdit = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-8dbc9ba3"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/userinfo/ModalEdit.vue"]]);
37922
+ const ModalEdit = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-8dbc9ba3"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/userinfo/ModalEdit.vue"]]);
37884
37923
  function getUserInfoSearchBase(params) {
37885
37924
  return handleRespPost({
37886
37925
  url: "/api/sys/userinfo/search-base",
@@ -38917,7 +38956,7 @@ function U(t2, e, i, s2, r2, o) {
38917
38956
  const M = /* @__PURE__ */ $(z, [["render", U], ["__scopeId", "data-v-a742df44"]]);
38918
38957
  const _hoisted_1$a = { class: "avatar-upload-preview" };
38919
38958
  const _hoisted_2$6 = ["src"];
38920
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
38959
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38921
38960
  __name: "AvatarModal",
38922
38961
  emits: ["ok"],
38923
38962
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -39130,7 +39169,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
39130
39169
  }
39131
39170
  });
39132
39171
  const AvatarModal_vue_vue_type_style_index_0_scoped_8812fb97_lang = "";
39133
- const AvatarModal = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-8812fb97"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/userinfo/AvatarModal.vue"]]);
39172
+ const AvatarModal = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-8812fb97"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/userinfo/AvatarModal.vue"]]);
39134
39173
  const _hoisted_1$9 = { class: "parent-container" };
39135
39174
  const _hoisted_2$5 = { class: "child-box" };
39136
39175
  const _hoisted_3$4 = { class: "box userInfoMenu" };
@@ -39152,8 +39191,8 @@ const _hoisted_14$1 = {
39152
39191
  style: { "margin-bottom": "8px" }
39153
39192
  };
39154
39193
  const _hoisted_15$1 = { class: "info-item" };
39155
- const _hoisted_16 = { class: "info-label" };
39156
- const _hoisted_17 = { class: "info-value" };
39194
+ const _hoisted_16$1 = { class: "info-label" };
39195
+ const _hoisted_17$1 = { class: "info-value" };
39157
39196
  const _hoisted_18 = { class: "info-item" };
39158
39197
  const _hoisted_19 = { class: "info-label" };
39159
39198
  const _hoisted_20 = { class: "info-value" };
@@ -39199,7 +39238,7 @@ const _hoisted_48 = {
39199
39238
  style: { "height": "372px" }
39200
39239
  };
39201
39240
  const _hoisted_49 = { class: "content-title" };
39202
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
39241
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
39203
39242
  ...{
39204
39243
  name: "Function102"
39205
39244
  },
@@ -39230,7 +39269,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
39230
39269
  return window.location.origin + "/" + userStore.avatar;
39231
39270
  });
39232
39271
  const modalRef = ref(null);
39233
- const menuItems = ref(["\u4E2A\u4EBA\u4FE1\u606F", "\u8D26\u53F7\u5BC6\u7801"]);
39272
+ const menuItems = ref(["uc_profile.personInfo", "uc_profile.pwdSetting"]);
39234
39273
  const data = ref({});
39235
39274
  const pwdStrength = ref(0);
39236
39275
  const loading = ref(false);
@@ -39297,36 +39336,51 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
39297
39336
  }
39298
39337
  ]
39299
39338
  });
39339
+ const initData = async () => {
39340
+ const { result } = await getUserInfoSearchBase({});
39341
+ const res = await getUserInfoAll();
39342
+ Object.assign(form, result, {
39343
+ sex: [result.sex]
39344
+ });
39345
+ const icon = JSON.parse(result.icon);
39346
+ icon && userStore.setAvatar(icon.file);
39347
+ userInfo.value.orgId = res.result.orgId;
39348
+ userInfo.value.orgName = res.result.orgName;
39349
+ userInfo.value.zoneCode = res.result.zoneName;
39350
+ userInfo.value.userCode = res.result.userCode;
39351
+ userInfo.value.userName = res.result.userName;
39352
+ userInfo.value.deptId = res.result.userBranchName;
39353
+ userInfo.value.role = res.result.userRoleName;
39354
+ userInfo.value.mobile = res.result.userMobile;
39355
+ userInfo.value.email = res.result.userEmail;
39356
+ };
39300
39357
  const handleMenuClick = (index2) => {
39301
39358
  currentActive.value = index2;
39302
39359
  };
39360
+ const onSubmit = () => {
39361
+ initData();
39362
+ };
39303
39363
  const handleEditUserName = () => {
39304
39364
  modalEditRef.value.showModal({
39305
39365
  opType: "1",
39306
- onCancel: () => {
39307
- }
39366
+ title: t2("uc_profile.editUserName")
39308
39367
  });
39309
39368
  };
39310
39369
  const handleEditPhone = () => {
39311
39370
  modalEditRef.value.showModal({
39312
- opType: "2"
39371
+ opType: "2",
39372
+ title: userInfo.value.mobile ? t2("uc_profile.editMobile") : t2("uc_profile.bandMobile")
39313
39373
  });
39314
39374
  };
39315
39375
  const handleEditEmail = () => {
39316
39376
  modalEditRef.value.showModal({
39317
- opType: "3"
39377
+ opType: "3",
39378
+ title: userInfo.value.mobile ? t2("uc_profile.editEmail") : t2("uc_profile.bandEmail")
39318
39379
  });
39319
39380
  };
39320
39381
  const handleUploadPreview = (option2) => {
39321
39382
  modalRef.value && modalRef.value.edit(option2);
39322
39383
  };
39323
- ref("");
39324
- ref("");
39325
- ref("");
39326
- const layout = {
39327
- labelCol: { span: 4 },
39328
- wrapperCol: { span: 14 }
39329
- };
39330
39384
  const handleFinish = (values2) => {
39331
39385
  };
39332
39386
  const handleFinishFailed = (errors) => {
@@ -39363,24 +39417,6 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
39363
39417
  });
39364
39418
  });
39365
39419
  };
39366
- const initData = async () => {
39367
- const { result } = await getUserInfoSearchBase({});
39368
- const res = await getUserInfoAll();
39369
- Object.assign(form, result, {
39370
- sex: [result.sex]
39371
- });
39372
- const icon = JSON.parse(result.icon);
39373
- icon && userStore.setAvatar(icon.file);
39374
- userInfo.value.orgId = res.result.orgId;
39375
- userInfo.value.orgName = res.result.orgName;
39376
- userInfo.value.zoneCode = res.result.zoneName;
39377
- userInfo.value.userCode = res.result.userCode;
39378
- userInfo.value.userName = res.result.userName;
39379
- userInfo.value.deptId = res.result.userBranchName;
39380
- userInfo.value.role = res.result.userRoleName;
39381
- userInfo.value.mobile = res.result.userMobile;
39382
- userInfo.value.email = res.result.userEmail;
39383
- };
39384
39420
  const option = reactive({
39385
39421
  img: "",
39386
39422
  info: true,
@@ -39408,7 +39444,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
39408
39444
  });
39409
39445
  return (_ctx, _cache) => {
39410
39446
  const _component_a_tooltip = Tooltip;
39411
- const _component_a_input = Input;
39447
+ const _component_a_input_password = InputPassword;
39412
39448
  const _component_a_form_item = FormItem;
39413
39449
  const _component_a_button = Button$1;
39414
39450
  const _component_a_form = Form;
@@ -39446,13 +39482,12 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
39446
39482
  ])
39447
39483
  ]),
39448
39484
  createElementVNode("div", _hoisted_8$1, [
39449
- createCommentVNode(' <div class="menu-box">\u4E2A\u4EBA\u4FE1\u606F</div>\r\n <div class="menu-box">\u8D26\u53F7\u5BC6\u7801</div> '),
39450
39485
  (openBlock(true), createElementBlock(Fragment, null, renderList(menuItems.value, (item, index2) => {
39451
39486
  return openBlock(), createElementBlock("div", {
39452
39487
  key: index2,
39453
39488
  class: normalizeClass(["menu-item", { "active": currentActive.value === index2 }]),
39454
39489
  onClick: ($event) => handleMenuClick(index2)
39455
- }, toDisplayString(item), 11, _hoisted_9$1);
39490
+ }, toDisplayString(_ctx.$t(item)), 11, _hoisted_9$1);
39456
39491
  }), 128))
39457
39492
  ])
39458
39493
  ]),
@@ -39463,29 +39498,29 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
39463
39498
  createElementVNode("div", _hoisted_14$1, [
39464
39499
  createCommentVNode(" \u79DF\u6237ID "),
39465
39500
  createElementVNode("div", _hoisted_15$1, [
39466
- createElementVNode("div", _hoisted_16, toDisplayString(_ctx.$t("uc_org.orgID")), 1),
39467
- createElementVNode("div", _hoisted_17, toDisplayString(userInfo.value.orgId), 1)
39501
+ createElementVNode("div", _hoisted_16$1, toDisplayString(_ctx.$t("uc_profile.orgID")), 1),
39502
+ createElementVNode("div", _hoisted_17$1, toDisplayString(userInfo.value.orgId), 1)
39468
39503
  ]),
39469
39504
  createCommentVNode(" \u79DF\u6237\u540D\u79F0 "),
39470
39505
  createElementVNode("div", _hoisted_18, [
39471
- createElementVNode("div", _hoisted_19, toDisplayString(_ctx.$t("uc_org.orgName")), 1),
39506
+ createElementVNode("div", _hoisted_19, toDisplayString(_ctx.$t("uc_profile.orgName")), 1),
39472
39507
  createElementVNode("div", _hoisted_20, toDisplayString(userInfo.value.orgName), 1)
39473
39508
  ]),
39474
39509
  createCommentVNode(" \u79DF\u6237\u6240\u5728\u533A\u57DF "),
39475
39510
  createElementVNode("div", _hoisted_21, [
39476
- createElementVNode("div", _hoisted_22, toDisplayString(_ctx.$t("uc_org.orgZone")), 1),
39511
+ createElementVNode("div", _hoisted_22, toDisplayString(_ctx.$t("uc_profile.orgZone")), 1),
39477
39512
  createElementVNode("div", _hoisted_23, toDisplayString(userInfo.value.zoneCode), 1)
39478
39513
  ])
39479
39514
  ]),
39480
39515
  createElementVNode("div", _hoisted_24, [
39481
- createCommentVNode(" \u79DF\u6237ID "),
39516
+ createCommentVNode(" \u7528\u6237\u7F16\u53F7 "),
39482
39517
  createElementVNode("div", _hoisted_25, [
39483
- createElementVNode("div", _hoisted_26, toDisplayString(_ctx.$t("uc_org.orgCode")), 1),
39518
+ createElementVNode("div", _hoisted_26, toDisplayString(_ctx.$t("uc_profile.userCode")), 1),
39484
39519
  createElementVNode("div", _hoisted_27, toDisplayString(userInfo.value.userCode), 1)
39485
39520
  ]),
39486
- createCommentVNode(" \u79DF\u6237\u540D\u79F0 "),
39521
+ createCommentVNode(" \u7528\u6237\u540D\u79F0 "),
39487
39522
  createElementVNode("div", _hoisted_28, [
39488
- createElementVNode("div", _hoisted_29, toDisplayString(_ctx.$t("uc_org.userName")), 1),
39523
+ createElementVNode("div", _hoisted_29, toDisplayString(_ctx.$t("uc_profile.userName")), 1),
39489
39524
  createElementVNode("div", _hoisted_30, [
39490
39525
  createTextVNode(toDisplayString(userInfo.value.userName) + " ", 1),
39491
39526
  createVNode(unref(EditOutlined), {
@@ -39494,118 +39529,117 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
39494
39529
  })
39495
39530
  ])
39496
39531
  ]),
39497
- createCommentVNode(" \u79DF\u6237\u6240\u5728\u533A\u57DF "),
39532
+ createCommentVNode(" \u6240\u5728\u673A\u6784 "),
39498
39533
  createElementVNode("div", _hoisted_31, [
39499
- createElementVNode("div", _hoisted_32, toDisplayString(_ctx.$t("uc_org.deptBelong")), 1),
39534
+ createElementVNode("div", _hoisted_32, toDisplayString(_ctx.$t("uc_profile.deptBelong")), 1),
39500
39535
  createElementVNode("div", _hoisted_33, toDisplayString(userInfo.value.deptId), 1)
39501
39536
  ])
39502
39537
  ]),
39503
39538
  createElementVNode("div", _hoisted_34, [
39504
- createCommentVNode(" \u79DF\u6237\u6240\u5728\u533A\u57DF "),
39539
+ createCommentVNode(" \u89D2\u8272 "),
39505
39540
  createElementVNode("div", _hoisted_35, [
39506
- createElementVNode("div", _hoisted_36, toDisplayString(_ctx.$t("uc_org.role")), 1),
39541
+ createElementVNode("div", _hoisted_36, toDisplayString(_ctx.$t("uc_profile.role")), 1),
39507
39542
  createElementVNode("div", _hoisted_37, toDisplayString(userInfo.value.role), 1)
39508
39543
  ])
39509
39544
  ])
39510
39545
  ]),
39511
39546
  createElementVNode("div", _hoisted_38, [
39512
- createElementVNode("div", _hoisted_39, toDisplayString(_ctx.$t("uc_org.bandInfo")), 1),
39547
+ createElementVNode("div", _hoisted_39, toDisplayString(_ctx.$t("uc_profile.bandInfo")), 1),
39513
39548
  createElementVNode("div", _hoisted_40, [
39514
39549
  createElementVNode("div", _hoisted_41, [
39515
39550
  createElementVNode("div", _hoisted_42, [
39516
- createTextVNode(toDisplayString(_ctx.$t("uc_org.mobile")) + " ", 1),
39551
+ createTextVNode(toDisplayString(_ctx.$t("uc_profile.mobile")) + " ", 1),
39517
39552
  createElementVNode("span", {
39518
39553
  class: "bind-status",
39519
39554
  style: normalizeStyle(userInfo.value.mobile ? {} : specialStyles)
39520
- }, toDisplayString(userInfo.value.mobile ? _ctx.$t("uc_org.hasBanded") : _ctx.$t("uc_org.waitBand")), 5)
39555
+ }, toDisplayString(userInfo.value.mobile ? _ctx.$t("uc_profile.hasBanded") : _ctx.$t("uc_profile.waitBand")), 5)
39521
39556
  ]),
39522
39557
  createElementVNode("div", _hoisted_43, toDisplayString(userInfo.value.mobile), 1)
39523
39558
  ]),
39524
39559
  createElementVNode("button", {
39525
39560
  class: "edit-button",
39526
39561
  onClick: handleEditPhone
39527
- }, toDisplayString(_ctx.$t("uc_org.edit")), 1)
39562
+ }, toDisplayString(userInfo.value.mobile ? _ctx.$t("uc_profile.edit") : _ctx.$t("uc_profile.band")), 1)
39528
39563
  ]),
39529
39564
  createElementVNode("div", _hoisted_44, [
39530
39565
  createCommentVNode(" \u5DE6\u4FA7\u4FE1\u606F\u533A\u57DF "),
39531
39566
  createElementVNode("div", _hoisted_45, [
39532
39567
  createElementVNode("div", _hoisted_46, [
39533
- createTextVNode(toDisplayString(_ctx.$t("uc_org.email")) + " ", 1),
39568
+ createTextVNode(toDisplayString(_ctx.$t("uc_profile.email")) + " ", 1),
39534
39569
  createElementVNode("span", {
39535
39570
  class: "bind-status",
39536
39571
  style: normalizeStyle(userInfo.value.email ? {} : specialStyles)
39537
- }, toDisplayString(userInfo.value.email ? _ctx.$t("uc_org.hasBanded") : _ctx.$t("uc_org.waitBand")), 5)
39572
+ }, toDisplayString(userInfo.value.email ? _ctx.$t("uc_profile.hasBanded") : _ctx.$t("uc_profile.waitBand")), 5)
39538
39573
  ]),
39539
- createElementVNode("div", _hoisted_47, toDisplayString(userInfo.value.email ? userInfo.value.email : _ctx.$t("uc_org.waitBandNote")), 1)
39574
+ createElementVNode("div", _hoisted_47, toDisplayString(userInfo.value.email ? userInfo.value.email : _ctx.$t("uc_profile.waitBandNote")), 1)
39540
39575
  ]),
39541
39576
  createCommentVNode(" \u53F3\u4FA7\u4FEE\u6539\u6309\u94AE "),
39542
39577
  createElementVNode("button", {
39543
39578
  class: "edit-button",
39544
39579
  onClick: handleEditEmail
39545
- }, toDisplayString(_ctx.$t("uc_org.edit")), 1)
39580
+ }, toDisplayString(userInfo.value.email ? _ctx.$t("uc_profile.edit") : _ctx.$t("uc_profile.band")), 1)
39546
39581
  ])
39547
39582
  ])
39548
39583
  ])) : createCommentVNode("v-if", true),
39549
39584
  currentActive.value == 1 ? (openBlock(), createElementBlock("div", _hoisted_48, [
39550
- createElementVNode("div", _hoisted_49, toDisplayString(_ctx.$t("uc_org.pwdSetting")), 1),
39551
- createVNode(_component_a_form, mergeProps({
39585
+ createElementVNode("div", _hoisted_49, toDisplayString(_ctx.$t("uc_profile.pwdSetting")), 1),
39586
+ createVNode(_component_a_form, {
39552
39587
  ref_key: "formRef",
39553
39588
  ref: formRef,
39554
39589
  name: "custom-validation",
39555
39590
  model: formState,
39556
- rules: pwdRules
39557
- }, layout, {
39591
+ rules: pwdRules,
39558
39592
  layout: "vertical",
39559
39593
  onFinish: handleFinish,
39560
39594
  onValidate: handleValidate,
39561
39595
  onFinishFailed: handleFinishFailed
39562
- }), {
39596
+ }, {
39563
39597
  default: withCtx(() => [
39564
39598
  createVNode(_component_a_form_item, {
39565
- "has-feedback": "",
39566
- label: _ctx.$t("oldPwd"),
39599
+ label: _ctx.$t("uc_profile.oldPwd"),
39567
39600
  name: "oldPwd"
39568
39601
  }, {
39569
39602
  default: withCtx(() => [
39570
- createVNode(_component_a_input, {
39603
+ createVNode(_component_a_input_password, {
39571
39604
  value: formState.oldPwd,
39572
39605
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => formState.oldPwd = $event),
39573
39606
  type: "password",
39574
39607
  autocomplete: "off",
39575
- style: { "width": "320px" }
39576
- }, null, 8, ["value"])
39608
+ style: { "width": "320px" },
39609
+ placeholder: _ctx.$t("uc_common.plsEnter")
39610
+ }, null, 8, ["value", "placeholder"])
39577
39611
  ]),
39578
39612
  _: 1
39579
39613
  }, 8, ["label"]),
39580
39614
  createVNode(_component_a_form_item, {
39581
- "has-feedback": "",
39582
- label: _ctx.$t("newPwd"),
39615
+ label: _ctx.$t("uc_profile.newPwd"),
39583
39616
  name: "newPwd"
39584
39617
  }, {
39585
39618
  default: withCtx(() => [
39586
- createVNode(_component_a_input, {
39619
+ createVNode(_component_a_input_password, {
39587
39620
  value: formState.newPwd,
39588
39621
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => formState.newPwd = $event),
39589
39622
  type: "password",
39590
39623
  autocomplete: "off",
39591
- style: { "width": "320px" }
39592
- }, null, 8, ["value"])
39624
+ style: { "width": "320px" },
39625
+ placeholder: _ctx.$t("uc_common.plsEnter")
39626
+ }, null, 8, ["value", "placeholder"])
39593
39627
  ]),
39594
39628
  _: 1
39595
39629
  }, 8, ["label"]),
39596
39630
  createVNode(_component_a_form_item, {
39597
- "has-feedback": "",
39598
- label: _ctx.$t("newPwd1"),
39631
+ label: _ctx.$t("uc_profile.newPwd1"),
39599
39632
  name: "userPwd1"
39600
39633
  }, {
39601
39634
  default: withCtx(() => [
39602
- createVNode(_component_a_input, {
39635
+ createVNode(_component_a_input_password, {
39603
39636
  value: formState.userPwd1,
39604
39637
  "onUpdate:value": _cache[3] || (_cache[3] = ($event) => formState.userPwd1 = $event),
39605
39638
  type: "password",
39606
39639
  autocomplete: "off",
39607
- style: { "width": "320px" }
39608
- }, null, 8, ["value"])
39640
+ style: { "width": "320px" },
39641
+ placeholder: _ctx.$t("uc_common.plsEnter")
39642
+ }, null, 8, ["value", "placeholder"])
39609
39643
  ]),
39610
39644
  _: 1
39611
39645
  }, 8, ["label"]),
@@ -39616,18 +39650,19 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
39616
39650
  "html-type": "submit",
39617
39651
  onClick: submitPwd
39618
39652
  }, {
39619
- default: withCtx(() => [..._cache[4] || (_cache[4] = [
39620
- createTextVNode("Submit", -1)
39621
- ])]),
39653
+ default: withCtx(() => [
39654
+ createTextVNode(toDisplayString(_ctx.$t("uc_common.btnSubmit")), 1)
39655
+ ]),
39622
39656
  _: 1
39623
39657
  }),
39658
+ createCommentVNode(` <uc-btn-reset-pwd type="link" @click="submitPwd">{{ $t('uc_common.btnSubmit') }}</uc-btn-reset-pwd> `),
39624
39659
  createVNode(_component_a_button, {
39625
39660
  style: { "margin-left": "10px" },
39626
39661
  onClick: resetForm
39627
39662
  }, {
39628
- default: withCtx(() => [..._cache[5] || (_cache[5] = [
39629
- createTextVNode("Reset", -1)
39630
- ])]),
39663
+ default: withCtx(() => [
39664
+ createTextVNode(toDisplayString(_ctx.$t("uc_common.btnReset")), 1)
39665
+ ]),
39631
39666
  _: 1
39632
39667
  })
39633
39668
  ]),
@@ -39635,14 +39670,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
39635
39670
  })
39636
39671
  ]),
39637
39672
  _: 1
39638
- }, 16, ["model", "rules"])
39673
+ }, 8, ["model", "rules"])
39639
39674
  ])) : createCommentVNode("v-if", true)
39640
39675
  ]),
39641
39676
  createVNode(ModalEdit, {
39642
39677
  ref_key: "modalEditRef",
39643
39678
  ref: modalEditRef,
39644
- onOk: _ctx.onSubmit
39645
- }, null, 8, ["onOk"]),
39679
+ onOk: onSubmit
39680
+ }, null, 512),
39646
39681
  createVNode(AvatarModal, {
39647
39682
  ref_key: "modalRef",
39648
39683
  ref: modalRef,
@@ -39656,7 +39691,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
39656
39691
  }
39657
39692
  });
39658
39693
  const index_vue_vue_type_style_index_0_scoped_1275f3db_lang = "";
39659
- const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-1275f3db"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/userinfo/index.vue"]]);
39694
+ const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-1275f3db"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/userinfo/index.vue"]]);
39660
39695
  function getLangSearchLangList(params) {
39661
39696
  return handleRespPost({
39662
39697
  url: "/api/sys/lang/search-lang-list",
@@ -39699,7 +39734,7 @@ function setLangExport() {
39699
39734
  responseType: "blob"
39700
39735
  });
39701
39736
  }
39702
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
39737
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
39703
39738
  ...{
39704
39739
  name: "LangAdd"
39705
39740
  },
@@ -39845,8 +39880,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
39845
39880
  };
39846
39881
  }
39847
39882
  });
39848
- const LangAdd = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/lang/LangAdd.vue"]]);
39849
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
39883
+ const LangAdd = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/lang/LangAdd.vue"]]);
39884
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
39850
39885
  __name: "FormItemBtnGroup",
39851
39886
  props: {
39852
39887
  top: {
@@ -39877,14 +39912,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
39877
39912
  }
39878
39913
  });
39879
39914
  const FormItemBtnGroup_vue_vue_type_style_index_0_scoped_ffd7f8e3_lang = "";
39880
- const FIBtnGroup = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-ffd7f8e3"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/FormItemBtnGroup/FormItemBtnGroup.vue"]]);
39915
+ const FIBtnGroup = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-ffd7f8e3"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/FormItemBtnGroup/FormItemBtnGroup.vue"]]);
39881
39916
  const _hoisted_1$8 = {
39882
39917
  bordered: false,
39883
39918
  class: "lang-warp"
39884
39919
  };
39885
39920
  const _hoisted_2$4 = { style: { "margin": "10px 0 6px 10px" } };
39886
39921
  const _hoisted_3$3 = { class: "table-page-search-wrapper" };
39887
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
39922
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
39888
39923
  __name: "index",
39889
39924
  setup(__props) {
39890
39925
  const appStore = useAppStore();
@@ -40273,9 +40308,45 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
40273
40308
  }
40274
40309
  });
40275
40310
  const index_vue_vue_type_style_index_0_scoped_9e1f799b_lang = "";
40276
- const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-9e1f799b"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/lang/index.vue"]]);
40277
- const _hoisted_1$7 = { key: 1 };
40278
- const _hoisted_2$3 = { key: 2 };
40311
+ const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-9e1f799b"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/lang/index.vue"]]);
40312
+ const _hoisted_1$7 = { class: "uc-pro-footer-toolbar" };
40313
+ const _hoisted_2$3 = { style: { "float": "left" } };
40314
+ const _hoisted_3$2 = { style: { "text-align": "center" } };
40315
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
40316
+ ...{
40317
+ name: "FooterToolBar"
40318
+ },
40319
+ __name: "FooterToolBar",
40320
+ props: {
40321
+ prefixCls: {
40322
+ type: String,
40323
+ default: "uc-pro-footer-toolbar"
40324
+ },
40325
+ extra: {
40326
+ type: [String, Object],
40327
+ default: ""
40328
+ }
40329
+ },
40330
+ setup(__props) {
40331
+ const props = __props;
40332
+ return (_ctx, _cache) => {
40333
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
40334
+ createElementVNode("div", _hoisted_2$3, [
40335
+ renderSlot(_ctx.$slots, "extra", {}, () => [
40336
+ createTextVNode(toDisplayString(props.extra), 1)
40337
+ ], true)
40338
+ ]),
40339
+ createElementVNode("div", _hoisted_3$2, [
40340
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
40341
+ ])
40342
+ ]);
40343
+ };
40344
+ }
40345
+ });
40346
+ const FooterToolBar_vue_vue_type_style_index_0_scoped_040ae207_lang = "";
40347
+ const FooterToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-040ae207"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/FooterToolbar/FooterToolBar.vue"]]);
40348
+ const _hoisted_1$6 = { key: 1 };
40349
+ const _hoisted_2$2 = { key: 2 };
40279
40350
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
40280
40351
  __name: "DictEx",
40281
40352
  props: {
@@ -40478,199 +40549,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
40478
40549
  ]),
40479
40550
  _: 1
40480
40551
  }, 8, ["value", "getPopupContainer", "placeholder", "mode", "disabled", "size", "allowClear", "open"])) : createCommentVNode("v-if", true),
40481
- __props.kind == "text" && __props.mode === "multiple" ? (openBlock(), createElementBlock("span", _hoisted_1$7, toDisplayString(getMultipleLabel()), 1)) : createCommentVNode("v-if", true),
40482
- __props.kind == "text" && __props.mode !== "multiple" ? (openBlock(), createElementBlock("span", _hoisted_2$3, toDisplayString(getLabel(__props.value, "html")), 1)) : createCommentVNode("v-if", true)
40552
+ __props.kind == "text" && __props.mode === "multiple" ? (openBlock(), createElementBlock("span", _hoisted_1$6, toDisplayString(getMultipleLabel()), 1)) : createCommentVNode("v-if", true),
40553
+ __props.kind == "text" && __props.mode !== "multiple" ? (openBlock(), createElementBlock("span", _hoisted_2$2, toDisplayString(getLabel(__props.value, "html")), 1)) : createCommentVNode("v-if", true)
40483
40554
  ]);
40484
40555
  };
40485
40556
  }
40486
40557
  });
40487
- const __unplugin_components_8 = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/DictEx.vue"]]);
40488
- const dictCache = {};
40489
- function useDict(type, opts = { immediate: true }) {
40490
- const i18nRes = useI18n();
40491
- const { t: t2 } = i18nRes;
40492
- const resultMap = ref({});
40493
- const typeList = [].concat(type);
40494
- function fetchDict() {
40495
- const reqs = typeList.map((typeItem) => {
40496
- const cacheObj = dictCache[typeItem];
40497
- if (isPromise(cacheObj)) {
40498
- return cacheObj;
40499
- } else if (cacheObj) {
40500
- return Promise.resolve([typeItem, cacheObj]);
40501
- }
40502
- const req = handleRespPost({
40503
- method: "get",
40504
- url: "/api/sys/dictionary/public-dict-combo-ex",
40505
- params: {
40506
- tableType: typeItem
40507
- }
40508
- }).then((res) => {
40509
- dictCache[typeItem] = res;
40510
- return [typeItem, res];
40511
- });
40512
- dictCache[typeItem] = req;
40513
- return req;
40514
- });
40515
- return Promise.all(reqs).then((values2) => {
40516
- values2.forEach((pair) => {
40517
- const [typeItem, val] = pair;
40518
- if (val && val.code === 0) {
40519
- resultMap.value[typeItem] = val.result;
40520
- }
40521
- });
40522
- });
40523
- }
40524
- watchEffect(() => {
40525
- const typeMap = resultMap.value;
40526
- const typeKeys = Object.keys(typeMap);
40527
- typeKeys.forEach((typeKey) => {
40528
- const resItem = typeMap[typeKey];
40529
- for (const resKey in resItem) {
40530
- const transKey = `dct.${typeKey}${resKey}`;
40531
- const transRes = t2(transKey);
40532
- resItem[resKey].text = transRes !== transKey ? transRes : resItem[resKey].text;
40533
- }
40534
- });
40535
- });
40536
- if (opts.immediate) {
40537
- fetchDict();
40538
- }
40539
- function getDictLabel(dictType, value) {
40540
- const curDictMap = resultMap.value[dictType];
40541
- if (curDictMap && value) {
40542
- const obj = curDictMap[value];
40543
- return obj && obj.text ? obj.text : "-";
40544
- }
40545
- return "-";
40546
- }
40547
- function toList(dictType) {
40548
- const curDictMap = resultMap.value[dictType];
40549
- if (curDictMap) {
40550
- const keys2 = Object.keys(curDictMap);
40551
- return keys2.map((key) => {
40552
- return {
40553
- label: curDictMap[key].text,
40554
- value: key
40555
- };
40556
- });
40557
- }
40558
- return [];
40559
- }
40560
- return [resultMap, { fetchDict, toList, getDictLabel }];
40561
- }
40558
+ const DictEx = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/DictEx.vue"]]);
40562
40559
  const _sfc_main$m = /* @__PURE__ */ defineComponent({
40563
- ...{
40564
- inheritAttrs: false
40565
- },
40566
- __name: "DictSelect",
40567
- props: /* @__PURE__ */ mergeModels({
40568
- dictType: {
40569
- type: String,
40570
- default: ""
40571
- },
40572
- include: {
40573
- type: [Array, String]
40574
- },
40575
- exclude: {
40576
- type: Array
40577
- },
40578
- sort: {
40579
- type: Boolean
40580
- }
40581
- }, {
40582
- "dictMap": { type: Object },
40583
- "dictMapModifiers": {}
40584
- }),
40585
- emits: ["update:dictMap"],
40586
- setup(__props) {
40587
- const props = __props;
40588
- const dictMapModel = useModel(__props, "dictMap");
40589
- const [dictMap2, { fetchDict, toList }] = useDict(props.dictType, {
40590
- immediate: false
40591
- });
40592
- const dictList = computed(() => {
40593
- var _a;
40594
- const arr = toList(props.dictType);
40595
- if (props.sort) {
40596
- arr.sort((a, b) => parseFloat(a.value) - parseFloat(b.value));
40597
- }
40598
- if (props.include) {
40599
- const includeArr = typeof props.include === "string" ? props.include.split(",") : props.include;
40600
- return arr.filter((l) => includeArr.includes(l.value));
40601
- }
40602
- if ((_a = props.exclude) == null ? void 0 : _a.length) {
40603
- return arr.filter((l) => {
40604
- var _a2;
40605
- return !((_a2 = props.exclude) == null ? void 0 : _a2.includes(l.value));
40606
- });
40607
- }
40608
- return arr;
40609
- });
40610
- if (props.dictType) {
40611
- fetchDict();
40612
- }
40613
- watch(
40614
- () => dictMap2.value,
40615
- () => {
40616
- if (dictMapModel.value && typeof dictMapModel.value === "object") {
40617
- for (const key in dictMap2.value) {
40618
- dictMapModel.value[key] = dictMap2.value;
40619
- }
40620
- }
40621
- }
40622
- );
40623
- return (_ctx, _cache) => {
40624
- const _component_a_select = Select;
40625
- return openBlock(), createBlock(_component_a_select, mergeProps({
40626
- class: "dict-select",
40627
- placeholder: _ctx.$t("uc_common.plsSelect"),
40628
- showSearch: false,
40629
- options: dictList.value,
40630
- dropdownMatchSelectWidth: false
40631
- }, _ctx.$attrs), null, 16, ["placeholder", "options"]);
40632
- };
40633
- }
40634
- });
40635
- const DictSelect_vue_vue_type_style_index_0_scoped_18891c06_lang = "";
40636
- const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-18891c06"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/DictSelect.vue"]]);
40637
- const _hoisted_1$6 = { class: "uc-pro-footer-toolbar" };
40638
- const _hoisted_2$2 = { style: { "float": "left" } };
40639
- const _hoisted_3$2 = { style: { "text-align": "center" } };
40640
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
40641
- ...{
40642
- name: "FooterToolBar"
40643
- },
40644
- __name: "FooterToolBar",
40645
- props: {
40646
- prefixCls: {
40647
- type: String,
40648
- default: "uc-pro-footer-toolbar"
40649
- },
40650
- extra: {
40651
- type: [String, Object],
40652
- default: ""
40653
- }
40654
- },
40655
- setup(__props) {
40656
- const props = __props;
40657
- return (_ctx, _cache) => {
40658
- return openBlock(), createElementBlock("div", _hoisted_1$6, [
40659
- createElementVNode("div", _hoisted_2$2, [
40660
- renderSlot(_ctx.$slots, "extra", {}, () => [
40661
- createTextVNode(toDisplayString(props.extra), 1)
40662
- ], true)
40663
- ]),
40664
- createElementVNode("div", _hoisted_3$2, [
40665
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
40666
- ])
40667
- ]);
40668
- };
40669
- }
40670
- });
40671
- const FooterToolBar_vue_vue_type_style_index_0_scoped_040ae207_lang = "";
40672
- const FooterToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-040ae207"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/FooterToolbar/FooterToolBar.vue"]]);
40673
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
40674
40560
  __name: "TimeZone",
40675
40561
  props: {
40676
40562
  mode: {
@@ -40750,8 +40636,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
40750
40636
  };
40751
40637
  }
40752
40638
  });
40753
- const TimeZone = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/TimeZone.vue"]]);
40754
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
40639
+ const TimeZone = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/TimeZone.vue"]]);
40640
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
40755
40641
  __name: "LangCombo",
40756
40642
  props: {
40757
40643
  mode: {
@@ -40831,8 +40717,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
40831
40717
  };
40832
40718
  }
40833
40719
  });
40834
- const LangCombo = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/LangCombo.vue"]]);
40835
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
40720
+ const LangCombo = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/LangCombo.vue"]]);
40721
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
40836
40722
  __name: "RegionSelect",
40837
40723
  props: {
40838
40724
  modelValue: {
@@ -40920,8 +40806,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
40920
40806
  };
40921
40807
  }
40922
40808
  });
40923
- const RegionSelect = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/RegionSelect.vue"]]);
40924
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
40809
+ const RegionSelect = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/RegionSelect.vue"]]);
40810
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
40925
40811
  __name: "index",
40926
40812
  props: {
40927
40813
  className: {
@@ -40983,7 +40869,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
40983
40869
  }
40984
40870
  });
40985
40871
  const index_vue_vue_type_style_index_0_scoped_ce85d961_lang = "";
40986
- const PhTip = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-ce85d961"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/PlaceholderTip/index.vue"]]);
40872
+ const PhTip = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-ce85d961"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/PlaceholderTip/index.vue"]]);
40987
40873
  function resetPassword(params) {
40988
40874
  return handleRespPost({
40989
40875
  url: "/api/sys/org/resetpwd",
@@ -41033,7 +40919,7 @@ function orgSwitchStatus(params) {
41033
40919
  data: params
41034
40920
  });
41035
40921
  }
41036
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
40922
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
41037
40923
  __name: "OrgEdit",
41038
40924
  props: {
41039
40925
  params: {
@@ -41322,12 +41208,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
41322
41208
  }, {
41323
41209
  default: withCtx(() => [
41324
41210
  createVNode(_component_a_form_item, {
41325
- label: _ctx.$t("uc_user.mobile"),
41211
+ label: _ctx.$t("uc_org.mobile"),
41326
41212
  name: "mobile"
41327
41213
  }, {
41328
41214
  default: withCtx(() => [
41329
41215
  createVNode(_component_a_input, {
41330
- placeholder: _ctx.$t("uc_user.mobile"),
41216
+ placeholder: _ctx.$t("uc_org.mobile"),
41331
41217
  disabled: __props.params.opType == "2",
41332
41218
  value: form.mobile,
41333
41219
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.mobile = $event)
@@ -41409,7 +41295,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
41409
41295
  name: "orgType"
41410
41296
  }, {
41411
41297
  default: withCtx(() => [
41412
- createVNode(__unplugin_components_8, {
41298
+ createVNode(DictEx, {
41413
41299
  type: "ORG_TYPE",
41414
41300
  placeholder: _ctx.$t("uc_org.org_type_placeholder"),
41415
41301
  value: form.orgType,
@@ -41433,7 +41319,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
41433
41319
  name: "industryCode"
41434
41320
  }, {
41435
41321
  default: withCtx(() => [
41436
- createVNode(__unplugin_components_8, {
41322
+ createVNode(DictEx, {
41437
41323
  type: "INDUSTRY_CODE",
41438
41324
  placeholder: _ctx.$t("uc_org.industry_placeholder"),
41439
41325
  value: form.industryCode,
@@ -41510,7 +41396,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
41510
41396
  name: "dateFormat"
41511
41397
  }, {
41512
41398
  default: withCtx(() => [
41513
- createVNode(__unplugin_components_8, {
41399
+ createVNode(DictEx, {
41514
41400
  type: "DATE_FORMAT",
41515
41401
  disabled: true,
41516
41402
  value: form.dateFormat,
@@ -41686,9 +41572,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
41686
41572
  }
41687
41573
  });
41688
41574
  const OrgEdit_vue_vue_type_style_index_0_scoped_bc1e3beb_lang = "";
41689
- const OrgEdit = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-bc1e3beb"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/org/OrgEdit.vue"]]);
41575
+ const OrgEdit = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-bc1e3beb"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/org/OrgEdit.vue"]]);
41690
41576
  const _hoisted_1$5 = { class: "rwd" };
41691
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
41577
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
41692
41578
  __name: "ResetPwdModal",
41693
41579
  props: {
41694
41580
  params: {
@@ -41751,19 +41637,39 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
41751
41637
  const _component_a_input = Input;
41752
41638
  const _component_a_form_item = FormItem;
41753
41639
  const _component_a_form = Form;
41640
+ const _component_a_button = Button$1;
41754
41641
  const _component_a_modal = Modal$1;
41755
41642
  return openBlock(), createElementBlock("div", _hoisted_1$5, [
41756
41643
  createVNode(_component_a_modal, {
41757
41644
  class: "custom-org-modal",
41758
- onOk: onSubmit,
41759
- onCancel,
41760
41645
  width: 352,
41761
41646
  open: visible.value,
41762
41647
  "onUpdate:open": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
41763
41648
  style: { "top": "280px" },
41764
- title: _ctx.$t("resetPwd"),
41649
+ title: _ctx.$t("uc_org.resetPwd"),
41765
41650
  destroyOnClose: destroyOnClose.value
41766
41651
  }, {
41652
+ footer: withCtx(() => [
41653
+ createVNode(_component_a_button, {
41654
+ key: "back",
41655
+ onClick: onCancel
41656
+ }, {
41657
+ default: withCtx(() => [
41658
+ createTextVNode(toDisplayString(_ctx.$t("uc_common.btnCancel")), 1)
41659
+ ]),
41660
+ _: 1
41661
+ }),
41662
+ createVNode(_component_a_button, {
41663
+ key: "submit",
41664
+ type: "primary",
41665
+ onClick: onSubmit
41666
+ }, {
41667
+ default: withCtx(() => [
41668
+ createTextVNode(toDisplayString(_ctx.$t("uc_common.btnSubmit")), 1)
41669
+ ]),
41670
+ _: 1
41671
+ })
41672
+ ]),
41767
41673
  default: withCtx(() => [
41768
41674
  createVNode(_component_a_form, {
41769
41675
  model: form,
@@ -41818,7 +41724,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
41818
41724
  }
41819
41725
  });
41820
41726
  const ResetPwdModal_vue_vue_type_style_index_0_lang = "";
41821
- const ResetPwdModal = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/org/ResetPwdModal.vue"]]);
41727
+ const ResetPwdModal = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/org/ResetPwdModal.vue"]]);
41822
41728
  const OrgIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAD/klEQVRYR8WXfWiVZRTAf+e9mzp13r03LZM+wA8kh62oJAxLDSIsRcQijf6wtiAKyllTwmh/jNim80YRBJtBREZGSikiiLmK/FqQ2yD6mFNhZvO63X2oc9t93yee++7j7t773ve9V6Hnv3uf85zze885z3nOEXwu9cms6QzEVoOsBBYjah5QNHK8ByVngVZQP1CQd0Bej1z1o1q8hFRtcB5GYBvCBmCal/zI/jUUX2Fb1VLRq8FclyuA2kUBtlmJsBkk36fhJDE1jCLM1ej7UsmNdDrSAjhfbexD5P7cDCdzqBZse106b6QAqNqiBwgYh4E7XI3nT4NH3oQFz8LBTdD1px/OTiz7aanoOZMoPAFAhYNzsQPH3Y0L3Pc8LNsO0+c4eg69CmcPw93L4PxRsIczwXRiWEtlc2/7qNAYgKpkCoXmSZCStBrmLIHlH8DsBydua4CiubB0G/S0Q+N70K4d6LZUM/3RR0dzYhygzqwG2ZpybOrtsLwKFq4DSZMyGmDmIljy1vjRCz9C47vQ9YcLhaqVLdG4rbjGeNIFjN9BJqWceKIKHnrN/YPSAWhpOwYtn8MvVTDYl5yVQ1j2Ip2UDsDOUD1CaVorT+6AkpedrX+a4HoE5q8aF00GuNwKRsDxil5NH8PPlamqFQ3ydneZqI9CM4hxCcVUT4Cvn4GLJ6G8yx2gvsTxa2mzI9P8GRx9J53qAfKZLWqnuQGRPa4+TvTA+WNw7V8o1kVxZCV74MxuEANKNnkBgK1elIzu1yoSAU6FnTu/6lN3gNMfOsmq60RmD+jd3aLqQk3Aw748sHcNdByH8iu3IgRax6+i6swIyExfAEP9YA1BwW3uAN1tjgdM/VhmzAGd/hENMAyS5wtg/wtw8RS8cc4d4Ju1IAFY/60fgMHsABq3Q6QVnvvOA8CA9ft8A/gPweUWGOiCe1e4A/RecOpb8B4/ADoEWSSh7zogUDry6LnXgdEkDDUAr/jKgb8PQF/HxNKcXAdOh5064Psa7jA3YsiXvgB+q4doG6ysuTWFSHQhqjaD5MsloCAtRGIh2rsaOk541wGtqMxHKR5WdzqPUV2oXlfvFICNR8BcAJMLna3rV8C6AYV3jYvqx8mYBFOCzn/6MdIhmFXs/B7sh+hfsOepZPUNsqW7LPNz/NJPE4uOa5w8NvTN+eLxBCE1hFjFUt7XltiQ1IBU5Goju3NJDUk8DF4tWXYWMki7tGRxCM+m9KYpOrGsxxLb89za8tw4vNvyUb3/62AyBqFHM2XqZu7mRjMI05/laJboYbVrxnzsvK05DadGrEZftUwR85yOxzyix/PB2BpsWYHBYlR8PDcBC6QH4Rw2rRjqGJPzvvc7nv8HJ9O88//HRdEAAAAASUVORK5CYII=";
41823
41729
  const dictMap = {};
41824
41730
  async function getDictListByType(curType) {
@@ -41858,8 +41764,157 @@ function useDistByType(type) {
41858
41764
  };
41859
41765
  return { getDictListByType, getLabel };
41860
41766
  }
41767
+ const dictCache = {};
41768
+ function useDict(type, opts = { immediate: true }) {
41769
+ const i18nRes = useI18n();
41770
+ const { t: t2 } = i18nRes;
41771
+ const resultMap = ref({});
41772
+ const typeList = [].concat(type);
41773
+ function fetchDict() {
41774
+ const reqs = typeList.map((typeItem) => {
41775
+ const cacheObj = dictCache[typeItem];
41776
+ if (isPromise(cacheObj)) {
41777
+ return cacheObj;
41778
+ } else if (cacheObj) {
41779
+ return Promise.resolve([typeItem, cacheObj]);
41780
+ }
41781
+ const req = handleRespPost({
41782
+ method: "get",
41783
+ url: "/api/sys/dictionary/public-dict-combo-ex",
41784
+ params: {
41785
+ tableType: typeItem
41786
+ }
41787
+ }).then((res) => {
41788
+ dictCache[typeItem] = res;
41789
+ return [typeItem, res];
41790
+ });
41791
+ dictCache[typeItem] = req;
41792
+ return req;
41793
+ });
41794
+ return Promise.all(reqs).then((values2) => {
41795
+ values2.forEach((pair) => {
41796
+ const [typeItem, val] = pair;
41797
+ if (val && val.code === 0) {
41798
+ resultMap.value[typeItem] = val.result;
41799
+ }
41800
+ });
41801
+ });
41802
+ }
41803
+ watchEffect(() => {
41804
+ const typeMap = resultMap.value;
41805
+ const typeKeys = Object.keys(typeMap);
41806
+ typeKeys.forEach((typeKey) => {
41807
+ const resItem = typeMap[typeKey];
41808
+ for (const resKey in resItem) {
41809
+ const transKey = `dct.${typeKey}${resKey}`;
41810
+ const transRes = t2(transKey);
41811
+ resItem[resKey].text = transRes !== transKey ? transRes : resItem[resKey].text;
41812
+ }
41813
+ });
41814
+ });
41815
+ if (opts.immediate) {
41816
+ fetchDict();
41817
+ }
41818
+ function getDictLabel(dictType, value) {
41819
+ const curDictMap = resultMap.value[dictType];
41820
+ if (curDictMap && value) {
41821
+ const obj = curDictMap[value];
41822
+ return obj && obj.text ? obj.text : "-";
41823
+ }
41824
+ return "-";
41825
+ }
41826
+ function toList(dictType) {
41827
+ const curDictMap = resultMap.value[dictType];
41828
+ if (curDictMap) {
41829
+ const keys2 = Object.keys(curDictMap);
41830
+ return keys2.map((key) => {
41831
+ return {
41832
+ label: curDictMap[key].text,
41833
+ value: key
41834
+ };
41835
+ });
41836
+ }
41837
+ return [];
41838
+ }
41839
+ return [resultMap, { fetchDict, toList, getDictLabel }];
41840
+ }
41841
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
41842
+ ...{
41843
+ inheritAttrs: false
41844
+ },
41845
+ __name: "DictSelect",
41846
+ props: /* @__PURE__ */ mergeModels({
41847
+ dictType: {
41848
+ type: String,
41849
+ default: ""
41850
+ },
41851
+ include: {
41852
+ type: [Array, String]
41853
+ },
41854
+ exclude: {
41855
+ type: Array
41856
+ },
41857
+ sort: {
41858
+ type: Boolean
41859
+ }
41860
+ }, {
41861
+ "dictMap": { type: Object },
41862
+ "dictMapModifiers": {}
41863
+ }),
41864
+ emits: ["update:dictMap"],
41865
+ setup(__props) {
41866
+ const props = __props;
41867
+ const dictMapModel = useModel(__props, "dictMap");
41868
+ const [dictMap2, { fetchDict, toList }] = useDict(props.dictType, {
41869
+ immediate: false
41870
+ });
41871
+ const dictList = computed(() => {
41872
+ var _a;
41873
+ const arr = toList(props.dictType);
41874
+ if (props.sort) {
41875
+ arr.sort((a, b) => parseFloat(a.value) - parseFloat(b.value));
41876
+ }
41877
+ if (props.include) {
41878
+ const includeArr = typeof props.include === "string" ? props.include.split(",") : props.include;
41879
+ return arr.filter((l) => includeArr.includes(l.value));
41880
+ }
41881
+ if ((_a = props.exclude) == null ? void 0 : _a.length) {
41882
+ return arr.filter((l) => {
41883
+ var _a2;
41884
+ return !((_a2 = props.exclude) == null ? void 0 : _a2.includes(l.value));
41885
+ });
41886
+ }
41887
+ return arr;
41888
+ });
41889
+ if (props.dictType) {
41890
+ fetchDict();
41891
+ }
41892
+ watch(
41893
+ () => dictMap2.value,
41894
+ () => {
41895
+ if (dictMapModel.value && typeof dictMapModel.value === "object") {
41896
+ for (const key in dictMap2.value) {
41897
+ dictMapModel.value[key] = dictMap2.value;
41898
+ }
41899
+ }
41900
+ }
41901
+ );
41902
+ return (_ctx, _cache) => {
41903
+ const _component_a_select = Select;
41904
+ return openBlock(), createBlock(_component_a_select, mergeProps({
41905
+ class: "dict-select",
41906
+ placeholder: _ctx.$t("uc_common.plsSelect"),
41907
+ showSearch: false,
41908
+ options: dictList.value,
41909
+ dropdownMatchSelectWidth: false
41910
+ }, _ctx.$attrs, { allowClear: "" }), null, 16, ["placeholder", "options"]);
41911
+ };
41912
+ }
41913
+ });
41914
+ const DictSelect_vue_vue_type_style_index_0_scoped_18891c06_lang = "";
41915
+ const DictSelect = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-18891c06"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/DictSelect.vue"]]);
41861
41916
  const _hoisted_1$4 = { class: "add-menu" };
41862
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
41917
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
41863
41918
  __name: "AddOrg",
41864
41919
  props: {
41865
41920
  params: {
@@ -41889,9 +41944,22 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
41889
41944
  mobile: "",
41890
41945
  email: "",
41891
41946
  equiNum: "",
41892
- userNum: ""
41947
+ userNum: "",
41948
+ userCode: ""
41893
41949
  });
41894
41950
  const defaultForm = reactive({});
41951
+ const validateMaxUser = (_, value) => {
41952
+ if ((value < 1 || value > 99999999) && value) {
41953
+ return Promise.reject(t2("uc_org.userMaxNum"));
41954
+ }
41955
+ return Promise.resolve();
41956
+ };
41957
+ const validateMaxOperator = (_, value) => {
41958
+ if ((value < 1 || value > 99999999) && value) {
41959
+ return Promise.reject(t2("uc_org.userMaxNum"));
41960
+ }
41961
+ return Promise.resolve();
41962
+ };
41895
41963
  const initData = async () => {
41896
41964
  loading.value = true;
41897
41965
  const { result } = await orgUpdateLoad({
@@ -41909,7 +41977,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
41909
41977
  industryCode: [result.industryCode],
41910
41978
  userName: result.sysUser.userId,
41911
41979
  monetaryyDeci: result.monetaryyDeci ? result.monetaryyDeci : 2,
41912
- equiNum: result.equiNum
41980
+ equiNum: result.equiNum,
41981
+ userCode: result.sysUser.userCode
41913
41982
  });
41914
41983
  Object.assign(form, defaultForm);
41915
41984
  };
@@ -42050,8 +42119,25 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42050
42119
  userNum: [
42051
42120
  {
42052
42121
  required: true,
42053
- message: t2("uc_org.user_num_msg1"),
42054
- trigger: "change"
42122
+ message: t2("uc_org.userMaxNum"),
42123
+ trigger: ["blur", "change"]
42124
+ },
42125
+ {
42126
+ validator: validateMaxUser,
42127
+ message: t2("uc_org.userMaxNum"),
42128
+ trigger: ["blur", "change"]
42129
+ }
42130
+ ],
42131
+ equiNum: [
42132
+ {
42133
+ required: true,
42134
+ message: t2("uc_org.userMaxNum"),
42135
+ trigger: ["blur", "change"]
42136
+ },
42137
+ {
42138
+ validator: validateMaxOperator,
42139
+ message: t2("uc_org.userMaxNum"),
42140
+ trigger: ["blur", "change"]
42055
42141
  }
42056
42142
  ]
42057
42143
  };
@@ -42078,7 +42164,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42078
42164
  rules
42079
42165
  }, {
42080
42166
  default: withCtx(() => [
42081
- createVNode(_component_a_form_item, {
42167
+ props.params.opType == "1" ? (openBlock(), createBlock(_component_a_form_item, {
42168
+ key: 0,
42082
42169
  label: _ctx.$t("uc_org.orgName"),
42083
42170
  name: "orgName"
42084
42171
  }, {
@@ -42091,7 +42178,53 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42091
42178
  }, null, 8, ["placeholder", "value"])
42092
42179
  ]),
42093
42180
  _: 1
42094
- }, 8, ["label"]),
42181
+ }, 8, ["label"])) : createCommentVNode("v-if", true),
42182
+ props.params.opType == "2" ? (openBlock(), createBlock(_component_a_row, {
42183
+ key: 1,
42184
+ gutter: 16
42185
+ }, {
42186
+ default: withCtx(() => [
42187
+ createVNode(_component_a_col, { span: 12 }, {
42188
+ default: withCtx(() => [
42189
+ createVNode(_component_a_form_item, {
42190
+ label: _ctx.$t("uc_org.id"),
42191
+ name: "orgId"
42192
+ }, {
42193
+ default: withCtx(() => [
42194
+ createVNode(_component_a_input, {
42195
+ placeholder: _ctx.$t("uc_common.plsSelect"),
42196
+ value: form.orgId,
42197
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.orgId = $event),
42198
+ disabled: ""
42199
+ }, null, 8, ["placeholder", "value"])
42200
+ ]),
42201
+ _: 1
42202
+ }, 8, ["label"])
42203
+ ]),
42204
+ _: 1
42205
+ }),
42206
+ createVNode(_component_a_col, { span: 12 }, {
42207
+ default: withCtx(() => [
42208
+ createVNode(_component_a_form_item, {
42209
+ label: _ctx.$t("uc_org.orgName"),
42210
+ name: "orgName"
42211
+ }, {
42212
+ default: withCtx(() => [
42213
+ createVNode(_component_a_input, {
42214
+ placeholder: _ctx.$t("uc_common.plsSelect"),
42215
+ value: form.orgName,
42216
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.orgName = $event),
42217
+ required: ""
42218
+ }, null, 8, ["placeholder", "value"])
42219
+ ]),
42220
+ _: 1
42221
+ }, 8, ["label"])
42222
+ ]),
42223
+ _: 1
42224
+ })
42225
+ ]),
42226
+ _: 1
42227
+ })) : createCommentVNode("v-if", true),
42095
42228
  createVNode(_component_a_row, { gutter: 16 }, {
42096
42229
  default: withCtx(() => [
42097
42230
  createVNode(_component_a_col, { span: 12 }, {
@@ -42101,11 +42234,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42101
42234
  name: "orgType"
42102
42235
  }, {
42103
42236
  default: withCtx(() => [
42104
- createVNode(__unplugin_components_8, {
42237
+ createVNode(DictEx, {
42105
42238
  type: "ORG_TYPE",
42106
42239
  placeholder: _ctx.$t("uc_common.plsSelect"),
42107
42240
  value: form.orgType,
42108
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.orgType = $event)
42241
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => form.orgType = $event)
42109
42242
  }, null, 8, ["placeholder", "value"])
42110
42243
  ]),
42111
42244
  _: 1
@@ -42120,11 +42253,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42120
42253
  name: "industryCode"
42121
42254
  }, {
42122
42255
  default: withCtx(() => [
42123
- createVNode(__unplugin_components_8, {
42256
+ createVNode(DictEx, {
42124
42257
  type: "INDUSTRY_CODE",
42125
42258
  placeholder: _ctx.$t("uc_common.plsSelect"),
42126
42259
  value: form.industryCode,
42127
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.industryCode = $event)
42260
+ "onUpdate:value": _cache[4] || (_cache[4] = ($event) => form.industryCode = $event)
42128
42261
  }, null, 8, ["placeholder", "value"])
42129
42262
  ]),
42130
42263
  _: 1
@@ -42162,7 +42295,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42162
42295
  createVNode(LangCombo, {
42163
42296
  placeholder: _ctx.$t("uc_common.plsEnter"),
42164
42297
  value: form.langId,
42165
- "onUpdate:value": _cache[3] || (_cache[3] = ($event) => form.langId = $event)
42298
+ "onUpdate:value": _cache[5] || (_cache[5] = ($event) => form.langId = $event)
42166
42299
  }, null, 8, ["placeholder", "value"])
42167
42300
  ]),
42168
42301
  _: 1
@@ -42173,21 +42306,18 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42173
42306
  createVNode(_component_a_col, { span: 12 }, {
42174
42307
  default: withCtx(() => [
42175
42308
  createVNode(_component_a_form_item, {
42176
- label: _ctx.$t("uc_org.monery_unit"),
42309
+ label: _ctx.$t("uc_org.money_unit"),
42177
42310
  name: "monetaryyUnit"
42178
42311
  }, {
42179
42312
  default: withCtx(() => [
42180
42313
  createVNode(PhTip, { className: "tip-wrapper" }, {
42181
- title: withCtx(() => [
42182
- createTextVNode(toDisplayString(_ctx.$t("uc_org.money_unit")), 1)
42183
- ]),
42184
42314
  default: withCtx(() => [
42185
42315
  createVNode(_component_a_input, {
42186
42316
  placeholder: _ctx.$t("uc_org.autoZone"),
42187
42317
  disabled: true,
42188
42318
  style: { "width": "100%" },
42189
42319
  value: form.monetaryyUnit,
42190
- "onUpdate:value": _cache[4] || (_cache[4] = ($event) => form.monetaryyUnit = $event)
42320
+ "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.monetaryyUnit = $event)
42191
42321
  }, null, 8, ["placeholder", "value"])
42192
42322
  ]),
42193
42323
  _: 1
@@ -42211,10 +42341,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42211
42341
  }, {
42212
42342
  default: withCtx(() => [
42213
42343
  createVNode(TimeZone, {
42214
- placeholder: _ctx.$t("uc_org.autoZone"),
42344
+ placeholder: _ctx.$t("uc_org.org_autoZone"),
42215
42345
  disabled: true,
42216
42346
  value: form.timezone,
42217
- "onUpdate:value": _cache[5] || (_cache[5] = ($event) => form.timezone = $event)
42347
+ "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.timezone = $event)
42218
42348
  }, null, 8, ["placeholder", "value"])
42219
42349
  ]),
42220
42350
  _: 1
@@ -42229,12 +42359,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42229
42359
  name: "dateFormat"
42230
42360
  }, {
42231
42361
  default: withCtx(() => [
42232
- createVNode(__unplugin_components_8, {
42362
+ createVNode(DictEx, {
42233
42363
  type: "DATE_FORMAT",
42234
42364
  disabled: true,
42235
42365
  value: form.dateFormat,
42236
- "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.dateFormat = $event),
42237
- placeholder: _ctx.$t("uc_org.autoZone")
42366
+ "onUpdate:value": _cache[8] || (_cache[8] = ($event) => form.dateFormat = $event),
42367
+ placeholder: _ctx.$t("uc_org.org_autoZone")
42238
42368
  }, null, 8, ["value", "placeholder"])
42239
42369
  ]),
42240
42370
  _: 1
@@ -42259,7 +42389,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42259
42389
  placeholder: _ctx.$t("uc_common.plsEnter"),
42260
42390
  min: 1,
42261
42391
  value: form.userNum,
42262
- "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.userNum = $event)
42392
+ "onUpdate:value": _cache[9] || (_cache[9] = ($event) => form.userNum = $event)
42263
42393
  }, null, 8, ["placeholder", "value"])
42264
42394
  ]),
42265
42395
  _: 1
@@ -42277,7 +42407,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42277
42407
  createVNode(_component_a_input, {
42278
42408
  placeholder: _ctx.$t("uc_common.plsEnter"),
42279
42409
  value: form.equiNum,
42280
- "onUpdate:value": _cache[8] || (_cache[8] = ($event) => form.equiNum = $event),
42410
+ "onUpdate:value": _cache[10] || (_cache[10] = ($event) => form.equiNum = $event),
42281
42411
  required: ""
42282
42412
  }, null, 8, ["placeholder", "value"])
42283
42413
  ]),
@@ -42296,14 +42426,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42296
42426
  createVNode(_component_a_col, { span: 12 }, {
42297
42427
  default: withCtx(() => [
42298
42428
  createVNode(_component_a_form_item, {
42299
- label: _ctx.$t("uc_org.mobile"),
42429
+ label: _ctx.$t("uc_org.org_userMobile"),
42300
42430
  name: "mobile"
42301
42431
  }, {
42302
42432
  default: withCtx(() => [
42303
42433
  createVNode(_component_a_input, {
42304
42434
  placeholder: _ctx.$t("uc_common.plsEnter"),
42305
42435
  value: form.mobile,
42306
- "onUpdate:value": _cache[9] || (_cache[9] = ($event) => form.mobile = $event)
42436
+ "onUpdate:value": _cache[11] || (_cache[11] = ($event) => form.mobile = $event)
42307
42437
  }, null, 8, ["placeholder", "value"])
42308
42438
  ]),
42309
42439
  _: 1
@@ -42314,14 +42444,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42314
42444
  createVNode(_component_a_col, { span: 12 }, {
42315
42445
  default: withCtx(() => [
42316
42446
  createVNode(_component_a_form_item, {
42317
- label: _ctx.$t("uc_org.email"),
42447
+ label: _ctx.$t("uc_org.org_userEmail"),
42318
42448
  name: "email"
42319
42449
  }, {
42320
42450
  default: withCtx(() => [
42321
42451
  createVNode(_component_a_input, {
42322
42452
  placeholder: _ctx.$t("uc_common.plsEnter"),
42323
42453
  value: form.email,
42324
- "onUpdate:value": _cache[10] || (_cache[10] = ($event) => form.email = $event)
42454
+ "onUpdate:value": _cache[12] || (_cache[12] = ($event) => form.email = $event)
42325
42455
  }, null, 8, ["placeholder", "value"])
42326
42456
  ]),
42327
42457
  _: 1
@@ -42331,7 +42461,33 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42331
42461
  })
42332
42462
  ]),
42333
42463
  _: 1
42334
- })
42464
+ }),
42465
+ props.params.opType == "2" ? (openBlock(), createBlock(_component_a_row, {
42466
+ key: 2,
42467
+ gutter: 16
42468
+ }, {
42469
+ default: withCtx(() => [
42470
+ createVNode(_component_a_col, { span: 12 }, {
42471
+ default: withCtx(() => [
42472
+ createVNode(_component_a_form_item, {
42473
+ label: _ctx.$t("uc_org.org_userCode"),
42474
+ name: "userCode"
42475
+ }, {
42476
+ default: withCtx(() => [
42477
+ createVNode(_component_a_input, {
42478
+ placeholder: _ctx.$t("uc_common.plsEnter"),
42479
+ value: form.userCode,
42480
+ "onUpdate:value": _cache[13] || (_cache[13] = ($event) => form.userCode = $event)
42481
+ }, null, 8, ["placeholder", "value"])
42482
+ ]),
42483
+ _: 1
42484
+ }, 8, ["label"])
42485
+ ]),
42486
+ _: 1
42487
+ })
42488
+ ]),
42489
+ _: 1
42490
+ })) : createCommentVNode("v-if", true)
42335
42491
  ]),
42336
42492
  _: 1
42337
42493
  }, 8, ["model"])), [
@@ -42362,7 +42518,70 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42362
42518
  }
42363
42519
  });
42364
42520
  const AddOrg_vue_vue_type_style_index_0_scoped_91fe90e1_lang = "";
42365
- const AddOrg = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-91fe90e1"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/org/AddOrg.vue"]]);
42521
+ const AddOrg = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-91fe90e1"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/org/AddOrg.vue"]]);
42522
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
42523
+ __name: "DictLabel",
42524
+ props: {
42525
+ type: {
42526
+ type: String,
42527
+ default: ""
42528
+ },
42529
+ value: [Number, String],
42530
+ style: {
42531
+ type: Object,
42532
+ default() {
42533
+ return {};
42534
+ }
42535
+ },
42536
+ showTooltip: {
42537
+ type: Boolean,
42538
+ default: false
42539
+ }
42540
+ },
42541
+ setup(__props) {
42542
+ const props = __props;
42543
+ const [curDictMap] = useDict(props.type, {
42544
+ immediate: true
42545
+ });
42546
+ const label = ref();
42547
+ watchEffect(() => {
42548
+ let str = "-";
42549
+ const val = curDictMap.value[props.type];
42550
+ if (val && !isNullOrUndef(props.value)) {
42551
+ if (isString$a(props.value)) {
42552
+ const arr = props.value.split(",").filter((l) => l);
42553
+ str = arr.map((l) => {
42554
+ var _a;
42555
+ return (_a = val[l]) == null ? void 0 : _a.text;
42556
+ }).join("\u3001") || "-";
42557
+ } else {
42558
+ const obj = val[props.value];
42559
+ str = (obj == null ? void 0 : obj.text) || "-";
42560
+ }
42561
+ }
42562
+ label.value = str;
42563
+ });
42564
+ return (_ctx, _cache) => {
42565
+ const _component_a_tooltip = Tooltip;
42566
+ return __props.showTooltip ? (openBlock(), createBlock(_component_a_tooltip, {
42567
+ key: 0,
42568
+ placement: "topLeft",
42569
+ title: label.value
42570
+ }, {
42571
+ default: withCtx(() => [
42572
+ createElementVNode("span", {
42573
+ style: normalizeStyle(__props.style)
42574
+ }, toDisplayString(label.value), 5)
42575
+ ]),
42576
+ _: 1
42577
+ }, 8, ["title"])) : (openBlock(), createElementBlock("span", {
42578
+ key: 1,
42579
+ style: normalizeStyle(__props.style)
42580
+ }, toDisplayString(label.value), 5));
42581
+ };
42582
+ }
42583
+ });
42584
+ const __unplugin_components_1 = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/DictLabel.vue"]]);
42366
42585
  const _hoisted_1$3 = { class: "add-menu" };
42367
42586
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
42368
42587
  __name: "OrgDetail",
@@ -42376,17 +42595,14 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
42376
42595
  setup(__props, { emit: __emit }) {
42377
42596
  const emit = __emit;
42378
42597
  const props = __props;
42379
- ref(null);
42380
- computed(() => {
42381
- return props.data !== null;
42382
- });
42598
+ const LangList = ref(null);
42383
42599
  const info = ref({
42384
42600
  orgId: props.data.orgId || "-",
42385
42601
  orgName: props.data.orgName || "-",
42386
42602
  orgType: props.data.orgType || "-",
42387
42603
  industryCode: props.data.industryCode || "-",
42388
42604
  zoneCode: props.data.zoneCode || "-",
42389
- langId: props.data.langId || "-",
42605
+ langId: "-",
42390
42606
  monetaryyUnit: props.data.monetaryyUnit || "-",
42391
42607
  timezone: props.data.timezone || "-",
42392
42608
  dateFormat: props.data.dateFormat || "-",
@@ -42399,20 +42615,22 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
42399
42615
  const onCancel = () => {
42400
42616
  emit("cancel");
42401
42617
  };
42402
- watchEffect(async () => {
42403
- if (props) {
42404
- await getUserDetail({ userId: props == null ? void 0 : props.data.userId });
42405
- }
42618
+ onMounted(async () => {
42619
+ const langInfo = await getLangCombo({});
42620
+ LangList.value = langInfo.result || {};
42621
+ info.value.langId = LangList.value[props.data.langId] || "-";
42406
42622
  });
42407
42623
  return (_ctx, _cache) => {
42408
42624
  const _component_a_descriptions_item = DescriptionsItem;
42625
+ const _component_dict_label = __unplugin_components_1;
42409
42626
  const _component_a_descriptions = Descriptions;
42410
42627
  const _component_a_button = Button$1;
42411
42628
  const _component_a_space = Space;
42412
42629
  return openBlock(), createElementBlock("div", _hoisted_1$3, [
42413
42630
  createVNode(_component_a_descriptions, {
42414
42631
  bordered: "",
42415
- column: 2
42632
+ column: 2,
42633
+ class: "descriptions-detail"
42416
42634
  }, {
42417
42635
  default: withCtx(() => [
42418
42636
  createVNode(_component_a_descriptions_item, { span: 1 }, {
@@ -42438,7 +42656,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
42438
42656
  createTextVNode(toDisplayString(_ctx.$t("uc_org.orgType")), 1)
42439
42657
  ]),
42440
42658
  default: withCtx(() => [
42441
- createTextVNode(" " + toDisplayString(info.value.orgType), 1)
42659
+ createVNode(_component_dict_label, {
42660
+ type: "ORG_TYPE",
42661
+ placeholder: _ctx.$t("uc_common.plsSelect"),
42662
+ value: info.value.orgType,
42663
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => info.value.orgType = $event)
42664
+ }, null, 8, ["placeholder", "value"])
42442
42665
  ]),
42443
42666
  _: 1
42444
42667
  }),
@@ -42447,7 +42670,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
42447
42670
  createTextVNode(toDisplayString(_ctx.$t("uc_org.industry")), 1)
42448
42671
  ]),
42449
42672
  default: withCtx(() => [
42450
- createTextVNode(" " + toDisplayString(info.value.industryCode), 1)
42673
+ createVNode(_component_dict_label, {
42674
+ type: "INDUSTRY_CODE",
42675
+ placeholder: _ctx.$t("uc_common.plsSelect"),
42676
+ value: info.value.industryCode,
42677
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => info.value.industryCode = $event)
42678
+ }, null, 8, ["placeholder", "value"])
42451
42679
  ]),
42452
42680
  _: 1
42453
42681
  }),
@@ -42578,7 +42806,7 @@ function mitt(n) {
42578
42806
  } };
42579
42807
  }
42580
42808
  const bus = mitt();
42581
- const _hoisted_1$2 = { class: "addorg" };
42809
+ const _hoisted_1$2 = { class: "org-box" };
42582
42810
  const _hoisted_2$1 = { bordered: false };
42583
42811
  const _hoisted_3$1 = {
42584
42812
  class: "table-page-search-wrapper",
@@ -42595,10 +42823,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
42595
42823
  const userStore = useUserStore();
42596
42824
  useInitUserinfo();
42597
42825
  const modalStore = useModalStore();
42598
- const dictUserStatusRef = ref();
42599
42826
  const prefixCls = "uc";
42600
42827
  const { t: t2 } = useI18n();
42601
- const { getLabel } = useDistByType("CMS_STATUS");
42828
+ useDistByType("CMS_STATUS");
42602
42829
  const tableRef = ref();
42603
42830
  const showResetPwdModal = ref(false);
42604
42831
  const isEdit = ref(false);
@@ -42654,19 +42881,19 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
42654
42881
  const onReset = () => {
42655
42882
  Object.assign(queryParam, {
42656
42883
  orgName: "",
42657
- orgStatus: ""
42884
+ orgStatus: null
42658
42885
  });
42886
+ tableRef.value.refresh();
42659
42887
  };
42660
42888
  const onAdd = (row = null, opType = "1") => {
42661
42889
  modalStore.drawerComp({
42662
- title: t2("uc_fun.create_org"),
42890
+ title: opType == "1" ? t2("uc_org.createOrg") : t2("uc_org.editOrg"),
42663
42891
  comp: AddOrg,
42664
42892
  width: "528",
42665
42893
  props: {
42666
42894
  onOk: () => {
42667
42895
  try {
42668
42896
  if (opType == "1") {
42669
- message.success(t2("uc_org.createOrgSucc"));
42670
42897
  } else if (opType == "2") {
42671
42898
  message.success("uc_org.updateOrgSucc");
42672
42899
  }
@@ -42710,7 +42937,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
42710
42937
  title: t2("uc_org.deleteOrg"),
42711
42938
  okText: t2("uc_common.btnDelete"),
42712
42939
  cancelText: t2("uc_common.btnCancel"),
42713
- content: t2("deleteOrgNote"),
42940
+ content: t2("uc_org.deleteOrgNote"),
42714
42941
  icon: h(ExclamationCircleOutlined, { style: { color: "red" } }),
42715
42942
  okButtonProps: {
42716
42943
  danger: true
@@ -42765,7 +42992,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
42765
42992
  key: "userId"
42766
42993
  },
42767
42994
  {
42768
- title: t2("uc_org.mobile"),
42995
+ title: t2("uc_org.userMobile"),
42769
42996
  dataIndex: "mobile",
42770
42997
  width: "110px",
42771
42998
  key: "mobile"
@@ -42774,10 +43001,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
42774
43001
  title: t2("uc_org.user_status"),
42775
43002
  dataIndex: "orgStatus",
42776
43003
  width: "80px",
42777
- key: "orgStatus",
42778
- customRender: ({ record }) => {
42779
- return getLabel(record.orgStatus);
42780
- }
43004
+ key: "orgStatus"
42781
43005
  },
42782
43006
  {
42783
43007
  title: t2("uc_org.coperator"),
@@ -42789,14 +43013,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
42789
43013
  title: t2("uc_org.cdate"),
42790
43014
  dataIndex: "cdate",
42791
43015
  width: "160px",
42792
- key: "cdate",
42793
- sorter: (a, b) => {
42794
- const getTimeStamp = (timeStr) => {
42795
- const date = new Date(timeStr);
42796
- return isNaN(date.getTime()) ? -Infinity : date.getTime();
42797
- };
42798
- return getTimeStamp(a.cdate) - getTimeStamp(b.cdate);
42799
- }
43016
+ key: "cdate"
42800
43017
  },
42801
43018
  {
42802
43019
  title: t2("uc_org.action"),
@@ -42808,7 +43025,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
42808
43025
  return (_ctx, _cache) => {
42809
43026
  const _component_a_input = Input;
42810
43027
  const _component_a_form_item = FormItem;
42811
- const _component_DictSelect = __unplugin_components_2;
42812
43028
  const _component_uc_btn_search = resolveComponent("uc-btn-search");
42813
43029
  const _component_a_button = Button$1;
42814
43030
  const _component_FIBtnGroup = resolveComponent("FIBtnGroup");
@@ -42820,8 +43036,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
42820
43036
  const _component_a_divider = Divider;
42821
43037
  const _component_uc_btn_reset_pwd = resolveComponent("uc-btn-reset-pwd");
42822
43038
  const _component_uc_btn_remove = resolveComponent("uc-btn-remove");
42823
- const _component_a_card = Card;
42824
- const _component_dict_ex = __unplugin_components_8;
42825
43039
  const _component_a_config_provider = ConfigProvider$1;
42826
43040
  return openBlock(), createBlock(_component_a_config_provider, {
42827
43041
  locale: unref(antLocaleMap)[unref(userStore).userLanguage],
@@ -42832,70 +43046,65 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
42832
43046
  }, {
42833
43047
  default: withCtx(() => [
42834
43048
  createElementVNode("div", _hoisted_1$2, [
42835
- createVNode(_component_a_card, { bordered: false }, {
42836
- default: withCtx(() => [
42837
- withDirectives(createElementVNode("div", _hoisted_2$1, [
42838
- createElementVNode("div", null, [
42839
- createVNode(_component_a_form, {
42840
- model: queryParam,
42841
- ref: "formAddRef",
42842
- onFinish: _ctx.handleSubmitAdd,
42843
- layout: "vertical",
42844
- class: "inline-query-form clear-formctrl-lh"
43049
+ withDirectives(createElementVNode("div", _hoisted_2$1, [
43050
+ createElementVNode("div", null, [
43051
+ createVNode(_component_a_form, {
43052
+ model: queryParam,
43053
+ ref: "formAddRef",
43054
+ onFinish: _ctx.handleSubmitAdd,
43055
+ layout: "vertical",
43056
+ class: "inline-query-form clear-formctrl-lh"
43057
+ }, {
43058
+ default: withCtx(() => [
43059
+ createVNode(_component_a_form_item, {
43060
+ name: "orgName",
43061
+ label: _ctx.$t("uc_org.orgName")
42845
43062
  }, {
42846
43063
  default: withCtx(() => [
42847
- createVNode(_component_a_form_item, {
42848
- name: "orgName",
42849
- label: _ctx.$t("uc_org.orgName")
42850
- }, {
42851
- default: withCtx(() => [
42852
- createVNode(_component_a_input, {
42853
- placeholder: _ctx.$t("uc_common.plsSearch"),
42854
- ref: "inputSearch",
42855
- value: queryParam.orgName,
42856
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => queryParam.orgName = $event),
42857
- onClick: onSearch,
42858
- allowClear: "",
42859
- style: { "width": "200px", "margin-right": "16px" }
42860
- }, null, 8, ["placeholder", "value"])
42861
- ]),
42862
- _: 1
42863
- }, 8, ["label"]),
42864
- createVNode(_component_a_form_item, {
42865
- name: "orgStatus",
42866
- label: _ctx.$t("uc_org.status"),
42867
- style: { "width": "200px" }
42868
- }, {
42869
- default: withCtx(() => [
42870
- createVNode(_component_DictSelect, {
42871
- value: queryParam.orgStatus,
42872
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => queryParam.orgStatus = $event),
42873
- dictType: "CMS_STATUS"
42874
- }, null, 8, ["value"])
42875
- ]),
42876
- _: 1
42877
- }, 8, ["label"]),
42878
- createVNode(_component_a_form_item, {
42879
- label: " ",
42880
- style: { "margin-left": "16px" }
42881
- }, {
43064
+ createVNode(_component_a_input, {
43065
+ placeholder: _ctx.$t("uc_common.plsSearch"),
43066
+ ref: "inputSearch",
43067
+ value: queryParam.orgName,
43068
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => queryParam.orgName = $event),
43069
+ onClick: onSearch,
43070
+ allowClear: "",
43071
+ style: { "width": "200px", "margin-right": "16px" }
43072
+ }, null, 8, ["placeholder", "value"])
43073
+ ]),
43074
+ _: 1
43075
+ }, 8, ["label"]),
43076
+ createVNode(_component_a_form_item, {
43077
+ name: "orgStatus",
43078
+ label: _ctx.$t("uc_org.status"),
43079
+ style: { "width": "200px" }
43080
+ }, {
43081
+ default: withCtx(() => [
43082
+ createVNode(DictSelect, {
43083
+ value: queryParam.orgStatus,
43084
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => queryParam.orgStatus = $event),
43085
+ dictType: "CMS_STATUS"
43086
+ }, null, 8, ["value"])
43087
+ ]),
43088
+ _: 1
43089
+ }, 8, ["label"]),
43090
+ createVNode(_component_a_form_item, {
43091
+ label: " ",
43092
+ style: { "margin-left": "16px" }
43093
+ }, {
43094
+ default: withCtx(() => [
43095
+ createVNode(_component_FIBtnGroup, null, {
42882
43096
  default: withCtx(() => [
42883
- createVNode(_component_FIBtnGroup, null, {
43097
+ createVNode(_component_uc_btn_search, {
43098
+ onClick: handleRefreshTable,
43099
+ isWidth: true,
43100
+ showInput: false
43101
+ }),
43102
+ createVNode(_component_a_button, {
43103
+ onClick: onReset,
43104
+ style: { "margin-left": "8px" }
43105
+ }, {
42884
43106
  default: withCtx(() => [
42885
- createVNode(_component_uc_btn_search, {
42886
- onClick: handleRefreshTable,
42887
- isWidth: true,
42888
- showInput: false
42889
- }),
42890
- createVNode(_component_a_button, {
42891
- onClick: onReset,
42892
- style: { "margin-left": "8px" }
42893
- }, {
42894
- default: withCtx(() => [
42895
- createTextVNode(toDisplayString(_ctx.$t("uc_common.btnReset")), 1)
42896
- ]),
42897
- _: 1
42898
- })
43107
+ createTextVNode(toDisplayString(_ctx.$t("uc_common.btnReset")), 1)
42899
43108
  ]),
42900
43109
  _: 1
42901
43110
  })
@@ -42904,87 +43113,87 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
42904
43113
  })
42905
43114
  ]),
42906
43115
  _: 1
42907
- }, 8, ["model", "onFinish"])
42908
- ]),
42909
- createElementVNode("div", _hoisted_3$1, [
42910
- createVNode(_component_uc_btn_add, {
42911
- onClick: onAdd,
42912
- text: _ctx.$t("uc_org.createOrg"),
42913
- type: "primary",
42914
- showIcon: true
42915
- }, null, 8, ["text"])
43116
+ })
42916
43117
  ]),
42917
- createVNode(STable, {
42918
- ref_key: "tableRef",
42919
- ref: tableRef,
42920
- data: loadData,
42921
- rowKey: "cdate",
42922
- columns: columns.value,
42923
- scroll: { x: 1e3 }
42924
- }, {
42925
- bodyCell: withCtx(({ record, column }) => [
42926
- column.key === "orgId" ? (openBlock(), createElementBlock("span", _hoisted_4$1, [
42927
- createVNode(_component_a_button, {
42928
- type: "link",
42929
- onClick: ($event) => onDetail(record),
42930
- style: { "padding": "0" }
42931
- }, {
42932
- default: withCtx(() => [
42933
- createTextVNode(toDisplayString(record.orgId), 1)
42934
- ]),
42935
- _: 2
42936
- }, 1032, ["onClick"])
42937
- ])) : createCommentVNode("v-if", true),
42938
- column.key === "index1" ? (openBlock(), createElementBlock("img", {
42939
- key: 1,
42940
- src: unref(OrgIcon),
42941
- alt: "\u7EC4\u7EC7",
42942
- style: { "width": "24px", "height": "24px" }
42943
- }, null, 8, _hoisted_5$1)) : createCommentVNode("v-if", true),
42944
- column.key === "cdate" ? (openBlock(), createBlock(_component_uc_pick_label, {
42945
- key: 2,
42946
- defaultValue: record.cdate
42947
- }, null, 8, ["defaultValue"])) : createCommentVNode("v-if", true),
42948
- column.key === "userId" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
42949
- createTextVNode(toDisplayString(record.sysUser.userId), 1)
42950
- ], 64)) : createCommentVNode("v-if", true),
42951
- column.key === "mobile" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
42952
- createTextVNode(toDisplayString(record.sysUser.mobile), 1)
42953
- ], 64)) : createCommentVNode("v-if", true),
42954
- column.key === "orgStatus" ? (openBlock(), createElementBlock("span", _hoisted_6$1, [
42955
- createCommentVNode(' <span v-if="[0, 1].includes(Number(record.orgStatus))">666</span> '),
42956
- createCommentVNode(' <uc-btn-switch v-if="[0, 1].includes(Number(record.orgStatus))" :checked="record.orgStatus == 0"\r\n :checkedChildren="handleCheckedChildren" :unCheckedChildren="handleUnCheckedChildren(record)"\r\n @change="checked => onSwitch(checked, record)" /> '),
42957
- [0, 1].includes(Number(record.orgStatus)) ? (openBlock(), createBlock(_component_a_switch, {
42958
- key: 0,
42959
- checked: record.orgStatus == 0,
42960
- onChange: (checked) => onSwitch(checked, record)
42961
- }, null, 8, ["checked", "onChange"])) : Number(record.orgStatus) == 2 ? (openBlock(), createElementBlock("span", _hoisted_7$1, toDisplayString(_ctx.$t("dct.USER_STATUS2")), 1)) : createCommentVNode("v-if", true)
42962
- ])) : createCommentVNode("v-if", true),
42963
- column.key === "action" ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
42964
- createVNode(_component_uc_btn_edit, {
42965
- onClick: ($event) => onUpdate(record),
42966
- type: "link"
42967
- }, null, 8, ["onClick"]),
42968
- createVNode(_component_a_divider, { type: "vertical" }),
42969
- createVNode(_component_uc_btn_reset_pwd, {
42970
- onClick: ($event) => onRsPwd(record),
42971
- type: "link"
42972
- }, null, 8, ["onClick"]),
42973
- createVNode(_component_a_divider, { type: "vertical" }),
42974
- createVNode(_component_uc_btn_remove, {
42975
- onClick: ($event) => onDelete(record),
42976
- type: "link"
42977
- }, null, 8, ["onClick"])
42978
- ], 64)) : createCommentVNode("v-if", true)
42979
- ]),
42980
- _: 1
42981
- }, 8, ["columns"])
42982
- ], 512), [
42983
- [vShow, !isEdit.value]
42984
- ])
43118
+ _: 1
43119
+ }, 8, ["model", "onFinish"])
42985
43120
  ]),
42986
- _: 1
42987
- }),
43121
+ createElementVNode("div", _hoisted_3$1, [
43122
+ createVNode(_component_uc_btn_add, {
43123
+ onClick: onAdd,
43124
+ text: _ctx.$t("uc_org.createOrg"),
43125
+ type: "primary",
43126
+ showIcon: true
43127
+ }, null, 8, ["text"])
43128
+ ]),
43129
+ createVNode(STable, {
43130
+ ref_key: "tableRef",
43131
+ ref: tableRef,
43132
+ data: loadData,
43133
+ rowKey: "cdate",
43134
+ columns: columns.value,
43135
+ scroll: { x: 1e3, y: 550 }
43136
+ }, {
43137
+ bodyCell: withCtx(({ record, column }) => [
43138
+ column.key === "orgId" ? (openBlock(), createElementBlock("span", _hoisted_4$1, [
43139
+ createVNode(_component_a_button, {
43140
+ type: "link",
43141
+ onClick: ($event) => onDetail(record),
43142
+ style: { "padding": "0" }
43143
+ }, {
43144
+ default: withCtx(() => [
43145
+ createTextVNode(toDisplayString(record.orgId), 1)
43146
+ ]),
43147
+ _: 2
43148
+ }, 1032, ["onClick"])
43149
+ ])) : createCommentVNode("v-if", true),
43150
+ column.key === "index1" ? (openBlock(), createElementBlock("img", {
43151
+ key: 1,
43152
+ src: unref(OrgIcon),
43153
+ alt: "\u7EC4\u7EC7",
43154
+ style: { "width": "24px", "height": "24px" }
43155
+ }, null, 8, _hoisted_5$1)) : createCommentVNode("v-if", true),
43156
+ column.key === "cdate" ? (openBlock(), createBlock(_component_uc_pick_label, {
43157
+ key: 2,
43158
+ defaultValue: record.cdate
43159
+ }, null, 8, ["defaultValue"])) : createCommentVNode("v-if", true),
43160
+ column.key === "userId" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
43161
+ createTextVNode(toDisplayString(record.sysUser.userId), 1)
43162
+ ], 64)) : createCommentVNode("v-if", true),
43163
+ column.key === "mobile" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
43164
+ createTextVNode(toDisplayString(record.sysUser.mobile), 1)
43165
+ ], 64)) : createCommentVNode("v-if", true),
43166
+ column.key === "orgStatus" ? (openBlock(), createElementBlock("span", _hoisted_6$1, [
43167
+ createCommentVNode(' <span v-if="[0, 1].includes(Number(record.orgStatus))">666</span> '),
43168
+ createCommentVNode(' <uc-btn-switch v-if="[0, 1].includes(Number(record.orgStatus))" :checked="record.orgStatus == 0"\r\n :checkedChildren="handleCheckedChildren" :unCheckedChildren="handleUnCheckedChildren(record)"\r\n @change="checked => onSwitch(checked, record)" /> '),
43169
+ [0, 1].includes(Number(record.orgStatus)) ? (openBlock(), createBlock(_component_a_switch, {
43170
+ key: 0,
43171
+ checked: record.orgStatus == 0,
43172
+ onChange: (checked) => onSwitch(checked, record)
43173
+ }, null, 8, ["checked", "onChange"])) : Number(record.orgStatus) == 2 ? (openBlock(), createElementBlock("span", _hoisted_7$1, toDisplayString(_ctx.$t("dct.USER_STATUS2")), 1)) : createCommentVNode("v-if", true)
43174
+ ])) : createCommentVNode("v-if", true),
43175
+ column.key === "action" ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
43176
+ createVNode(_component_uc_btn_edit, {
43177
+ onClick: ($event) => onUpdate(record),
43178
+ type: "link"
43179
+ }, null, 8, ["onClick"]),
43180
+ createVNode(_component_a_divider, { type: "vertical" }),
43181
+ createVNode(_component_uc_btn_reset_pwd, {
43182
+ onClick: ($event) => onRsPwd(record),
43183
+ type: "link"
43184
+ }, null, 8, ["onClick"]),
43185
+ createVNode(_component_a_divider, { type: "vertical" }),
43186
+ createVNode(_component_uc_btn_remove, {
43187
+ onClick: ($event) => onDelete(record),
43188
+ type: "link"
43189
+ }, null, 8, ["onClick"])
43190
+ ], 64)) : createCommentVNode("v-if", true)
43191
+ ]),
43192
+ _: 1
43193
+ }, 8, ["columns"])
43194
+ ], 512), [
43195
+ [vShow, !isEdit.value]
43196
+ ]),
42988
43197
  showResetPwdModal.value ? (openBlock(), createBlock(ResetPwdModal, {
42989
43198
  key: 0,
42990
43199
  params: resetPwdParams.value,
@@ -42996,13 +43205,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
42996
43205
  onCancel,
42997
43206
  params: editParams.value
42998
43207
  }, null, 8, ["params"])) : createCommentVNode("v-if", true)
42999
- ]),
43000
- withDirectives(createVNode(_component_dict_ex, {
43001
- ref_key: "dictUserStatusRef",
43002
- ref: dictUserStatusRef,
43003
- type: "CMS_STATUS"
43004
- }, null, 512), [
43005
- [vShow, false]
43006
43208
  ])
43007
43209
  ]),
43008
43210
  _: 1
@@ -43041,20 +43243,22 @@ const _hoisted_7 = { class: "content-area" };
43041
43243
  const _hoisted_8 = { class: "content-header" };
43042
43244
  const _hoisted_9 = { class: "content-title" };
43043
43245
  const _hoisted_10 = { class: "action-buttons" };
43044
- const _hoisted_11 = {
43246
+ const _hoisted_11 = { class: "input-with-unit" };
43247
+ const _hoisted_12 = {
43045
43248
  key: 1,
43046
43249
  class: "unit"
43047
43250
  };
43048
- const _hoisted_12 = { class: "unit" };
43049
- const _hoisted_13 = {
43251
+ const _hoisted_13 = { class: "unit" };
43252
+ const _hoisted_14 = {
43050
43253
  key: 1,
43051
43254
  class: "unit"
43052
43255
  };
43053
- const _hoisted_14 = {
43256
+ const _hoisted_15 = { class: "input-with-unit" };
43257
+ const _hoisted_16 = {
43054
43258
  key: 1,
43055
43259
  class: "unit"
43056
43260
  };
43057
- const _hoisted_15 = { class: "unit" };
43261
+ const _hoisted_17 = { class: "unit" };
43058
43262
  const _sfc_main$b = {
43059
43263
  __name: "index",
43060
43264
  setup(__props) {
@@ -43074,15 +43278,18 @@ const _sfc_main$b = {
43074
43278
  passwordStrength: "0",
43075
43279
  maxLoginTime: 1440
43076
43280
  });
43077
- const passwordForm = reactive({
43078
- minLength: 8,
43079
- complexity: "medium",
43080
- historyLimit: 5
43081
- });
43082
- const otherForm = reactive({
43083
- autoLockTime: 30,
43084
- logRetention: 90
43085
- });
43281
+ const validatePwdLimit = (_, value) => {
43282
+ if ((value < 1 || value > 99999) && value) {
43283
+ return Promise.reject(t2("uc_param.pwdLimitVerify"));
43284
+ }
43285
+ return Promise.resolve();
43286
+ };
43287
+ const validateLoginLimit = (_, value) => {
43288
+ if ((value < 1 || value > 43200) && value) {
43289
+ return Promise.reject(t2("uc_param.loginLimitVerify"));
43290
+ }
43291
+ return Promise.resolve();
43292
+ };
43086
43293
  const currentTitle = computed(() => {
43087
43294
  const titles = {
43088
43295
  security: t2("uc_param.securitySet")
@@ -43099,12 +43306,6 @@ const _sfc_main$b = {
43099
43306
  case "security":
43100
43307
  originalData = { ...securityForm };
43101
43308
  break;
43102
- case "password":
43103
- originalData = { ...passwordForm };
43104
- break;
43105
- case "other":
43106
- originalData = { ...otherForm };
43107
- break;
43108
43309
  }
43109
43310
  isEditing.value = true;
43110
43311
  };
@@ -43113,12 +43314,6 @@ const _sfc_main$b = {
43113
43314
  case "security":
43114
43315
  Object.assign(securityForm, originalData);
43115
43316
  break;
43116
- case "password":
43117
- Object.assign(passwordForm, originalData);
43118
- break;
43119
- case "other":
43120
- Object.assign(otherForm, originalData);
43121
- break;
43122
43317
  }
43123
43318
  if (selectedKey.value[0].key == "security") {
43124
43319
  formSecurity.value.validate().then(() => {
@@ -43190,7 +43385,7 @@ const _sfc_main$b = {
43190
43385
  }), 128))
43191
43386
  ])
43192
43387
  ]),
43193
- _cache[10] || (_cache[10] = createElementVNode("div", { class: "divider" }, null, -1)),
43388
+ _cache[8] || (_cache[8] = createElementVNode("div", { class: "divider" }, null, -1)),
43194
43389
  createElementVNode("div", _hoisted_7, [
43195
43390
  createElementVNode("div", _hoisted_8, [
43196
43391
  createElementVNode("div", _hoisted_9, toDisplayString(currentTitle.value), 1),
@@ -43203,18 +43398,18 @@ const _sfc_main$b = {
43203
43398
  onClick: handleCancel,
43204
43399
  class: "cancel-btn"
43205
43400
  }, {
43206
- default: withCtx(() => [..._cache[4] || (_cache[4] = [
43207
- createTextVNode("\u53D6\u6D88", -1)
43208
- ])]),
43401
+ default: withCtx(() => [
43402
+ createTextVNode(toDisplayString(_ctx.$t("uc_common.btnCancel")), 1)
43403
+ ]),
43209
43404
  _: 1
43210
43405
  }),
43211
43406
  createVNode(_component_a_button, {
43212
43407
  type: "primary",
43213
43408
  onClick: handleSave
43214
43409
  }, {
43215
- default: withCtx(() => [..._cache[5] || (_cache[5] = [
43216
- createTextVNode("\u4FDD\u5B58", -1)
43217
- ])]),
43410
+ default: withCtx(() => [
43411
+ createTextVNode(toDisplayString(_ctx.$t("uc_common.btnSubmit")), 1)
43412
+ ]),
43218
43413
  _: 1
43219
43414
  })
43220
43415
  ], 64))
@@ -43234,22 +43429,24 @@ const _sfc_main$b = {
43234
43429
  createVNode(_component_a_form_item, {
43235
43430
  name: "passwordExpiry",
43236
43431
  rules: [
43237
- { required: true, message: unref(t2)("uc_param.pwdLimitVerify") }
43432
+ { required: true, message: unref(t2)("uc_param.pwdLimitVerify"), trigger: ["blur", "change"] },
43433
+ { validator: validatePwdLimit, trigger: ["blur", "change"] }
43238
43434
  ]
43239
43435
  }, {
43240
43436
  label: withCtx(() => [
43241
43437
  createTextVNode(toDisplayString(_ctx.$t("uc_param.pwdLimit")), 1)
43242
43438
  ]),
43243
43439
  default: withCtx(() => [
43244
- isEditing.value ? (openBlock(), createBlock(_component_a_input_number, {
43245
- key: 0,
43246
- value: securityForm.passwordExpiry,
43247
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => securityForm.passwordExpiry = $event),
43248
- min: 1,
43249
- max: 99999,
43250
- style: { "width": "100px" }
43251
- }, null, 8, ["value"])) : (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(securityForm.passwordExpiry), 1)),
43252
- createElementVNode("span", _hoisted_12, toDisplayString(_ctx.$t("uc_param.day")), 1)
43440
+ createElementVNode("div", _hoisted_11, [
43441
+ isEditing.value ? (openBlock(), createBlock(_component_a_input_number, {
43442
+ key: 0,
43443
+ value: securityForm.passwordExpiry,
43444
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => securityForm.passwordExpiry = $event),
43445
+ min: 1,
43446
+ style: { "width": "100px" }
43447
+ }, null, 8, ["value"])) : (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(securityForm.passwordExpiry), 1)),
43448
+ createElementVNode("span", _hoisted_13, toDisplayString(_ctx.$t("uc_param.day")), 1)
43449
+ ])
43253
43450
  ]),
43254
43451
  _: 1
43255
43452
  }, 8, ["rules"]),
@@ -43266,54 +43463,56 @@ const _sfc_main$b = {
43266
43463
  }, {
43267
43464
  default: withCtx(() => [
43268
43465
  createVNode(_component_a_select_option, { value: "0" }, {
43269
- default: withCtx(() => [..._cache[6] || (_cache[6] = [
43466
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [
43270
43467
  createTextVNode("0", -1)
43271
43468
  ])]),
43272
43469
  _: 1
43273
43470
  }),
43274
43471
  createVNode(_component_a_select_option, { value: "1" }, {
43275
- default: withCtx(() => [..._cache[7] || (_cache[7] = [
43472
+ default: withCtx(() => [..._cache[5] || (_cache[5] = [
43276
43473
  createTextVNode("1", -1)
43277
43474
  ])]),
43278
43475
  _: 1
43279
43476
  }),
43280
43477
  createVNode(_component_a_select_option, { value: "2" }, {
43281
- default: withCtx(() => [..._cache[8] || (_cache[8] = [
43478
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [
43282
43479
  createTextVNode("2", -1)
43283
43480
  ])]),
43284
43481
  _: 1
43285
43482
  }),
43286
43483
  createVNode(_component_a_select_option, { value: "3" }, {
43287
- default: withCtx(() => [..._cache[9] || (_cache[9] = [
43484
+ default: withCtx(() => [..._cache[7] || (_cache[7] = [
43288
43485
  createTextVNode("3", -1)
43289
43486
  ])]),
43290
43487
  _: 1
43291
43488
  })
43292
43489
  ]),
43293
43490
  _: 1
43294
- }, 8, ["value"])) : (openBlock(), createElementBlock("span", _hoisted_13, toDisplayString(securityForm.passwordStrength), 1))
43491
+ }, 8, ["value"])) : (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(securityForm.passwordStrength), 1))
43295
43492
  ]),
43296
43493
  _: 1
43297
43494
  }),
43298
43495
  createVNode(_component_a_form_item, {
43299
43496
  name: "maxLoginTime",
43300
43497
  rules: [
43301
- { required: true, message: unref(t2)("uc_param.loginLimitVerify") }
43498
+ { required: true, message: unref(t2)("uc_param.loginLimitVerify"), trigger: ["blur", "change"] },
43499
+ { validator: validateLoginLimit, trigger: ["blur", "change"] }
43302
43500
  ]
43303
43501
  }, {
43304
43502
  label: withCtx(() => [
43305
43503
  createTextVNode(toDisplayString(_ctx.$t("uc_param.loginLimit")), 1)
43306
43504
  ]),
43307
43505
  default: withCtx(() => [
43308
- isEditing.value ? (openBlock(), createBlock(_component_a_input_number, {
43309
- key: 0,
43310
- value: securityForm.maxLoginTime,
43311
- "onUpdate:value": _cache[3] || (_cache[3] = ($event) => securityForm.maxLoginTime = $event),
43312
- min: 1,
43313
- max: 43200,
43314
- style: { "width": "100px" }
43315
- }, null, 8, ["value"])) : (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(securityForm.maxLoginTime), 1)),
43316
- createElementVNode("span", _hoisted_15, toDisplayString(_ctx.$t("uc_param.minute")), 1)
43506
+ createElementVNode("div", _hoisted_15, [
43507
+ isEditing.value ? (openBlock(), createBlock(_component_a_input_number, {
43508
+ key: 0,
43509
+ value: securityForm.maxLoginTime,
43510
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => securityForm.maxLoginTime = $event),
43511
+ min: 1,
43512
+ style: { "width": "100px" }
43513
+ }, null, 8, ["value"])) : (openBlock(), createElementBlock("span", _hoisted_16, toDisplayString(securityForm.maxLoginTime), 1)),
43514
+ createElementVNode("span", _hoisted_17, toDisplayString(_ctx.$t("uc_param.minute")), 1)
43515
+ ])
43317
43516
  ]),
43318
43517
  _: 1
43319
43518
  }, 8, ["rules"])