@witlink/usercenter 1.2.36 → 1.2.38

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.
@@ -485,13 +485,6 @@ function getPublicBranchChild(params) {
485
485
  params
486
486
  });
487
487
  }
488
- function getPublicALlDepartment(params) {
489
- return handleRespPost({
490
- url: "/api/sys/organ/public-search-all-department",
491
- method: "get",
492
- params
493
- });
494
- }
495
488
  let i18n;
496
489
  const localMap = /* @__PURE__ */ new Map();
497
490
  function setI18n(instance2) {
@@ -604,7 +597,7 @@ const _export_sfc = (sfc, props) => {
604
597
  }
605
598
  return target;
606
599
  };
607
- const _sfc_main$_ = Object.assign({
600
+ const _sfc_main$Z = Object.assign({
608
601
  inheritAttrs: false
609
602
  }, {
610
603
  __name: "index",
@@ -706,10 +699,10 @@ const _sfc_main$_ = Object.assign({
706
699
  };
707
700
  }
708
701
  });
709
- const STable = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-6ed6a16f"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/table/index.vue"]]);
702
+ const STable = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-6ed6a16f"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/table/index.vue"]]);
710
703
  const _hoisted_1$G = { key: 1 };
711
704
  const _hoisted_2$k = { key: 2 };
712
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
705
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
713
706
  __name: "DictEx",
714
707
  props: {
715
708
  server: {
@@ -917,8 +910,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
917
910
  };
918
911
  }
919
912
  });
920
- const DictEx = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/DictEx.vue"]]);
921
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
913
+ const DictEx = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/DictEx.vue"]]);
914
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
922
915
  ...{
923
916
  name: "FunTree"
924
917
  },
@@ -1044,11 +1037,11 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
1044
1037
  };
1045
1038
  }
1046
1039
  });
1047
- const FunTree = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/FunTree.vue"]]);
1040
+ const FunTree = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/FunTree.vue"]]);
1048
1041
  const _hoisted_1$F = { class: "uc-pro-footer-toolbar" };
1049
1042
  const _hoisted_2$j = { style: { "float": "left" } };
1050
1043
  const _hoisted_3$h = { style: { "text-align": "center" } };
1051
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
1044
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
1052
1045
  ...{
1053
1046
  name: "FooterToolBar"
1054
1047
  },
@@ -1080,8 +1073,8 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
1080
1073
  }
1081
1074
  });
1082
1075
  const FooterToolBar_vue_vue_type_style_index_0_scoped_040ae207_lang = "";
1083
- const FooterToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-040ae207"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/FooterToolbar/FooterToolBar.vue"]]);
1084
- const _sfc_main$W = {
1076
+ const FooterToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-040ae207"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/FooterToolbar/FooterToolBar.vue"]]);
1077
+ const _sfc_main$V = {
1085
1078
  __name: "FunEdit",
1086
1079
  props: {
1087
1080
  params: {
@@ -1309,7 +1302,7 @@ const _sfc_main$W = {
1309
1302
  };
1310
1303
  }
1311
1304
  };
1312
- const FunEdit = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/FunEdit.vue"]]);
1305
+ const FunEdit = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/FunEdit.vue"]]);
1313
1306
  const dictMap = {};
1314
1307
  async function getDictListByType(curType) {
1315
1308
  if (dictMap[curType]) {
@@ -1368,7 +1361,7 @@ const _hoisted_3$g = { style: { "margin-top": "16px", "height": "calc(100% - 80p
1368
1361
  const _hoisted_4$d = { style: { "height": "32px" } };
1369
1362
  const _hoisted_5$7 = { key: 1 };
1370
1363
  const _hoisted_6$7 = { key: 2 };
1371
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
1364
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
1372
1365
  ...{
1373
1366
  name: "Function13"
1374
1367
  },
@@ -1709,7 +1702,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
1709
1702
  }
1710
1703
  });
1711
1704
  const index_vue_vue_type_style_index_0_scoped_04710d5f_lang = "";
1712
- const index$8 = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-04710d5f"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/index.vue"]]);
1705
+ const index$8 = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-04710d5f"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/functions/index.vue"]]);
1713
1706
  function usePermissionId() {
1714
1707
  const hasPermissionId = (id) => {
1715
1708
  const hasPermission = _(id);
@@ -1800,7 +1793,7 @@ function setUpdateBranchType(params) {
1800
1793
  });
1801
1794
  }
1802
1795
  const _hoisted_1$D = { class: "textarea-wrapper" };
1803
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
1796
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1804
1797
  __name: "InputTextarea",
1805
1798
  props: {
1806
1799
  showCount: {
@@ -1846,9 +1839,9 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
1846
1839
  }
1847
1840
  });
1848
1841
  const InputTextarea_vue_vue_type_style_index_0_scoped_939f274f_lang = "";
1849
- const InputTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-939f274f"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/inhe/input/InputTextarea.vue"]]);
1842
+ const InputTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-939f274f"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/inhe/input/InputTextarea.vue"]]);
1850
1843
  const _hoisted_1$C = ["spinning"];
1851
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
1844
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1852
1845
  __name: "DeptEdit",
1853
1846
  emits: ["ok"],
1854
1847
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -2059,9 +2052,9 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
2059
2052
  }
2060
2053
  });
2061
2054
  const DeptEdit_vue_vue_type_style_index_0_scoped_58074060_lang = "";
2062
- const DeptEdit = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-58074060"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptEdit.vue"]]);
2055
+ const DeptEdit = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-58074060"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptEdit.vue"]]);
2063
2056
  const _hoisted_1$B = ["spinning"];
2064
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
2057
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
2065
2058
  __name: "BranchEdit",
2066
2059
  emits: ["ok"],
2067
2060
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -2093,7 +2086,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
2093
2086
  type: params.type
2094
2087
  });
2095
2088
  loading.value = false;
2096
- form.parentBranch = result;
2089
+ form.parentBranch = result.parentBranch;
2097
2090
  };
2098
2091
  const showModal = (data) => {
2099
2092
  Object.assign(form, {
@@ -2265,7 +2258,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
2265
2258
  }
2266
2259
  });
2267
2260
  const BranchEdit_vue_vue_type_style_index_0_scoped_db8da10b_lang = "";
2268
- const BranchEdit = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-db8da10b"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranchEdit.vue"]]);
2261
+ const BranchEdit = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-db8da10b"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranchEdit.vue"]]);
2269
2262
  const _hoisted_1$A = { class: "pay_info" };
2270
2263
  const _hoisted_2$h = { class: "pay_span" };
2271
2264
  const _hoisted_3$f = { class: "pay_span1" };
@@ -2295,7 +2288,7 @@ const _hoisted_19 = { style: {
2295
2288
  textAlign: "center",
2296
2289
  zIndex: 1
2297
2290
  } };
2298
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
2291
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2299
2292
  __name: "BranDetail",
2300
2293
  setup(__props, { expose: __expose }) {
2301
2294
  const visible = ref(false);
@@ -2403,7 +2396,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
2403
2396
  }
2404
2397
  });
2405
2398
  const BranDetail_vue_vue_type_style_index_0_scoped_207f1e3e_lang = "";
2406
- const BranDetail = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-207f1e3e"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranDetail.vue"]]);
2399
+ const BranDetail = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-207f1e3e"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/BranDetail.vue"]]);
2407
2400
  const _hoisted_1$z = { class: "pay_info" };
2408
2401
  const _hoisted_2$g = { class: "pay_span" };
2409
2402
  const _hoisted_3$e = { class: "pay_span1" };
@@ -2431,7 +2424,7 @@ const _hoisted_17 = { style: {
2431
2424
  textAlign: "center",
2432
2425
  zIndex: 1
2433
2426
  } };
2434
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2427
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2435
2428
  __name: "DeptDetail",
2436
2429
  setup(__props, { expose: __expose }) {
2437
2430
  const visible = ref(false);
@@ -2530,7 +2523,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2530
2523
  }
2531
2524
  });
2532
2525
  const DeptDetail_vue_vue_type_style_index_0_scoped_7ab63a77_lang = "";
2533
- const DeptDetail = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-7ab63a77"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptDetail.vue"]]);
2526
+ const DeptDetail = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-7ab63a77"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/DeptDetail.vue"]]);
2534
2527
  const _hoisted_1$y = { class: "organ-wrap" };
2535
2528
  const _hoisted_2$f = { class: "topInfo" };
2536
2529
  const _hoisted_3$d = { class: "topAdd" };
@@ -2540,7 +2533,7 @@ const _hoisted_6$4 = {
2540
2533
  class: "ant-dropdown-link",
2541
2534
  style: { "color": "rgba(0, 0, 0, 0.25)" }
2542
2535
  };
2543
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
2536
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
2544
2537
  __name: "index",
2545
2538
  setup(__props, { expose: __expose }) {
2546
2539
  const appStore = useAppStore();
@@ -2594,23 +2587,29 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2594
2587
  });
2595
2588
  return tree;
2596
2589
  }
2597
- function findAllParentNodes(tree) {
2590
+ function findAllParentNodes(tree, maxDepth) {
2598
2591
  const parentNodes = [];
2599
- function traverse(node) {
2592
+ function traverse(node, currentDepth = 0) {
2600
2593
  if (node.children && node.children.length > 0) {
2601
- parentNodes.push(node);
2602
- node.children.forEach((child) => traverse(child));
2594
+ if (maxDepth === void 0 || currentDepth <= maxDepth) {
2595
+ parentNodes.push(node);
2596
+ }
2597
+ node.children.forEach((child) => traverse(child, currentDepth + 1));
2603
2598
  }
2604
2599
  }
2605
2600
  tree.forEach((root) => traverse(root));
2606
2601
  return parentNodes;
2607
2602
  }
2608
- const init2 = async () => {
2603
+ const initTree = async () => {
2609
2604
  const { result } = await getOrganSearchList(queryParam);
2610
2605
  tableData.value = buildTree(result);
2611
- const allParent = findAllParentNodes(tableData.value);
2606
+ const allParent = findAllParentNodes(tableData.value, 0);
2612
2607
  expandedRowKeys.value = (allParent == null ? void 0 : allParent.map((item) => item.id)) || [];
2613
2608
  };
2609
+ const init2 = async () => {
2610
+ const { result } = await getOrganSearchList(queryParam);
2611
+ tableData.value = buildTree(result);
2612
+ };
2614
2613
  const onSwich = (key) => {
2615
2614
  size.value = key;
2616
2615
  init2();
@@ -2753,7 +2752,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2753
2752
  addShow.value = hasPermissionId("002");
2754
2753
  editShow.value = hasPermissionId("003");
2755
2754
  removeShow.value = hasPermissionId("004");
2756
- init2();
2755
+ initTree();
2757
2756
  });
2758
2757
  return (_ctx, _cache) => {
2759
2758
  const _component_a_input_search = InputSearch;
@@ -2880,7 +2879,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2880
2879
  [vShow, (record.type == 2 || record.type == 3) && addShow.value]
2881
2880
  ]),
2882
2881
  withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
2883
- [vShow, record.type == 3]
2882
+ [
2883
+ vShow,
2884
+ record.type == 3 && removeShow.value && record.deleteStatus == 0
2885
+ ]
2884
2886
  ]),
2885
2887
  withDirectives(createVNode(_component_a_button, {
2886
2888
  type: "link",
@@ -2892,7 +2894,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2892
2894
  ]),
2893
2895
  _: 2
2894
2896
  }, 1032, ["onClick"]), [
2895
- [vShow, record.type == 3 && removeShow.value]
2897
+ [
2898
+ vShow,
2899
+ record.type == 3 && removeShow.value && record.deleteStatus == 0
2900
+ ]
2896
2901
  ]),
2897
2902
  withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
2898
2903
  [vShow, record.type != 3 && record.type != 2]
@@ -2907,7 +2912,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2907
2912
  default: withCtx(() => [
2908
2913
  createVNode(_component_a_button, {
2909
2914
  type: "link",
2910
- style: { "padding": "0" },
2915
+ style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
2911
2916
  onClick: ($event) => setUnderlyingInstitution(record)
2912
2917
  }, {
2913
2918
  default: withCtx(() => [
@@ -2926,7 +2931,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2926
2931
  default: withCtx(() => [
2927
2932
  withDirectives(createVNode(_component_a_button, {
2928
2933
  type: "link",
2929
- style: { "padding": "0" },
2934
+ style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
2930
2935
  onClick: ($event) => onAdd(record)
2931
2936
  }, {
2932
2937
  default: withCtx(() => [
@@ -2947,7 +2952,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2947
2952
  default: withCtx(() => [
2948
2953
  withDirectives(createVNode(_component_a_button, {
2949
2954
  type: "link",
2950
- style: { "padding": "0" },
2955
+ style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
2951
2956
  onClick: ($event) => onAddDep(record)
2952
2957
  }, {
2953
2958
  default: withCtx(() => [
@@ -2968,7 +2973,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2968
2973
  default: withCtx(() => [
2969
2974
  withDirectives(createVNode(_component_a_button, {
2970
2975
  type: "link",
2971
- style: { "padding": "0" },
2976
+ style: { "padding": "0", "width": "100%", "display": "block", "text-align": "left" },
2972
2977
  onClick: ($event) => onDelete(record)
2973
2978
  }, {
2974
2979
  default: withCtx(() => [
@@ -2976,13 +2981,16 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2976
2981
  ]),
2977
2982
  _: 2
2978
2983
  }, 1032, ["onClick"]), [
2979
- [vShow, removeShow.value]
2984
+ [vShow, removeShow.value && record.deleteStatus == 0]
2980
2985
  ])
2981
2986
  ]),
2982
2987
  _: 2
2983
2988
  }, 1024)
2984
2989
  ], 512), [
2985
- [vShow, record.type != 0 && removeShow.value]
2990
+ [
2991
+ vShow,
2992
+ record.type != 0 && removeShow.value && record.deleteStatus == 0
2993
+ ]
2986
2994
  ])
2987
2995
  ]),
2988
2996
  _: 2
@@ -3049,7 +3057,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
3049
3057
  _: 2
3050
3058
  }, 1024),
3051
3059
  withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
3052
- [vShow, removeShow.value && record.type == 3]
3060
+ [
3061
+ vShow,
3062
+ removeShow.value && record.type == 3 && record.deleteStatus == 0
3063
+ ]
3053
3064
  ]),
3054
3065
  createVNode(_component_a_tooltip, { placement: "top" }, {
3055
3066
  title: withCtx(() => [
@@ -3067,7 +3078,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
3067
3078
  ]),
3068
3079
  _: 2
3069
3080
  }, 1032, ["onClick"]), [
3070
- [vShow, removeShow.value && record.type == 3]
3081
+ [
3082
+ vShow,
3083
+ removeShow.value && record.type == 3 && record.deleteStatus == 0
3084
+ ]
3071
3085
  ])
3072
3086
  ]),
3073
3087
  _: 2
@@ -3132,7 +3146,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
3132
3146
  }
3133
3147
  });
3134
3148
  const index_vue_vue_type_style_index_0_scoped_32a76766_lang = "";
3135
- const index$7 = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-32a76766"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/index.vue"]]);
3149
+ const index$7 = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-32a76766"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/organ/index.vue"]]);
3136
3150
  function mitt(n) {
3137
3151
  return { all: n = n || /* @__PURE__ */ new Map(), on: function(t, e) {
3138
3152
  var i = n.get(t);
@@ -3199,7 +3213,7 @@ function insertRole(params) {
3199
3213
  params
3200
3214
  });
3201
3215
  }
3202
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
3216
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
3203
3217
  __name: "RoleAddModal",
3204
3218
  emits: ["ok", "cancel"],
3205
3219
  setup(__props, { emit: __emit }) {
@@ -3312,9 +3326,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
3312
3326
  };
3313
3327
  }
3314
3328
  });
3315
- const RoleAddModal = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/RoleAddModal.vue"]]);
3329
+ const RoleAddModal = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/RoleAddModal.vue"]]);
3316
3330
  const _hoisted_1$x = { class: "name" };
3317
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
3331
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
3318
3332
  __name: "AuthList",
3319
3333
  props: {
3320
3334
  roleId: {
@@ -3408,12 +3422,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
3408
3422
  }
3409
3423
  });
3410
3424
  const AuthList_vue_vue_type_style_index_0_scoped_16e7804b_lang = "";
3411
- const AuthList = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-16e7804b"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/AuthList.vue"]]);
3425
+ const AuthList = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-16e7804b"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/AuthList.vue"]]);
3412
3426
  const _hoisted_1$w = { key: 0 };
3413
3427
  const _hoisted_2$e = { style: { "color": "rgba(0, 0, 0, 0.88)" } };
3414
3428
  const _hoisted_3$c = { style: { "color": "rgba(0, 0, 0, 0.88)" } };
3415
3429
  const _hoisted_4$9 = { key: 1 };
3416
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
3430
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
3417
3431
  __name: "ActDetail",
3418
3432
  props: {
3419
3433
  params: {
@@ -3612,9 +3626,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
3612
3626
  }
3613
3627
  });
3614
3628
  const ActDetail_vue_vue_type_style_index_0_scoped_96c1fdf2_lang = "";
3615
- const ActDetail = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-96c1fdf2"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/ActDetail.vue"]]);
3629
+ const ActDetail = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-96c1fdf2"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/ActDetail.vue"]]);
3616
3630
  const _hoisted_1$v = { class: "role-detail-wrap" };
3617
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
3631
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
3618
3632
  __name: "RoleDetail",
3619
3633
  props: {
3620
3634
  params: {
@@ -3900,7 +3914,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
3900
3914
  }
3901
3915
  });
3902
3916
  const RoleDetail_vue_vue_type_style_index_0_scoped_41930af1_lang = "";
3903
- const RoleDetail = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-41930af1"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/RoleDetail.vue"]]);
3917
+ const RoleDetail = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-41930af1"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/RoleDetail.vue"]]);
3904
3918
  const _hoisted_1$u = { class: "role-wrap" };
3905
3919
  const _hoisted_2$d = { bordered: false };
3906
3920
  const _hoisted_3$b = { style: { "margin": "10px 0 16px" } };
@@ -3911,7 +3925,7 @@ const _hoisted_4$8 = {
3911
3925
  const _hoisted_5$3 = { key: 1 };
3912
3926
  const _hoisted_6$3 = { key: 2 };
3913
3927
  const _hoisted_7$2 = { key: 3 };
3914
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
3928
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
3915
3929
  ...{
3916
3930
  name: "Function6"
3917
3931
  },
@@ -4157,9 +4171,9 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
4157
4171
  }
4158
4172
  });
4159
4173
  const index_vue_vue_type_style_index_0_scoped_79d9b716_lang = "";
4160
- const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-79d9b716"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/index.vue"]]);
4174
+ const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-79d9b716"], ["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/views/sys/role/index.vue"]]);
4161
4175
  const _hoisted_1$t = { key: 1 };
4162
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
4176
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
4163
4177
  __name: "BranchSelect",
4164
4178
  props: {
4165
4179
  value: {
@@ -4324,7 +4338,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
4324
4338
  };
4325
4339
  }
4326
4340
  });
4327
- const BranchSelect = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/BranchSelect.vue"]]);
4341
+ const BranchSelect = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/BranchSelect.vue"]]);
4328
4342
  function getSearchList$1(params) {
4329
4343
  return handleRespPost({
4330
4344
  url: "/api/sys/user/search-list",
@@ -4388,7 +4402,7 @@ function setUserResetPwd(params) {
4388
4402
  params
4389
4403
  });
4390
4404
  }
4391
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
4405
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
4392
4406
  __name: "RoleSelect",
4393
4407
  props: {
4394
4408
  mode: {
@@ -4488,112 +4502,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
4488
4502
  };
4489
4503
  }
4490
4504
  });
4491
- const RoleSelect = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/RoleSelect.vue"]]);
4492
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
4493
- __name: "DeptSelect",
4494
- props: {
4495
- mode: {
4496
- type: String,
4497
- default: "default"
4498
- },
4499
- value: {
4500
- type: Array,
4501
- default: null
4502
- },
4503
- placeholder: {
4504
- type: String,
4505
- default: ""
4506
- },
4507
- branchId: {
4508
- type: String,
4509
- default: ""
4510
- }
4511
- },
4512
- emits: [
4513
- "change",
4514
- "changeDeptId",
4515
- "update:value",
4516
- "changeVisible"
4517
- ],
4518
- setup(__props, { emit: __emit }) {
4519
- const emit = __emit;
4520
- const props = __props;
4521
- const currValue = ref([]);
4522
- const depts = ref([]);
4523
- const init2 = async () => {
4524
- const { result } = await getPublicALlDepartment({ branchId: props.branchId });
4525
- depts.value = result;
4526
- if (!depts.value || depts.value && depts.value.length === 0) {
4527
- currValue.value = [];
4528
- emit("changeDeptId", []);
4529
- }
4530
- };
4531
- const onChange = (value) => {
4532
- if (typeof value == "string") {
4533
- emit("change", [value]);
4534
- emit("update:value", [value]);
4535
- } else {
4536
- emit("change", value);
4537
- emit("update:value", value);
4538
- }
4539
- };
4540
- const handleDropdownVisibleChange = (visible) => {
4541
- if (visible) {
4542
- emit("changeVisible");
4543
- }
4544
- };
4545
- watch(
4546
- () => props.value,
4547
- (val) => {
4548
- if (val && val[0]) {
4549
- currValue.value = val;
4550
- }
4551
- }
4552
- );
4553
- watch(
4554
- () => props.branchId,
4555
- (newVal, oldVal) => {
4556
- if (oldVal !== "") {
4557
- currValue.value = [];
4558
- emit("changeDeptId", newVal);
4559
- }
4560
- init2();
4561
- }
4562
- );
4563
- return (_ctx, _cache) => {
4564
- const _component_a_select_option = SelectOption;
4565
- const _component_a_select = Select;
4566
- return openBlock(), createElementBlock("div", null, [
4567
- createVNode(_component_a_select, {
4568
- style: { "width": "100%" },
4569
- value: currValue.value,
4570
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => currValue.value = $event),
4571
- placeholder: __props.placeholder,
4572
- mode: __props.mode,
4573
- allowClear: true,
4574
- onChange,
4575
- onDropdownVisibleChange: handleDropdownVisibleChange
4576
- }, {
4577
- default: withCtx(() => [
4578
- (openBlock(true), createElementBlock(Fragment, null, renderList(depts.value, (text, key) => {
4579
- return openBlock(), createBlock(_component_a_select_option, {
4580
- key,
4581
- value: text.deptId
4582
- }, {
4583
- default: withCtx(() => [
4584
- createTextVNode(toDisplayString(text.deptName), 1)
4585
- ]),
4586
- _: 2
4587
- }, 1032, ["value"]);
4588
- }), 128))
4589
- ]),
4590
- _: 1
4591
- }, 8, ["value", "placeholder", "mode"])
4592
- ]);
4593
- };
4594
- }
4595
- });
4596
- const DeptSelect = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/DeptSelect.vue"]]);
4505
+ const RoleSelect = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__file", "D:/inhe-code/1.0.6-js/1.0.6_refactor/witlink-platform-usercenter-web/witlink-usercenter/src/components/public/RoleSelect.vue"]]);
4597
4506
  const _hoisted_1$s = { style: {
4598
4507
  position: "absolute",
4599
4508
  right: 0,
@@ -4640,18 +4549,11 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
4640
4549
  form.branchId = "";
4641
4550
  }
4642
4551
  };
4643
- const handleDepChange = (val) => {
4644
- };
4645
4552
  const handleRoleSelectChange = (val) => {
4646
4553
  roleId.value = val.join(",");
4647
4554
  };
4648
4555
  const handleRoleOthersChange = (val) => {
4649
4556
  };
4650
- const handleDropdownVisibleChange = () => {
4651
- if (form.branchId == "" || form.branchId == null || Array.isArray(form.branchId) && form.branchId.length == 0) {
4652
- message.error(t("user.branch_msg2"));
4653
- }
4654
- };
4655
4557
  const handleUserCodeValidator = (rule, value) => {
4656
4558
  if (!value) {
4657
4559
  return Promise.reject(t("user.user_code_msg1"));
@@ -4781,7 +4683,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
4781
4683
  const _component_a_drawer = Drawer;
4782
4684
  return openBlock(), createBlock(_component_a_drawer, {
4783
4685
  open: visible.value,
4784
- "onUpdate:open": _cache[10] || (_cache[10] = ($event) => visible.value = $event),
4686
+ "onUpdate:open": _cache[9] || (_cache[9] = ($event) => visible.value = $event),
4785
4687
  onClose: onCancel,
4786
4688
  width: 800,
4787
4689
  title: _ctx.$t("user.title" + params.opType),
@@ -4897,32 +4799,24 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
4897
4799
  ]),
4898
4800
  _: 1
4899
4801
  }),
4900
- createVNode(_component_a_row, null, {
4901
- default: withCtx(() => [
4902
- createVNode(_component_a_col, { span: 24 }, {
4903
- default: withCtx(() => [
4904
- createVNode(_component_a_form_item, mergeProps({
4905
- label: _ctx.$t("user.depyId")
4906
- }, formItemLayout, { name: "deptId" }), {
4907
- default: withCtx(() => [
4908
- createVNode(DeptSelect, {
4909
- placeholder: _ctx.$t("user.depyId_placeholder"),
4910
- mode: "default",
4911
- value: form.deptId,
4912
- "onUpdate:value": _cache[4] || (_cache[4] = ($event) => form.deptId = $event),
4913
- branchId: form.branchId,
4914
- onChangeDeptId: handleDepChange,
4915
- onChangeVisible: handleDropdownVisibleChange
4916
- }, null, 8, ["placeholder", "value", "branchId"])
4917
- ]),
4918
- _: 1
4919
- }, 16, ["label"])
4920
- ]),
4921
- _: 1
4922
- })
4923
- ]),
4924
- _: 1
4925
- }),
4802
+ createCommentVNode(` <a-row>\r
4803
+ <a-col :span="24">\r
4804
+ <a-form-item\r
4805
+ :label="$t('user.depyId')"\r
4806
+ v-bind="formItemLayout"\r
4807
+ name="deptId"\r
4808
+ >\r
4809
+ <dept-select\r
4810
+ :placeholder="$t('user.depyId_placeholder')"\r
4811
+ mode="default"\r
4812
+ v-model:value="form.deptId"\r
4813
+ :branchId="form.branchId"\r
4814
+ @changeDeptId="handleDepChange"\r
4815
+ @changeVisible="handleDropdownVisibleChange"\r
4816
+ ></dept-select>\r
4817
+ </a-form-item>\r
4818
+ </a-col>\r
4819
+ </a-row> `),
4926
4820
  createVNode(_component_a_row, null, {
4927
4821
  default: withCtx(() => [
4928
4822
  createVNode(_component_a_col, { span: 24 }, {
@@ -4935,7 +4829,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
4935
4829
  placeholder: _ctx.$t("user.role_placeholder"),
4936
4830
  mode: "combobox",
4937
4831
  value: form.roleId,
4938
- "onUpdate:value": _cache[5] || (_cache[5] = ($event) => form.roleId = $event),
4832
+ "onUpdate:value": _cache[4] || (_cache[4] = ($event) => form.roleId = $event),
4939
4833
  onChange: handleRoleSelectChange
4940
4834
  }, null, 8, ["placeholder", "value"])
4941
4835
  ]),
@@ -4960,7 +4854,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
4960
4854
  mode: "multiple",
4961
4855
  roleId: String(roleId.value),
4962
4856
  value: form.roleIdOthers,
4963
- "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.roleIdOthers = $event),
4857
+ "onUpdate:value": _cache[5] || (_cache[5] = ($event) => form.roleIdOthers = $event),
4964
4858
  onChangeRoleIdOthers: handleRoleOthersChange
4965
4859
  }, null, 8, ["placeholder", "roleId", "value"])
4966
4860
  ]),
@@ -4985,7 +4879,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
4985
4879
  placeholder: _ctx.$t("user.mobile_placeholder"),
4986
4880
  disabled: params.opType == "2",
4987
4881
  value: form.mobile,
4988
- "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.mobile = $event)
4882
+ "onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.mobile = $event)
4989
4883
  }, null, 8, ["placeholder", "disabled", "value"])
4990
4884
  ]),
4991
4885
  _: 1
@@ -5008,7 +4902,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5008
4902
  placeholder: _ctx.$t("user.email_placeholder"),
5009
4903
  disabled: params.opType == "2",
5010
4904
  value: form.email,
5011
- "onUpdate:value": _cache[8] || (_cache[8] = ($event) => form.email = $event)
4905
+ "onUpdate:value": _cache[7] || (_cache[7] = ($event) => form.email = $event)
5012
4906
  }, null, 8, ["placeholder", "disabled", "value"])
5013
4907
  ]),
5014
4908
  _: 1
@@ -5030,7 +4924,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5030
4924
  createVNode(_component_a_input, {
5031
4925
  placeholder: _ctx.$t("user.user_desc_placeholder"),
5032
4926
  value: form.userDesc,
5033
- "onUpdate:value": _cache[9] || (_cache[9] = ($event) => form.userDesc = $event)
4927
+ "onUpdate:value": _cache[8] || (_cache[8] = ($event) => form.userDesc = $event)
5034
4928
  }, null, 8, ["placeholder", "value"])
5035
4929
  ]),
5036
4930
  _: 1
@@ -5194,29 +5088,14 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5194
5088
  ]),
5195
5089
  _: 1
5196
5090
  }),
5197
- createVNode(_component_a_row, { style: { "margin-bottom": "30px" } }, {
5198
- default: withCtx(() => [
5199
- createVNode(_component_a_col, {
5200
- span: 4,
5201
- style: { "text-align": "right", "color": "#333" }
5202
- }, {
5203
- default: withCtx(() => [
5204
- createTextVNode(toDisplayString(_ctx.$t("user.depyId")) + ":", 1)
5205
- ]),
5206
- _: 1
5207
- }),
5208
- createVNode(_component_a_col, {
5209
- span: 20,
5210
- style: { "padding-left": "10px" }
5211
- }, {
5212
- default: withCtx(() => [
5213
- createTextVNode(toDisplayString(data.departmentName), 1)
5214
- ]),
5215
- _: 1
5216
- })
5217
- ]),
5218
- _: 1
5219
- }),
5091
+ createCommentVNode(` <a-row style="margin-bottom: 30px">\r
5092
+ <a-col :span="4" style="text-align: right; color: #333"\r
5093
+ >{{ $t('user.depyId') }}:</a-col\r
5094
+ >\r
5095
+ <a-col :span="20" style="padding-left: 10px">\r
5096
+ {{ data.departmentName }}\r
5097
+ </a-col>\r
5098
+ </a-row> `),
5220
5099
  createVNode(_component_a_row, { style: { "margin-bottom": "30px" } }, {
5221
5100
  default: withCtx(() => [
5222
5101
  createVNode(_component_a_col, {
@@ -7251,12 +7130,6 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
7251
7130
  customRender: ({ record }) => !record.branchId ? "" : deptRef.value && deptRef.value.getLabel(record.branchId),
7252
7131
  customFilterDropdown: true
7253
7132
  },
7254
- {
7255
- title: t("user.deptName"),
7256
- dataIndex: "deptName",
7257
- width: "150px",
7258
- key: "deptName"
7259
- },
7260
7133
  {
7261
7134
  title: t("user.mainRoleName"),
7262
7135
  dataIndex: "mainRoleName",
@@ -12180,7 +12053,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
12180
12053
  {
12181
12054
  title: t("org.action"),
12182
12055
  key: "action",
12183
- width: "120px",
12056
+ width: "140px",
12184
12057
  fixed: "right"
12185
12058
  }
12186
12059
  ]);