@witlink/usercenter 1.2.59 → 1.2.61

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.b5420456.css';var __defProp = Object.defineProperty;
1
+ import './assets/main.fec19ffc.css';var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -8,13 +8,13 @@ import { useI18n } from "vue-i18n";
8
8
  import { defineStore, createPinia } from "pinia";
9
9
  import Axios from "axios";
10
10
  import { notification, message, App, Drawer, Button, ConfigProvider, Modal, Checkbox as Checkbox$1, Divider as Divider$1 } from "ant-design-vue";
11
- import { ref, render, h, reactive, inject, computed, provide, createCommentVNode, defineComponent, watch, onMounted, nextTick, onUnmounted, TransitionGroup, Teleport, resolveComponent, onActivated, onDeactivated, onBeforeUnmount, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString, createBlock, unref, Fragment, renderList, normalizeClass, normalizeStyle, mergeProps, withDirectives, vShow, onBeforeMount, useSlots, createSlots, renderSlot, normalizeProps, guardReactiveProps, withModifiers, watchEffect, mergeModels, useModel, resolveDirective } from "vue";
12
- import { hasPermission, getUserInfo as getUserInfo$1 } from "@witlink/components/utils";
11
+ import { ref, render, h, reactive, inject, computed, provide, createCommentVNode, defineComponent, watch, onMounted, nextTick, onUnmounted, TransitionGroup, Teleport, resolveComponent, onActivated, onDeactivated, onBeforeUnmount, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString, createBlock, unref, Fragment, renderList, normalizeClass, normalizeStyle, mergeProps, onBeforeMount, withDirectives, vShow, useSlots, createSlots, renderSlot, normalizeProps, guardReactiveProps, withModifiers, watchEffect, mergeModels, useModel, resolveDirective } from "vue";
12
+ import { getUserInfo as getUserInfo$1, hasPermission } from "@witlink/components/utils";
13
13
  import en_US from "ant-design-vue/es/locale/en_US";
14
14
  import zh_CN from "ant-design-vue/es/locale/zh_CN";
15
15
  import fr_FR from "ant-design-vue/es/locale/fr_FR";
16
- import { Input, FormItem, Select, CheckboxGroup, Form, Button as Button$1, Space, ConfigProvider as ConfigProvider$1, Textarea, Modal as Modal$1, DescriptionsItem, Descriptions, Divider, Drawer as Drawer$1, AutoComplete, Tooltip, MenuItem, Menu, Dropdown, Table, Checkbox, SelectOption, Cascader, Col, Row, InputPassword, Upload, Spin, ListItem, List, InputNumber, Card, Switch, InputSearch, DatePicker } from "ant-design-vue/es";
17
- import Icon, { RedoOutlined, ExclamationCircleOutlined, DownOutlined, LeftOutlined, UploadOutlined, PlusOutlined, MinusOutlined, EditOutlined, FormOutlined, DeleteOutlined, DownloadOutlined } from "@ant-design/icons-vue";
16
+ import { Input, FormItem, Select, CheckboxGroup, Form, Button as Button$1, Space, ConfigProvider as ConfigProvider$1, Textarea, Modal as Modal$1, DescriptionsItem, Descriptions, Divider, Drawer as Drawer$1, AutoComplete, Tooltip, MenuItem, Menu, Dropdown, Table, Col, Row, Checkbox, SelectOption, Cascader, InputPassword, Upload, Spin, ListItem, List, InputNumber, Switch, InputSearch, DatePicker } from "ant-design-vue/es";
17
+ import Icon, { RedoOutlined, ExclamationCircleOutlined, DownOutlined, LeftOutlined, UploadOutlined, PlusOutlined, MinusOutlined, EditOutlined, FormOutlined, InfoCircleOutlined, DeleteOutlined, DownloadOutlined } from "@ant-design/icons-vue";
18
18
  import dayjs from "dayjs";
19
19
  import { cloneDeep } from "lodash-es";
20
20
  const APIBASEURL = "/usercenter/";
@@ -491,7 +491,7 @@ const useModalStore = defineStore(`${TOKEN_PREFIX}modal`, {
491
491
  Drawer,
492
492
  {
493
493
  title,
494
- maskClosable: false,
494
+ maskClosable: true,
495
495
  width,
496
496
  open: true,
497
497
  class: "drawer-class",
@@ -534,6 +534,7 @@ createPinia();
534
534
  function setStore(instance2, app) {
535
535
  const modalStore = useModalStore();
536
536
  modalStore.setAppContext(app);
537
+ initUserInfo();
537
538
  }
538
539
  function changeTheme$1(options) {
539
540
  document.documentElement.style.setProperty(
@@ -543,6 +544,17 @@ function changeTheme$1(options) {
543
544
  const appStore = useAppStore();
544
545
  appStore.setAntConfigToken(options);
545
546
  }
547
+ function initUserInfo() {
548
+ const userStore = useUserStore();
549
+ if (userStore.roles.length > 0)
550
+ return;
551
+ const userInfo = getUserInfo$1();
552
+ if (userInfo) {
553
+ userStore.setUserInfo(userInfo);
554
+ } else {
555
+ userStore.getUserInfo();
556
+ }
557
+ }
546
558
  function getLang(isoCode) {
547
559
  return handleRespPost({
548
560
  url: "/api/auth/lang-info",
@@ -5447,7 +5459,7 @@ function formatText(value, placeholder) {
5447
5459
  function eqEmptyValue(cellValue) {
5448
5460
  return cellValue === "" || xeUtils.eqNull(cellValue);
5449
5461
  }
5450
- const version$1 = "4.17.14";
5462
+ const version$1 = "4.17.25";
5451
5463
  VxeUI.version = version$1;
5452
5464
  VxeUI.tableVersion = version$1;
5453
5465
  VxeUI.setConfig({
@@ -5671,9 +5683,10 @@ VxeUI.setConfig({
5671
5683
  showResponseMsg: true,
5672
5684
  showActionMsg: true,
5673
5685
  response: {
5674
- list: null,
5686
+ list: "list",
5675
5687
  result: "result",
5676
5688
  total: "page.total",
5689
+ footerData: "footerData",
5677
5690
  message: "message"
5678
5691
  }
5679
5692
  }
@@ -6445,11 +6458,12 @@ default_1$2 = zhCN.default = {
6445
6458
  fixedRight: "\u51BB\u7ED3\u53F3\u4FA7",
6446
6459
  clearFilter: "\u6E05\u9664\u7B5B\u9009",
6447
6460
  textOption: "\u6587\u672C\u7B5B\u9009",
6448
- numberOption: "\u6570\u503C\u7B5B\u9009"
6461
+ numberOption: "\u6570\u503C\u7B5B\u9009",
6462
+ dateOption: "\u65E5\u671F\u7B5B\u9009"
6449
6463
  },
6450
6464
  popup: {
6451
6465
  title: "\u81EA\u5B9A\u4E49\u7B5B\u9009\u7684\u65B9\u5F0F",
6452
- currColumnTitle: "\u5F53\u524D\u5217\uFF1A",
6466
+ currColumnTitle: "\u663E\u793A\u884C\uFF1A",
6453
6467
  and: "\u4E0E",
6454
6468
  or: "\u6216",
6455
6469
  describeHtml: "\u53EF\u7528 ? \u4EE3\u8868\u5355\u4E2A\u5B57\u7B26<br/>\u7528 * \u4EE3\u8868\u4EFB\u610F\u591A\u4E2A\u5B57\u7B26"
@@ -6468,6 +6482,28 @@ default_1$2 = zhCN.default = {
6468
6482
  include: "\u5305\u542B",
6469
6483
  exclude: "\u4E0D\u5305\u542B",
6470
6484
  between: "\u4ECB\u4E8E",
6485
+ isAfter: "\u5728\u4EE5\u4E0B\u65E5\u671F\u4E4B\u540E",
6486
+ eqAfter: "\u5728\u4EE5\u4E0B\u65E5\u671F\u4E4B\u540E\u6216\u4E0E\u4E4B\u76F8\u540C",
6487
+ isBefore: "\u5728\u4EE5\u4E0B\u65E5\u671F\u4E4B\u524D",
6488
+ eqBefore: "\u5728\u4EE5\u4E0B\u65E5\u671F\u4E4B\u524D\u6216\u4E0E\u4E4B\u76F8\u540C",
6489
+ top10: "\u524D10\u9879",
6490
+ aboveAverage: "\u9AD8\u4E8E\u5E73\u5747\u503C",
6491
+ belowAverage: "\u4F4E\u4E8E\u5E73\u5747\u503C",
6492
+ before: "\u4E4B\u524D",
6493
+ after: "\u4E4B\u540E",
6494
+ tomorrow: "\u660E\u5929",
6495
+ today: "\u4ECA\u5929",
6496
+ yesterday: "\u6628\u5929",
6497
+ nextWeek: "\u4E0B\u5468",
6498
+ thisWeek: "\u672C\u5468",
6499
+ lastWeek: "\u4E0A\u5468",
6500
+ nextMonth: "\u4E0B\u6708",
6501
+ thisMonth: "\u672C\u6708",
6502
+ lastMonth: "\u4E0A\u6708",
6503
+ nextYear: "\u660E\u5E74",
6504
+ thisYear: "\u4ECA\u5E74",
6505
+ lastYear: "\u53BB\u5E74",
6506
+ yearToDate: "\u672C\u5E74\u5EA6\u622A\u6B62\u5230\u73B0\u5728",
6471
6507
  custom: "\u81EA\u5B9A\u4E49\u7B5B\u9009",
6472
6508
  insensitive: "\u4E0D\u533A\u5206\u5927\u5C0F\u5199",
6473
6509
  isSensitive: "\u533A\u5206\u5927\u5C0F\u5199"
@@ -6533,6 +6569,9 @@ default_1$2 = zhCN.default = {
6533
6569
  include: "\u5305\u542B",
6534
6570
  exclude: "\u4E0D\u5305\u542B",
6535
6571
  between: "\u4ECB\u4E8E",
6572
+ top10: "\u524D10\u9879",
6573
+ aboveAverage: "\u9AD8\u4E8E\u5E73\u5747\u503C",
6574
+ belowAverage: "\u4F4E\u4E8E\u5E73\u5747\u503C",
6536
6575
  custom: "\u81EA\u5B9A\u4E49\u7B5B\u9009",
6537
6576
  insensitive: "\u4E0D\u533A\u5206\u5927\u5C0F\u5199",
6538
6577
  isSensitive: "\u533A\u5206\u5927\u5C0F\u5199"
@@ -6550,11 +6589,12 @@ default_1$2 = zhCN.default = {
6550
6589
  fixedRight: "\u51BB\u7ED3\u5230\u53F3\u4FA7",
6551
6590
  clearFilter: "\u6E05\u9664\u7B5B\u9009",
6552
6591
  textOption: "\u6587\u672C\u7B5B\u9009",
6553
- numberOption: "\u6570\u503C\u7B5B\u9009"
6592
+ numberOption: "\u6570\u503C\u7B5B\u9009",
6593
+ dateOption: "\u65E5\u671F\u7B5B\u9009"
6554
6594
  },
6555
6595
  popup: {
6556
6596
  title: "\u81EA\u5B9A\u4E49\u7B5B\u9009\u7684\u65B9\u5F0F",
6557
- currColumnTitle: "\u5F53\u524D\u5217\uFF1A",
6597
+ currColumnTitle: "\u663E\u793A\u884C\uFF1A",
6558
6598
  and: "\u4E0E",
6559
6599
  or: "\u6216",
6560
6600
  describeHtml: "\u53EF\u7528 ? \u4EE3\u8868\u5355\u4E2A\u5B57\u7B26<br/>\u7528 * \u4EE3\u8868\u4EFB\u610F\u591A\u4E2A\u5B57\u7B26"
@@ -7236,12 +7276,13 @@ default_1$1 = enUS.default = {
7236
7276
  fixedLeft: "Freeze left",
7237
7277
  fixedRight: "Freeze right",
7238
7278
  clearFilter: "Clear Filter",
7239
- textOption: "Text filter",
7240
- numberOption: "Numerical filter"
7279
+ textOption: "Text filters",
7280
+ numberOption: "Number filters",
7281
+ dateOption: "Date filters"
7241
7282
  },
7242
7283
  popup: {
7243
7284
  title: "Custom filtering methods",
7244
- currColumnTitle: "Current column:",
7285
+ currColumnTitle: "Show rows where:",
7245
7286
  and: "and",
7246
7287
  or: "or",
7247
7288
  describeHtml: "Available? Represents a single character<br/>Use * Represents any multiple characters"
@@ -7260,6 +7301,28 @@ default_1$1 = enUS.default = {
7260
7301
  include: "Include",
7261
7302
  exclude: "Not included",
7262
7303
  between: "Between",
7304
+ isAfter: "Is after",
7305
+ eqAfter: "Is after or equal to",
7306
+ isBefore: "Is before",
7307
+ eqBefore: "Is before or equal to",
7308
+ top10: "Top 10",
7309
+ aboveAverage: "Above average",
7310
+ belowAverage: "Below average",
7311
+ before: "Before",
7312
+ after: "After",
7313
+ tomorrow: "Tomorrow",
7314
+ today: "Today",
7315
+ yesterday: "Yesterday",
7316
+ nextWeek: "Next Week",
7317
+ thisWeek: "This Week",
7318
+ lastWeek: "Last Week",
7319
+ nextMonth: "Next Month",
7320
+ thisMonth: "This Month",
7321
+ lastMonth: "Last Month",
7322
+ nextYear: "Next Year",
7323
+ thisYear: "This Year",
7324
+ lastYear: "Last Year",
7325
+ yearToDate: "Year to Date",
7263
7326
  custom: "Custom filter",
7264
7327
  insensitive: "Case insensitive",
7265
7328
  isSensitive: "case sensitive"
@@ -7325,6 +7388,9 @@ default_1$1 = enUS.default = {
7325
7388
  include: "Include",
7326
7389
  exclude: "Not included",
7327
7390
  between: "Between",
7391
+ top10: "Top 10",
7392
+ aboveAverage: "Above average",
7393
+ belowAverage: "Below average",
7328
7394
  custom: "Custom filter",
7329
7395
  insensitive: "Case insensitive",
7330
7396
  isSensitive: "case sensitive"
@@ -7341,12 +7407,13 @@ default_1$1 = enUS.default = {
7341
7407
  fixedLeft: "Freeze left",
7342
7408
  fixedRight: "Freeze right",
7343
7409
  clearFilter: "Clear Filter",
7344
- textOption: "Text filtering",
7345
- numberOption: "Numerical filtering"
7410
+ textOption: "Text filters",
7411
+ numberOption: "Number filters",
7412
+ dateOption: "Date filters"
7346
7413
  },
7347
7414
  popup: {
7348
7415
  title: "Custom filtering methods",
7349
- currColumnTitle: "Current column:",
7416
+ currColumnTitle: "Show rows where:",
7350
7417
  and: "and",
7351
7418
  or: "or",
7352
7419
  describeHtml: "Available? Represents a single character<br/>Use * Represents any multiple characters"
@@ -8029,7 +8096,8 @@ default_1 = frFR.default = {
8029
8096
  fixedRight: "Geler \xE0 droite",
8030
8097
  clearFilter: "Filtre effacer",
8031
8098
  textOption: "Filtre \xE0 texte",
8032
- numberOption: "Filtre num\xE9rique"
8099
+ numberOption: "Filtre num\xE9rique",
8100
+ dateOption: "\u65E5\u671F\u7B5B\u9009"
8033
8101
  },
8034
8102
  popup: {
8035
8103
  title: "M\xE9thodes de filtrage personnalis\xE9es",
@@ -8052,6 +8120,28 @@ default_1 = frFR.default = {
8052
8120
  include: "Inclure",
8053
8121
  exclude: "Pas inclus",
8054
8122
  between: "Entre",
8123
+ isAfter: "\u5728\u4EE5\u4E0B\u65E5\u671F\u4E4B\u540E",
8124
+ eqAfter: "\u5728\u4EE5\u4E0B\u65E5\u671F\u4E4B\u540E\u6216\u4E0E\u4E4B\u76F8\u540C",
8125
+ isBefore: "\u5728\u4EE5\u4E0B\u65E5\u671F\u4E4B\u524D",
8126
+ eqBefore: "\u5728\u4EE5\u4E0B\u65E5\u671F\u4E4B\u524D\u6216\u4E0E\u4E4B\u76F8\u540C",
8127
+ top10: "\u524D10\u9879",
8128
+ aboveAverage: "\u9AD8\u4E8E\u5E73\u5747\u503C",
8129
+ belowAverage: "\u4F4E\u4E8E\u5E73\u5747\u503C",
8130
+ before: "\u4E4B\u524D",
8131
+ after: "\u4E4B\u540E",
8132
+ tomorrow: "\u660E\u5929",
8133
+ today: "\u4ECA\u5929",
8134
+ yesterday: "\u6628\u5929",
8135
+ nextWeek: "\u4E0B\u5468",
8136
+ thisWeek: "\u672C\u5468",
8137
+ lastWeek: "\u4E0A\u5468",
8138
+ nextMonth: "\u4E0B\u6708",
8139
+ thisMonth: "\u672C\u6708",
8140
+ lastMonth: "\u4E0A\u6708",
8141
+ nextYear: "\u660E\u5E74",
8142
+ thisYear: "\u4ECA\u5E74",
8143
+ lastYear: "\u53BB\u5E74",
8144
+ yearToDate: "\u672C\u5E74\u5EA6\u622A\u6B62\u5230\u73B0\u5728",
8055
8145
  custom: "Filtre personnalis\xE9",
8056
8146
  insensitive: "Cas insensible au cas",
8057
8147
  isSensitive: "sensible aux majuscules et minuscules"
@@ -8117,6 +8207,9 @@ default_1 = frFR.default = {
8117
8207
  include: "Inclure",
8118
8208
  exclude: "Pas inclus",
8119
8209
  between: "Entre",
8210
+ top10: "\u524D10\u9879",
8211
+ aboveAverage: "\u9AD8\u4E8E\u5E73\u5747\u503C",
8212
+ belowAverage: "\u4F4E\u4E8E\u5E73\u5747\u503C",
8120
8213
  custom: "Filtre personnalis\xE9",
8121
8214
  insensitive: "Cas insensible au cas",
8122
8215
  isSensitive: "sensible aux majuscules et minuscules"
@@ -8134,7 +8227,8 @@ default_1 = frFR.default = {
8134
8227
  fixedRight: "Geler \xE0 droite",
8135
8228
  clearFilter: "Filtre effacer",
8136
8229
  textOption: "Filtrage de texte",
8137
- numberOption: "Filtrage num\xE9rique"
8230
+ numberOption: "Filtrage num\xE9rique",
8231
+ dateOption: "\u65E5\u671F\u7B5B\u9009"
8138
8232
  },
8139
8233
  popup: {
8140
8234
  title: "M\xE9thodes de filtrage personnalis\xE9es",
@@ -8232,10 +8326,10 @@ function getClsRE(cls) {
8232
8326
  return reClsMap[cls];
8233
8327
  }
8234
8328
  function isPx(val) {
8235
- return val && /^\d+(px)?$/.test(val);
8329
+ return val && /^\d+(\.\d+)?(px)?$/.test(val);
8236
8330
  }
8237
8331
  function isScale(val) {
8238
- return val && /^\d+%$/.test(val);
8332
+ return val && /^\d+(\.\d+)?%$/.test(val);
8239
8333
  }
8240
8334
  function hasClass(elem, cls) {
8241
8335
  return !!(elem && elem.className && elem.className.match && elem.className.match(getClsRE(cls)));
@@ -8355,7 +8449,7 @@ function triggerEvent(targetElem, type) {
8355
8449
  }
8356
8450
  }
8357
8451
  const { log } = VxeUI;
8358
- const version = `table v${"4.17.14"}`;
8452
+ const version = `table v${"4.17.25"}`;
8359
8453
  const warnLog = log.create("warn", version);
8360
8454
  const errLog = log.create("error", version);
8361
8455
  const { getI18n: getI18n$b, formats: formats$1, renderer: renderer$a } = VxeUI;
@@ -9576,8 +9670,9 @@ const Cell = {
9576
9670
  const { fullColumnFieldData } = tableInternalData;
9577
9671
  const { computeAggregateOpts } = $table.getComputeMaps();
9578
9672
  const aggregateOpts = computeAggregateOpts.value;
9579
- const { mode, showTotal, totalMethod, countFields, contentMethod, mapChildrenField } = aggregateOpts;
9580
- const aggCalcMethod = aggregateOpts.calcValuesMethod || aggregateOpts.countMethod || aggregateOpts.aggregateMethod;
9673
+ const { mode, showTotal, totalMethod, countFields, contentMethod, formatValuesMethod, mapChildrenField } = aggregateOpts;
9674
+ const aggData = aggRow.aggData;
9675
+ const currAggData = aggData ? aggData[field] : null;
9581
9676
  const groupField = aggRow.groupField;
9582
9677
  const groupContent = aggRow.groupContent;
9583
9678
  const childList = mapChildrenField ? aggRow[mapChildrenField] || [] : [];
@@ -9609,9 +9704,10 @@ const Cell = {
9609
9704
  } else if ($table.getPivotTableAggregateCellAggValue) {
9610
9705
  cellValue = $table.getPivotTableAggregateCellAggValue(params);
9611
9706
  } else if (aggFunc === true || countFields && countFields.includes(field)) {
9612
- if (aggCalcMethod) {
9613
- ctParams.aggValue = childCount;
9614
- cellValue = `${aggCalcMethod(ctParams)}`;
9707
+ cellValue = currAggData ? currAggData.value : childCount;
9708
+ ctParams.aggValue = cellValue;
9709
+ if (formatValuesMethod) {
9710
+ cellValue = formatValuesMethod(ctParams);
9615
9711
  }
9616
9712
  }
9617
9713
  } else {
@@ -9657,7 +9753,7 @@ const Cell = {
9657
9753
  const { rowGroupExpandedFlag } = tableReactData;
9658
9754
  const { rowGroupExpandedMaps } = tableInternalData;
9659
9755
  const aggregateOpts = computeAggregateOpts.value;
9660
- const { mode, padding, indent } = aggregateOpts;
9756
+ const { mode, padding, indent, showIcon, iconOpen, iconClose } = aggregateOpts;
9661
9757
  const rowid = getRowid($table, row);
9662
9758
  const isExpand = !!rowGroupExpandedFlag && !!rowGroupExpandedMaps[rowid];
9663
9759
  return h("div", {
@@ -9668,14 +9764,14 @@ const Cell = {
9668
9764
  paddingLeft: `${level * indent}px`
9669
9765
  } : void 0
9670
9766
  }, [
9671
- row.isAggregate ? h("span", {
9767
+ showIcon && row.isAggregate ? h("span", {
9672
9768
  class: "vxe-row-group--node-btn",
9673
9769
  onClick(evnt) {
9674
9770
  $table.triggerRowGroupExpandEvent(evnt, params);
9675
9771
  }
9676
9772
  }, [
9677
9773
  h("i", {
9678
- class: isExpand ? getIcon$6().TABLE_ROW_GROUP_OPEN : getIcon$6().TABLE_ROW_GROUP_CLOSE
9774
+ class: isExpand ? iconOpen || getIcon$6().TABLE_ROW_GROUP_OPEN : iconClose || getIcon$6().TABLE_ROW_GROUP_CLOSE
9679
9775
  })
9680
9776
  ]) : renderEmptyElement$9($table),
9681
9777
  h("div", {
@@ -10294,7 +10390,7 @@ const Cell = {
10294
10390
  }
10295
10391
  };
10296
10392
  const { getI18n: getI18n$9, renderer: renderer$8, renderEmptyElement: renderEmptyElement$8 } = VxeUI;
10297
- const sourceType$2 = "table";
10393
+ const sourceType$3 = "table";
10298
10394
  const renderType$2 = "body";
10299
10395
  const TableBodyComponent = defineVxeComponent({
10300
10396
  name: "VxeTableBody",
@@ -10448,7 +10544,7 @@ const TableBodyComponent = defineVxeComponent({
10448
10544
  $columnIndex,
10449
10545
  _columnIndex,
10450
10546
  fixed: fixedType,
10451
- source: sourceType$2,
10547
+ source: sourceType$3,
10452
10548
  type: renderType$2,
10453
10549
  isHidden: !!fixedHiddenColumn,
10454
10550
  level: rowLevel,
@@ -10839,7 +10935,7 @@ const TableBodyComponent = defineVxeComponent({
10839
10935
  $columnIndex,
10840
10936
  _columnIndex,
10841
10937
  fixed: fixedType,
10842
- source: sourceType$2,
10938
+ source: sourceType$3,
10843
10939
  type: renderType$2,
10844
10940
  level: rowLevel,
10845
10941
  row,
@@ -11086,22 +11182,8 @@ const TableBodyComponent = defineVxeComponent({
11086
11182
  }
11087
11183
  });
11088
11184
  const { renderer: renderer$7, renderEmptyElement: renderEmptyElement$7 } = VxeUI;
11089
- const sourceType$1 = "table";
11185
+ const sourceType$2 = "table";
11090
11186
  const renderType$1 = "header";
11091
- function getColumnFirstChild(column) {
11092
- const { children } = column;
11093
- if (children && children.length) {
11094
- return getColumnFirstChild(children[0]);
11095
- }
11096
- return column;
11097
- }
11098
- function getColumnLastChild(column) {
11099
- const { children } = column;
11100
- if (children && children.length) {
11101
- return getColumnLastChild(children[children.length - 1]);
11102
- }
11103
- return column;
11104
- }
11105
11187
  const TableHeaderComponent = defineVxeComponent({
11106
11188
  name: "VxeTableHeader",
11107
11189
  props: {
@@ -11190,7 +11272,7 @@ const TableHeaderComponent = defineVxeComponent({
11190
11272
  _columnIndex,
11191
11273
  firstFilterOption,
11192
11274
  fixed: fixedType,
11193
- source: sourceType$1,
11275
+ source: sourceType$2,
11194
11276
  type: renderType$1,
11195
11277
  isHidden: fixedHiddenColumn,
11196
11278
  hasFilter
@@ -11260,15 +11342,13 @@ const TableHeaderComponent = defineVxeComponent({
11260
11342
  if (showCustomHeader)
11261
11343
  ;
11262
11344
  else if (isColGroup && !isLastRow) {
11263
- const firstCol = getColumnFirstChild(column);
11264
- const lastCol = getColumnLastChild(column);
11265
- if (firstCol && lastCol && firstCol.id !== lastCol.id) {
11266
- const firstColRest = fullColumnIdData[firstCol.id];
11267
- const lastColRest = fullColumnIdData[lastCol.id];
11268
- if (firstColRest && lastColRest) {
11269
- tcStyle.width = `${lastColRest.oLeft - firstColRest.oLeft + lastCol.renderWidth}px`;
11345
+ let childWidth = 0;
11346
+ xeUtils.eachTree(column.children, (childRow) => {
11347
+ if (childRow.visible && (!childRow.children || !childRow.children.length)) {
11348
+ childWidth += childRow.renderWidth;
11270
11349
  }
11271
- }
11350
+ });
11351
+ tcStyle.width = `${childWidth}px`;
11272
11352
  }
11273
11353
  return h("th", Object.assign(Object.assign(Object.assign({ class: [
11274
11354
  "vxe-table--column vxe-header--column",
@@ -11360,7 +11440,7 @@ const TableHeaderComponent = defineVxeComponent({
11360
11440
  _columnIndex,
11361
11441
  option: firstFilterOption,
11362
11442
  fixed: fixedType,
11363
- source: sourceType$1,
11443
+ source: sourceType$2,
11364
11444
  type: renderType$1,
11365
11445
  isHidden: fixedHiddenColumn,
11366
11446
  hasFilter
@@ -11581,7 +11661,7 @@ const TableHeaderComponent = defineVxeComponent({
11581
11661
  }
11582
11662
  });
11583
11663
  const { renderer: renderer$6, renderEmptyElement: renderEmptyElement$6 } = VxeUI;
11584
- const sourceType = "table";
11664
+ const sourceType$1 = "table";
11585
11665
  const renderType = "footer";
11586
11666
  const TableFooterComponent = defineVxeComponent({
11587
11667
  name: "VxeTableFooter",
@@ -11665,7 +11745,7 @@ const TableFooterComponent = defineVxeComponent({
11665
11745
  itemIndex,
11666
11746
  items: row,
11667
11747
  fixed: fixedType,
11668
- source: sourceType,
11748
+ source: sourceType$1,
11669
11749
  type: renderType,
11670
11750
  data: footerTableData
11671
11751
  };
@@ -14927,7 +15007,7 @@ hooks$5.add("tableMenuModule", {
14927
15007
  handleOpenMenuEvent(evnt, layout, params);
14928
15008
  $xeTable.dispatchEvent(eventType, params, evnt);
14929
15009
  return;
14930
- } else if (getEventTargetNode(evnt, el, `vxe-table--${layout}-wrapper`, (target) => target.getAttribute("xid") === xID).flag) {
15010
+ } else if (getEventTargetNode(evnt, el, `vxe-table--${layout}-wrapper`, (target) => target.getAttribute("xid") === xID).flag || layout === "body" && getEventTargetNode(evnt, el, "vxe-table--empty-place-wrapper", (target) => target.getAttribute("xid") === xID).flag) {
14931
15011
  if (menuOpts.trigger === "cell") {
14932
15012
  evnt.preventDefault();
14933
15013
  } else {
@@ -18415,7 +18495,7 @@ VxeUI.hooks.add("tableCustomModule", {
18415
18495
  }
18416
18496
  }
18417
18497
  if (allowResizable) {
18418
- if (column.renderVisible && (!column.children || column.children.length)) {
18498
+ if (column.renderVisible && (!column.children || !column.children.length)) {
18419
18499
  if (column.renderResizeWidth !== column.renderWidth) {
18420
18500
  column.resizeWidth = column.renderResizeWidth;
18421
18501
  column.renderWidth = column.renderResizeWidth;
@@ -19099,9 +19179,8 @@ function oldSelectEditRender(renderOpts, params) {
19099
19179
  h(getOldComponent(renderOpts), Object.assign(Object.assign({}, getCellEditProps(renderOpts, params, cellValue, { options, optionProps, optionGroups, optionGroupProps })), getEditOns(renderOpts, params)))
19100
19180
  ];
19101
19181
  }
19102
- function getSelectCellValue(renderOpts, { row, column }) {
19182
+ function handleSelectCellValue(cellValue, renderOpts) {
19103
19183
  const { options, optionGroups, optionProps = {}, optionGroupProps = {}, props = {} } = renderOpts;
19104
- const cellValue = xeUtils.get(row, column.field);
19105
19184
  let selectItem;
19106
19185
  const labelProp = optionProps.label || "label";
19107
19186
  const valueProp = optionProps.value || "value";
@@ -19132,13 +19211,16 @@ function getSelectCellValue(renderOpts, { row, column }) {
19132
19211
  }
19133
19212
  return "";
19134
19213
  }
19214
+ function getSelectCellValue(renderOpts, { row, column }) {
19215
+ const cellValue = xeUtils.get(row, column.field);
19216
+ return handleSelectCellValue(cellValue, renderOpts);
19217
+ }
19135
19218
  function handleExportSelectMethod(params) {
19136
19219
  const { row, column, options } = params;
19137
19220
  return options.original ? getCellValue(row, column) : getSelectCellValue(column.editRender || column.cellRender, params);
19138
19221
  }
19139
- function getTreeSelectCellValue(renderOpts, { row, column }) {
19222
+ function handleTreeSelectCellValue(cellValue, renderOpts) {
19140
19223
  const { options, optionProps = {} } = renderOpts;
19141
- const cellValue = xeUtils.get(row, column.field);
19142
19224
  const labelProp = optionProps.label || "label";
19143
19225
  const valueProp = optionProps.value || "value";
19144
19226
  const childrenProp = optionProps.children || "children";
@@ -19154,6 +19236,10 @@ function getTreeSelectCellValue(renderOpts, { row, column }) {
19154
19236
  }
19155
19237
  return "";
19156
19238
  }
19239
+ function getTreeSelectCellValue(renderOpts, { row, column }) {
19240
+ const cellValue = xeUtils.get(row, column.field);
19241
+ return handleTreeSelectCellValue(cellValue, renderOpts);
19242
+ }
19157
19243
  function handleExportTreeSelectMethod(params) {
19158
19244
  const { row, column, options } = params;
19159
19245
  return options.original ? getCellValue(row, column) : getTreeSelectCellValue(column.editRender || column.cellRender, params);
@@ -19211,6 +19297,83 @@ function handleNumberCell(renderOpts, params) {
19211
19297
  class: "is--negative"
19212
19298
  } : {});
19213
19299
  }
19300
+ function handleFormatSelect(renderOpts, params) {
19301
+ const { cellValue } = params;
19302
+ return handleSelectCellValue(cellValue, renderOpts);
19303
+ }
19304
+ function handleSetSelectValue(renderOpts, params) {
19305
+ const { row, column, cellValue } = params;
19306
+ const { field } = column;
19307
+ if (field) {
19308
+ const { options, optionGroups, optionProps = {}, optionGroupProps = {}, props } = renderOpts;
19309
+ if (isEmptyValue(cellValue)) {
19310
+ xeUtils.set(row, field, props && props.multiple ? [] : null);
19311
+ return;
19312
+ }
19313
+ const isMultiVal = xeUtils.indexOf(`${cellValue}`, ",") > -1;
19314
+ const labelProp = optionProps.label || "label";
19315
+ const valueProp = optionProps.value || "value";
19316
+ const labelMpas = {};
19317
+ if (optionGroups && optionGroups.length) {
19318
+ const groupOptions = optionGroupProps.options || "options";
19319
+ for (let i = 0; i < optionGroups.length; i++) {
19320
+ const opts = optionGroups[i][groupOptions] || {};
19321
+ for (let j = 0; j < opts.length; j++) {
19322
+ const item = opts[j];
19323
+ if (isMultiVal) {
19324
+ labelMpas[item[labelProp]] = item;
19325
+ } else if (item[labelProp] == cellValue) {
19326
+ xeUtils.set(row, field, item[valueProp]);
19327
+ return;
19328
+ }
19329
+ }
19330
+ }
19331
+ } else {
19332
+ if (options) {
19333
+ for (let i = 0; i < options.length; i++) {
19334
+ const item = options[i];
19335
+ if (isMultiVal) {
19336
+ labelMpas[item[labelProp]] = item;
19337
+ } else if (item[labelProp] == cellValue) {
19338
+ xeUtils.set(row, field, item[valueProp]);
19339
+ return;
19340
+ }
19341
+ }
19342
+ }
19343
+ }
19344
+ if (isMultiVal) {
19345
+ xeUtils.set(row, field, (isMultiVal ? cellValue.split(",") : [cellValue]).map((label) => {
19346
+ const item = labelMpas[label];
19347
+ return item ? item[valueProp] : label;
19348
+ }));
19349
+ } else {
19350
+ xeUtils.set(row, field, cellValue);
19351
+ }
19352
+ }
19353
+ }
19354
+ function handleFormatTreeSelect(renderOpts, params) {
19355
+ const { cellValue } = params;
19356
+ return handleTreeSelectCellValue(cellValue, renderOpts);
19357
+ }
19358
+ function handleSetTreeSelectValue(renderOpts, params) {
19359
+ const { row, column, cellValue } = params;
19360
+ const { field } = column;
19361
+ if (field) {
19362
+ const { options, optionProps = {} } = renderOpts;
19363
+ const labelProp = optionProps.label || "label";
19364
+ const valueProp = optionProps.value || "value";
19365
+ const childrenProp = optionProps.children || "children";
19366
+ const matchRest = xeUtils.findTree(options || [], (item) => xeUtils.get(item, labelProp) === cellValue, { children: childrenProp });
19367
+ if (matchRest) {
19368
+ const selectItem = matchRest.item;
19369
+ if (selectItem) {
19370
+ xeUtils.set(row, field, selectItem[valueProp]);
19371
+ return;
19372
+ }
19373
+ }
19374
+ xeUtils.set(row, field, cellValue);
19375
+ }
19376
+ }
19214
19377
  renderer$1.mixin({
19215
19378
  input: {
19216
19379
  tableAutoFocus: "input",
@@ -19235,6 +19398,9 @@ renderer$1.mixin({
19235
19398
  return h("select", Object.assign(Object.assign({ key: oIndex, class: "vxe-default-select" }, getNativeAttrs(renderOpts)), getNativeFilterOns(renderOpts, params, option)), renderOpts.optionGroups ? renderNativeOptgroups(renderOpts, params, renderNativeOptions) : renderNativeOptions(renderOpts.options, renderOpts, params));
19236
19399
  });
19237
19400
  },
19401
+ tableCellFormatter: handleFormatSelect,
19402
+ tableCellCopyMethod: handleFormatSelect,
19403
+ tableCellPasteMethod: handleSetSelectValue,
19238
19404
  tableFilterDefaultMethod: handleFilterMethod,
19239
19405
  tableExportMethod: handleExportSelectMethod
19240
19406
  },
@@ -19457,6 +19623,9 @@ renderer$1.mixin({
19457
19623
  const optionValue = option.data;
19458
19624
  return h(getDefaultComponent(renderOpts), Object.assign(Object.assign({}, getCellEditFilterProps(renderOpts, params, optionValue, { options, optionProps, optionGroups, optionGroupProps })), getFloatingFilterOns(renderOpts, params, option)));
19459
19625
  },
19626
+ tableCellFormatter: handleFormatSelect,
19627
+ tableCellCopyMethod: handleFormatSelect,
19628
+ tableCellPasteMethod: handleSetSelectValue,
19460
19629
  tableFilterDefaultMethod: handleFilterMethod,
19461
19630
  tableExportMethod: handleExportSelectMethod
19462
19631
  },
@@ -19490,6 +19659,9 @@ renderer$1.mixin({
19490
19659
  renderTableDefault(renderOpts, params) {
19491
19660
  return getCellLabelVNs(renderOpts, params, getSelectCellValue(renderOpts, params));
19492
19661
  },
19662
+ tableCellFormatter: handleFormatSelect,
19663
+ tableCellCopyMethod: handleFormatSelect,
19664
+ tableCellPasteMethod: handleSetSelectValue,
19493
19665
  tableFilterDefaultMethod: handleFilterMethod,
19494
19666
  tableExportMethod: handleExportSelectMethod
19495
19667
  },
@@ -19499,6 +19671,9 @@ renderer$1.mixin({
19499
19671
  renderTableCell(renderOpts, params) {
19500
19672
  return getCellLabelVNs(renderOpts, params, getTreeSelectCellValue(renderOpts, params));
19501
19673
  },
19674
+ tableCellFormatter: handleFormatTreeSelect,
19675
+ tableCellCopyMethod: handleFormatTreeSelect,
19676
+ tableCellPasteMethod: handleSetTreeSelectValue,
19502
19677
  tableExportMethod: handleExportTreeSelectMethod
19503
19678
  },
19504
19679
  formatTree: {
@@ -19510,6 +19685,9 @@ renderer$1.mixin({
19510
19685
  renderTableDefault(renderOpts, params) {
19511
19686
  return getCellLabelVNs(renderOpts, params, getTreeSelectCellValue(renderOpts, params));
19512
19687
  },
19688
+ tableCellFormatter: handleFormatTreeSelect,
19689
+ tableCellCopyMethod: handleFormatTreeSelect,
19690
+ tableCellPasteMethod: handleSetTreeSelectValue,
19513
19691
  tableExportMethod: handleExportTreeSelectMethod
19514
19692
  },
19515
19693
  VxeTableSelect: {
@@ -19518,6 +19696,9 @@ renderer$1.mixin({
19518
19696
  renderTableCell(renderOpts, params) {
19519
19697
  return getCellLabelVNs(renderOpts, params, getTreeSelectCellValue(renderOpts, params));
19520
19698
  },
19699
+ tableCellFormatter: handleFormatTreeSelect,
19700
+ tableCellCopyMethod: handleFormatTreeSelect,
19701
+ tableCellPasteMethod: handleSetTreeSelectValue,
19521
19702
  tableExportMethod: handleExportTreeSelectMethod
19522
19703
  },
19523
19704
  VxeColorPicker: {
@@ -19690,6 +19871,7 @@ const supportMaxRow = 5e6;
19690
19871
  const customStorageKey = "VXE_CUSTOM_STORE";
19691
19872
  const maxYHeight = 5e6;
19692
19873
  const maxXWidth = 5e6;
19874
+ const sourceType = "table";
19693
19875
  let crossTableDragRowObj = null;
19694
19876
  const VxeTableComponent = defineVxeComponent({
19695
19877
  name: "VxeTable",
@@ -20408,6 +20590,13 @@ const VxeTableComponent = defineVxeComponent({
20408
20590
  });
20409
20591
  return rgColumns;
20410
20592
  });
20593
+ const computeAggFuncColumns = computed(() => {
20594
+ const { rowGroupList, tableColumn } = reactData;
20595
+ if (rowGroupList.length) {
20596
+ return tableColumn.filter((column) => column.aggFunc);
20597
+ }
20598
+ return [];
20599
+ });
20411
20600
  const refMaps = {
20412
20601
  refElem,
20413
20602
  refTooltip,
@@ -20507,6 +20696,7 @@ const VxeTableComponent = defineVxeComponent({
20507
20696
  computeVirtualScrollBars,
20508
20697
  computeRowGroupFields,
20509
20698
  computeRowGroupColumns,
20699
+ computeAggFuncColumns,
20510
20700
  computeFNROpts,
20511
20701
  computeSXOpts,
20512
20702
  computeSYOpts
@@ -21586,8 +21776,29 @@ const VxeTableComponent = defineVxeComponent({
21586
21776
  }
21587
21777
  };
21588
21778
  const getOrderField = (column) => {
21589
- const { sortBy: sortBy2, sortType } = column;
21590
- return (row) => {
21779
+ const { isRowGroupStatus } = reactData;
21780
+ const { sortBy: sortBy2, sortType, aggFunc } = column;
21781
+ return isRowGroupStatus && aggFunc ? (row) => {
21782
+ if (row.isAggregate) {
21783
+ const aggData = row.aggData;
21784
+ const currAggData = aggData ? aggData[column.field] : null;
21785
+ return currAggData ? currAggData.value : null;
21786
+ }
21787
+ let cellValue;
21788
+ if (sortBy2) {
21789
+ cellValue = xeUtils.isFunction(sortBy2) ? sortBy2({ row, column }) : xeUtils.get(row, sortBy2);
21790
+ } else {
21791
+ cellValue = tableMethods.getCellLabel(row, column);
21792
+ }
21793
+ if (!sortType || sortType === "auto") {
21794
+ return isNaN(cellValue) ? cellValue : xeUtils.toNumber(cellValue);
21795
+ } else if (sortType === "number") {
21796
+ return xeUtils.toNumber(cellValue);
21797
+ } else if (sortType === "string") {
21798
+ return xeUtils.toValueString(cellValue);
21799
+ }
21800
+ return cellValue;
21801
+ } : (row) => {
21591
21802
  let cellValue;
21592
21803
  if (sortBy2) {
21593
21804
  cellValue = xeUtils.isFunction(sortBy2) ? sortBy2({ row, column }) : xeUtils.get(row, sortBy2);
@@ -22768,8 +22979,11 @@ const VxeTableComponent = defineVxeComponent({
22768
22979
  handleUpdateAggValues();
22769
22980
  };
22770
22981
  const handleeGroupSummary = (aggList) => {
22982
+ const { fullColumnFieldData } = internalData;
22771
22983
  const aggregateOpts = computeAggregateOpts.value;
22984
+ const aggFuncColumns = computeAggFuncColumns.value;
22772
22985
  const { mapChildrenField } = aggregateOpts;
22986
+ const aggCalcMethod = aggregateOpts.calcValuesMethod || aggregateOpts.countMethod || aggregateOpts.aggregateMethod;
22773
22987
  if (mapChildrenField) {
22774
22988
  xeUtils.lastEach(aggList, (aggRow) => {
22775
22989
  let count = 0;
@@ -22784,6 +22998,53 @@ const VxeTableComponent = defineVxeComponent({
22784
22998
  });
22785
22999
  if ($xeTable.handlePivotTableAggregateData) {
22786
23000
  $xeTable.handlePivotTableAggregateData(aggList);
23001
+ } else {
23002
+ if (aggFuncColumns.length) {
23003
+ xeUtils.lastEach(aggList, (aggRow) => {
23004
+ const aggDtObj = {};
23005
+ const aggData = aggRow.aggData;
23006
+ const groupField = aggRow.groupField;
23007
+ const groupContent = aggRow.groupContent;
23008
+ const childList = mapChildrenField ? aggRow[mapChildrenField] || [] : [];
23009
+ const childCount = aggRow.childCount;
23010
+ const colRest = fullColumnFieldData[groupField] || {};
23011
+ aggFuncColumns.forEach((column) => {
23012
+ const { field } = column;
23013
+ const currAggData = aggData ? aggData[field] : null;
23014
+ const ctParams = {
23015
+ $table: $xeTable,
23016
+ groupField,
23017
+ groupColumn: colRest ? colRest.column : null,
23018
+ column,
23019
+ groupValue: groupContent,
23020
+ childList,
23021
+ childCount,
23022
+ aggValue: currAggData ? currAggData.value : 0,
23023
+ children: childList,
23024
+ totalValue: childCount
23025
+ };
23026
+ let aggVal = 0;
23027
+ if (childList.length && childList[0].isAggregate) {
23028
+ xeUtils.each(childList, (row) => {
23029
+ if (row.isAggregate) {
23030
+ const currAggData2 = row.aggData[field];
23031
+ if (currAggData2) {
23032
+ aggVal += currAggData2.value;
23033
+ }
23034
+ }
23035
+ });
23036
+ } else {
23037
+ aggVal = aggCalcMethod ? aggCalcMethod(ctParams) : aggRow.childCount;
23038
+ }
23039
+ aggDtObj[field] = {
23040
+ type: "count",
23041
+ value: aggVal,
23042
+ label: aggVal
23043
+ };
23044
+ });
23045
+ aggRow.aggData = aggDtObj;
23046
+ });
23047
+ }
22787
23048
  }
22788
23049
  }
22789
23050
  };
@@ -23032,7 +23293,7 @@ const VxeTableComponent = defineVxeComponent({
23032
23293
  handleRecalculateStyle(false, true, true);
23033
23294
  updateRowOffsetTop();
23034
23295
  updateTreeLineStyle();
23035
- resolve();
23296
+ nextTick(() => resolve());
23036
23297
  });
23037
23298
  } else {
23038
23299
  setTimeout(() => {
@@ -23040,7 +23301,7 @@ const VxeTableComponent = defineVxeComponent({
23040
23301
  handleRecalculateStyle(false, true, true);
23041
23302
  updateRowOffsetTop();
23042
23303
  updateTreeLineStyle();
23043
- resolve();
23304
+ nextTick(() => resolve());
23044
23305
  });
23045
23306
  });
23046
23307
  }
@@ -23530,6 +23791,43 @@ const VxeTableComponent = defineVxeComponent({
23530
23791
  loadScrollYData();
23531
23792
  }, fpsTime);
23532
23793
  };
23794
+ const handleSyncScroll = (isRollX, isRollY) => {
23795
+ const { scrollXLoad, scrollYLoad, isAllOverflow } = reactData;
23796
+ internalData.lcsRunTime = Date.now();
23797
+ internalData.lcsTimeout = void 0;
23798
+ internalData.intoRunScroll = false;
23799
+ internalData.inVirtualScroll = false;
23800
+ internalData.inWheelScroll = false;
23801
+ internalData.inHeaderScroll = false;
23802
+ internalData.inBodyScroll = false;
23803
+ internalData.inFooterScroll = false;
23804
+ reactData.lazScrollLoading = false;
23805
+ internalData.scrollRenderType = "";
23806
+ let xRest = null;
23807
+ let yRest = null;
23808
+ if (!isAllOverflow) {
23809
+ calcCellHeight();
23810
+ updateRowOffsetTop();
23811
+ }
23812
+ if (isRollX && scrollXLoad) {
23813
+ xRest = $xeTable.updateScrollXData();
23814
+ }
23815
+ if (isRollY && scrollYLoad) {
23816
+ yRest = $xeTable.updateScrollYData().then(() => {
23817
+ if (!isAllOverflow) {
23818
+ calcCellHeight();
23819
+ updateRowOffsetTop();
23820
+ }
23821
+ return $xeTable.updateScrollYSpace();
23822
+ });
23823
+ }
23824
+ updateRowExpandStyle();
23825
+ return Promise.all([
23826
+ xRest,
23827
+ yRest,
23828
+ $xeTable.updateCellAreas()
23829
+ ]);
23830
+ };
23533
23831
  const checkLastSyncScroll = (isRollX, isRollY) => {
23534
23832
  const { lcsTimeout } = internalData;
23535
23833
  reactData.lazScrollLoading = true;
@@ -23537,35 +23835,16 @@ const VxeTableComponent = defineVxeComponent({
23537
23835
  clearTimeout(lcsTimeout);
23538
23836
  }
23539
23837
  internalData.lcsTimeout = setTimeout(() => {
23540
- const { scrollXLoad, scrollYLoad, isAllOverflow } = reactData;
23541
- internalData.lcsRunTime = Date.now();
23542
- internalData.lcsTimeout = void 0;
23543
- internalData.intoRunScroll = false;
23544
- internalData.inVirtualScroll = false;
23545
- internalData.inWheelScroll = false;
23546
- internalData.inHeaderScroll = false;
23547
- internalData.inBodyScroll = false;
23548
- internalData.inFooterScroll = false;
23549
- reactData.lazScrollLoading = false;
23550
- internalData.scrollRenderType = "";
23551
- if (!isAllOverflow) {
23552
- calcCellHeight();
23553
- updateRowOffsetTop();
23554
- }
23555
- if (isRollX && scrollXLoad) {
23556
- $xeTable.updateScrollXData();
23557
- }
23558
- if (isRollY && scrollYLoad) {
23559
- $xeTable.updateScrollYData().then(() => {
23560
- if (!isAllOverflow) {
23561
- calcCellHeight();
23562
- updateRowOffsetTop();
23563
- }
23564
- $xeTable.updateScrollYSpace();
23565
- });
23566
- }
23567
- updateRowExpandStyle();
23568
- $xeTable.updateCellAreas();
23838
+ handleSyncScroll(isRollX, isRollY).then(() => {
23839
+ if (reactData.scrollXLoad || reactData.scrollYLoad) {
23840
+ nextTick(() => {
23841
+ updateRowExpandStyle();
23842
+ if (!internalData.lcsTimeout) {
23843
+ handleSyncScroll(isRollX, isRollY);
23844
+ }
23845
+ });
23846
+ }
23847
+ });
23569
23848
  }, 200);
23570
23849
  };
23571
23850
  const getWheelSpeed = (lastScrollTime) => {
@@ -23834,6 +24113,33 @@ const VxeTableComponent = defineVxeComponent({
23834
24113
  rowExpandEl.scrollTop = bodyScrollElem.scrollTop;
23835
24114
  }
23836
24115
  };
24116
+ const handleColumnVisible = (visible) => {
24117
+ return function(fieldOrColumn) {
24118
+ let status = false;
24119
+ const cols = xeUtils.isArray(fieldOrColumn) ? fieldOrColumn : [fieldOrColumn];
24120
+ cols.forEach((item) => {
24121
+ const column = handleFieldOrColumn($xeTable, item);
24122
+ if (column) {
24123
+ if (column.children && column.children.length) {
24124
+ xeUtils.eachTree([column], (item2) => {
24125
+ item2.visible = visible;
24126
+ item2.renderVisible = visible;
24127
+ });
24128
+ } else {
24129
+ column.visible = visible;
24130
+ column.renderVisible = visible;
24131
+ }
24132
+ if (!status) {
24133
+ status = true;
24134
+ }
24135
+ }
24136
+ });
24137
+ if (status) {
24138
+ return $xeTable.handleCustom();
24139
+ }
24140
+ return nextTick();
24141
+ };
24142
+ };
23837
24143
  tableMethods = {
23838
24144
  dispatchEvent,
23839
24145
  getEl() {
@@ -23915,15 +24221,15 @@ const VxeTableComponent = defineVxeComponent({
23915
24221
  if ($xeTable.isAggregateRecord(row)) {
23916
24222
  return nextTick();
23917
24223
  }
23918
- const oRow = sourceDataRowIdData[getRowid($xeTable, row)];
24224
+ const rowkey = getRowkey($xeTable);
24225
+ const rowid = xeUtils.get(row, rowkey);
24226
+ const oRow = sourceDataRowIdData[rowid];
23919
24227
  if (oRow && row) {
23920
24228
  if (field) {
23921
24229
  const newValue = xeUtils.clone(xeUtils.get(record || row, field), true);
23922
24230
  xeUtils.set(row, field, newValue);
23923
24231
  xeUtils.set(oRow, field, newValue);
23924
24232
  } else {
23925
- const rowkey = getRowkey($xeTable);
23926
- const rowid = getRowid($xeTable, row);
23927
24233
  const newRecord = xeUtils.clone(Object.assign({}, record), true);
23928
24234
  xeUtils.set(newRecord, rowkey, rowid);
23929
24235
  xeUtils.destructuring(oRow, Object.assign(row, newRecord));
@@ -24176,10 +24482,14 @@ const VxeTableComponent = defineVxeComponent({
24176
24482
  if (!column) {
24177
24483
  return null;
24178
24484
  }
24179
- const { formatter } = column;
24485
+ const { editConfig } = props;
24486
+ const { formatter, editRender, cellRender } = column;
24487
+ const renderOpts = formatter ? null : editConfig && isEnableConf(editRender) ? editRender : isEnableConf(cellRender) ? cellRender : null;
24488
+ const compConf = renderOpts ? renderer.get(renderOpts.name) : null;
24489
+ const tcFormatter = compConf ? compConf.tableCellFormatter : null;
24180
24490
  const cellValue = getCellValue(row, column);
24181
24491
  let cellLabel = cellValue;
24182
- if (formatter) {
24492
+ if (formatter || tcFormatter) {
24183
24493
  let formatData;
24184
24494
  const { fullAllDataRowIdData } = internalData;
24185
24495
  const rowid = getRowid($xeTable, row);
@@ -24197,22 +24507,27 @@ const VxeTableComponent = defineVxeComponent({
24197
24507
  }
24198
24508
  }
24199
24509
  const formatParams = {
24510
+ $table: $xeTable,
24200
24511
  cellValue,
24201
24512
  row,
24202
24513
  rowIndex: $xeTable.getRowIndex(row),
24203
24514
  column,
24204
24515
  columnIndex: $xeTable.getColumnIndex(column)
24205
24516
  };
24206
- if (xeUtils.isString(formatter)) {
24207
- const gFormatOpts = formats.get(formatter);
24208
- const tcFormatMethod = gFormatOpts ? gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod : null;
24209
- cellLabel = tcFormatMethod ? tcFormatMethod(formatParams) : "";
24210
- } else if (xeUtils.isArray(formatter)) {
24211
- const gFormatOpts = formats.get(formatter[0]);
24212
- const tcFormatMethod = gFormatOpts ? gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod : null;
24213
- cellLabel = tcFormatMethod ? tcFormatMethod(formatParams, ...formatter.slice(1)) : "";
24214
- } else {
24215
- cellLabel = formatter(formatParams);
24517
+ if (formatter) {
24518
+ if (xeUtils.isString(formatter)) {
24519
+ const gFormatOpts = formats.get(formatter);
24520
+ const tcFormatMethod = gFormatOpts ? gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod : null;
24521
+ cellLabel = tcFormatMethod ? tcFormatMethod(formatParams) : "";
24522
+ } else if (xeUtils.isArray(formatter)) {
24523
+ const gFormatOpts = formats.get(formatter[0]);
24524
+ const tcFormatMethod = gFormatOpts ? gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod : null;
24525
+ cellLabel = tcFormatMethod ? tcFormatMethod(formatParams, ...formatter.slice(1)) : "";
24526
+ } else {
24527
+ cellLabel = `${formatter(formatParams)}`;
24528
+ }
24529
+ } else if (renderOpts && tcFormatter) {
24530
+ cellLabel = `${tcFormatter(renderOpts, formatParams)}`;
24216
24531
  }
24217
24532
  if (formatData) {
24218
24533
  formatData[colid] = { value: cellValue, label: cellLabel };
@@ -24257,6 +24572,7 @@ const VxeTableComponent = defineVxeComponent({
24257
24572
  }
24258
24573
  }
24259
24574
  const footerFormatParams = {
24575
+ $table: $xeTable,
24260
24576
  cellValue: itemValue,
24261
24577
  itemValue,
24262
24578
  row,
@@ -24422,7 +24738,6 @@ const VxeTableComponent = defineVxeComponent({
24422
24738
  }
24423
24739
  }
24424
24740
  const rest = $xeTable.handleRowDragSwapEvent(null, true, dragRow, prevDragRow, dragPos || defPos, dragToChild === true);
24425
- clearRowDragData();
24426
24741
  return rest;
24427
24742
  },
24428
24743
  getFullColumns() {
@@ -24623,40 +24938,8 @@ const VxeTableComponent = defineVxeComponent({
24623
24938
  }
24624
24939
  return nextTick();
24625
24940
  },
24626
- hideColumn(fieldOrColumn) {
24627
- let status = false;
24628
- const cols = xeUtils.isArray(fieldOrColumn) ? fieldOrColumn : [fieldOrColumn];
24629
- cols.forEach((item) => {
24630
- const column = handleFieldOrColumn($xeTable, item);
24631
- if (column && column.visible) {
24632
- column.visible = false;
24633
- if (!status) {
24634
- status = true;
24635
- }
24636
- }
24637
- });
24638
- if (status) {
24639
- return tablePrivateMethods.handleCustom();
24640
- }
24641
- return nextTick();
24642
- },
24643
- showColumn(fieldOrColumn) {
24644
- let status = false;
24645
- const cols = xeUtils.isArray(fieldOrColumn) ? fieldOrColumn : [fieldOrColumn];
24646
- cols.forEach((item) => {
24647
- const column = handleFieldOrColumn($xeTable, item);
24648
- if (column && !column.visible) {
24649
- column.visible = true;
24650
- if (!status) {
24651
- status = true;
24652
- }
24653
- }
24654
- });
24655
- if (status) {
24656
- return tablePrivateMethods.handleCustom();
24657
- }
24658
- return nextTick();
24659
- },
24941
+ hideColumn: handleColumnVisible(false),
24942
+ showColumn: handleColumnVisible(true),
24660
24943
  setColumnWidth(fieldOrColumn, width) {
24661
24944
  const { elemStore } = internalData;
24662
24945
  let status = false;
@@ -25714,6 +25997,10 @@ const VxeTableComponent = defineVxeComponent({
25714
25997
  const { isRowGroupStatus } = reactData;
25715
25998
  return isRowGroupStatus && row && row.isAggregate && childrenField && mapChildrenField ? row[mapChildrenField] || [] : [];
25716
25999
  },
26000
+ refreshAggregateCalcValues() {
26001
+ updateGroupData();
26002
+ return nextTick();
26003
+ },
25717
26004
  isAggregateExpandByRow(row) {
25718
26005
  const { rowGroupExpandedFlag } = reactData;
25719
26006
  const { rowGroupExpandedMaps } = internalData;
@@ -27044,6 +27331,15 @@ const VxeTableComponent = defineVxeComponent({
27044
27331
  reactData.dragRow = null;
27045
27332
  reactData.dragCol = null;
27046
27333
  };
27334
+ const clearColDragData = () => {
27335
+ const el = refElem.value;
27336
+ hideDropTip();
27337
+ clearColDropOrigin();
27338
+ clearColAnimate(el, [".vxe-table--column"]);
27339
+ internalData.prevDragToChild = false;
27340
+ reactData.dragRow = null;
27341
+ reactData.dragCol = null;
27342
+ };
27047
27343
  const handleTooltip = (evnt, tipOpts, type, tdEl, overflowElem, tipElem, params) => {
27048
27344
  const tipOverEl = overflowElem || tdEl;
27049
27345
  if (!tipOverEl) {
@@ -28063,7 +28359,7 @@ const VxeTableComponent = defineVxeComponent({
28063
28359
  reactData.mergeFootFlag++;
28064
28360
  },
28065
28361
  handleAggregateSummaryData() {
28066
- return updateGroupData();
28362
+ return $xeTable.refreshAggregateCalcValues();
28067
28363
  },
28068
28364
  triggerHeaderTitleEvent(evnt, iconParams, params) {
28069
28365
  const tipContent = iconParams.content || iconParams.message;
@@ -28683,6 +28979,8 @@ const VxeTableComponent = defineVxeComponent({
28683
28979
  const isDragToChildFlag = isSelfToChildDrag && dragToChildMethod ? dragToChildMethod(dragParams) : prevDragToChild;
28684
28980
  return Promise.resolve(dEndMethod ? dEndMethod(dragParams) : true).then((status) => {
28685
28981
  if (!status) {
28982
+ clearRowDragData();
28983
+ clearCrossTableDragStatus();
28686
28984
  return errRest;
28687
28985
  }
28688
28986
  const dragRowid = getRowid($xeTable, dragRow);
@@ -28792,6 +29090,8 @@ const VxeTableComponent = defineVxeComponent({
28792
29090
  afterFullData.splice(nafIndex, 0, dragRow);
28793
29091
  tableFullData.splice(ntfIndex, 0, dragRow);
28794
29092
  }
29093
+ clearRowDragData();
29094
+ clearCrossTableDragStatus();
28795
29095
  $xeTable.handleTableData(treeConfig && transform);
28796
29096
  $xeTable.cacheRowMap(false);
28797
29097
  updateScrollYStatus();
@@ -28892,8 +29192,14 @@ const VxeTableComponent = defineVxeComponent({
28892
29192
  return errRest;
28893
29193
  });
28894
29194
  }
29195
+ clearRowDragData();
29196
+ clearCrossTableDragStatus();
28895
29197
  return Promise.resolve(errRest);
28896
29198
  },
29199
+ handleCrossTableRowDragCancelEvent() {
29200
+ clearRowDragData();
29201
+ clearCrossTableDragStatus();
29202
+ },
28897
29203
  handleCrossTableRowDragFinishEvent(evnt) {
28898
29204
  const { tableData } = reactData;
28899
29205
  const { fullAllDataRowIdData } = internalData;
@@ -29011,6 +29317,13 @@ const VxeTableComponent = defineVxeComponent({
29011
29317
  };
29012
29318
  Promise.resolve(dragEndMethod ? dragEndMethod(dragParams) : true).then((status) => {
29013
29319
  if (!status) {
29320
+ if ($oldTable) {
29321
+ if ($oldTable.xID !== $xeTable.xID) {
29322
+ $oldTable.handleCrossTableRowDragCancelEvent(evnt);
29323
+ }
29324
+ }
29325
+ clearRowDragData();
29326
+ clearCrossTableDragStatus();
29014
29327
  return errRest;
29015
29328
  }
29016
29329
  let insertRest = Promise.resolve();
@@ -29132,8 +29445,6 @@ const VxeTableComponent = defineVxeComponent({
29132
29445
  } else {
29133
29446
  $xeTable.handleRowDragSwapEvent(evnt, true, dragRow, prevDragRow, prevDragPos, prevDragToChild);
29134
29447
  }
29135
- clearRowDragData();
29136
- clearCrossTableDragStatus();
29137
29448
  },
29138
29449
  handleRowDragDragoverEvent(evnt) {
29139
29450
  const { treeConfig } = props;
@@ -29272,6 +29583,8 @@ const VxeTableComponent = defineVxeComponent({
29272
29583
  const isDragToChildFlag = isSelfToChildDrag && dragToChildMethod ? dragToChildMethod(dragParams) : prevDragToChild;
29273
29584
  return Promise.resolve(dragEndMethod ? dragEndMethod(dragParams) : true).then((status) => {
29274
29585
  if (!status) {
29586
+ clearColDragData();
29587
+ clearCrossTableDragStatus();
29275
29588
  return errRest;
29276
29589
  }
29277
29590
  let dragTargetColumn = null;
@@ -29398,6 +29711,8 @@ const VxeTableComponent = defineVxeComponent({
29398
29711
  $xeTable.clearCopyCellArea();
29399
29712
  }
29400
29713
  }
29714
+ clearColDragData();
29715
+ clearCrossTableDragStatus();
29401
29716
  if (evnt) {
29402
29717
  dispatchEvent("column-dragend", {
29403
29718
  oldColumn: dragColumn,
@@ -29497,20 +29812,14 @@ const VxeTableComponent = defineVxeComponent({
29497
29812
  return errRest;
29498
29813
  });
29499
29814
  }
29815
+ clearColDragData();
29816
+ clearCrossTableDragStatus();
29500
29817
  return Promise.resolve(errRest);
29501
29818
  },
29502
29819
  handleHeaderCellDragDragendEvent(evnt) {
29503
29820
  const { dragCol } = reactData;
29504
29821
  const { prevDragCol, prevDragPos, prevDragToChild } = internalData;
29505
- const el = refElem.value;
29506
29822
  $xeTable.handleColDragSwapEvent(evnt, true, dragCol, prevDragCol, prevDragPos, prevDragToChild);
29507
- hideDropTip();
29508
- clearColDropOrigin();
29509
- clearColAnimate(el, [".vxe-table--column"]);
29510
- internalData.prevDragToChild = false;
29511
- reactData.dragRow = null;
29512
- reactData.dragCol = null;
29513
- clearCrossTableDragStatus();
29514
29823
  },
29515
29824
  handleHeaderCellDragDragoverEvent(evnt) {
29516
29825
  const { dragCol } = reactData;
@@ -29669,6 +29978,7 @@ const VxeTableComponent = defineVxeComponent({
29669
29978
  }
29670
29979
  reactData.lastScrollTime = Date.now();
29671
29980
  const evntParams = Object.assign({
29981
+ source: sourceType,
29672
29982
  scrollTop,
29673
29983
  scrollLeft,
29674
29984
  bodyHeight,
@@ -30315,7 +30625,7 @@ const VxeTableComponent = defineVxeComponent({
30315
30625
  $xeGanttView.handleUpdateSYSpace();
30316
30626
  }
30317
30627
  return nextTick().then(() => {
30318
- updateStyle();
30628
+ return updateStyle();
30319
30629
  });
30320
30630
  },
30321
30631
  updateScrollXData() {
@@ -30880,7 +31190,8 @@ const VxeTableComponent = defineVxeComponent({
30880
31190
  h("div", {
30881
31191
  key: "tn",
30882
31192
  ref: refEmptyPlaceholder,
30883
- class: "vxe-table--empty-place-wrapper"
31193
+ class: "vxe-table--empty-place-wrapper",
31194
+ xid: xID
30884
31195
  }, [
30885
31196
  h("div", {
30886
31197
  class: "vxe-table--empty-placeholder"
@@ -31263,7 +31574,7 @@ const VxeTableComponent = defineVxeComponent({
31263
31574
  }
31264
31575
  handleUpdateRowGroup(groupFields);
31265
31576
  nextTick(() => {
31266
- const { exportConfig, importConfig, treeConfig, highlightCurrentRow, highlightCurrentColumn } = props;
31577
+ const { exportConfig, importConfig, treeConfig } = props;
31267
31578
  const { scrollXStore, scrollYStore } = internalData;
31268
31579
  const editOpts = computeEditOpts.value;
31269
31580
  const treeOpts = computeTreeOpts.value;
@@ -31275,9 +31586,6 @@ const VxeTableComponent = defineVxeComponent({
31275
31586
  const mouseOpts = computeMouseOpts.value;
31276
31587
  const exportOpts = computeExportOpts.value;
31277
31588
  const importOpts = computeImportOpts.value;
31278
- const currentRowOpts = computeCurrentRowOpts.value;
31279
- const currentColumnOpts = computeCurrentColumnOpts.value;
31280
- const keyboardOpts = computeKeyboardOpts.value;
31281
31589
  const aggregateOpts2 = computeAggregateOpts.value;
31282
31590
  const rowDragOpts = computeRowDragOpts.value;
31283
31591
  if (props.rowId) {
@@ -31420,12 +31728,6 @@ const VxeTableComponent = defineVxeComponent({
31420
31728
  if (columnOpts.currentMethod) {
31421
31729
  warnLog("vxe.error.delProp", ["row-config.currentMethod", "current-column-config.beforeSelectMethod"]);
31422
31730
  }
31423
- if ((rowOpts2.isCurrent || highlightCurrentRow) && props.keyboardConfig && keyboardOpts.isArrow && !xeUtils.isBoolean(currentRowOpts.isFollowSelected)) {
31424
- warnLog("vxe.error.notConflictProp", ["row-config.isCurrent", "current-row-config.isFollowSelected"]);
31425
- }
31426
- if ((columnOpts.isCurrent || highlightCurrentColumn) && props.keyboardConfig && keyboardOpts.isArrow && !xeUtils.isBoolean(currentColumnOpts.isFollowSelected)) {
31427
- warnLog("vxe.error.notConflictProp", ["column-config.isCurrent", "current-column-config.isFollowSelected"]);
31428
- }
31429
31731
  Object.assign(scrollYStore, {
31430
31732
  startIndex: 0,
31431
31733
  endIndex: 0,
@@ -31481,6 +31783,7 @@ const VxeTableComponent = defineVxeComponent({
31481
31783
  if (resizeObserver) {
31482
31784
  resizeObserver.disconnect();
31483
31785
  }
31786
+ $xeTable.closeTooltip();
31484
31787
  tableMethods.closeFilter();
31485
31788
  if ($xeTable.closeMenu) {
31486
31789
  $xeTable.closeMenu();
@@ -31794,9 +32097,9 @@ function updateMenuTreeOrder(params) {
31794
32097
  data: params
31795
32098
  });
31796
32099
  }
31797
- const _hoisted_1$n = { class: "add-menu" };
32100
+ const _hoisted_1$m = { class: "add-menu" };
31798
32101
  const _hoisted_2$d = { class: "actions-wrap" };
31799
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
32102
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
31800
32103
  __name: "AddMenu",
31801
32104
  props: {
31802
32105
  data: {
@@ -31867,7 +32170,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
31867
32170
  const _component_a_form = Form;
31868
32171
  const _component_a_button = Button$1;
31869
32172
  const _component_a_space = Space;
31870
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
32173
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
31871
32174
  createVNode(_component_a_form, {
31872
32175
  model: formState.value,
31873
32176
  ref_key: "formRef",
@@ -31884,7 +32187,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
31884
32187
  createVNode(_component_a_input, {
31885
32188
  placeholder: _ctx.$t("uc_common.plsEnter"),
31886
32189
  value: formState.value.funName,
31887
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => formState.value.funName = $event)
32190
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => formState.value.funName = $event),
32191
+ autocomplete: "off"
31888
32192
  }, null, 8, ["placeholder", "value"])
31889
32193
  ]),
31890
32194
  _: 1
@@ -31898,7 +32202,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
31898
32202
  createVNode(_component_a_input, {
31899
32203
  placeholder: _ctx.$t("uc_common.plsEnter"),
31900
32204
  value: formState.value.url,
31901
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => formState.value.url = $event)
32205
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => formState.value.url = $event),
32206
+ autocomplete: "off"
31902
32207
  }, null, 8, ["placeholder", "value"])
31903
32208
  ]),
31904
32209
  _: 1
@@ -31911,7 +32216,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
31911
32216
  createVNode(_component_a_input, {
31912
32217
  placeholder: _ctx.$t("uc_common.plsEnter"),
31913
32218
  value: formState.value.image,
31914
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => formState.value.image = $event)
32219
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => formState.value.image = $event),
32220
+ autocomplete: "off"
31915
32221
  }, null, 8, ["placeholder", "value"])
31916
32222
  ]),
31917
32223
  _: 1
@@ -31981,14 +32287,14 @@ const _export_sfc = (sfc, props) => {
31981
32287
  }
31982
32288
  return target;
31983
32289
  };
31984
- const AddMenu = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-1d0da3f2"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/AddMenu.vue"]]);
32290
+ const AddMenu = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-1d0da3f2"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/AddMenu.vue"]]);
31985
32291
  const cssvar = "";
31986
- const _hoisted_1$m = { class: "sys-functions" };
32292
+ const _hoisted_1$l = { class: "sys-functions" };
31987
32293
  const _hoisted_2$c = {
31988
32294
  key: 0,
31989
32295
  class: "left-syslist"
31990
32296
  };
31991
- const _hoisted_3$a = { class: "page-title" };
32297
+ const _hoisted_3$9 = { class: "page-title" };
31992
32298
  const _hoisted_4$8 = ["onClick"];
31993
32299
  const _hoisted_5$5 = ["src"];
31994
32300
  const _hoisted_6$5 = { class: "sys-item-name" };
@@ -32004,7 +32310,7 @@ const _hoisted_10$4 = {
32004
32310
  };
32005
32311
  const _hoisted_11$4 = { class: "no-data-text" };
32006
32312
  const _hoisted_12$4 = { style: { "height": "32px", "margin-bottom": "10px" } };
32007
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
32313
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
32008
32314
  __name: "index",
32009
32315
  setup(__props) {
32010
32316
  const { t: t2 } = useI18n();
@@ -32307,9 +32613,9 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
32307
32613
  prefixCls: unref(prefixCls)
32308
32614
  }, {
32309
32615
  default: withCtx(() => [
32310
- createElementVNode("div", _hoisted_1$m, [
32616
+ createElementVNode("div", _hoisted_1$l, [
32311
32617
  unref(systemId) === "usercenter" ? (openBlock(), createElementBlock("div", _hoisted_2$c, [
32312
- createElementVNode("div", _hoisted_3$a, toDisplayString(_ctx.$t("uc_fun.syslist")), 1),
32618
+ createElementVNode("div", _hoisted_3$9, toDisplayString(_ctx.$t("uc_fun.syslist")), 1),
32313
32619
  (openBlock(true), createElementBlock(Fragment, null, renderList(sysList.value, (item) => {
32314
32620
  return openBlock(), createElementBlock("div", {
32315
32621
  class: normalizeClass(["sys-item", { "sys-item-active": selectedSys.value === item.systemId }]),
@@ -32345,6 +32651,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
32345
32651
  <a-input\r
32346
32652
  v-model:value="queryParam.funName"\r
32347
32653
  :placeholder="$t('uc_common.plsEnter')"\r
32654
+ autocomplete="off"\r
32348
32655
  />\r
32349
32656
  </a-form-item>\r
32350
32657
  <a-form-item :label="$t('uc_fun.status')">\r
@@ -32460,7 +32767,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
32460
32767
  }
32461
32768
  });
32462
32769
  const index_vue_vue_type_style_index_0_scoped_04710d5f_lang = "";
32463
- const index$8 = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-04710d5f"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/index.vue"]]);
32770
+ const index$8 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-04710d5f"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/index.vue"]]);
32464
32771
  function usePermissionId() {
32465
32772
  const hasPermissionId = (id) => {
32466
32773
  const hasPermission$1 = hasPermission(id);
@@ -32468,24 +32775,71 @@ function usePermissionId() {
32468
32775
  };
32469
32776
  return { hasPermissionId };
32470
32777
  }
32778
+ function toFormatDate(date, format) {
32779
+ const o = {
32780
+ "M+": date.getMonth() + 1,
32781
+ "d+": date.getDate(),
32782
+ "H+": date.getHours(),
32783
+ "m+": date.getMinutes(),
32784
+ "s+": date.getSeconds(),
32785
+ "q+": Math.floor((date.getMonth() + 3) / 3),
32786
+ S: date.getMilliseconds()
32787
+ };
32788
+ let result = format;
32789
+ if (/(y+)/.test(result)) {
32790
+ result = result.replace(
32791
+ RegExp.$1,
32792
+ (date.getFullYear() + "").substr(4 - RegExp.$1.length)
32793
+ );
32794
+ }
32795
+ for (const k2 in o) {
32796
+ if (new RegExp("(" + k2 + ")").test(result)) {
32797
+ result = result.replace(
32798
+ RegExp.$1,
32799
+ RegExp.$1.length == 1 ? o[k2] : ("00" + o[k2]).substr(("" + o[k2]).length)
32800
+ );
32801
+ }
32802
+ }
32803
+ return result;
32804
+ }
32805
+ function toUTC(date) {
32806
+ const UTCyear = date.getUTCFullYear();
32807
+ let UTCmonth = date.getUTCMonth() + 1;
32808
+ let UTCday = date.getUTCDate();
32809
+ let UTChours = date.getUTCHours();
32810
+ let UTCmin = date.getUTCMinutes();
32811
+ let UTCseconds = date.getUTCSeconds();
32812
+ UTCmonth = UTCmonth < 10 ? "0" + UTCmonth : UTCmonth;
32813
+ UTCday = UTCday < 10 ? "0" + UTCday : UTCday;
32814
+ UTChours = UTChours < 10 ? "0" + UTChours : UTChours;
32815
+ UTCmin = UTCmin < 10 ? "0" + UTCmin : UTCmin;
32816
+ UTCseconds = UTCseconds < 10 ? "0" + UTCseconds : UTCseconds;
32817
+ return UTCyear + "-" + UTCmonth + "-" + UTCday + "T" + UTChours + ":" + UTCmin + ":" + UTCseconds + ".000+0000";
32818
+ }
32819
+ function getOffset(timezone) {
32820
+ let offset = timezone.substr(7);
32821
+ if (!offset) {
32822
+ offset = 0;
32823
+ } else {
32824
+ offset = offset * 1;
32825
+ }
32826
+ offset = offset * 60 + new Date().getTimezoneOffset();
32827
+ return offset;
32828
+ }
32471
32829
  function useSysParams() {
32472
32830
  const userStore = useUserStore();
32473
- function formatDate(date, showTime = true) {
32474
- if (date === null || date === void 0 || date === "") {
32831
+ function formatDate(dateTime, showTime = true) {
32832
+ if (!dateTime) {
32475
32833
  return "";
32476
32834
  }
32477
- let dateFormat = "YYYY-MM-DD HH:mm:ss";
32835
+ let dateFormat = userStore.dateFormat || "yyyy-MM-dd HH:mm:ss";
32478
32836
  if (!showTime) {
32479
- dateFormat = "YYYY-MM-DD";
32480
- } else if (typeof showTime === "string") {
32481
- dateFormat = showTime;
32482
- }
32483
- let d = dayjs(date);
32484
- const offset = Number(userStore.timezone.replace("Etc/GMT", ""));
32485
- if (!isNaN(offset)) {
32486
- d = d.utcOffset(offset * 60);
32837
+ dateFormat = dateFormat.replace(/[H,m,s,:,\s]/g, "");
32487
32838
  }
32488
- return d.isValid() ? d.format(dateFormat) : date;
32839
+ const date = new Date(dateTime);
32840
+ const offset = getOffset(userStore.timezone || "Etc/GMT");
32841
+ date.setMinutes(date.getMinutes() + offset);
32842
+ return toFormatDate(date, dateFormat);
32489
32843
  }
32490
32844
  function toUtcDate(date) {
32491
32845
  if (date === null || date === void 0 || date === "") {
@@ -32606,8 +32960,8 @@ function getRegionListById(params) {
32606
32960
  params
32607
32961
  });
32608
32962
  }
32609
- const _hoisted_1$l = { class: "textarea-wrapper" };
32610
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
32963
+ const _hoisted_1$k = { class: "textarea-wrapper" };
32964
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
32611
32965
  __name: "InputTextarea",
32612
32966
  props: {
32613
32967
  showCount: {
@@ -32640,7 +32994,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
32640
32994
  };
32641
32995
  return (_ctx, _cache) => {
32642
32996
  const _component_a_textarea = Textarea;
32643
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
32997
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
32644
32998
  createVNode(_component_a_textarea, mergeProps(_ctx.$attrs, {
32645
32999
  value: curValue.value,
32646
33000
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => curValue.value = $event),
@@ -32653,9 +33007,9 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
32653
33007
  }
32654
33008
  });
32655
33009
  const InputTextarea_vue_vue_type_style_index_0_scoped_939f274f_lang = "";
32656
- const InputTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-939f274f"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/inhe/input/InputTextarea.vue"]]);
32657
- const _hoisted_1$k = ["spinning"];
32658
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
33010
+ const InputTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-939f274f"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/inhe/input/InputTextarea.vue"]]);
33011
+ const _hoisted_1$j = ["spinning"];
33012
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
32659
33013
  __name: "DeptEdit",
32660
33014
  emits: ["ok"],
32661
33015
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -32834,6 +33188,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
32834
33188
  maxLength: 50,
32835
33189
  value: form.name,
32836
33190
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.name = $event),
33191
+ autocomplete: "off",
32837
33192
  rules: [{ required: true, message: _ctx.$t("uc_organ.deptName_msg1") }]
32838
33193
  }, null, 8, ["placeholder", "value", "rules"])
32839
33194
  ]),
@@ -32861,15 +33216,15 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
32861
33216
  ]),
32862
33217
  _: 1
32863
33218
  }, 8, ["title", "open"])
32864
- ], 8, _hoisted_1$k)
33219
+ ], 8, _hoisted_1$j)
32865
33220
  ]);
32866
33221
  };
32867
33222
  }
32868
33223
  });
32869
33224
  const DeptEdit_vue_vue_type_style_index_0_scoped_58074060_lang = "";
32870
- const DeptEdit = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-58074060"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptEdit.vue"]]);
32871
- const _hoisted_1$j = ["spinning"];
32872
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
33225
+ const DeptEdit = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-58074060"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptEdit.vue"]]);
33226
+ const _hoisted_1$i = ["spinning"];
33227
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
32873
33228
  __name: "BranchEdit",
32874
33229
  emits: ["ok"],
32875
33230
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -33061,6 +33416,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
33061
33416
  createVNode(_component_a_input, {
33062
33417
  placeholder: _ctx.$t("uc_common.plsEnter"),
33063
33418
  maxLength: 50,
33419
+ autocomplete: "off",
33064
33420
  value: form.name,
33065
33421
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.name = $event)
33066
33422
  }, null, 8, ["placeholder", "value"])
@@ -33076,6 +33432,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
33076
33432
  placeholder: _ctx.$t("uc_common.plsEnter"),
33077
33433
  value: form.refCode,
33078
33434
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.refCode = $event),
33435
+ autocomplete: "off",
33079
33436
  maxLength: 4
33080
33437
  }, null, 8, ["placeholder", "value"])
33081
33438
  ]),
@@ -33103,15 +33460,15 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
33103
33460
  ]),
33104
33461
  _: 1
33105
33462
  }, 8, ["title", "open"])
33106
- ], 8, _hoisted_1$j)
33463
+ ], 8, _hoisted_1$i)
33107
33464
  ]);
33108
33465
  };
33109
33466
  }
33110
33467
  });
33111
33468
  const BranchEdit_vue_vue_type_style_index_0_scoped_db8da10b_lang = "";
33112
- const BranchEdit = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-db8da10b"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranchEdit.vue"]]);
33113
- const _hoisted_1$i = { class: "branch-detail-wrap" };
33114
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
33469
+ const BranchEdit = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-db8da10b"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranchEdit.vue"]]);
33470
+ const _hoisted_1$h = { class: "branch-detail-wrap" };
33471
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
33115
33472
  __name: "BranDetail",
33116
33473
  props: {
33117
33474
  type: {
@@ -33149,7 +33506,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
33149
33506
  return (_ctx, _cache) => {
33150
33507
  const _component_a_descriptions_item = DescriptionsItem;
33151
33508
  const _component_a_descriptions = Descriptions;
33152
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
33509
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
33153
33510
  createVNode(_component_a_descriptions, {
33154
33511
  bordered: "",
33155
33512
  column: 2,
@@ -33236,10 +33593,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
33236
33593
  }
33237
33594
  });
33238
33595
  const BranDetail_vue_vue_type_style_index_0_scoped_207f1e3e_lang = "";
33239
- const BranDetail = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-207f1e3e"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranDetail.vue"]]);
33240
- const _hoisted_1$h = { class: "pay_info" };
33596
+ const BranDetail = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-207f1e3e"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranDetail.vue"]]);
33597
+ const _hoisted_1$g = { class: "pay_info" };
33241
33598
  const _hoisted_2$b = { class: "pay_span" };
33242
- const _hoisted_3$9 = { class: "pay_span1" };
33599
+ const _hoisted_3$8 = { class: "pay_span1" };
33243
33600
  const _hoisted_4$7 = { class: "pay_span" };
33244
33601
  const _hoisted_5$4 = { class: "pay_span1" };
33245
33602
  const _hoisted_6$4 = { class: "pay_span" };
@@ -33247,13 +33604,14 @@ const _hoisted_7$4 = { class: "pay_span1" };
33247
33604
  const _hoisted_8$4 = { class: "pay_span" };
33248
33605
  const _hoisted_9$4 = { class: "pay_span1" };
33249
33606
  const _hoisted_10$3 = { class: "pay_span" };
33250
- const _hoisted_11$3 = { class: "pay_span" };
33251
- const _hoisted_12$3 = { class: "pay_span1" };
33252
- const _hoisted_13$3 = { class: "pay_span" };
33253
- const _hoisted_14$3 = { class: "pay_span1" };
33254
- const _hoisted_15$3 = { class: "pay_span" };
33255
- const _hoisted_16$3 = { class: "pay_span1" };
33256
- const _hoisted_17$3 = { style: {
33607
+ const _hoisted_11$3 = { class: "pay_span1" };
33608
+ const _hoisted_12$3 = { class: "pay_span" };
33609
+ const _hoisted_13$3 = { class: "pay_span1" };
33610
+ const _hoisted_14$3 = { class: "pay_span" };
33611
+ const _hoisted_15$3 = { class: "pay_span1" };
33612
+ const _hoisted_16$3 = { class: "pay_span" };
33613
+ const _hoisted_17$3 = { class: "pay_span1" };
33614
+ const _hoisted_18$2 = { style: {
33257
33615
  position: "absolute",
33258
33616
  right: 0,
33259
33617
  bottom: 0,
@@ -33264,9 +33622,10 @@ const _hoisted_17$3 = { style: {
33264
33622
  textAlign: "center",
33265
33623
  zIndex: 1
33266
33624
  } };
33267
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
33625
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
33268
33626
  __name: "DeptDetail",
33269
33627
  setup(__props, { expose: __expose }) {
33628
+ const { formatDate } = useSysParams();
33270
33629
  const visible = ref(false);
33271
33630
  const insertData = reactive({
33272
33631
  parentBranch: "",
@@ -33296,7 +33655,6 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
33296
33655
  });
33297
33656
  return (_ctx, _cache) => {
33298
33657
  const _component_a_divider = Divider;
33299
- const _component_uc_pick_label = resolveComponent("uc-pick-label");
33300
33658
  const _component_a_button = Button$1;
33301
33659
  const _component_a_drawer = Drawer$1;
33302
33660
  return openBlock(), createBlock(_component_a_drawer, {
@@ -33310,9 +33668,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
33310
33668
  }, {
33311
33669
  default: withCtx(() => [
33312
33670
  createElementVNode("div", null, [
33313
- createElementVNode("div", _hoisted_1$h, [
33671
+ createElementVNode("div", _hoisted_1$g, [
33314
33672
  createElementVNode("span", _hoisted_2$b, toDisplayString(_ctx.$t("uc_organ.parentBranch")), 1),
33315
- createElementVNode("span", _hoisted_3$9, toDisplayString(insertData.parentBranch), 1),
33673
+ createElementVNode("span", _hoisted_3$8, toDisplayString(insertData.parentBranch), 1),
33316
33674
  createElementVNode("span", _hoisted_4$7, toDisplayString(_ctx.$t("uc_organ.superiorRegion")), 1),
33317
33675
  createElementVNode("span", _hoisted_5$4, toDisplayString(insertData.parentRegion), 1),
33318
33676
  createElementVNode("span", _hoisted_6$4, toDisplayString(_ctx.$t("uc_organ.deptName")), 1),
@@ -33325,27 +33683,16 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
33325
33683
  createElementVNode("span", _hoisted_9$4, toDisplayString(insertData.remarks ? insertData.remarks : "--"), 1),
33326
33684
  createVNode(_component_a_divider, { style: { "margin-top": "40px" } }),
33327
33685
  createElementVNode("span", _hoisted_10$3, toDisplayString(_ctx.$t("uc_organ.cdate")), 1),
33328
- createVNode(_component_uc_pick_label, {
33329
- class: "pay_span1",
33330
- defaultValue: insertData.cdate
33331
- }, null, 8, ["defaultValue"]),
33332
- createElementVNode("span", _hoisted_11$3, toDisplayString(_ctx.$t("uc_organ.coperator")), 1),
33333
- createElementVNode("span", _hoisted_12$3, toDisplayString(insertData.coperator), 1),
33334
- createElementVNode("span", _hoisted_13$3, toDisplayString(_ctx.$t("uc_organ.udate")), 1),
33335
- withDirectives(createVNode(_component_uc_pick_label, {
33336
- class: "pay_span1",
33337
- defaultValue: insertData.udate
33338
- }, null, 8, ["defaultValue"]), [
33339
- [vShow, insertData.udate]
33340
- ]),
33341
- withDirectives(createElementVNode("span", _hoisted_14$3, toDisplayString("--"), 512), [
33342
- [vShow, !insertData.udate]
33343
- ]),
33344
- createElementVNode("span", _hoisted_15$3, toDisplayString(_ctx.$t("uc_organ.uoperator")), 1),
33345
- createElementVNode("span", _hoisted_16$3, toDisplayString(insertData.uoperator ? insertData.uoperator : "--"), 1)
33686
+ createElementVNode("span", _hoisted_11$3, toDisplayString(unref(formatDate)(insertData.cdate) || "-"), 1),
33687
+ createElementVNode("span", _hoisted_12$3, toDisplayString(_ctx.$t("uc_organ.coperator")), 1),
33688
+ createElementVNode("span", _hoisted_13$3, toDisplayString(insertData.coperator), 1),
33689
+ createElementVNode("span", _hoisted_14$3, toDisplayString(_ctx.$t("uc_organ.udate")), 1),
33690
+ createElementVNode("span", _hoisted_15$3, toDisplayString(unref(formatDate)(insertData.udate) || "--"), 1),
33691
+ createElementVNode("span", _hoisted_16$3, toDisplayString(_ctx.$t("uc_organ.uoperator")), 1),
33692
+ createElementVNode("span", _hoisted_17$3, toDisplayString(insertData.uoperator ? insertData.uoperator : "--"), 1)
33346
33693
  ])
33347
33694
  ]),
33348
- createElementVNode("div", _hoisted_17$3, [
33695
+ createElementVNode("div", _hoisted_18$2, [
33349
33696
  createVNode(_component_a_button, {
33350
33697
  onClick: _cache[0] || (_cache[0] = ($event) => onCancel())
33351
33698
  }, {
@@ -33363,7 +33710,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
33363
33710
  }
33364
33711
  });
33365
33712
  const DeptDetail_vue_vue_type_style_index_0_scoped_7ab63a77_lang = "";
33366
- const DeptDetail = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-7ab63a77"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptDetail.vue"]]);
33713
+ const DeptDetail = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-7ab63a77"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptDetail.vue"]]);
33367
33714
  function useInitUserinfo() {
33368
33715
  onBeforeMount(async () => {
33369
33716
  var _a;
@@ -33378,9 +33725,9 @@ function useInitUserinfo() {
33378
33725
  }
33379
33726
  });
33380
33727
  }
33381
- const _hoisted_1$g = { class: "organ-wrap" };
33728
+ const _hoisted_1$f = { class: "organ-wrap" };
33382
33729
  const _hoisted_2$a = { class: "topInfo" };
33383
- const _hoisted_3$8 = { class: "form-btns" };
33730
+ const _hoisted_3$7 = { class: "form-btns" };
33384
33731
  const _hoisted_4$6 = { class: "table-wrap" };
33385
33732
  const _hoisted_5$3 = ["onClick"];
33386
33733
  const _hoisted_6$3 = { class: "show_more_button" };
@@ -33390,7 +33737,7 @@ const _hoisted_9$3 = {
33390
33737
  class: "ant-dropdown-link",
33391
33738
  style: { "color": "rgba(0, 0, 0, 0.25)" }
33392
33739
  };
33393
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
33740
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
33394
33741
  __name: "index",
33395
33742
  setup(__props, { expose: __expose }) {
33396
33743
  const { formatDate } = useSysParams();
@@ -33733,7 +34080,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
33733
34080
  prefixCls: unref(prefixCls)
33734
34081
  }, {
33735
34082
  default: withCtx(() => [
33736
- createElementVNode("div", _hoisted_1$g, [
34083
+ createElementVNode("div", _hoisted_1$f, [
33737
34084
  createElementVNode("div", _hoisted_2$a, [
33738
34085
  createVNode(_component_a_form, {
33739
34086
  layout: "vertical",
@@ -33756,7 +34103,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
33756
34103
  ]),
33757
34104
  _: 1
33758
34105
  }, 8, ["label"]),
33759
- createElementVNode("div", _hoisted_3$8, [
34106
+ createElementVNode("div", _hoisted_3$7, [
33760
34107
  createVNode(_component_uc_btn_search, {
33761
34108
  onClick: queryById,
33762
34109
  showInput: false
@@ -34164,9 +34511,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
34164
34511
  }
34165
34512
  });
34166
34513
  const index_vue_vue_type_style_index_0_scoped_32a76766_lang = "";
34167
- const index$7 = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-32a76766"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/index.vue"]]);
34514
+ const index$7 = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-32a76766"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/index.vue"]]);
34168
34515
  const index_vue_vue_type_style_index_0_scoped_6ed6a16f_lang = "";
34169
- const _sfc_main$C = Object.assign({
34516
+ const _sfc_main$A = Object.assign({
34170
34517
  inheritAttrs: false
34171
34518
  }, {
34172
34519
  __name: "index",
@@ -34268,7 +34615,7 @@ const _sfc_main$C = Object.assign({
34268
34615
  };
34269
34616
  }
34270
34617
  });
34271
- const STable = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-6ed6a16f"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/table/index.vue"]]);
34618
+ const STable = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-6ed6a16f"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/table/index.vue"]]);
34272
34619
  function getSearchList$1(params) {
34273
34620
  return handleRespPost({
34274
34621
  url: "/api/sys/role/search-list",
@@ -34339,54 +34686,56 @@ function createSaveRole(data) {
34339
34686
  data
34340
34687
  });
34341
34688
  }
34342
- const _hoisted_1$f = {
34689
+ const _hoisted_1$e = {
34343
34690
  key: 0,
34344
34691
  class: "role-wrap"
34345
34692
  };
34346
34693
  const _hoisted_2$9 = { class: "form-btns" };
34347
- const _hoisted_3$7 = { style: { "height": "32px", "margin-bottom": "10px" } };
34348
- const _hoisted_4$5 = { key: 4 };
34349
- const _hoisted_5$2 = {
34694
+ const _hoisted_3$6 = { style: { "height": "32px", "margin-bottom": "10px" } };
34695
+ const _hoisted_4$5 = ["onClick"];
34696
+ const _hoisted_5$2 = { key: 4 };
34697
+ const _hoisted_6$2 = {
34350
34698
  key: 1,
34351
34699
  class: "role-auth"
34352
34700
  };
34353
- const _hoisted_6$2 = { class: "header-auth" };
34354
- const _hoisted_7$2 = {
34701
+ const _hoisted_7$2 = { class: "header-auth" };
34702
+ const _hoisted_8$2 = {
34355
34703
  class: "title",
34356
34704
  style: { "padding-left": "16px" }
34357
34705
  };
34358
- const _hoisted_8$2 = {
34706
+ const _hoisted_9$2 = {
34359
34707
  key: 0,
34360
34708
  class: "operate",
34361
34709
  style: { "padding-right": "16px" }
34362
34710
  };
34363
- const _hoisted_9$2 = { class: "auth-content" };
34364
- const _hoisted_10$2 = { key: 0 };
34365
- const _hoisted_11$2 = { key: 0 };
34366
- const _hoisted_12$2 = { class: "sys-auth" };
34367
- const _hoisted_13$2 = {
34711
+ const _hoisted_10$2 = { class: "auth-content" };
34712
+ const _hoisted_11$2 = { class: "detail-text" };
34713
+ const _hoisted_12$2 = { class: "detail-text" };
34714
+ const _hoisted_13$2 = { class: "sys-auth" };
34715
+ const _hoisted_14$2 = {
34368
34716
  key: 0,
34369
34717
  class: "sys-tab"
34370
34718
  };
34371
- const _hoisted_14$2 = ["onClick"];
34372
- const _hoisted_15$2 = {
34719
+ const _hoisted_15$2 = ["onClick"];
34720
+ const _hoisted_16$2 = {
34373
34721
  key: 1,
34374
34722
  class: "permission_config"
34375
34723
  };
34376
- const _hoisted_16$2 = { class: "sys-menu-list" };
34377
- const _hoisted_17$2 = ["onClick"];
34378
- const _hoisted_18$1 = { class: "global-permission" };
34379
- const _hoisted_19$1 = ["id"];
34380
- const _hoisted_20$1 = { class: "module-title" };
34381
- const _hoisted_21$1 = { class: "menu-title" };
34382
- const _hoisted_22$1 = { class: "actions-section" };
34383
- const _hoisted_23$1 = {
34724
+ const _hoisted_17$2 = { class: "sys-menu-list" };
34725
+ const _hoisted_18$1 = ["onClick"];
34726
+ const _hoisted_19$1 = { class: "global-permission" };
34727
+ const _hoisted_20$1 = ["id"];
34728
+ const _hoisted_21$1 = { class: "module-title" };
34729
+ const _hoisted_22$1 = { class: "menu-title" };
34730
+ const _hoisted_23$1 = { class: "actions-section" };
34731
+ const _hoisted_24$1 = {
34384
34732
  key: 3,
34385
34733
  class: "no-auth-permission"
34386
34734
  };
34387
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
34735
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
34388
34736
  __name: "index",
34389
34737
  setup(__props) {
34738
+ const { hasPermissionId } = usePermissionId();
34390
34739
  const systemId = storage.get("systemId") || "usercenter";
34391
34740
  const appStore = useAppStore();
34392
34741
  const userStore = useUserStore();
@@ -34924,9 +35273,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
34924
35273
  const _component_a_button = Button$1;
34925
35274
  const _component_a_form = Form;
34926
35275
  const _component_uc_btn_add = resolveComponent("uc-btn-add");
34927
- const _component_uc_btn_detail = resolveComponent("uc-btn-detail");
34928
35276
  const _component_uc_btn_switch = resolveComponent("uc-btn-switch");
34929
35277
  const _component_uc_btn_edit = resolveComponent("uc-btn-edit");
35278
+ const _component_a_tooltip = Tooltip;
35279
+ const _component_a_col = Col;
35280
+ const _component_a_row = Row;
34930
35281
  const _component_a_checkbox = Checkbox;
34931
35282
  const _component_a_config_provider = ConfigProvider$1;
34932
35283
  return openBlock(), createBlock(_component_a_config_provider, {
@@ -34937,7 +35288,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
34937
35288
  prefixCls: unref(prefixCls)
34938
35289
  }, {
34939
35290
  default: withCtx(() => [
34940
- showTable.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
35291
+ showTable.value ? (openBlock(), createElementBlock("div", _hoisted_1$e, [
34941
35292
  createVNode(_component_a_form, {
34942
35293
  layout: "vertical",
34943
35294
  class: "query-form"
@@ -34950,8 +35301,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
34950
35301
  createVNode(_component_a_input, {
34951
35302
  value: queryParam.value.roleId,
34952
35303
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => queryParam.value.roleId = $event),
34953
- placeholder: _ctx.$t("uc_common.plsSearch"),
34954
- allowClear: ""
35304
+ placeholder: _ctx.$t("uc_common.plsEnter"),
35305
+ allowClear: "",
35306
+ autocomplete: "off"
34955
35307
  }, null, 8, ["value", "placeholder"])
34956
35308
  ]),
34957
35309
  _: 1
@@ -34963,8 +35315,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
34963
35315
  createVNode(_component_a_input, {
34964
35316
  value: queryParam.value.roleName,
34965
35317
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => queryParam.value.roleName = $event),
34966
- placeholder: _ctx.$t("uc_common.plsSearch"),
34967
- allowClear: ""
35318
+ placeholder: _ctx.$t("uc_common.plsEnter"),
35319
+ allowClear: "",
35320
+ autocomplete: "off"
34968
35321
  }, null, 8, ["value", "placeholder"])
34969
35322
  ]),
34970
35323
  _: 1
@@ -34987,7 +35340,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
34987
35340
  ]),
34988
35341
  _: 1
34989
35342
  }),
34990
- createElementVNode("div", _hoisted_3$7, [
35343
+ createElementVNode("div", _hoisted_3$6, [
34991
35344
  createVNode(_component_uc_btn_add, {
34992
35345
  onClick: _cache[2] || (_cache[2] = ($event) => handleAddRole()),
34993
35346
  text: _ctx.$t("uc_role.create_role"),
@@ -35005,12 +35358,15 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
35005
35358
  class: "table-bordered"
35006
35359
  }, {
35007
35360
  bodyCell: withCtx(({ record, column }) => [
35008
- column.key === "roleName" ? (openBlock(), createBlock(_component_uc_btn_detail, {
35009
- key: 0,
35010
- onClick: ($event) => handleDetail(record),
35011
- type: "link",
35012
- text: record.roleName
35013
- }, null, 8, ["onClick", "text"])) : createCommentVNode("v-if", true),
35361
+ column.key === "roleName" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
35362
+ createCommentVNode(' <uc-btn-detail\r\n @click="handleDetail(record)"\r\n type="link"\r\n :text="record.roleName"\r\n ></uc-btn-detail> '),
35363
+ unref(hasPermissionId)("005") ? (openBlock(), createElementBlock("div", {
35364
+ key: 0,
35365
+ class: "detail-text",
35366
+ style: { "color": "#165dff", "cursor": "pointer" },
35367
+ onClick: ($event) => handleDetail(record)
35368
+ }, toDisplayString(record.roleName), 9, _hoisted_4$5)) : createCommentVNode("v-if", true)
35369
+ ], 64)) : createCommentVNode("v-if", true),
35014
35370
  column.key === "roleStatus" ? (openBlock(), createBlock(_component_uc_btn_switch, {
35015
35371
  key: 1,
35016
35372
  checked: record.checked,
@@ -35022,7 +35378,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
35022
35378
  column.key === "cdate" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
35023
35379
  createTextVNode(toDisplayString(unref(formatDate)(record.cdate) || "-"), 1)
35024
35380
  ], 64)) : createCommentVNode("v-if", true),
35025
- column.key === "action" ? (openBlock(), createElementBlock("span", _hoisted_4$5, [
35381
+ column.key === "action" ? (openBlock(), createElementBlock("span", _hoisted_5$2, [
35026
35382
  createVNode(_component_uc_btn_edit, {
35027
35383
  onClick: ($event) => handleEdit(record),
35028
35384
  type: "link"
@@ -35040,16 +35396,16 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
35040
35396
  ]),
35041
35397
  _: 1
35042
35398
  }, 8, ["columns"])
35043
- ])) : (openBlock(), createElementBlock("div", _hoisted_5$2, [
35044
- createElementVNode("div", _hoisted_6$2, [
35045
- createElementVNode("div", _hoisted_7$2, [
35399
+ ])) : (openBlock(), createElementBlock("div", _hoisted_6$2, [
35400
+ createElementVNode("div", _hoisted_7$2, [
35401
+ createElementVNode("div", _hoisted_8$2, [
35046
35402
  createVNode(unref(LeftOutlined), {
35047
35403
  style: { "font-size": "12px", "margin-right": "4px", "cursor": "pointer" },
35048
35404
  onClick: handleCancel
35049
35405
  }),
35050
35406
  createTextVNode(" " + toDisplayString(isDetail.value ? _ctx.$t("uc_role.detail_role") : isCreate.value ? _ctx.$t("uc_role.create_role") : _ctx.$t("uc_role.edit_role")), 1)
35051
35407
  ]),
35052
- !isDetail.value ? (openBlock(), createElementBlock("div", _hoisted_8$2, [
35408
+ !isDetail.value ? (openBlock(), createElementBlock("div", _hoisted_9$2, [
35053
35409
  createVNode(_component_a_button, { onClick: handleCancel }, {
35054
35410
  default: withCtx(() => [
35055
35411
  createTextVNode(toDisplayString(_ctx.$t("uc_common.btnCancel")), 1)
@@ -35068,73 +35424,107 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
35068
35424
  })
35069
35425
  ])) : createCommentVNode("v-if", true)
35070
35426
  ]),
35071
- createElementVNode("div", _hoisted_9$2, [
35427
+ createElementVNode("div", _hoisted_10$2, [
35072
35428
  createVNode(_component_a_form, {
35073
35429
  layout: "vertical",
35074
- class: "query-form",
35075
35430
  model: formState.value,
35076
35431
  ref_key: "formRef",
35077
- ref: formRef
35432
+ ref: formRef,
35433
+ style: { "margin-top": "4px" }
35078
35434
  }, {
35079
35435
  default: withCtx(() => [
35080
- createVNode(_component_a_form_item, {
35081
- label: _ctx.$t("uc_role.role_name"),
35082
- required: "",
35083
- name: "roleName"
35084
- }, {
35436
+ createVNode(_component_a_row, { gutter: 24 }, {
35085
35437
  default: withCtx(() => [
35086
- isDetail.value ? (openBlock(), createElementBlock("span", _hoisted_10$2, toDisplayString(formState.value.roleName), 1)) : (openBlock(), createBlock(_component_a_input, {
35087
- key: 1,
35088
- value: formState.value.roleName,
35089
- "onUpdate:value": _cache[3] || (_cache[3] = ($event) => formState.value.roleName = $event),
35090
- placeholder: _ctx.$t("uc_common.plsEnter"),
35091
- maxlength: 120
35092
- }, null, 8, ["value", "placeholder"]))
35093
- ]),
35094
- _: 1
35095
- }, 8, ["label"]),
35096
- createVNode(_component_a_form_item, {
35097
- label: _ctx.$t("uc_role.remark"),
35098
- width: "100%",
35099
- name: "remark"
35100
- }, {
35101
- default: withCtx(() => [
35102
- isDetail.value ? (openBlock(), createElementBlock("span", _hoisted_11$2, toDisplayString(formState.value.remark), 1)) : (openBlock(), createBlock(_component_a_input, {
35103
- key: 1,
35104
- value: formState.value.remark,
35105
- "onUpdate:value": _cache[4] || (_cache[4] = ($event) => formState.value.remark = $event),
35106
- placeholder: _ctx.$t("uc_common.plsEnter")
35107
- }, null, 8, ["value", "placeholder"]))
35438
+ createVNode(_component_a_col, { span: 6 }, {
35439
+ default: withCtx(() => [
35440
+ createVNode(_component_a_form_item, {
35441
+ label: _ctx.$t("uc_role.role_name"),
35442
+ required: "",
35443
+ name: "roleName"
35444
+ }, {
35445
+ default: withCtx(() => [
35446
+ isDetail.value ? (openBlock(), createBlock(_component_a_tooltip, { key: 0 }, {
35447
+ title: withCtx(() => [
35448
+ createTextVNode(toDisplayString(formState.value.roleName), 1)
35449
+ ]),
35450
+ default: withCtx(() => [
35451
+ createElementVNode("span", _hoisted_11$2, toDisplayString(formState.value.roleName), 1)
35452
+ ]),
35453
+ _: 1
35454
+ })) : (openBlock(), createBlock(_component_a_input, {
35455
+ key: 1,
35456
+ value: formState.value.roleName,
35457
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => formState.value.roleName = $event),
35458
+ placeholder: _ctx.$t("uc_common.plsEnter"),
35459
+ maxlength: 100,
35460
+ autocomplete: "off"
35461
+ }, null, 8, ["value", "placeholder"]))
35462
+ ]),
35463
+ _: 1
35464
+ }, 8, ["label"])
35465
+ ]),
35466
+ _: 1
35467
+ }),
35468
+ createVNode(_component_a_col, { span: 18 }, {
35469
+ default: withCtx(() => [
35470
+ createVNode(_component_a_form_item, {
35471
+ label: _ctx.$t("uc_role.remark"),
35472
+ width: "100%",
35473
+ name: "remark"
35474
+ }, {
35475
+ default: withCtx(() => [
35476
+ isDetail.value ? (openBlock(), createBlock(_component_a_tooltip, { key: 0 }, {
35477
+ title: withCtx(() => [
35478
+ createTextVNode(toDisplayString(formState.value.remark), 1)
35479
+ ]),
35480
+ default: withCtx(() => [
35481
+ createElementVNode("span", _hoisted_12$2, toDisplayString(formState.value.remark), 1)
35482
+ ]),
35483
+ _: 1
35484
+ })) : (openBlock(), createBlock(_component_a_input, {
35485
+ key: 1,
35486
+ value: formState.value.remark,
35487
+ "onUpdate:value": _cache[4] || (_cache[4] = ($event) => formState.value.remark = $event),
35488
+ placeholder: _ctx.$t("uc_common.plsEnter"),
35489
+ maxlength: 255,
35490
+ autocomplete: "off"
35491
+ }, null, 8, ["value", "placeholder"]))
35492
+ ]),
35493
+ _: 1
35494
+ }, 8, ["label"])
35495
+ ]),
35496
+ _: 1
35497
+ })
35108
35498
  ]),
35109
35499
  _: 1
35110
- }, 8, ["label"])
35500
+ })
35111
35501
  ]),
35112
35502
  _: 1
35113
35503
  }, 8, ["model"]),
35114
- createElementVNode("div", _hoisted_12$2, [
35115
- unref(systemId) === "usercenter" && tabList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_13$2, [
35504
+ createElementVNode("div", _hoisted_13$2, [
35505
+ unref(systemId) === "usercenter" && tabList.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_14$2, [
35116
35506
  (openBlock(true), createElementBlock(Fragment, null, renderList(tabList.value, (item) => {
35117
35507
  return openBlock(), createElementBlock("div", {
35118
35508
  class: normalizeClass(["tab-item", { "tab-active": item.systemId === activeAuthId.value }]),
35119
35509
  key: item.systemId,
35120
35510
  onClick: ($event) => handleTabClick(item)
35121
- }, toDisplayString(item.systemName || "-"), 11, _hoisted_14$2);
35511
+ }, toDisplayString(item.systemName || "-"), 11, _hoisted_15$2);
35122
35512
  }), 128))
35123
35513
  ])) : createCommentVNode("v-if", true),
35124
- unref(systemId) !== "usercenter" ? (openBlock(), createElementBlock("div", _hoisted_15$2, toDisplayString(_ctx.$t("uc_role.permission_config")), 1)) : createCommentVNode("v-if", true),
35514
+ unref(systemId) !== "usercenter" ? (openBlock(), createElementBlock("div", _hoisted_16$2, toDisplayString(_ctx.$t("uc_role.permission_config")), 1)) : createCommentVNode("v-if", true),
35125
35515
  menuModules.value.length ? (openBlock(), createElementBlock("div", {
35126
35516
  key: 2,
35127
35517
  class: normalizeClass([
35128
35518
  unref(systemId) === "usercenter" ? "sys-content" : "sys-content-other"
35129
35519
  ])
35130
35520
  }, [
35131
- createElementVNode("div", _hoisted_16$2, [
35521
+ createElementVNode("div", _hoisted_17$2, [
35132
35522
  (openBlock(true), createElementBlock(Fragment, null, renderList(parentMenuList.value, (item) => {
35133
35523
  return openBlock(), createElementBlock("div", {
35134
35524
  class: normalizeClass(["sys-menu-item", { active: item.funId === activeMenuId.value }]),
35135
35525
  onClick: ($event) => handleMenuItemClick(item),
35136
35526
  key: item.funId
35137
- }, toDisplayString(item.funName), 11, _hoisted_17$2);
35527
+ }, toDisplayString(item.funName), 11, _hoisted_18$1);
35138
35528
  }), 128))
35139
35529
  ]),
35140
35530
  createElementVNode("div", {
@@ -35142,7 +35532,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
35142
35532
  ref_key: "menuAuthRef",
35143
35533
  ref: menuAuthRef
35144
35534
  }, [
35145
- createElementVNode("div", _hoisted_18$1, [
35535
+ createElementVNode("div", _hoisted_19$1, [
35146
35536
  createVNode(_component_a_checkbox, {
35147
35537
  checked: allPermissionsSelected.value,
35148
35538
  "onUpdate:checked": _cache[5] || (_cache[5] = ($event) => allPermissionsSelected.value = $event),
@@ -35162,7 +35552,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
35162
35552
  class: "permission-section",
35163
35553
  id: `module-${module.funId}`
35164
35554
  }, [
35165
- createElementVNode("div", _hoisted_20$1, [
35555
+ createElementVNode("div", _hoisted_21$1, [
35166
35556
  createVNode(_component_a_checkbox, {
35167
35557
  checked: module.selected,
35168
35558
  "onUpdate:checked": ($event) => module.selected = $event,
@@ -35181,7 +35571,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
35181
35571
  key: menu.funId,
35182
35572
  class: "menu-section"
35183
35573
  }, [
35184
- createElementVNode("div", _hoisted_21$1, [
35574
+ createElementVNode("div", _hoisted_22$1, [
35185
35575
  createVNode(_component_a_checkbox, {
35186
35576
  checked: menu.selected,
35187
35577
  "onUpdate:checked": ($event) => menu.selected = $event,
@@ -35195,7 +35585,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
35195
35585
  _: 2
35196
35586
  }, 1032, ["checked", "onUpdate:checked", "indeterminate", "disabled", "onChange"])
35197
35587
  ]),
35198
- createElementVNode("div", _hoisted_22$1, [
35588
+ createElementVNode("div", _hoisted_23$1, [
35199
35589
  (openBlock(true), createElementBlock(Fragment, null, renderList(menu.actionList, (action) => {
35200
35590
  return openBlock(), createElementBlock("div", {
35201
35591
  key: action.btnId,
@@ -35217,10 +35607,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
35217
35607
  ])
35218
35608
  ]);
35219
35609
  }), 128))
35220
- ], 8, _hoisted_19$1);
35610
+ ], 8, _hoisted_20$1);
35221
35611
  }), 128))
35222
35612
  ], 512)
35223
- ], 2)) : (openBlock(), createElementBlock("div", _hoisted_23$1, toDisplayString(_ctx.$t("uc_role.no_auth_permission")), 1))
35613
+ ], 2)) : (openBlock(), createElementBlock("div", _hoisted_24$1, toDisplayString(_ctx.$t("uc_role.no_auth_permission")), 1))
35224
35614
  ])
35225
35615
  ])
35226
35616
  ]))
@@ -35231,7 +35621,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
35231
35621
  }
35232
35622
  });
35233
35623
  const index_vue_vue_type_style_index_0_scoped_79d9b716_lang = "";
35234
- const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-79d9b716"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/index.vue"]]);
35624
+ const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-79d9b716"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/index.vue"]]);
35235
35625
  function getSearchList(params) {
35236
35626
  return handleRespPost({
35237
35627
  url: "/api/sys/user/search-list",
@@ -35295,7 +35685,7 @@ function setUserResetPwd(params) {
35295
35685
  params
35296
35686
  });
35297
35687
  }
35298
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
35688
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35299
35689
  __name: "RoleSelect",
35300
35690
  props: {
35301
35691
  mode: {
@@ -35397,8 +35787,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
35397
35787
  };
35398
35788
  }
35399
35789
  });
35400
- const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/RoleSelect.vue"]]);
35401
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
35790
+ const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/RoleSelect.vue"]]);
35791
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
35402
35792
  __name: "BranchSelect",
35403
35793
  setup(__props) {
35404
35794
  const options = ref([]);
@@ -35423,12 +35813,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
35423
35813
  };
35424
35814
  }
35425
35815
  });
35426
- const BranchSelect = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/BranchSelect.vue"]]);
35427
- const _hoisted_1$e = { class: "add-menu" };
35816
+ const BranchSelect = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/BranchSelect.vue"]]);
35817
+ const _hoisted_1$d = { class: "add-menu" };
35428
35818
  const _hoisted_2$8 = { style: { "font-size": "12px", "color": "#86909c", "margin-left": "8px" } };
35429
- const _hoisted_3$6 = { style: { "font-size": "12px", "color": "#86909c", "margin-left": "8px" } };
35819
+ const _hoisted_3$5 = { style: { "font-size": "12px", "color": "#86909c", "margin-left": "8px" } };
35430
35820
  const _hoisted_4$4 = ["onClick"];
35431
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
35821
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
35432
35822
  __name: "UserEdit",
35433
35823
  props: {
35434
35824
  params: {
@@ -35587,7 +35977,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35587
35977
  return roles.value || [];
35588
35978
  });
35589
35979
  const filterOption = (input, option) => {
35590
- return option.children()[0].children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
35980
+ return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
35591
35981
  };
35592
35982
  const isAllSelected = computed(() => {
35593
35983
  return rolesList.value.length === form.value.roleIdOthers.length;
@@ -35606,7 +35996,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35606
35996
  form.value.roleIdOthers = rolesList.value.map((item) => item.value);
35607
35997
  }
35608
35998
  };
35609
- const dropdownRender = ({ menuNode }) => {
35999
+ const dropdownRender = (list) => {
36000
+ const { menuNode } = list;
35610
36001
  return h("div", [
35611
36002
  h(
35612
36003
  "div",
@@ -35630,14 +36021,19 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35630
36021
  menuNode
35631
36022
  ]);
35632
36023
  };
35633
- onMounted(async () => {
36024
+ const getSystemRolesList = async () => {
35634
36025
  const { result } = await getRolePublicTimezone({});
35635
- roles.value = Object.keys(result).map((key) => {
35636
- return {
35637
- label: result[key],
35638
- value: key
35639
- };
35640
- });
36026
+ if (result) {
36027
+ roles.value = Object.keys(result).map((key) => {
36028
+ return {
36029
+ label: result[key],
36030
+ value: key
36031
+ };
36032
+ });
36033
+ }
36034
+ };
36035
+ onMounted(() => {
36036
+ getSystemRolesList();
35641
36037
  roleId.value = props.params.roleId;
35642
36038
  initModel(props.params);
35643
36039
  });
@@ -35654,7 +36050,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35654
36050
  return openBlock(), createElementBlock(Fragment, null, [
35655
36051
  createCommentVNode(` <a-drawer v-model:open="visible" @close="onCancel" :width="432" :title="$t('uc_user.title' + params.opType)"\r
35656
36052
  :destroyOnClose="true"> `),
35657
- createElementVNode("div", _hoisted_1$e, [
36053
+ createElementVNode("div", _hoisted_1$d, [
35658
36054
  createVNode(_component_a_form, {
35659
36055
  model: form.value,
35660
36056
  ref_key: "formRef",
@@ -35678,7 +36074,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35678
36074
  placeholder: _ctx.$t("uc_common.plsEnter"),
35679
36075
  disabled: true,
35680
36076
  value: form.value.userCode,
35681
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => form.value.userCode = $event)
36077
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => form.value.userCode = $event),
36078
+ autocomplete: "off"
35682
36079
  }, null, 8, ["placeholder", "value"])
35683
36080
  ]),
35684
36081
  _: 1
@@ -35705,14 +36102,15 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35705
36102
  }, {
35706
36103
  label: withCtx(() => [
35707
36104
  createTextVNode(toDisplayString(_ctx.$t("uc_user.userCode")) + " ", 1),
35708
- createElementVNode("span", _hoisted_3$6, toDisplayString(_ctx.$t("uc_user.pwdCodeSameNote")), 1)
36105
+ createElementVNode("span", _hoisted_3$5, toDisplayString(_ctx.$t("uc_user.pwdCodeSameNote")), 1)
35709
36106
  ]),
35710
36107
  default: withCtx(() => [
35711
36108
  createVNode(_component_a_input, {
35712
36109
  placeholder: _ctx.$t("uc_common.plsEnter"),
35713
36110
  value: form.value.userCode,
35714
36111
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.value.userCode = $event),
35715
- maxlength: 64
36112
+ maxlength: 64,
36113
+ autocomplete: "off"
35716
36114
  }, null, 8, ["placeholder", "value"])
35717
36115
  ]),
35718
36116
  _: 1
@@ -35736,7 +36134,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35736
36134
  placeholder: _ctx.$t("uc_common.plsEnter"),
35737
36135
  value: form.value.userName,
35738
36136
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.value.userName = $event),
35739
- maxlength: 64
36137
+ maxlength: 64,
36138
+ autocomplete: "off"
35740
36139
  }, null, 8, ["placeholder", "value"])
35741
36140
  ]),
35742
36141
  _: 1
@@ -35855,7 +36254,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35855
36254
  createVNode(_component_a_input, {
35856
36255
  placeholder: _ctx.$t("uc_common.plsEnter"),
35857
36256
  value: form.value.mobile,
35858
- "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.value.mobile = $event)
36257
+ "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.value.mobile = $event),
36258
+ autocomplete: "off"
35859
36259
  }, null, 8, ["placeholder", "value"])
35860
36260
  ]),
35861
36261
  _: 1
@@ -35878,7 +36278,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35878
36278
  createVNode(_component_a_input, {
35879
36279
  placeholder: _ctx.$t("uc_common.plsEnter"),
35880
36280
  value: form.value.email,
35881
- "onUpdate:value": _cache[8] || (_cache[8] = ($event) => form.value.email = $event)
36281
+ "onUpdate:value": _cache[8] || (_cache[8] = ($event) => form.value.email = $event),
36282
+ autocomplete: "off"
35882
36283
  }, null, 8, ["placeholder", "value"])
35883
36284
  ]),
35884
36285
  _: 1
@@ -35901,7 +36302,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35901
36302
  createVNode(_component_a_input, {
35902
36303
  placeholder: _ctx.$t("uc_common.plsEnter"),
35903
36304
  value: form.value.userDesc,
35904
- "onUpdate:value": _cache[9] || (_cache[9] = ($event) => form.value.userDesc = $event)
36305
+ "onUpdate:value": _cache[9] || (_cache[9] = ($event) => form.value.userDesc = $event),
36306
+ autocomplete: "off"
35905
36307
  }, null, 8, ["placeholder", "value"])
35906
36308
  ]),
35907
36309
  _: 1
@@ -35942,7 +36344,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
35942
36344
  }
35943
36345
  });
35944
36346
  const UserEdit_vue_vue_type_style_index_0_scoped_e4aafb0b_lang = "";
35945
- const UserEdit = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-e4aafb0b"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/UserEdit.vue"]]);
36347
+ const UserEdit = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-e4aafb0b"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/UserEdit.vue"]]);
35946
36348
  var hash = {};
35947
36349
  var utils$9 = {};
35948
36350
  var minimalisticAssert = assert$5;
@@ -37529,7 +37931,7 @@ Hmac.prototype.digest = function digest8(enc) {
37529
37931
  hash2.sha512 = hash2.sha.sha512;
37530
37932
  hash2.ripemd160 = hash2.ripemd.ripemd160;
37531
37933
  })(hash);
37532
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
37934
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
37533
37935
  __name: "ResetPwdModal",
37534
37936
  emits: ["ok"],
37535
37937
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -37610,7 +38012,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
37610
38012
  const _component_a_modal = Modal$1;
37611
38013
  return openBlock(), createBlock(_component_a_modal, {
37612
38014
  class: "custom-user-modal",
37613
- width: 352,
38015
+ width: 420,
37614
38016
  open: visible.value,
37615
38017
  "onUpdate:open": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
37616
38018
  style: { "top": "280px" },
@@ -37659,7 +38061,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
37659
38061
  style: { "width": "100%" },
37660
38062
  placeholder: _ctx.$t("uc_common.plsEnter"),
37661
38063
  value: form.userPwd,
37662
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => form.userPwd = $event)
38064
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => form.userPwd = $event),
38065
+ autocomplete: "off"
37663
38066
  }, null, 8, ["placeholder", "value"])
37664
38067
  ]),
37665
38068
  _: 1
@@ -37673,6 +38076,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
37673
38076
  type: "password",
37674
38077
  style: { "width": "100%" },
37675
38078
  placeholder: _ctx.$t("uc_common.plsEnter"),
38079
+ autocomplete: "off",
37676
38080
  value: form.userPwd1,
37677
38081
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.userPwd1 = $event)
37678
38082
  }, null, 8, ["placeholder", "value"])
@@ -37689,7 +38093,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
37689
38093
  }
37690
38094
  });
37691
38095
  const ResetPwdModal_vue_vue_type_style_index_0_lang$1 = "";
37692
- const ResetPwdModal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/ResetPwdModal.vue"]]);
38096
+ const ResetPwdModal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/ResetPwdModal.vue"]]);
37693
38097
  const dictCache = {};
37694
38098
  function useDict(type, opts = { immediate: true }) {
37695
38099
  const i18nRes = useI18n();
@@ -37764,7 +38168,7 @@ function useDict(type, opts = { immediate: true }) {
37764
38168
  }
37765
38169
  return [resultMap, { fetchDict, toList, getDictLabel }];
37766
38170
  }
37767
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
38171
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37768
38172
  ...{
37769
38173
  inheritAttrs: false
37770
38174
  },
@@ -37839,9 +38243,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
37839
38243
  }
37840
38244
  });
37841
38245
  const DictSelect_vue_vue_type_style_index_0_scoped_18891c06_lang = "";
37842
- const DictSelect = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-18891c06"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/DictSelect.vue"]]);
37843
- const _hoisted_1$d = { class: "user-detail" };
37844
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
38246
+ const DictSelect = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-18891c06"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/DictSelect.vue"]]);
38247
+ const _hoisted_1$c = { class: "user-detail" };
38248
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37845
38249
  __name: "UserDetail",
37846
38250
  props: {
37847
38251
  data: {
@@ -37880,10 +38284,11 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
37880
38284
  const _component_a_descriptions = Descriptions;
37881
38285
  const _component_a_button = Button$1;
37882
38286
  const _component_a_space = Space;
37883
- return openBlock(), createElementBlock("div", _hoisted_1$d, [
38287
+ return openBlock(), createElementBlock("div", _hoisted_1$c, [
37884
38288
  createVNode(_component_a_descriptions, {
37885
38289
  bordered: "",
37886
- class: "descriptions-detail"
38290
+ class: "descriptions-detail",
38291
+ style: { "height": "calc(100% - 57px)", "overflow-y": "auto" }
37887
38292
  }, {
37888
38293
  default: withCtx(() => [
37889
38294
  createVNode(_component_a_descriptions_item, { span: 3 }, {
@@ -37977,12 +38382,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
37977
38382
  }
37978
38383
  });
37979
38384
  const UserDetail_vue_vue_type_style_index_0_scoped_167248a6_lang = "";
37980
- const UserDetail = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-167248a6"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/UserDetail.vue"]]);
37981
- const _hoisted_1$c = { class: "user-info" };
38385
+ const UserDetail = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-167248a6"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/UserDetail.vue"]]);
38386
+ const _hoisted_1$b = { class: "user-info" };
37982
38387
  const _hoisted_2$7 = { class: "form-btns" };
37983
- const _hoisted_3$5 = { key: 1 };
38388
+ const _hoisted_3$4 = { key: 1 };
37984
38389
  const _hoisted_4$3 = { key: 4 };
37985
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
38390
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
37986
38391
  __name: "index",
37987
38392
  setup(__props) {
37988
38393
  const appStore = useAppStore();
@@ -38213,7 +38618,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
38213
38618
  prefixCls: unref(prefixCls)
38214
38619
  }, {
38215
38620
  default: withCtx(() => [
38216
- createElementVNode("div", _hoisted_1$c, [
38621
+ createElementVNode("div", _hoisted_1$b, [
38217
38622
  createVNode(_component_a_form, {
38218
38623
  layout: "vertical",
38219
38624
  class: "query-form"
@@ -38227,7 +38632,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
38227
38632
  createVNode(_component_a_input, {
38228
38633
  value: queryParam.userName,
38229
38634
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => queryParam.userName = $event),
38230
- placeholder: _ctx.$t("uc_common.plsEnter")
38635
+ placeholder: _ctx.$t("uc_common.plsEnter"),
38636
+ autocomplete: "off"
38231
38637
  }, null, 8, ["value", "placeholder"])
38232
38638
  ]),
38233
38639
  _: 1
@@ -38240,7 +38646,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
38240
38646
  createVNode(_component_a_input, {
38241
38647
  value: queryParam.userCode,
38242
38648
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => queryParam.userCode = $event),
38243
- placeholder: _ctx.$t("uc_common.plsSelect")
38649
+ placeholder: _ctx.$t("uc_common.plsSelect"),
38650
+ autocomplete: "off"
38244
38651
  }, null, 8, ["value", "placeholder"])
38245
38652
  ]),
38246
38653
  _: 1
@@ -38314,7 +38721,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
38314
38721
  columns: columns.value,
38315
38722
  rowKey: "userId",
38316
38723
  style: { "margin-top": "8px" },
38317
- scroll: { x: 1e3, y: 550 }
38724
+ scroll: { x: 1e3, y: 550 },
38725
+ class: "table-bordered"
38318
38726
  }, {
38319
38727
  bodyCell: withCtx(({ record, column }) => [
38320
38728
  column.key === "branchId" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -38335,7 +38743,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
38335
38743
  key: 0,
38336
38744
  checked: record.userStatus == 0,
38337
38745
  onClick: (checked) => onSwitch(checked, record)
38338
- }, null, 8, ["checked", "onClick"])) : Number(record.userStatus) == 2 ? (openBlock(), createElementBlock("span", _hoisted_3$5, toDisplayString(_ctx.$t("dct.USER_STATUS2")), 1)) : createCommentVNode("v-if", true)
38746
+ }, null, 8, ["checked", "onClick"])) : Number(record.userStatus) == 2 ? (openBlock(), createElementBlock("span", _hoisted_3$4, toDisplayString(_ctx.$t("dct.USER_STATUS2")), 1)) : createCommentVNode("v-if", true)
38339
38747
  ], 64)) : createCommentVNode("v-if", true),
38340
38748
  column.key === "cdate" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
38341
38749
  createTextVNode(toDisplayString(unref(formatDate)(record.cdate) || "-"), 1)
@@ -38380,16 +38788,26 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
38380
38788
  });
38381
38789
  const index_vue_vue_type_style_index_0_scoped_451ba823_lang = "";
38382
38790
  const index_vue_vue_type_style_index_1_scoped_451ba823_lang = "";
38383
- const index$5 = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-451ba823"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/index.vue"]]);
38791
+ const index$5 = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-451ba823"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/user/index.vue"]]);
38384
38792
  function isValidEmail(email) {
38385
38793
  const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
38386
38794
  return emailRegex.test(email);
38387
38795
  }
38388
- const _hoisted_1$b = ["spinning"];
38389
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
38796
+ function useRequiredMessage() {
38797
+ const { t: t2 } = useI18n();
38798
+ const userStore = useUserStore();
38799
+ const requiredMessage = (labelKey) => {
38800
+ const suffix = t2("uc_common.isRequired");
38801
+ return userStore.userLanguage === "zh_CN" ? labelKey + suffix : labelKey + " " + suffix;
38802
+ };
38803
+ return { requiredMessage };
38804
+ }
38805
+ const _hoisted_1$a = ["spinning"];
38806
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
38390
38807
  __name: "ModalEdit",
38391
38808
  emits: ["ok", "cancel"],
38392
38809
  setup(__props, { expose: __expose, emit: __emit }) {
38810
+ const { requiredMessage } = useRequiredMessage();
38393
38811
  const { t: t2 } = useI18n();
38394
38812
  const emit = __emit;
38395
38813
  const visible = ref(false);
@@ -38413,7 +38831,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38413
38831
  opType: "",
38414
38832
  id: "",
38415
38833
  type: "",
38416
- title: ""
38834
+ title: "",
38835
+ isBand: false
38417
38836
  });
38418
38837
  const showModal = (data2) => {
38419
38838
  Object.assign(form, {
@@ -38427,6 +38846,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38427
38846
  captcha: "",
38428
38847
  userCode: ""
38429
38848
  });
38849
+ form.userName = (data2 == null ? void 0 : data2.userName) || "";
38430
38850
  Object.assign(params, data2);
38431
38851
  visible.value = true;
38432
38852
  change.value = true;
@@ -38440,9 +38860,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38440
38860
  const onSubmit = () => {
38441
38861
  formRef.value.validate().then(async () => {
38442
38862
  loading.value = true;
38443
- let res = null;
38444
38863
  if (params.opType == "1") {
38445
- res = await setUpdateUserName({ userName: form.userName });
38864
+ if (form.userName.trim() == "") {
38865
+ message.error(requiredMessage(t2("uc_profile.userName")));
38866
+ return;
38867
+ }
38868
+ const res = await setUpdateUserName({ userName: form.userName });
38446
38869
  if ((res == null ? void 0 : res.code) == 0) {
38447
38870
  emit("ok");
38448
38871
  message.success(t2("uc_profile.editUserNameSucc"));
@@ -38451,12 +38874,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38451
38874
  } else {
38452
38875
  if (params.opType == "2") {
38453
38876
  data.value = {
38454
- mobile: form.mobile
38877
+ mobile: form.mobile.trim()
38455
38878
  };
38456
38879
  }
38457
38880
  if (params.opType == "3") {
38458
38881
  data.value = {
38459
- email: form.email,
38882
+ email: form.email.trim(),
38460
38883
  captcha: form.captcha
38461
38884
  };
38462
38885
  }
@@ -38465,9 +38888,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38465
38888
  url: params.opType == "2" ? "/api/sys/userinfo/update-mobile" : "/api/sys/userinfo/update-email",
38466
38889
  method: "post",
38467
38890
  params: data.value
38468
- }).then((res2) => {
38891
+ }).then((res) => {
38469
38892
  loading.value = false;
38470
- if (res2.code == 0) {
38893
+ if (res.code == 0) {
38471
38894
  emit("ok");
38472
38895
  visible.value = false;
38473
38896
  Object.assign(form, {
@@ -38481,11 +38904,18 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38481
38904
  captcha: "",
38482
38905
  userCode: ""
38483
38906
  });
38484
- pwdStrength.value = 0;
38485
38907
  if (params.opType == "2") {
38486
- message.success(t2("uc_profile.editMobileSucc"));
38908
+ if (params.isBand) {
38909
+ message.success(t2("uc_profile.bandMobileSucc"));
38910
+ } else {
38911
+ message.success(t2("uc_profile.editMobileSucc"));
38912
+ }
38487
38913
  } else {
38488
- message.success(t2("uc_profile.editEmailSucc"));
38914
+ if (params.isBand) {
38915
+ message.success(t2("uc_profile.bandEmailSucc"));
38916
+ } else {
38917
+ message.success(t2("uc_profile.editEmailSucc"));
38918
+ }
38489
38919
  }
38490
38920
  }
38491
38921
  });
@@ -38496,7 +38926,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38496
38926
  __expose({
38497
38927
  showModal
38498
38928
  });
38499
- const pwdStrength = ref(0);
38929
+ ref(0);
38500
38930
  const mobileRules = reactive({
38501
38931
  pwd: [
38502
38932
  {
@@ -38521,7 +38951,6 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38521
38951
  email: [
38522
38952
  {
38523
38953
  required: true,
38524
- trigger: ["blur"],
38525
38954
  validator: function(rule, value) {
38526
38955
  if (!value) {
38527
38956
  return Promise.reject(t2("uc_personal_center.email_placeholder"));
@@ -38540,6 +38969,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38540
38969
  validator: function(rule, value) {
38541
38970
  if (!value) {
38542
38971
  return Promise.reject(t2("uc_personal_center.verify_code_placeholder"));
38972
+ } else {
38973
+ return Promise.resolve();
38543
38974
  }
38544
38975
  }
38545
38976
  }
@@ -38593,7 +39024,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38593
39024
  createElementVNode("div", { spinning: loading.value }, [
38594
39025
  createVNode(_component_a_modal, {
38595
39026
  class: "modal custom-userinfo-modal",
38596
- width: 352,
39027
+ width: params.opType == "3" ? 500 : 360,
38597
39028
  title: params.title,
38598
39029
  open: visible.value,
38599
39030
  "onUpdate:open": _cache[7] || (_cache[7] = ($event) => visible.value = $event),
@@ -38636,9 +39067,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38636
39067
  default: withCtx(() => [
38637
39068
  createVNode(_component_a_input, {
38638
39069
  placeholder: _ctx.$t("uc_common.plsEnter"),
38639
- maxLength: 20,
39070
+ maxLength: 64,
38640
39071
  value: form.userName,
38641
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => form.userName = $event)
39072
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => form.userName = $event),
39073
+ autocomplete: "off"
38642
39074
  }, null, 8, ["placeholder", "value"])
38643
39075
  ]),
38644
39076
  _: 1
@@ -38665,6 +39097,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38665
39097
  createVNode(_component_a_input_password, {
38666
39098
  placeholder: _ctx.$t("uc_common.plsEnter"),
38667
39099
  maxLength: 20,
39100
+ autocomplete: "off",
38668
39101
  value: form.pwd,
38669
39102
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.pwd = $event)
38670
39103
  }, null, 8, ["placeholder", "value"])
@@ -38679,6 +39112,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38679
39112
  createVNode(_component_a_input, {
38680
39113
  placeholder: _ctx.$t("uc_common.plsEnter"),
38681
39114
  maxLength: 50,
39115
+ autocomplete: "off",
38682
39116
  value: form.mobile,
38683
39117
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.mobile = $event)
38684
39118
  }, null, 8, ["placeholder", "value"])
@@ -38708,7 +39142,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38708
39142
  createVNode(_component_a_input_password, {
38709
39143
  value: form.pwd,
38710
39144
  "onUpdate:value": _cache[3] || (_cache[3] = ($event) => form.pwd = $event),
38711
- placeholder: _ctx.$t("uc_common.plsEnter")
39145
+ placeholder: _ctx.$t("uc_common.plsEnter"),
39146
+ autocomplete: "off"
38712
39147
  }, null, 8, ["value", "placeholder"])
38713
39148
  ]),
38714
39149
  _: 1
@@ -38722,7 +39157,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38722
39157
  createVNode(_component_a_input, {
38723
39158
  value: form.email,
38724
39159
  "onUpdate:value": _cache[4] || (_cache[4] = ($event) => form.email = $event),
38725
- placeholder: _ctx.$t("uc_common.plsEnter")
39160
+ placeholder: _ctx.$t("uc_common.plsEnter"),
39161
+ autocomplete: "off"
38726
39162
  }, null, 8, ["value", "placeholder"])
38727
39163
  ]),
38728
39164
  _: 1
@@ -38735,17 +39171,18 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38735
39171
  default: withCtx(() => [
38736
39172
  createVNode(_component_a_row, { gutter: 8 }, {
38737
39173
  default: withCtx(() => [
38738
- createVNode(_component_a_col, { span: 16 }, {
39174
+ createVNode(_component_a_col, { span: 12 }, {
38739
39175
  default: withCtx(() => [
38740
39176
  createVNode(_component_a_input, {
38741
39177
  value: form.captcha,
38742
39178
  "onUpdate:value": _cache[5] || (_cache[5] = ($event) => form.captcha = $event),
38743
- placeholder: _ctx.$t("uc_common.plsEnter")
39179
+ placeholder: _ctx.$t("uc_common.plsEnter"),
39180
+ autocomplete: "off"
38744
39181
  }, null, 8, ["value", "placeholder"])
38745
39182
  ]),
38746
39183
  _: 1
38747
39184
  }),
38748
- createVNode(_component_a_col, { span: 8 }, {
39185
+ createVNode(_component_a_col, { span: 12 }, {
38749
39186
  default: withCtx(() => [
38750
39187
  createVNode(_component_a_button, {
38751
39188
  type: "primary",
@@ -38772,15 +39209,15 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
38772
39209
  }, 8, ["model", "rules"])) : createCommentVNode("v-if", true)
38773
39210
  ]),
38774
39211
  _: 1
38775
- }, 8, ["title", "open"])
38776
- ], 8, _hoisted_1$b)
39212
+ }, 8, ["width", "title", "open"])
39213
+ ], 8, _hoisted_1$a)
38777
39214
  ]);
38778
39215
  };
38779
39216
  }
38780
39217
  });
38781
39218
  const ModalEdit_vue_vue_type_style_index_0_scoped_8dbc9ba3_lang = "";
38782
39219
  const ModalEdit_vue_vue_type_style_index_1_lang = "";
38783
- const ModalEdit = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-8dbc9ba3"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/userinfo/ModalEdit.vue"]]);
39220
+ const ModalEdit = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-8dbc9ba3"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/userinfo/ModalEdit.vue"]]);
38784
39221
  function getUserInfoSearchBase(params) {
38785
39222
  return handleRespPost({
38786
39223
  url: "/api/sys/userinfo/search-base",
@@ -39815,9 +40252,9 @@ function U(t2, e, i, s2, r2, o) {
39815
40252
  ], 544);
39816
40253
  }
39817
40254
  const M = /* @__PURE__ */ $(z, [["render", U], ["__scopeId", "data-v-a742df44"]]);
39818
- const _hoisted_1$a = { class: "avatar-upload-preview" };
40255
+ const _hoisted_1$9 = { class: "avatar-upload-preview" };
39819
40256
  const _hoisted_2$6 = ["src"];
39820
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
40257
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
39821
40258
  __name: "AvatarModal",
39822
40259
  emits: ["ok"],
39823
40260
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -39939,7 +40376,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
39939
40376
  style: { height: "350px" }
39940
40377
  }, {
39941
40378
  default: withCtx(() => [
39942
- createElementVNode("div", _hoisted_1$a, [
40379
+ createElementVNode("div", _hoisted_1$9, [
39943
40380
  createElementVNode("img", {
39944
40381
  src: previews.value.url,
39945
40382
  style: normalizeStyle(previews.value.img)
@@ -39955,7 +40392,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
39955
40392
  createVNode(_component_a_row, null, {
39956
40393
  default: withCtx(() => [
39957
40394
  createVNode(_component_a_col, {
39958
- lg: 2,
40395
+ lg: 3,
39959
40396
  md: 4
39960
40397
  }, {
39961
40398
  default: withCtx(() => [
@@ -40030,10 +40467,10 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
40030
40467
  }
40031
40468
  });
40032
40469
  const AvatarModal_vue_vue_type_style_index_0_scoped_8812fb97_lang = "";
40033
- const AvatarModal = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-8812fb97"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/userinfo/AvatarModal.vue"]]);
40034
- const _hoisted_1$9 = { class: "parent-container" };
40470
+ const AvatarModal = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-8812fb97"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/userinfo/AvatarModal.vue"]]);
40471
+ const _hoisted_1$8 = { class: "parent-container" };
40035
40472
  const _hoisted_2$5 = { class: "child-box" };
40036
- const _hoisted_3$4 = { class: "box userInfoMenu" };
40473
+ const _hoisted_3$3 = { class: "box userInfoMenu" };
40037
40474
  const _hoisted_4$2 = { class: "avatar" };
40038
40475
  const _hoisted_5$1 = ["src"];
40039
40476
  const _hoisted_6$1 = { class: "text-content" };
@@ -40073,10 +40510,10 @@ const _hoisted_30 = ["title"];
40073
40510
  const _hoisted_31 = { class: "info-item" };
40074
40511
  const _hoisted_32 = { class: "info-label" };
40075
40512
  const _hoisted_33 = ["title"];
40076
- const _hoisted_34 = { class: "tenant-info-container" };
40513
+ const _hoisted_34 = { style: { "width": "568px" } };
40077
40514
  const _hoisted_35 = { class: "info-item" };
40078
40515
  const _hoisted_36 = { class: "info-label" };
40079
- const _hoisted_37 = ["title"];
40516
+ const _hoisted_37 = { class: "text-ellipsis" };
40080
40517
  const _hoisted_38 = { class: "content2" };
40081
40518
  const _hoisted_39 = {
40082
40519
  class: "wrapper",
@@ -40099,7 +40536,7 @@ const _hoisted_48 = {
40099
40536
  style: { "height": "372px" }
40100
40537
  };
40101
40538
  const _hoisted_49 = { class: "content-title" };
40102
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
40539
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
40103
40540
  ...{
40104
40541
  name: "Function102"
40105
40542
  },
@@ -40107,8 +40544,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40107
40544
  setup(__props) {
40108
40545
  const { t: t2 } = useI18n();
40109
40546
  const prefixCls = "uc";
40110
- useInitUserinfo();
40111
40547
  const appStore = useAppStore();
40548
+ const roleRef = ref();
40112
40549
  const specialStyles = {
40113
40550
  color: "#FF7D00",
40114
40551
  backgroundColor: "#FFF7E8"
@@ -40122,7 +40559,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40122
40559
  userCode: "",
40123
40560
  userName: "",
40124
40561
  deptId: "",
40125
- role: [],
40562
+ role: "",
40126
40563
  mobile: "",
40127
40564
  email: ""
40128
40565
  });
@@ -40135,22 +40572,6 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40135
40572
  const pwdStrength = ref(0);
40136
40573
  const loading = ref(false);
40137
40574
  const currentActive = ref(0);
40138
- const handlePasswordLevel = (rule, value) => {
40139
- if (!value) {
40140
- return Promise.reject(t2("uc_personal_center.user_pwd1_msg1"));
40141
- }
40142
- pwdStrength.value = 0;
40143
- if (/[0-9]/.test(value)) {
40144
- pwdStrength.value++;
40145
- }
40146
- if (/[a-zA-Z]/.test(value)) {
40147
- pwdStrength.value++;
40148
- }
40149
- if (/[^0-9a-zA-Z_]/.test(value)) {
40150
- pwdStrength.value++;
40151
- }
40152
- return Promise.resolve();
40153
- };
40154
40575
  const form = reactive({
40155
40576
  userId: "",
40156
40577
  userCode: "",
@@ -40177,8 +40598,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40177
40598
  newPwd: [
40178
40599
  {
40179
40600
  required: true,
40180
- message: t2("uc_personal_center.user_pwd1_msg1"),
40181
- validator: handlePasswordLevel
40601
+ message: t2("uc_personal_center.user_pwd1_msg1")
40182
40602
  }
40183
40603
  ],
40184
40604
  userPwd1: [
@@ -40198,6 +40618,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40198
40618
  ]
40199
40619
  });
40200
40620
  const initData = async () => {
40621
+ var _a;
40201
40622
  const { result } = await getUserInfoSearchBase({});
40202
40623
  const res = await getUserInfoAll();
40203
40624
  Object.assign(form, result, {
@@ -40212,6 +40633,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40212
40633
  userInfo.value.userName = res.result.userName;
40213
40634
  userInfo.value.deptId = res.result.userBranchName;
40214
40635
  userInfo.value.role = res.result.userRoleName;
40636
+ if ((_a = res.result) == null ? void 0 : _a.userOtherRoleName) {
40637
+ userInfo.value.role += ", " + res.result.userOtherRoleName;
40638
+ }
40215
40639
  userInfo.value.mobile = res.result.userMobile;
40216
40640
  userInfo.value.email = res.result.userEmail;
40217
40641
  };
@@ -40221,36 +40645,33 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40221
40645
  const onSubmit = () => {
40222
40646
  initData();
40223
40647
  };
40224
- const handleEditUserName = () => {
40648
+ const handleEditUserName = (userName) => {
40225
40649
  modalEditRef.value.showModal({
40226
40650
  opType: "1",
40227
- title: t2("uc_profile.editUserName")
40651
+ title: t2("uc_profile.editUserName"),
40652
+ userName
40228
40653
  });
40229
40654
  };
40230
40655
  const handleEditPhone = () => {
40231
40656
  modalEditRef.value.showModal({
40232
40657
  opType: "2",
40233
- title: userInfo.value.mobile ? t2("uc_profile.editMobile") : t2("uc_profile.bandMobile")
40658
+ title: userInfo.value.mobile ? t2("uc_profile.editMobile") : t2("uc_profile.bandMobile"),
40659
+ isBand: !userInfo.value.mobile ? true : false
40234
40660
  });
40235
40661
  };
40236
40662
  const handleEditEmail = () => {
40237
40663
  modalEditRef.value.showModal({
40238
40664
  opType: "3",
40239
- title: userInfo.value.mobile ? t2("uc_profile.editEmail") : t2("uc_profile.bandEmail")
40665
+ title: userInfo.value.email ? t2("uc_profile.editEmail") : t2("uc_profile.bandEmail"),
40666
+ isBand: !userInfo.value.email ? true : false
40240
40667
  });
40241
40668
  };
40242
40669
  const handleUploadPreview = (option2) => {
40243
40670
  modalRef.value && modalRef.value.edit(option2);
40244
40671
  };
40245
- const handleFinish = (values2) => {
40246
- };
40247
- const handleFinishFailed = (errors) => {
40248
- };
40249
40672
  const resetForm = () => {
40250
40673
  formRef.value.resetFields();
40251
40674
  };
40252
- const handleValidate = (...args) => {
40253
- };
40254
40675
  const submitPwd = () => {
40255
40676
  formRef.value && formRef.value.validate().then(() => {
40256
40677
  loading.value = true;
@@ -40317,9 +40738,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40317
40738
  prefixCls: unref(prefixCls)
40318
40739
  }, {
40319
40740
  default: withCtx(() => [
40320
- createElementVNode("div", _hoisted_1$9, [
40741
+ createElementVNode("div", _hoisted_1$8, [
40321
40742
  createElementVNode("div", _hoisted_2$5, [
40322
- createElementVNode("div", _hoisted_3$4, [
40743
+ createElementVNode("div", _hoisted_3$3, [
40323
40744
  createElementVNode("div", _hoisted_4$2, [
40324
40745
  createVNode(_component_a_tooltip, {
40325
40746
  placement: "top",
@@ -40400,7 +40821,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40400
40821
  createTextVNode(toDisplayString(userInfo.value.userName) + " ", 1),
40401
40822
  createVNode(unref(EditOutlined), {
40402
40823
  style: { "width": "16px", "height": "16px", "color": "#165dff" },
40403
- onClick: handleEditUserName
40824
+ onClick: _cache[1] || (_cache[1] = ($event) => handleEditUserName(userInfo.value.userName))
40404
40825
  })
40405
40826
  ], 8, _hoisted_30)
40406
40827
  ]),
@@ -40418,9 +40839,22 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40418
40839
  createElementVNode("div", _hoisted_35, [
40419
40840
  createElementVNode("div", _hoisted_36, toDisplayString(_ctx.$t("uc_profile.role")), 1),
40420
40841
  createElementVNode("div", {
40421
- class: "info-value",
40422
- title: userInfo.value.role
40423
- }, toDisplayString(userInfo.value.role), 9, _hoisted_37)
40842
+ class: "info-value-other",
40843
+ ref_key: "roleRef",
40844
+ ref: roleRef
40845
+ }, [
40846
+ createVNode(_component_a_tooltip, {
40847
+ getPopupContainer: () => roleRef.value
40848
+ }, {
40849
+ title: withCtx(() => [
40850
+ createTextVNode(toDisplayString(userInfo.value.role), 1)
40851
+ ]),
40852
+ default: withCtx(() => [
40853
+ createElementVNode("div", _hoisted_37, toDisplayString(userInfo.value.role), 1)
40854
+ ]),
40855
+ _: 1
40856
+ }, 8, ["getPopupContainer"])
40857
+ ], 512)
40424
40858
  ])
40425
40859
  ])
40426
40860
  ]),
@@ -40470,10 +40904,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40470
40904
  name: "custom-validation",
40471
40905
  model: formState,
40472
40906
  rules: pwdRules,
40473
- layout: "vertical",
40474
- onFinish: handleFinish,
40475
- onValidate: handleValidate,
40476
- onFinishFailed: handleFinishFailed
40907
+ layout: "vertical"
40477
40908
  }, {
40478
40909
  default: withCtx(() => [
40479
40910
  createVNode(_component_a_form_item, {
@@ -40483,7 +40914,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40483
40914
  default: withCtx(() => [
40484
40915
  createVNode(_component_a_input_password, {
40485
40916
  value: formState.oldPwd,
40486
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => formState.oldPwd = $event),
40917
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => formState.oldPwd = $event),
40487
40918
  type: "password",
40488
40919
  autocomplete: "off",
40489
40920
  style: { "width": "320px" },
@@ -40499,7 +40930,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40499
40930
  default: withCtx(() => [
40500
40931
  createVNode(_component_a_input_password, {
40501
40932
  value: formState.newPwd,
40502
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => formState.newPwd = $event),
40933
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => formState.newPwd = $event),
40503
40934
  type: "password",
40504
40935
  autocomplete: "off",
40505
40936
  style: { "width": "320px" },
@@ -40515,7 +40946,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40515
40946
  default: withCtx(() => [
40516
40947
  createVNode(_component_a_input_password, {
40517
40948
  value: formState.userPwd1,
40518
- "onUpdate:value": _cache[3] || (_cache[3] = ($event) => formState.userPwd1 = $event),
40949
+ "onUpdate:value": _cache[4] || (_cache[4] = ($event) => formState.userPwd1 = $event),
40519
40950
  type: "password",
40520
40951
  autocomplete: "off",
40521
40952
  style: { "width": "320px" },
@@ -40536,7 +40967,6 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40536
40967
  ]),
40537
40968
  _: 1
40538
40969
  }),
40539
- createCommentVNode(` <uc-btn-reset-pwd type="link" @click="submitPwd">{{ $t('uc_common.btnSubmit') }}</uc-btn-reset-pwd> `),
40540
40970
  createVNode(_component_a_button, {
40541
40971
  style: { "margin-left": "10px" },
40542
40972
  onClick: resetForm
@@ -40572,7 +41002,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40572
41002
  }
40573
41003
  });
40574
41004
  const index_vue_vue_type_style_index_0_scoped_1275f3db_lang = "";
40575
- const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-1275f3db"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/userinfo/index.vue"]]);
41005
+ const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-1275f3db"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/userinfo/index.vue"]]);
40576
41006
  function getLangSearchLangList(params) {
40577
41007
  return handleRespPost({
40578
41008
  url: "/api/sys/lang/search-lang-list",
@@ -40615,7 +41045,7 @@ function setLangExport() {
40615
41045
  responseType: "blob"
40616
41046
  });
40617
41047
  }
40618
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
41048
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
40619
41049
  ...{
40620
41050
  name: "LangAdd"
40621
41051
  },
@@ -40761,8 +41191,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
40761
41191
  };
40762
41192
  }
40763
41193
  });
40764
- const LangAdd = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/lang/LangAdd.vue"]]);
40765
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
41194
+ const LangAdd = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/lang/LangAdd.vue"]]);
41195
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
40766
41196
  __name: "FormItemBtnGroup",
40767
41197
  props: {
40768
41198
  top: {
@@ -40793,14 +41223,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
40793
41223
  }
40794
41224
  });
40795
41225
  const FormItemBtnGroup_vue_vue_type_style_index_0_scoped_ffd7f8e3_lang = "";
40796
- const FIBtnGroup = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-ffd7f8e3"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/FormItemBtnGroup/FormItemBtnGroup.vue"]]);
40797
- const _hoisted_1$8 = {
41226
+ const FIBtnGroup = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-ffd7f8e3"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/FormItemBtnGroup/FormItemBtnGroup.vue"]]);
41227
+ const _hoisted_1$7 = {
40798
41228
  bordered: false,
40799
41229
  class: "lang-warp"
40800
41230
  };
40801
41231
  const _hoisted_2$4 = { style: { "margin": "10px 0 6px 10px" } };
40802
- const _hoisted_3$3 = { class: "table-page-search-wrapper" };
40803
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
41232
+ const _hoisted_3$2 = { class: "table-page-search-wrapper" };
41233
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
40804
41234
  __name: "index",
40805
41235
  setup(__props) {
40806
41236
  const appStore = useAppStore();
@@ -40974,7 +41404,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
40974
41404
  size: "large"
40975
41405
  }, {
40976
41406
  default: withCtx(() => [
40977
- createElementVNode("div", _hoisted_1$8, [
41407
+ createElementVNode("div", _hoisted_1$7, [
40978
41408
  createElementVNode("div", _hoisted_2$4, [
40979
41409
  createElementVNode("div", null, [
40980
41410
  createVNode(_component_a_form, {
@@ -41045,7 +41475,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
41045
41475
  })
41046
41476
  ])
41047
41477
  ]),
41048
- createElementVNode("div", _hoisted_3$3, [
41478
+ createElementVNode("div", _hoisted_3$2, [
41049
41479
  createVNode(_component_a_row, null, {
41050
41480
  default: withCtx(() => [
41051
41481
  createVNode(_component_a_col, {
@@ -41074,6 +41504,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
41074
41504
  style: { "margin-top": "10px" },
41075
41505
  ref_key: "tableRef",
41076
41506
  ref: tableRef,
41507
+ class: "table-bordered",
41077
41508
  columns: columns.value,
41078
41509
  data: loadData,
41079
41510
  rowKey: getKey,
@@ -41189,46 +41620,217 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
41189
41620
  }
41190
41621
  });
41191
41622
  const index_vue_vue_type_style_index_0_scoped_9e1f799b_lang = "";
41192
- const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-9e1f799b"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/lang/index.vue"]]);
41193
- const _hoisted_1$7 = { class: "uc-pro-footer-toolbar" };
41194
- const _hoisted_2$3 = { style: { "float": "left" } };
41195
- const _hoisted_3$2 = { style: { "text-align": "center" } };
41196
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
41197
- ...{
41198
- name: "FooterToolBar"
41199
- },
41200
- __name: "FooterToolBar",
41623
+ const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-9e1f799b"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/lang/index.vue"]]);
41624
+ function resetPassword(params) {
41625
+ return handleRespPost({
41626
+ url: "/api/sys/org/resetpwd",
41627
+ method: "post",
41628
+ params
41629
+ });
41630
+ }
41631
+ function deleteOrg(params) {
41632
+ return handleRespPost({
41633
+ url: "/api/sys/org/delete",
41634
+ method: "post",
41635
+ params
41636
+ });
41637
+ }
41638
+ function orgInsert(params) {
41639
+ return handleRespPost({
41640
+ url: "/api/sys/org/insert",
41641
+ method: "post",
41642
+ params
41643
+ });
41644
+ }
41645
+ function orgUpdate(params) {
41646
+ return handleRespPost({
41647
+ url: "/api/sys/org/update",
41648
+ method: "post",
41649
+ params
41650
+ });
41651
+ }
41652
+ function orgUpdateLoad(params) {
41653
+ return handleRespPost({
41654
+ url: "/api/sys/org/update-load",
41655
+ method: "get",
41656
+ params
41657
+ });
41658
+ }
41659
+ function orgConditionalSeach(params) {
41660
+ return handleRespPost({
41661
+ url: "/api/sys/org/search-list",
41662
+ method: "get",
41663
+ params
41664
+ });
41665
+ }
41666
+ function orgSwitchStatus(params) {
41667
+ return handleRespPost({
41668
+ url: "/api/sys/org/switch",
41669
+ method: "post",
41670
+ data: params
41671
+ });
41672
+ }
41673
+ const _hoisted_1$6 = { class: "rwd" };
41674
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
41675
+ __name: "ResetPwdModal",
41201
41676
  props: {
41202
- prefixCls: {
41203
- type: String,
41204
- default: "uc-pro-footer-toolbar"
41205
- },
41206
- extra: {
41207
- type: [String, Object],
41208
- default: ""
41677
+ params: {
41678
+ type: Object,
41679
+ default: () => ({})
41209
41680
  }
41210
41681
  },
41211
- setup(__props) {
41682
+ emits: ["close"],
41683
+ setup(__props, { emit: __emit }) {
41684
+ const { requiredMessage } = useRequiredMessage();
41685
+ const { t: t2 } = useI18n();
41686
+ const emit = __emit;
41212
41687
  const props = __props;
41688
+ const formRef = ref();
41689
+ const visible = ref(true);
41690
+ const destroyOnClose = ref(true);
41691
+ const formItemLayout = reactive({});
41692
+ const form = reactive({
41693
+ userPwd: "",
41694
+ userPwd1: ""
41695
+ });
41696
+ const onSubmit = () => {
41697
+ formRef.value && formRef.value.validate().then(() => {
41698
+ const { orgId } = props.params;
41699
+ if (orgId) {
41700
+ resetPassword({
41701
+ orgId,
41702
+ userPwd: hash.sha256().update(form.userPwd).digest("hex")
41703
+ }).then(() => {
41704
+ message.success(t2("uc_org.resetPwdSucc"));
41705
+ emit("close");
41706
+ });
41707
+ }
41708
+ });
41709
+ };
41710
+ const onCancel = () => {
41711
+ emit("close");
41712
+ };
41713
+ const rules = {
41714
+ userPwd: [
41715
+ {
41716
+ required: true,
41717
+ message: t2("uc_org.user_pwd1_msg1")
41718
+ }
41719
+ ],
41720
+ userPwd1: [
41721
+ {
41722
+ required: true,
41723
+ validator: (rule, value) => {
41724
+ if (!value) {
41725
+ return Promise.reject(requiredMessage(t2("uc_org.newPwd1")));
41726
+ }
41727
+ if (value == form.userPwd) {
41728
+ return Promise.resolve();
41729
+ } else {
41730
+ return Promise.reject(t2("uc_org.user_pwd2_msg1"));
41731
+ }
41732
+ }
41733
+ }
41734
+ ]
41735
+ };
41213
41736
  return (_ctx, _cache) => {
41214
- return openBlock(), createElementBlock("div", _hoisted_1$7, [
41215
- createElementVNode("div", _hoisted_2$3, [
41216
- renderSlot(_ctx.$slots, "extra", {}, () => [
41217
- createTextVNode(toDisplayString(props.extra), 1)
41218
- ], true)
41219
- ]),
41220
- createElementVNode("div", _hoisted_3$2, [
41221
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
41222
- ])
41737
+ const _component_a_input = Input;
41738
+ const _component_a_form_item = FormItem;
41739
+ const _component_a_form = Form;
41740
+ const _component_a_button = Button$1;
41741
+ const _component_a_modal = Modal$1;
41742
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [
41743
+ createVNode(_component_a_modal, {
41744
+ class: "custom-org-modal",
41745
+ width: 352,
41746
+ open: visible.value,
41747
+ "onUpdate:open": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
41748
+ style: { "top": "280px" },
41749
+ title: _ctx.$t("uc_org.resetPwd"),
41750
+ destroyOnClose: destroyOnClose.value,
41751
+ onCancel
41752
+ }, {
41753
+ footer: withCtx(() => [
41754
+ createVNode(_component_a_button, {
41755
+ key: "back",
41756
+ onClick: onCancel
41757
+ }, {
41758
+ default: withCtx(() => [
41759
+ createTextVNode(toDisplayString(_ctx.$t("uc_common.btnCancel")), 1)
41760
+ ]),
41761
+ _: 1
41762
+ }),
41763
+ createVNode(_component_a_button, {
41764
+ key: "submit",
41765
+ type: "primary",
41766
+ onClick: onSubmit
41767
+ }, {
41768
+ default: withCtx(() => [
41769
+ createTextVNode(toDisplayString(_ctx.$t("uc_common.btnSubmit")), 1)
41770
+ ]),
41771
+ _: 1
41772
+ })
41773
+ ]),
41774
+ default: withCtx(() => [
41775
+ createVNode(_component_a_form, {
41776
+ model: form,
41777
+ ref_key: "formRef",
41778
+ ref: formRef,
41779
+ rules,
41780
+ class: "clear-formctrl-lh rwd-content",
41781
+ layout: "vertical"
41782
+ }, {
41783
+ default: withCtx(() => [
41784
+ createVNode(_component_a_form_item, mergeProps(formItemLayout, {
41785
+ style: { "margin-bottom": "0", "width": "320px" },
41786
+ name: "userPwd"
41787
+ }), {
41788
+ label: withCtx(() => [
41789
+ createTextVNode(toDisplayString(_ctx.$t("uc_org.orgNewPwd")), 1)
41790
+ ]),
41791
+ default: withCtx(() => [
41792
+ createVNode(_component_a_input, {
41793
+ type: "password",
41794
+ placeholder: _ctx.$t("uc_common.plsEnter"),
41795
+ value: form.userPwd,
41796
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => form.userPwd = $event),
41797
+ autoComplete: "off"
41798
+ }, null, 8, ["placeholder", "value"])
41799
+ ]),
41800
+ _: 1
41801
+ }, 16),
41802
+ createVNode(_component_a_form_item, mergeProps({
41803
+ label: _ctx.$t("uc_org.newPwd1")
41804
+ }, formItemLayout, {
41805
+ name: "userPwd1",
41806
+ style: { "width": "320px" }
41807
+ }), {
41808
+ default: withCtx(() => [
41809
+ createVNode(_component_a_input, {
41810
+ type: "password",
41811
+ placeholder: _ctx.$t("uc_common.plsEnter"),
41812
+ value: form.userPwd1,
41813
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.userPwd1 = $event),
41814
+ autoComplete: "off"
41815
+ }, null, 8, ["placeholder", "value"])
41816
+ ]),
41817
+ _: 1
41818
+ }, 16, ["label"])
41819
+ ]),
41820
+ _: 1
41821
+ }, 8, ["model"])
41822
+ ]),
41823
+ _: 1
41824
+ }, 8, ["open", "title", "destroyOnClose"])
41223
41825
  ]);
41224
41826
  };
41225
41827
  }
41226
41828
  });
41227
- const FooterToolBar_vue_vue_type_style_index_0_scoped_040ae207_lang = "";
41228
- const FooterToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-040ae207"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/FooterToolbar/FooterToolBar.vue"]]);
41229
- const _hoisted_1$6 = { key: 1 };
41230
- const _hoisted_2$2 = { key: 2 };
41231
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
41829
+ const ResetPwdModal_vue_vue_type_style_index_0_lang = "";
41830
+ const ResetPwdModal = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/org/ResetPwdModal.vue"]]);
41831
+ const _hoisted_1$5 = { key: 1 };
41832
+ const _hoisted_2$3 = { key: 2 };
41833
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
41232
41834
  __name: "DictEx",
41233
41835
  props: {
41234
41836
  server: {
@@ -41430,14 +42032,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
41430
42032
  ]),
41431
42033
  _: 1
41432
42034
  }, 8, ["value", "getPopupContainer", "placeholder", "mode", "disabled", "size", "allowClear", "open"])) : createCommentVNode("v-if", true),
41433
- __props.kind == "text" && __props.mode === "multiple" ? (openBlock(), createElementBlock("span", _hoisted_1$6, toDisplayString(getMultipleLabel()), 1)) : createCommentVNode("v-if", true),
41434
- __props.kind == "text" && __props.mode !== "multiple" ? (openBlock(), createElementBlock("span", _hoisted_2$2, toDisplayString(getLabel(__props.value, "html")), 1)) : createCommentVNode("v-if", true)
42035
+ __props.kind == "text" && __props.mode === "multiple" ? (openBlock(), createElementBlock("span", _hoisted_1$5, toDisplayString(getMultipleLabel()), 1)) : createCommentVNode("v-if", true),
42036
+ __props.kind == "text" && __props.mode !== "multiple" ? (openBlock(), createElementBlock("span", _hoisted_2$3, toDisplayString(getLabel(__props.value, "html")), 1)) : createCommentVNode("v-if", true)
41435
42037
  ]);
41436
42038
  };
41437
42039
  }
41438
42040
  });
41439
- const DictEx = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/DictEx.vue"]]);
41440
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
42041
+ const DictEx = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/DictEx.vue"]]);
42042
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
41441
42043
  __name: "TimeZone",
41442
42044
  props: {
41443
42045
  mode: {
@@ -41517,8 +42119,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
41517
42119
  };
41518
42120
  }
41519
42121
  });
41520
- const TimeZone = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/TimeZone.vue"]]);
41521
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
42122
+ const TimeZone = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/TimeZone.vue"]]);
42123
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
41522
42124
  __name: "LangCombo",
41523
42125
  props: {
41524
42126
  mode: {
@@ -41598,8 +42200,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
41598
42200
  };
41599
42201
  }
41600
42202
  });
41601
- const LangCombo = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/LangCombo.vue"]]);
41602
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
42203
+ const LangCombo = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/LangCombo.vue"]]);
42204
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
41603
42205
  __name: "RegionSelect",
41604
42206
  props: {
41605
42207
  modelValue: {
@@ -41687,8 +42289,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
41687
42289
  };
41688
42290
  }
41689
42291
  });
41690
- const RegionSelect = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/RegionSelect.vue"]]);
41691
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
42292
+ const RegionSelect = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/RegionSelect.vue"]]);
42293
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
41692
42294
  __name: "index",
41693
42295
  props: {
41694
42296
  className: {
@@ -41750,863 +42352,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
41750
42352
  }
41751
42353
  });
41752
42354
  const index_vue_vue_type_style_index_0_scoped_ce85d961_lang = "";
41753
- const PhTip = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-ce85d961"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/PlaceholderTip/index.vue"]]);
41754
- function resetPassword(params) {
41755
- return handleRespPost({
41756
- url: "/api/sys/org/resetpwd",
41757
- method: "post",
41758
- params
41759
- });
41760
- }
41761
- function deleteOrg(params) {
41762
- return handleRespPost({
41763
- url: "/api/sys/org/delete",
41764
- method: "post",
41765
- params
41766
- });
41767
- }
41768
- function orgInsert(params) {
41769
- return handleRespPost({
41770
- url: "/api/sys/org/insert",
41771
- method: "post",
41772
- params
41773
- });
41774
- }
41775
- function orgUpdate(params) {
41776
- return handleRespPost({
41777
- url: "/api/sys/org/update",
41778
- method: "post",
41779
- params
41780
- });
41781
- }
41782
- function orgUpdateLoad(params) {
41783
- return handleRespPost({
41784
- url: "/api/sys/org/update-load",
41785
- method: "get",
41786
- params
41787
- });
41788
- }
41789
- function orgConditionalSeach(params) {
41790
- return handleRespPost({
41791
- url: "/api/sys/org/search-list",
41792
- method: "get",
41793
- params
41794
- });
41795
- }
41796
- function orgSwitchStatus(params) {
41797
- return handleRespPost({
41798
- url: "/api/sys/org/switch",
41799
- method: "post",
41800
- data: params
41801
- });
41802
- }
41803
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
41804
- __name: "OrgEdit",
41805
- props: {
41806
- params: {
41807
- type: Object,
41808
- default: null
41809
- }
41810
- },
41811
- emits: ["ok", "cancel"],
41812
- setup(__props, { emit: __emit }) {
41813
- const { t: t2 } = useI18n();
41814
- const emit = __emit;
41815
- const props = __props;
41816
- const formRef = ref(null);
41817
- const regionSelRef = ref(null);
41818
- const loading = ref(false);
41819
- const form = reactive({
41820
- userName: "",
41821
- orgName: "",
41822
- industryCode: [],
41823
- orgType: [],
41824
- zoneCode: "",
41825
- timezone: [],
41826
- dateFormat: [],
41827
- langId: [],
41828
- monetaryyUnit: "",
41829
- monetaryyDeci: "",
41830
- mobile: "",
41831
- email: "",
41832
- equiNum: "",
41833
- userNum: ""
41834
- });
41835
- const defaultForm = reactive({});
41836
- const initData = async () => {
41837
- loading.value = true;
41838
- const { result } = await orgUpdateLoad({
41839
- orgId: props.params.orgId
41840
- });
41841
- loading.value = false;
41842
- Object.assign(defaultForm, result, {
41843
- mobile: result.sysUser.mobile,
41844
- email: result.sysUser.email,
41845
- zoneCode: result.zoneCode,
41846
- orgType: [result.orgType],
41847
- timezone: [result.timezone],
41848
- dateFormat: [result.dateFormat],
41849
- langId: [result.langId + ""],
41850
- industryCode: [result.industryCode],
41851
- userName: result.sysUser.userId,
41852
- monetaryyDeci: result.monetaryyDeci ? result.monetaryyDeci : 2
41853
- });
41854
- Object.assign(form, defaultForm);
41855
- };
41856
- const initModel = (params) => {
41857
- if (!params || !params.opType) {
41858
- return;
41859
- }
41860
- defaultForm.orgId = params.orgId;
41861
- if (params.opType == "2") {
41862
- initData();
41863
- }
41864
- };
41865
- const changeRegion = (values2) => {
41866
- form.zoneCode = values2;
41867
- regionSelRef.value && regionSelRef.value.getObject(values2).then((result) => {
41868
- form.timezone = [result.result.v1];
41869
- form.dateFormat = [result.result.v2];
41870
- form.monetaryyUnit = result.result.v3;
41871
- });
41872
- formRef.value && formRef.value.clearValidate(["timezone", "dateFormat", "monetaryyUnit"]);
41873
- };
41874
- const onCancel = () => {
41875
- emit("cancel");
41876
- };
41877
- const onSubmit = () => {
41878
- formRef.value && formRef.value.validate().then(async () => {
41879
- const paramsData = {
41880
- sysUser: {
41881
- mobile: form.mobile,
41882
- email: form.email
41883
- },
41884
- sysOrg: {
41885
- orgId: props.params.opType == "1" ? "" : props.params.orgId,
41886
- industryCode: form.industryCode[0],
41887
- orgName: form.orgName,
41888
- orgType: form.orgType[0],
41889
- zoneCode: form.zoneCode,
41890
- timezone: form.timezone[0],
41891
- monetaryyUnit: form.monetaryyUnit,
41892
- monetaryyDeci: form.monetaryyDeci,
41893
- dateFormat: form.dateFormat[0],
41894
- langId: form.langId[0],
41895
- equiNum: form.equiNum,
41896
- userNum: form.userNum,
41897
- remark: ""
41898
- }
41899
- };
41900
- loading.value = true;
41901
- if (props.params.opType == "1") {
41902
- const { result } = await orgInsert({
41903
- jsonStr: JSON.stringify(paramsData)
41904
- });
41905
- loading.value = false;
41906
- emit("ok", result);
41907
- } else if (props.params.opType == "2") {
41908
- const { result } = await orgUpdate({
41909
- jsonStr: JSON.stringify(paramsData)
41910
- });
41911
- loading.value = false;
41912
- emit("ok", result);
41913
- }
41914
- });
41915
- };
41916
- const rules = {
41917
- orgName: [
41918
- {
41919
- required: true,
41920
- message: t2("uc_org.org_name_msg1"),
41921
- trigger: "change",
41922
- validator: (rule, value) => {
41923
- if (value == "") {
41924
- return Promise.reject(t2("uc_org.org_name_msg1"));
41925
- } else {
41926
- return Promise.resolve();
41927
- }
41928
- }
41929
- }
41930
- ],
41931
- orgType: [
41932
- {
41933
- required: true,
41934
- message: t2("uc_org.org_type_msg1"),
41935
- trigger: "change",
41936
- validator: (rule, value) => {
41937
- if (Array.isArray(value) && value.length !== 0) {
41938
- return Promise.resolve();
41939
- } else {
41940
- return Promise.reject(t2("uc_org.org_type_msg1"));
41941
- }
41942
- }
41943
- }
41944
- ],
41945
- industryCode: [
41946
- {
41947
- required: true,
41948
- message: t2("uc_org.industry_msg1"),
41949
- trigger: "change",
41950
- validator: (rule, value) => {
41951
- if (Array.isArray(value) && value.length !== 0) {
41952
- return Promise.resolve();
41953
- } else {
41954
- return Promise.reject(t2("uc_org.industry_msg1"));
41955
- }
41956
- }
41957
- }
41958
- ],
41959
- zoneCode: [
41960
- {
41961
- required: true,
41962
- message: t2("uc_org.zone_code_msg1"),
41963
- trigger: ["change", "blur"],
41964
- validator: (rule, value) => {
41965
- if (value == "") {
41966
- return Promise.reject(t2("uc_org.zone_code_msg1"));
41967
- } else {
41968
- return Promise.resolve();
41969
- }
41970
- }
41971
- }
41972
- ],
41973
- timezone: [
41974
- {
41975
- required: true,
41976
- message: t2("uc_org.timezone_type_msg1"),
41977
- trigger: ["change", "blur"],
41978
- validator: (rule, value) => {
41979
- if (Array.isArray(value) && value.length !== 0) {
41980
- return Promise.resolve();
41981
- } else {
41982
- return Promise.reject(t2("uc_org.timezone_type_msg1"));
41983
- }
41984
- }
41985
- }
41986
- ],
41987
- dateFormat: [
41988
- {
41989
- required: true,
41990
- trigger: ["change", "blur"],
41991
- message: t2("uc_org.dateformat_msg1")
41992
- }
41993
- ],
41994
- monetaryyUnit: [
41995
- {
41996
- required: true,
41997
- trigger: ["change", "blur"],
41998
- message: t2("uc_org.monery_unit_msg1")
41999
- }
42000
- ],
42001
- langId: [
42002
- {
42003
- required: true,
42004
- message: t2("uc_org.lang_msg1"),
42005
- trigger: "change",
42006
- validator: (rule, value) => {
42007
- if (Array.isArray(value) && value.length !== 0) {
42008
- return Promise.resolve();
42009
- } else {
42010
- return Promise.reject(t2("uc_org.lang_msg1"));
42011
- }
42012
- }
42013
- }
42014
- ],
42015
- equiNum: [
42016
- {
42017
- required: true,
42018
- message: t2("uc_org.equi_num_msg1"),
42019
- trigger: "change"
42020
- }
42021
- ],
42022
- userNum: [
42023
- {
42024
- required: true,
42025
- message: t2("uc_org.user_num_msg1"),
42026
- trigger: "change"
42027
- }
42028
- ]
42029
- };
42030
- onMounted(() => {
42031
- initModel(props.params);
42032
- });
42033
- return (_ctx, _cache) => {
42034
- const _component_a_input = Input;
42035
- const _component_a_form_item = FormItem;
42036
- const _component_a_col = Col;
42037
- const _component_a_row = Row;
42038
- const _component_a_input_number = InputNumber;
42039
- const _component_a_form = Form;
42040
- const _component_a_spin = Spin;
42041
- const _component_a_button = Button$1;
42042
- const _component_a_card = Card;
42043
- return openBlock(), createBlock(_component_a_card, {
42044
- bordered: false,
42045
- title: __props.params.opType == "1" ? _ctx.$t("uc_org.title") : _ctx.$t("uc_org.title4")
42046
- }, {
42047
- default: withCtx(() => [
42048
- createVNode(_component_a_spin, { spinning: loading.value }, {
42049
- default: withCtx(() => [
42050
- createVNode(_component_a_form, {
42051
- model: form,
42052
- ref_key: "formRef",
42053
- ref: formRef,
42054
- layout: "vertical",
42055
- rules
42056
- }, {
42057
- default: withCtx(() => [
42058
- createVNode(_component_a_row, { gutter: 48 }, {
42059
- default: withCtx(() => [
42060
- createVNode(_component_a_col, {
42061
- lg: 7,
42062
- md: 7,
42063
- sm: 24
42064
- }, {
42065
- default: withCtx(() => [
42066
- createVNode(_component_a_form_item, {
42067
- label: _ctx.$t("uc_org.user_name"),
42068
- name: "userName"
42069
- }, {
42070
- default: withCtx(() => [
42071
- createVNode(_component_a_input, {
42072
- type: "userName",
42073
- disabled: "",
42074
- placeholder: _ctx.$t("uc_org.user_name"),
42075
- value: form.userName,
42076
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => form.userName = $event)
42077
- }, null, 8, ["placeholder", "value"])
42078
- ]),
42079
- _: 1
42080
- }, 8, ["label"])
42081
- ]),
42082
- _: 1
42083
- }),
42084
- createVNode(_component_a_col, {
42085
- xl: { span: 7 },
42086
- lg: { span: 7 },
42087
- md: { span: 12 },
42088
- sm: 24
42089
- }, {
42090
- default: withCtx(() => [
42091
- createVNode(_component_a_form_item, {
42092
- label: _ctx.$t("uc_org.mobile"),
42093
- name: "mobile"
42094
- }, {
42095
- default: withCtx(() => [
42096
- createVNode(_component_a_input, {
42097
- placeholder: _ctx.$t("uc_org.mobile"),
42098
- disabled: __props.params.opType == "2",
42099
- value: form.mobile,
42100
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.mobile = $event)
42101
- }, null, 8, ["placeholder", "disabled", "value"])
42102
- ]),
42103
- _: 1
42104
- }, 8, ["label"])
42105
- ]),
42106
- _: 1
42107
- }),
42108
- createVNode(_component_a_col, {
42109
- xl: { span: 7 },
42110
- lg: { span: 7 },
42111
- md: { span: 12 },
42112
- sm: 24
42113
- }, {
42114
- default: withCtx(() => [
42115
- createVNode(_component_a_form_item, {
42116
- label: _ctx.$t("uc_user.email"),
42117
- name: "email"
42118
- }, {
42119
- default: withCtx(() => [
42120
- createVNode(_component_a_input, {
42121
- placeholder: _ctx.$t("uc_user.email"),
42122
- disabled: __props.params.opType == "2",
42123
- value: form.email,
42124
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.email = $event)
42125
- }, null, 8, ["placeholder", "disabled", "value"])
42126
- ]),
42127
- _: 1
42128
- }, 8, ["label"])
42129
- ]),
42130
- _: 1
42131
- })
42132
- ]),
42133
- _: 1
42134
- }),
42135
- createVNode(_component_a_row, { gutter: 48 }, {
42136
- default: withCtx(() => [
42137
- createVNode(_component_a_col, {
42138
- lg: 7,
42139
- md: 7,
42140
- sm: 24
42141
- }, {
42142
- default: withCtx(() => [
42143
- createVNode(_component_a_form_item, {
42144
- label: _ctx.$t("uc_org.org_name"),
42145
- name: "orgName"
42146
- }, {
42147
- default: withCtx(() => [
42148
- createVNode(PhTip, { className: "tip-wrapper" }, {
42149
- title: withCtx(() => [
42150
- createTextVNode(toDisplayString(_ctx.$t("uc_org.org_name_placeholder")), 1)
42151
- ]),
42152
- default: withCtx(() => [
42153
- createVNode(_component_a_input, {
42154
- placeholder: _ctx.$t("uc_org.org_name_placeholder"),
42155
- value: form.orgName,
42156
- "onUpdate:value": _cache[3] || (_cache[3] = ($event) => form.orgName = $event)
42157
- }, null, 8, ["placeholder", "value"])
42158
- ]),
42159
- _: 1
42160
- })
42161
- ]),
42162
- _: 1
42163
- }, 8, ["label"])
42164
- ]),
42165
- _: 1
42166
- }),
42167
- createVNode(_component_a_col, {
42168
- xl: { span: 7 },
42169
- lg: { span: 7 },
42170
- md: { span: 12 },
42171
- sm: 24
42172
- }, {
42173
- default: withCtx(() => [
42174
- createVNode(_component_a_form_item, {
42175
- label: _ctx.$t("uc_org.org_type"),
42176
- name: "orgType"
42177
- }, {
42178
- default: withCtx(() => [
42179
- createVNode(DictEx, {
42180
- type: "ORG_TYPE",
42181
- placeholder: _ctx.$t("uc_org.org_type_placeholder"),
42182
- value: form.orgType,
42183
- "onUpdate:value": _cache[4] || (_cache[4] = ($event) => form.orgType = $event)
42184
- }, null, 8, ["placeholder", "value"])
42185
- ]),
42186
- _: 1
42187
- }, 8, ["label"])
42188
- ]),
42189
- _: 1
42190
- }),
42191
- createVNode(_component_a_col, {
42192
- xl: { span: 7 },
42193
- lg: { span: 7 },
42194
- md: { span: 12 },
42195
- sm: 24
42196
- }, {
42197
- default: withCtx(() => [
42198
- createVNode(_component_a_form_item, {
42199
- label: _ctx.$t("uc_org.industry"),
42200
- name: "industryCode"
42201
- }, {
42202
- default: withCtx(() => [
42203
- createVNode(DictEx, {
42204
- type: "INDUSTRY_CODE",
42205
- placeholder: _ctx.$t("uc_org.industry_placeholder"),
42206
- value: form.industryCode,
42207
- "onUpdate:value": _cache[5] || (_cache[5] = ($event) => form.industryCode = $event)
42208
- }, null, 8, ["placeholder", "value"])
42209
- ]),
42210
- _: 1
42211
- }, 8, ["label"])
42212
- ]),
42213
- _: 1
42214
- })
42215
- ]),
42216
- _: 1
42217
- }),
42218
- createVNode(_component_a_row, { gutter: 48 }, {
42219
- default: withCtx(() => [
42220
- createVNode(_component_a_col, {
42221
- xl: { span: 7 },
42222
- lg: { span: 7 },
42223
- md: { span: 12 },
42224
- sm: 24
42225
- }, {
42226
- default: withCtx(() => [
42227
- createVNode(_component_a_form_item, {
42228
- label: _ctx.$t("uc_org.zone_code"),
42229
- name: "zoneCode"
42230
- }, {
42231
- default: withCtx(() => [
42232
- createVNode(RegionSelect, {
42233
- placeholder: _ctx.$t("uc_org.zone_code_placeholder"),
42234
- ref_key: "regionSelRef",
42235
- ref: regionSelRef,
42236
- onChange: changeRegion,
42237
- defaultVal: defaultForm.zoneCode
42238
- }, null, 8, ["placeholder", "defaultVal"])
42239
- ]),
42240
- _: 1
42241
- }, 8, ["label"])
42242
- ]),
42243
- _: 1
42244
- }),
42245
- createVNode(_component_a_col, {
42246
- lg: 7,
42247
- md: 7,
42248
- sm: 24
42249
- }, {
42250
- default: withCtx(() => [
42251
- createVNode(_component_a_form_item, {
42252
- label: _ctx.$t("uc_org.timezone"),
42253
- name: "timezone"
42254
- }, {
42255
- default: withCtx(() => [
42256
- createVNode(TimeZone, {
42257
- placeholder: _ctx.$t("uc_org.timezone_placeholder"),
42258
- disabled: true,
42259
- value: form.timezone,
42260
- "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.timezone = $event)
42261
- }, null, 8, ["placeholder", "value"])
42262
- ]),
42263
- _: 1
42264
- }, 8, ["label"])
42265
- ]),
42266
- _: 1
42267
- }),
42268
- createVNode(_component_a_col, {
42269
- xl: { span: 7 },
42270
- lg: { span: 7 },
42271
- md: { span: 12 },
42272
- sm: 24
42273
- }, {
42274
- default: withCtx(() => [
42275
- createVNode(_component_a_form_item, {
42276
- label: _ctx.$t("uc_org.dateformat"),
42277
- name: "dateFormat"
42278
- }, {
42279
- default: withCtx(() => [
42280
- createVNode(DictEx, {
42281
- type: "DATE_FORMAT",
42282
- disabled: true,
42283
- value: form.dateFormat,
42284
- "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.dateFormat = $event)
42285
- }, null, 8, ["value"])
42286
- ]),
42287
- _: 1
42288
- }, 8, ["label"])
42289
- ]),
42290
- _: 1
42291
- })
42292
- ]),
42293
- _: 1
42294
- }),
42295
- createVNode(_component_a_row, { gutter: 48 }, {
42296
- default: withCtx(() => [
42297
- createVNode(_component_a_col, {
42298
- xl: { span: 7 },
42299
- lg: { span: 7 },
42300
- md: { span: 12 },
42301
- sm: 24
42302
- }, {
42303
- default: withCtx(() => [
42304
- createVNode(_component_a_form_item, {
42305
- label: _ctx.$t("uc_org.monery_unit"),
42306
- name: "monetaryyUnit"
42307
- }, {
42308
- default: withCtx(() => [
42309
- createVNode(PhTip, { className: "tip-wrapper" }, {
42310
- title: withCtx(() => [
42311
- createTextVNode(toDisplayString(_ctx.$t("uc_org.monery_unit_placeholder")), 1)
42312
- ]),
42313
- default: withCtx(() => [
42314
- createVNode(_component_a_input, {
42315
- placeholder: _ctx.$t("uc_org.monery_unit_placeholder"),
42316
- disabled: true,
42317
- style: { "width": "100%" },
42318
- value: form.monetaryyUnit,
42319
- "onUpdate:value": _cache[8] || (_cache[8] = ($event) => form.monetaryyUnit = $event)
42320
- }, null, 8, ["placeholder", "value"])
42321
- ]),
42322
- _: 1
42323
- })
42324
- ]),
42325
- _: 1
42326
- }, 8, ["label"])
42327
- ]),
42328
- _: 1
42329
- }),
42330
- createCommentVNode(` <a-col\r
42331
- :xl="{ span: 7 }"\r
42332
- :lg="{ span: 7 }"\r
42333
- :md="{ span: 12 }"\r
42334
- :sm="24"\r
42335
- >\r
42336
- <a-form-item :label="$t('uc_org.monery_deci')" name="monetaryyDeci">\r
42337
- <a-input\r
42338
- :placeholder="$t('uc_org.monery_deci_placeholder')"\r
42339
- v-model:value="form.monetaryyDeci"\r
42340
- />\r
42341
- </a-form-item>\r
42342
- </a-col> `),
42343
- createVNode(_component_a_col, {
42344
- lg: 7,
42345
- md: 7,
42346
- sm: 24
42347
- }, {
42348
- default: withCtx(() => [
42349
- createVNode(_component_a_form_item, {
42350
- label: _ctx.$t("uc_org.lang"),
42351
- name: "langId"
42352
- }, {
42353
- default: withCtx(() => [
42354
- createVNode(LangCombo, {
42355
- placeholder: _ctx.$t("uc_org.lang_placeholder"),
42356
- value: form.langId,
42357
- "onUpdate:value": _cache[9] || (_cache[9] = ($event) => form.langId = $event)
42358
- }, null, 8, ["placeholder", "value"])
42359
- ]),
42360
- _: 1
42361
- }, 8, ["label"])
42362
- ]),
42363
- _: 1
42364
- }),
42365
- createVNode(_component_a_col, {
42366
- lg: 7,
42367
- md: 7,
42368
- sm: 24
42369
- }, {
42370
- default: withCtx(() => [
42371
- createVNode(_component_a_form_item, {
42372
- label: _ctx.$t("uc_org.equi_num"),
42373
- name: "equiNum"
42374
- }, {
42375
- default: withCtx(() => [
42376
- createVNode(_component_a_input_number, {
42377
- style: { "width": "100%" },
42378
- placeholder: _ctx.$t("uc_org.equi_num_placeholder"),
42379
- min: 1,
42380
- value: form.equiNum,
42381
- "onUpdate:value": _cache[10] || (_cache[10] = ($event) => form.equiNum = $event)
42382
- }, null, 8, ["placeholder", "value"])
42383
- ]),
42384
- _: 1
42385
- }, 8, ["label"])
42386
- ]),
42387
- _: 1
42388
- })
42389
- ]),
42390
- _: 1
42391
- }),
42392
- createVNode(_component_a_row, { gutter: 48 }, {
42393
- default: withCtx(() => [
42394
- createVNode(_component_a_col, {
42395
- xl: { span: 7 },
42396
- lg: { span: 7 },
42397
- md: { span: 12 },
42398
- sm: 24
42399
- }, {
42400
- default: withCtx(() => [
42401
- createVNode(_component_a_form_item, {
42402
- label: _ctx.$t("uc_org.user_num"),
42403
- name: "userNum"
42404
- }, {
42405
- default: withCtx(() => [
42406
- createVNode(_component_a_input_number, {
42407
- style: { "width": "100%" },
42408
- placeholder: _ctx.$t("uc_org.user_num_placeholder"),
42409
- min: 1,
42410
- value: form.userNum,
42411
- "onUpdate:value": _cache[11] || (_cache[11] = ($event) => form.userNum = $event)
42412
- }, null, 8, ["placeholder", "value"])
42413
- ]),
42414
- _: 1
42415
- }, 8, ["label"])
42416
- ]),
42417
- _: 1
42418
- })
42419
- ]),
42420
- _: 1
42421
- })
42422
- ]),
42423
- _: 1
42424
- }, 8, ["model"])
42425
- ]),
42426
- _: 1
42427
- }, 8, ["spinning"]),
42428
- createVNode(FooterToolBar, { style: { width: "100%" } }, {
42429
- default: withCtx(() => [
42430
- createVNode(_component_a_button, { onClick: onCancel }, {
42431
- default: withCtx(() => [
42432
- createTextVNode(toDisplayString(_ctx.$t("common.btn_cancel")), 1)
42433
- ]),
42434
- _: 1
42435
- }),
42436
- _cache[12] || (_cache[12] = createTextVNode("\xA0\xA0 ", -1)),
42437
- createVNode(_component_a_button, {
42438
- onClick: onSubmit,
42439
- type: "primary"
42440
- }, {
42441
- default: withCtx(() => [
42442
- createTextVNode(toDisplayString(_ctx.$t("common.btn_ok")), 1)
42443
- ]),
42444
- _: 1
42445
- })
42446
- ]),
42447
- _: 1
42448
- })
42449
- ]),
42450
- _: 1
42451
- }, 8, ["title"]);
42452
- };
42453
- }
42454
- });
42455
- const OrgEdit_vue_vue_type_style_index_0_scoped_bc1e3beb_lang = "";
42456
- const OrgEdit = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-bc1e3beb"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/org/OrgEdit.vue"]]);
42457
- const _hoisted_1$5 = { class: "rwd" };
42458
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
42459
- __name: "ResetPwdModal",
42460
- props: {
42461
- params: {
42462
- type: Object,
42463
- default: () => ({})
42464
- }
42465
- },
42466
- emits: ["close"],
42467
- setup(__props, { emit: __emit }) {
42468
- const { t: t2 } = useI18n();
42469
- const emit = __emit;
42470
- const props = __props;
42471
- const formRef = ref();
42472
- const visible = ref(true);
42473
- const destroyOnClose = ref(true);
42474
- const formItemLayout = reactive({});
42475
- const form = reactive({
42476
- userPwd: "",
42477
- userPwd1: ""
42478
- });
42479
- const onSubmit = () => {
42480
- formRef.value && formRef.value.validate().then(() => {
42481
- const { orgId } = props.params;
42482
- if (orgId) {
42483
- resetPassword({
42484
- orgId,
42485
- userPwd: hash.sha256().update(form.userPwd).digest("hex")
42486
- }).then(() => {
42487
- message.success(t2("resetPwdSucc"));
42488
- emit("close");
42489
- });
42490
- }
42491
- });
42492
- };
42493
- const onCancel = () => {
42494
- emit("close");
42495
- };
42496
- const rules = {
42497
- userPwd: [
42498
- {
42499
- required: true,
42500
- message: t2("uc_org.user_pwd1_msg1")
42501
- }
42502
- ],
42503
- userPwd1: [
42504
- {
42505
- required: true,
42506
- message: t2("uc_org.user_pwd2_msg1"),
42507
- validator: (rule, value) => {
42508
- if (value == form.userPwd) {
42509
- return Promise.resolve();
42510
- } else {
42511
- return Promise.reject(t2("uc_org.user_pwd2_msg1"));
42512
- }
42513
- }
42514
- }
42515
- ]
42516
- };
42517
- return (_ctx, _cache) => {
42518
- const _component_a_input = Input;
42519
- const _component_a_form_item = FormItem;
42520
- const _component_a_form = Form;
42521
- const _component_a_button = Button$1;
42522
- const _component_a_modal = Modal$1;
42523
- return openBlock(), createElementBlock("div", _hoisted_1$5, [
42524
- createVNode(_component_a_modal, {
42525
- class: "custom-org-modal",
42526
- width: 352,
42527
- open: visible.value,
42528
- "onUpdate:open": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
42529
- style: { "top": "280px" },
42530
- title: _ctx.$t("uc_org.resetPwd"),
42531
- destroyOnClose: destroyOnClose.value
42532
- }, {
42533
- footer: withCtx(() => [
42534
- createVNode(_component_a_button, {
42535
- key: "back",
42536
- onClick: onCancel
42537
- }, {
42538
- default: withCtx(() => [
42539
- createTextVNode(toDisplayString(_ctx.$t("uc_common.btnCancel")), 1)
42540
- ]),
42541
- _: 1
42542
- }),
42543
- createVNode(_component_a_button, {
42544
- key: "submit",
42545
- type: "primary",
42546
- onClick: onSubmit
42547
- }, {
42548
- default: withCtx(() => [
42549
- createTextVNode(toDisplayString(_ctx.$t("uc_common.btnSubmit")), 1)
42550
- ]),
42551
- _: 1
42552
- })
42553
- ]),
42554
- default: withCtx(() => [
42555
- createVNode(_component_a_form, {
42556
- model: form,
42557
- ref_key: "formRef",
42558
- ref: formRef,
42559
- rules,
42560
- class: "clear-formctrl-lh rwd-content",
42561
- layout: "vertical"
42562
- }, {
42563
- default: withCtx(() => [
42564
- createVNode(_component_a_form_item, mergeProps(formItemLayout, {
42565
- style: { "margin-bottom": "0", "width": "320px" },
42566
- name: "userPwd"
42567
- }), {
42568
- label: withCtx(() => [
42569
- createTextVNode(toDisplayString(_ctx.$t("uc_org.orgNewPwd")), 1)
42570
- ]),
42571
- default: withCtx(() => [
42572
- createVNode(_component_a_input, {
42573
- type: "password",
42574
- placeholder: _ctx.$t("uc_common.plsEnter"),
42575
- value: form.userPwd,
42576
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => form.userPwd = $event)
42577
- }, null, 8, ["placeholder", "value"])
42578
- ]),
42579
- _: 1
42580
- }, 16),
42581
- createVNode(_component_a_form_item, mergeProps({
42582
- label: _ctx.$t("uc_org.newPwd1")
42583
- }, formItemLayout, {
42584
- name: "userPwd1",
42585
- style: { "width": "320px" }
42586
- }), {
42587
- default: withCtx(() => [
42588
- createVNode(_component_a_input, {
42589
- type: "password",
42590
- placeholder: _ctx.$t("uc_common.plsEnter"),
42591
- value: form.userPwd1,
42592
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.userPwd1 = $event)
42593
- }, null, 8, ["placeholder", "value"])
42594
- ]),
42595
- _: 1
42596
- }, 16, ["label"])
42597
- ]),
42598
- _: 1
42599
- }, 8, ["model"])
42600
- ]),
42601
- _: 1
42602
- }, 8, ["open", "title", "destroyOnClose"])
42603
- ]);
42604
- };
42605
- }
42606
- });
42607
- const ResetPwdModal_vue_vue_type_style_index_0_lang = "";
42608
- const ResetPwdModal = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/org/ResetPwdModal.vue"]]);
42609
- const _hoisted_1$4 = { class: "add-menu" };
42355
+ const PhTip = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-ce85d961"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/PlaceholderTip/index.vue"]]);
42356
+ const _hoisted_1$4 = { class: "add-org" };
42357
+ const _hoisted_2$2 = { style: { "font-size": "12px", "color": "#86909c", "padding-left": "4px" } };
42610
42358
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
42611
42359
  __name: "AddOrg",
42612
42360
  props: {
@@ -42617,6 +42365,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
42617
42365
  },
42618
42366
  emits: ["ok", "cancel"],
42619
42367
  setup(__props, { emit: __emit }) {
42368
+ const { requiredMessage } = useRequiredMessage();
42620
42369
  const { t: t2 } = useI18n();
42621
42370
  const emit = __emit;
42622
42371
  const props = __props;
@@ -42642,18 +42391,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
42642
42391
  });
42643
42392
  const defaultForm = reactive({});
42644
42393
  const isEdit = computed(() => props.params.opType == "2");
42645
- const validateMaxUser = (_, value) => {
42646
- if ((value < 1 || value > 99999999) && value) {
42647
- return Promise.reject(t2("uc_org.userMaxNum"));
42648
- }
42649
- return Promise.resolve();
42650
- };
42651
- const validateMaxOperator = (_, value) => {
42652
- if ((value < 1 || value > 99999999) && value) {
42653
- return Promise.reject(t2("uc_org.userMaxNum"));
42654
- }
42655
- return Promise.resolve();
42656
- };
42657
42394
  const initData = async () => {
42658
42395
  loading.value = true;
42659
42396
  const { result } = await orgUpdateLoad({
@@ -42743,21 +42480,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
42743
42480
  orgName: [
42744
42481
  {
42745
42482
  required: true,
42746
- message: t2("uc_org.org_name_msg1"),
42747
- trigger: "change",
42748
- validator: (rule, value) => {
42749
- if (value == "") {
42750
- return Promise.reject(t2("uc_org.org_name_msg1"));
42751
- } else {
42752
- return Promise.resolve();
42753
- }
42754
- }
42483
+ message: t2("uc_org.org_name_msg1")
42755
42484
  }
42756
42485
  ],
42757
42486
  orgType: [
42758
42487
  {
42759
42488
  required: true,
42760
- message: t2("uc_org.org_type_msg1"),
42761
42489
  trigger: "change",
42762
42490
  validator: (rule, value) => {
42763
42491
  if (Array.isArray(value) && value.length !== 0) {
@@ -42771,7 +42499,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
42771
42499
  industryCode: [
42772
42500
  {
42773
42501
  required: true,
42774
- message: t2("uc_org.industry_msg1"),
42775
42502
  trigger: "change",
42776
42503
  validator: (rule, value) => {
42777
42504
  if (Array.isArray(value) && value.length !== 0) {
@@ -42785,7 +42512,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
42785
42512
  zoneCode: [
42786
42513
  {
42787
42514
  required: true,
42788
- message: t2("uc_org.zone_code_msg1"),
42789
42515
  trigger: ["change", "blur"],
42790
42516
  validator: (rule, value) => {
42791
42517
  if (value == "") {
@@ -42799,7 +42525,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
42799
42525
  langId: [
42800
42526
  {
42801
42527
  required: true,
42802
- message: t2("uc_org.lang_msg1"),
42803
42528
  trigger: "change",
42804
42529
  validator: (rule, value) => {
42805
42530
  if (Array.isArray(value) && value.length !== 0) {
@@ -42813,24 +42538,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
42813
42538
  userNum: [
42814
42539
  {
42815
42540
  required: true,
42816
- message: t2("uc_org.userMaxNum"),
42817
- trigger: ["blur", "change"]
42818
- },
42819
- {
42820
- validator: validateMaxUser,
42821
- message: t2("uc_org.userMaxNum"),
42541
+ message: requiredMessage(t2("uc_org.user_num")),
42822
42542
  trigger: ["blur", "change"]
42823
42543
  }
42824
42544
  ],
42825
42545
  equiNum: [
42826
42546
  {
42827
42547
  required: true,
42828
- message: t2("uc_org.userMaxNum"),
42829
- trigger: ["blur", "change"]
42830
- },
42831
- {
42832
- validator: validateMaxOperator,
42833
- message: t2("uc_org.userMaxNum"),
42548
+ message: requiredMessage(t2("uc_org.org_maxOperator")),
42834
42549
  trigger: ["blur", "change"]
42835
42550
  }
42836
42551
  ]
@@ -42847,7 +42562,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
42847
42562
  const _component_a_form = Form;
42848
42563
  const _component_a_button = Button$1;
42849
42564
  const _component_a_space = Space;
42850
- const _directive_col = resolveDirective("col");
42851
42565
  const _directive_row = resolveDirective("row");
42852
42566
  return openBlock(), createElementBlock("div", _hoisted_1$4, [
42853
42567
  withDirectives((openBlock(), createBlock(_component_a_form, {
@@ -42866,9 +42580,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
42866
42580
  default: withCtx(() => [
42867
42581
  createVNode(_component_a_input, {
42868
42582
  placeholder: _ctx.$t("uc_common.plsEnter"),
42583
+ autocomplete: "off",
42869
42584
  value: form.orgName,
42870
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => form.orgName = $event),
42871
- required: ""
42585
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => form.orgName = $event)
42872
42586
  }, null, 8, ["placeholder", "value"])
42873
42587
  ]),
42874
42588
  _: 1
@@ -42907,8 +42621,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
42907
42621
  createVNode(_component_a_input, {
42908
42622
  placeholder: _ctx.$t("uc_common.plsSelect"),
42909
42623
  value: form.orgName,
42910
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.orgName = $event),
42911
- required: ""
42624
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.orgName = $event)
42912
42625
  }, null, 8, ["placeholder", "value"])
42913
42626
  ]),
42914
42627
  _: 1
@@ -42987,7 +42700,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
42987
42700
  }, {
42988
42701
  default: withCtx(() => [
42989
42702
  createVNode(LangCombo, {
42990
- placeholder: _ctx.$t("uc_common.plsEnter"),
42703
+ placeholder: _ctx.$t("uc_common.plsSelect"),
42991
42704
  value: form.langId,
42992
42705
  "onUpdate:value": _cache[5] || (_cache[5] = ($event) => form.langId = $event)
42993
42706
  }, null, 8, ["placeholder", "value"])
@@ -43010,6 +42723,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
43010
42723
  placeholder: _ctx.$t("uc_org.org_autoZone"),
43011
42724
  disabled: true,
43012
42725
  style: { "width": "100%" },
42726
+ autocomplete: "off",
43013
42727
  value: form.monetaryyUnit,
43014
42728
  "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.monetaryyUnit = $event)
43015
42729
  }, null, 8, ["placeholder", "value"])
@@ -43081,6 +42795,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
43081
42795
  createVNode(_component_a_input_number, {
43082
42796
  style: { "width": "100%" },
43083
42797
  placeholder: _ctx.$t("uc_common.plsEnter"),
42798
+ precision: 0,
43084
42799
  min: 1,
43085
42800
  max: 99999999,
43086
42801
  value: form.userNum,
@@ -43094,24 +42809,23 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
43094
42809
  }),
43095
42810
  createVNode(_component_a_col, { span: 12 }, {
43096
42811
  default: withCtx(() => [
43097
- withDirectives((openBlock(), createBlock(_component_a_form_item, {
42812
+ createVNode(_component_a_form_item, {
43098
42813
  label: _ctx.$t("uc_org.org_maxOperator"),
43099
42814
  name: "equiNum"
43100
42815
  }, {
43101
42816
  default: withCtx(() => [
43102
42817
  createVNode(_component_a_input_number, {
42818
+ style: { "width": "100%" },
43103
42819
  placeholder: _ctx.$t("uc_common.plsEnter"),
42820
+ precision: 0,
43104
42821
  min: 1,
43105
42822
  max: 99999999,
43106
42823
  value: form.equiNum,
43107
- "onUpdate:value": _cache[10] || (_cache[10] = ($event) => form.equiNum = $event),
43108
- required: ""
42824
+ "onUpdate:value": _cache[10] || (_cache[10] = ($event) => form.equiNum = $event)
43109
42825
  }, null, 8, ["placeholder", "value"])
43110
42826
  ]),
43111
42827
  _: 1
43112
- }, 8, ["label"])), [
43113
- [_directive_col, 12]
43114
- ])
42828
+ }, 8, ["label"])
43115
42829
  ]),
43116
42830
  _: 1
43117
42831
  })
@@ -43129,6 +42843,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
43129
42843
  default: withCtx(() => [
43130
42844
  createVNode(_component_a_input, {
43131
42845
  disabled: isEdit.value,
42846
+ autocomplete: "off",
43132
42847
  placeholder: _ctx.$t("uc_common.plsEnter"),
43133
42848
  value: form.mobile,
43134
42849
  "onUpdate:value": _cache[11] || (_cache[11] = ($event) => form.mobile = $event)
@@ -43148,6 +42863,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
43148
42863
  default: withCtx(() => [
43149
42864
  createVNode(_component_a_input, {
43150
42865
  disabled: isEdit.value,
42866
+ autocomplete: "off",
43151
42867
  placeholder: _ctx.$t("uc_common.plsEnter"),
43152
42868
  value: form.email,
43153
42869
  "onUpdate:value": _cache[12] || (_cache[12] = ($event) => form.email = $event)
@@ -43166,22 +42882,24 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
43166
42882
  gutter: 16
43167
42883
  }, {
43168
42884
  default: withCtx(() => [
43169
- createVNode(_component_a_col, { span: 12 }, {
42885
+ createVNode(_component_a_col, { span: 24 }, {
43170
42886
  default: withCtx(() => [
43171
- createVNode(_component_a_form_item, {
43172
- label: _ctx.$t("uc_org.org_userCode"),
43173
- name: "userCode"
43174
- }, {
42887
+ createVNode(_component_a_form_item, { name: "userCode" }, {
42888
+ label: withCtx(() => [
42889
+ createTextVNode(toDisplayString(_ctx.$t("uc_org.org_userCode")) + " ", 1),
42890
+ createElementVNode("span", _hoisted_2$2, toDisplayString(_ctx.$t("uc_org.userCodeTip")), 1)
42891
+ ]),
43175
42892
  default: withCtx(() => [
43176
42893
  createVNode(_component_a_input, {
43177
42894
  placeholder: _ctx.$t("uc_common.plsEnter"),
43178
42895
  disabled: isEdit.value,
42896
+ autocomplete: "off",
43179
42897
  value: form.userCode,
43180
42898
  "onUpdate:value": _cache[13] || (_cache[13] = ($event) => form.userCode = $event)
43181
42899
  }, null, 8, ["placeholder", "disabled", "value"])
43182
42900
  ]),
43183
42901
  _: 1
43184
- }, 8, ["label"])
42902
+ })
43185
42903
  ]),
43186
42904
  _: 1
43187
42905
  })
@@ -43310,7 +43028,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
43310
43028
  operatorNum: props.data.userNum || "-",
43311
43029
  operatorTel: props.data.sysUser.mobile || "-",
43312
43030
  operatorEmail: props.data.sysUser.email || "-",
43313
- operatorCode: props.data.sysUser.userId || "-"
43031
+ operatorCode: props.data.sysUser.userCode || "-"
43314
43032
  });
43315
43033
  const onCancel = () => {
43316
43034
  emit("cancel");
@@ -43490,30 +43208,25 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
43490
43208
  const OrgDetail_vue_vue_type_style_index_0_scoped_b1c0cf37_lang = "";
43491
43209
  const OrgDetail = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-b1c0cf37"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/org/OrgDetail.vue"]]);
43492
43210
  const _hoisted_1$2 = { class: "org-box" };
43493
- const _hoisted_2$1 = { bordered: false };
43494
- const _hoisted_3$1 = { class: "form-btns" };
43495
- const _hoisted_4$1 = {
43211
+ const _hoisted_2$1 = { class: "form-btns" };
43212
+ const _hoisted_3$1 = {
43496
43213
  class: "table-page-search-wrapper",
43497
43214
  style: { "margin-bottom": "16px" }
43498
43215
  };
43216
+ const _hoisted_4$1 = { key: 0 };
43499
43217
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
43500
43218
  __name: "index",
43501
43219
  setup(__props) {
43502
43220
  const appStore = useAppStore();
43503
43221
  const userStore = useUserStore();
43504
- useInitUserinfo();
43505
43222
  const modalStore = useModalStore();
43223
+ const { formatDate } = useSysParams();
43506
43224
  const prefixCls = "uc";
43507
43225
  const { t: t2 } = useI18n();
43508
43226
  const tableRef = ref();
43509
43227
  const showResetPwdModal = ref(false);
43510
- const isEdit = ref(false);
43511
43228
  const resetPwdParams = ref({});
43512
43229
  const queryParam = reactive({});
43513
- const editParams = ref({
43514
- opType: "",
43515
- orgId: ""
43516
- });
43517
43230
  const loadData = async (parameter) => {
43518
43231
  const params = Object.assign(parameter, queryParam);
43519
43232
  const { result } = await orgConditionalSeach(params);
@@ -43553,7 +43266,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
43553
43266
  queryParam.orgStatus = null;
43554
43267
  handleRefreshTable();
43555
43268
  };
43556
- const onAdd = (row = null, opType = "1") => {
43269
+ const onAdd = (row = {}, opType = "1") => {
43557
43270
  modalStore.drawerComp({
43558
43271
  title: opType == "1" ? t2("uc_org.createOrg") : t2("uc_org.editOrg"),
43559
43272
  comp: AddOrg,
@@ -43562,8 +43275,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
43562
43275
  onOk: () => {
43563
43276
  try {
43564
43277
  if (opType == "1") {
43278
+ message.success(t2("uc_org.createOrgSucc"));
43565
43279
  } else if (opType == "2") {
43566
- message.success("uc_org.updateOrgSucc");
43280
+ message.success(t2("uc_org.updateOrgSucc"));
43567
43281
  }
43568
43282
  } catch (error) {
43569
43283
  } finally {
@@ -43619,14 +43333,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
43619
43333
  }
43620
43334
  });
43621
43335
  };
43622
- const onSubmit = () => {
43623
- isEdit.value = false;
43624
- handleRefreshTable();
43625
- };
43626
- const onCancel = () => {
43627
- isEdit.value = false;
43628
- modalStore.modalDestroy();
43629
- };
43630
43336
  const columns = computed(() => [
43631
43337
  {
43632
43338
  title: t2("uc_org.id"),
@@ -43696,8 +43402,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
43696
43402
  const _component_a_button = Button$1;
43697
43403
  const _component_a_form = Form;
43698
43404
  const _component_uc_btn_add = resolveComponent("uc-btn-add");
43405
+ const _component_a_tooltip = Tooltip;
43699
43406
  const _component_uc_btn_detail = resolveComponent("uc-btn-detail");
43700
- const _component_uc_pick_label = resolveComponent("uc-pick-label");
43701
43407
  const _component_a_switch = Switch;
43702
43408
  const _component_uc_btn_edit = resolveComponent("uc-btn-edit");
43703
43409
  const _component_a_divider = Divider;
@@ -43713,7 +43419,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
43713
43419
  }, {
43714
43420
  default: withCtx(() => [
43715
43421
  createElementVNode("div", _hoisted_1$2, [
43716
- withDirectives(createElementVNode("div", _hoisted_2$1, [
43422
+ createElementVNode("div", null, [
43717
43423
  createVNode(_component_a_form, {
43718
43424
  model: queryParam,
43719
43425
  layout: "vertical",
@@ -43726,10 +43432,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
43726
43432
  }, {
43727
43433
  default: withCtx(() => [
43728
43434
  createVNode(_component_a_input, {
43729
- placeholder: _ctx.$t("uc_common.plsSearch"),
43435
+ placeholder: _ctx.$t("uc_common.plsEnter"),
43730
43436
  value: queryParam.orgName,
43731
43437
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => queryParam.orgName = $event),
43732
- allowClear: ""
43438
+ allowClear: "",
43439
+ autocomplete: "off"
43733
43440
  }, null, 8, ["placeholder", "value"])
43734
43441
  ]),
43735
43442
  _: 1
@@ -43747,7 +43454,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
43747
43454
  ]),
43748
43455
  _: 1
43749
43456
  }, 8, ["label"]),
43750
- createElementVNode("div", _hoisted_3$1, [
43457
+ createElementVNode("div", _hoisted_2$1, [
43751
43458
  createVNode(_component_uc_btn_search, {
43752
43459
  onClick: handleRefreshTable,
43753
43460
  isWidth: true,
@@ -43766,7 +43473,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
43766
43473
  ]),
43767
43474
  _: 1
43768
43475
  }, 8, ["model"]),
43769
- createElementVNode("div", _hoisted_4$1, [
43476
+ createElementVNode("div", _hoisted_3$1, [
43770
43477
  createVNode(_component_uc_btn_add, {
43771
43478
  onClick: onAdd,
43772
43479
  text: _ctx.$t("uc_org.createOrg"),
@@ -43780,8 +43487,23 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
43780
43487
  data: loadData,
43781
43488
  rowKey: "cdate",
43782
43489
  columns: columns.value,
43783
- scroll: { x: 1e3, y: 550 }
43490
+ scroll: { x: 1e3, y: 550 },
43491
+ class: "table-bordered"
43784
43492
  }, {
43493
+ headerCell: withCtx(({ column }) => [
43494
+ column.key === "userId" ? (openBlock(), createElementBlock("span", _hoisted_4$1, [
43495
+ createTextVNode(toDisplayString(_ctx.$t("uc_org.user_name")) + " ", 1),
43496
+ createVNode(_component_a_tooltip, null, {
43497
+ title: withCtx(() => [
43498
+ createTextVNode(toDisplayString(_ctx.$t("uc_org.userNameTip")), 1)
43499
+ ]),
43500
+ default: withCtx(() => [
43501
+ createVNode(unref(InfoCircleOutlined), { style: { "font-size": "14px", "padding-left": "4px" } })
43502
+ ]),
43503
+ _: 1
43504
+ })
43505
+ ])) : createCommentVNode("v-if", true)
43506
+ ]),
43785
43507
  bodyCell: withCtx(({ record, column }) => [
43786
43508
  column.key === "orgId" ? (openBlock(), createBlock(_component_uc_btn_detail, {
43787
43509
  key: 0,
@@ -43793,10 +43515,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
43793
43515
  ]),
43794
43516
  _: 2
43795
43517
  }, 1032, ["onClick"])) : createCommentVNode("v-if", true),
43796
- column.key === "cdate" ? (openBlock(), createBlock(_component_uc_pick_label, {
43797
- key: 1,
43798
- defaultValue: record.cdate
43799
- }, null, 8, ["defaultValue"])) : createCommentVNode("v-if", true),
43518
+ column.key === "cdate" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
43519
+ createTextVNode(toDisplayString(unref(formatDate)(record.cdate) || "-"), 1)
43520
+ ], 64)) : createCommentVNode("v-if", true),
43800
43521
  column.key === "userId" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
43801
43522
  createTextVNode(toDisplayString(record.sysUser.userCode || "-"), 1)
43802
43523
  ], 64)) : createCommentVNode("v-if", true),
@@ -43828,19 +43549,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
43828
43549
  ]),
43829
43550
  _: 1
43830
43551
  }, 8, ["columns"])
43831
- ], 512), [
43832
- [vShow, !isEdit.value]
43833
43552
  ]),
43834
43553
  showResetPwdModal.value ? (openBlock(), createBlock(ResetPwdModal, {
43835
43554
  key: 0,
43836
43555
  params: resetPwdParams.value,
43837
43556
  onClose: handleCloseResetPwdModal
43838
- }, null, 8, ["params"])) : createCommentVNode("v-if", true),
43839
- isEdit.value ? (openBlock(), createBlock(OrgEdit, {
43840
- key: 1,
43841
- onOk: onSubmit,
43842
- onCancel,
43843
- params: editParams.value
43844
43557
  }, null, 8, ["params"])) : createCommentVNode("v-if", true)
43845
43558
  ])
43846
43559
  ]),
@@ -44088,6 +43801,7 @@ const _sfc_main$b = {
44088
43801
  value: securityForm.passwordExpiry,
44089
43802
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => securityForm.passwordExpiry = $event),
44090
43803
  min: 1,
43804
+ precision: 0,
44091
43805
  max: 99999,
44092
43806
  style: { "width": "100px" }
44093
43807
  }, null, 8, ["value"])) : (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(securityForm.passwordExpiry), 1)),
@@ -44158,6 +43872,7 @@ const _sfc_main$b = {
44158
43872
  value: securityForm.maxLoginTime,
44159
43873
  "onUpdate:value": _cache[3] || (_cache[3] = ($event) => securityForm.maxLoginTime = $event),
44160
43874
  min: 1,
43875
+ precision: 0,
44161
43876
  max: 43200,
44162
43877
  style: { "width": "100px" }
44163
43878
  }, null, 8, ["value"])) : (openBlock(), createElementBlock("span", _hoisted_16, toDisplayString(securityForm.maxLoginTime), 1)),
@@ -44812,57 +44527,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
44812
44527
  });
44813
44528
  const BtnResetPwd_vue_vue_type_style_index_0_scoped_8ba0bbf3_lang = "";
44814
44529
  const BtnResetPwd = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-8ba0bbf3"], ["__file", "D:/inhe-code/usercenter-web-test/witlink-platform-usercenter-web/witlink-usercenter/src/components/inhe/buttons/BtnResetPwd.vue"]]);
44815
- function toFormatDate(date, format) {
44816
- const o = {
44817
- "M+": date.getMonth() + 1,
44818
- "d+": date.getDate(),
44819
- "H+": date.getHours(),
44820
- "m+": date.getMinutes(),
44821
- "s+": date.getSeconds(),
44822
- "q+": Math.floor((date.getMonth() + 3) / 3),
44823
- S: date.getMilliseconds()
44824
- };
44825
- let result = format;
44826
- if (/(y+)/.test(result)) {
44827
- result = result.replace(
44828
- RegExp.$1,
44829
- (date.getFullYear() + "").substr(4 - RegExp.$1.length)
44830
- );
44831
- }
44832
- for (const k2 in o) {
44833
- if (new RegExp("(" + k2 + ")").test(result)) {
44834
- result = result.replace(
44835
- RegExp.$1,
44836
- RegExp.$1.length == 1 ? o[k2] : ("00" + o[k2]).substr(("" + o[k2]).length)
44837
- );
44838
- }
44839
- }
44840
- return result;
44841
- }
44842
- function toUTC(date) {
44843
- const UTCyear = date.getUTCFullYear();
44844
- let UTCmonth = date.getUTCMonth() + 1;
44845
- let UTCday = date.getUTCDate();
44846
- let UTChours = date.getUTCHours();
44847
- let UTCmin = date.getUTCMinutes();
44848
- let UTCseconds = date.getUTCSeconds();
44849
- UTCmonth = UTCmonth < 10 ? "0" + UTCmonth : UTCmonth;
44850
- UTCday = UTCday < 10 ? "0" + UTCday : UTCday;
44851
- UTChours = UTChours < 10 ? "0" + UTChours : UTChours;
44852
- UTCmin = UTCmin < 10 ? "0" + UTCmin : UTCmin;
44853
- UTCseconds = UTCseconds < 10 ? "0" + UTCseconds : UTCseconds;
44854
- return UTCyear + "-" + UTCmonth + "-" + UTCday + "T" + UTChours + ":" + UTCmin + ":" + UTCseconds + ".000+0000";
44855
- }
44856
- function getOffset(timezone) {
44857
- let offset = timezone.substr(7);
44858
- if (!offset) {
44859
- offset = 0;
44860
- } else {
44861
- offset = offset * 1;
44862
- }
44863
- offset = offset * 60 + new Date().getTimezoneOffset();
44864
- return offset;
44865
- }
44866
44530
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
44867
44531
  __name: "PickDate",
44868
44532
  props: {
@@ -44954,7 +44618,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44954
44618
  if (!dateTime) {
44955
44619
  return "";
44956
44620
  }
44957
- dateFormat.value = userStore.dateFormat;
44621
+ dateFormat.value = userStore.dateFormat || "yyyy-MM-dd HH:mm:ss";
44958
44622
  if (!props.showTime) {
44959
44623
  dateFormat.value = dateFormat.value.replace(/[H,m,s,:,\s]/g, "");
44960
44624
  }