@witlink/usercenter 1.2.32 → 1.2.34

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.d0b52ac5.css';var __defProp = Object.defineProperty;
1
+ import './assets/main.f2bdb9f0.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);
@@ -14,7 +14,7 @@ import fr_FR from "ant-design-vue/es/locale/fr_FR";
14
14
  import { Table, SelectOption, Select, Tree, Input, FormItem, CheckboxGroup, Form, Button, Spin, Col, Divider, Tooltip, Card, Row, ConfigProvider, Textarea, Modal as Modal$1, Drawer, InputSearch, MenuItem, Menu, Dropdown, Checkbox, ListItem, List, Cascader, Avatar, ListItemMeta, Rate, Upload, TabPane, Tabs, InputNumber, Switch, DropdownButton, DatePicker } from "ant-design-vue/es";
15
15
  import { useSlots, ref, reactive, onMounted, openBlock, createBlock, mergeProps, createSlots, renderList, unref, withCtx, renderSlot, normalizeProps, guardReactiveProps, defineComponent, watch, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode, createElementVNode, onBeforeMount, computed, resolveComponent, withDirectives, vShow, h, normalizeClass, nextTick, normalizeStyle, onBeforeUnmount, resolveDynamicComponent } from "vue";
16
16
  import * as Icon from "@ant-design/icons-vue";
17
- import Icon__default, { AppstoreOutlined, CloseCircleOutlined, CaretDownOutlined, CaretRightOutlined, DownOutlined, UploadOutlined, PlusOutlined, MinusOutlined, CloudUploadOutlined, FormOutlined, EditOutlined, DeleteOutlined, QuestionCircleOutlined, DownloadOutlined, PrinterOutlined, CheckOutlined, StopOutlined, SolutionOutlined } from "@ant-design/icons-vue";
17
+ import Icon__default, { AppstoreOutlined, CloseCircleOutlined, CaretDownOutlined, CaretRightOutlined, DownOutlined, ExclamationCircleOutlined, UploadOutlined, PlusOutlined, MinusOutlined, CloudUploadOutlined, FormOutlined, EditOutlined, DeleteOutlined, QuestionCircleOutlined, DownloadOutlined, PrinterOutlined, CheckOutlined, StopOutlined, SolutionOutlined } from "@ant-design/icons-vue";
18
18
  import { cloneDeep } from "lodash-es";
19
19
  import { useRoute } from "vue-router";
20
20
  import dayjs from "dayjs";
@@ -1788,6 +1788,13 @@ function setOrganDeleteBranch(params) {
1788
1788
  data: params
1789
1789
  });
1790
1790
  }
1791
+ function setUpdateBranchType(params) {
1792
+ return handleRespPost({
1793
+ url: "/api/sys/organ/update-branchType",
1794
+ method: "post",
1795
+ params
1796
+ });
1797
+ }
1791
1798
  const _hoisted_1$D = { class: "textarea-wrapper" };
1792
1799
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
1793
1800
  __name: "InputTextarea",
@@ -1849,7 +1856,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1849
1856
  const form = reactive({
1850
1857
  parentBranch: "",
1851
1858
  name: "",
1852
- remarks: ""
1859
+ remarks: "",
1860
+ parentRegion: ""
1853
1861
  });
1854
1862
  const params = reactive({
1855
1863
  opType: "",
@@ -1868,7 +1876,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1868
1876
  id: params.id,
1869
1877
  type: params.type
1870
1878
  });
1871
- form.parentBranch = result;
1879
+ form.parentBranch = result.parentBranch;
1880
+ form.parentRegion = result.parentRegion || "--";
1872
1881
  loading.value = false;
1873
1882
  };
1874
1883
  const onCancel = () => {
@@ -1878,7 +1887,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1878
1887
  Object.assign(form, {
1879
1888
  parentBranch: "",
1880
1889
  name: "",
1881
- remarks: ""
1890
+ remarks: "",
1891
+ parentRegion: ""
1882
1892
  });
1883
1893
  Object.assign(params, data);
1884
1894
  params.opType == "2" ? initData() : initData1();
@@ -1908,7 +1918,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1908
1918
  })
1909
1919
  ));
1910
1920
  loading.value = false;
1911
- if (result) {
1921
+ if ((result == null ? void 0 : result.code) == 0) {
1912
1922
  message.success(
1913
1923
  `${form.name} ${params.opType == "1" ? t("organ.ins_successtip") : t("organ.up_successtip")}`,
1914
1924
  5
@@ -1934,7 +1944,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1934
1944
  width: 620,
1935
1945
  title: _ctx.$t("organ.dept" + params.opType),
1936
1946
  open: visible.value,
1937
- "onUpdate:open": _cache[3] || (_cache[3] = ($event) => visible.value = $event),
1947
+ "onUpdate:open": _cache[4] || (_cache[4] = ($event) => visible.value = $event),
1938
1948
  onCancel,
1939
1949
  destroyOnClose: true
1940
1950
  }, {
@@ -1983,16 +1993,32 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1983
1993
  ]),
1984
1994
  _: 1
1985
1995
  }, 8, ["label"]),
1996
+ createVNode(_component_a_form_item, {
1997
+ label: _ctx.$t("organ.superiorRegion"),
1998
+ name: "superiorRegion"
1999
+ }, {
2000
+ default: withCtx(() => [
2001
+ createVNode(_component_a_input, {
2002
+ placeholder: _ctx.$t("organ.superiorRegion"),
2003
+ maxLength: 20,
2004
+ disabled: "",
2005
+ value: form.parentRegion,
2006
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.parentRegion = $event)
2007
+ }, null, 8, ["placeholder", "value"])
2008
+ ]),
2009
+ _: 1
2010
+ }, 8, ["label"]),
1986
2011
  createVNode(_component_a_form_item, {
1987
2012
  label: _ctx.$t("organ.deptName"),
1988
- name: "name"
2013
+ name: "name",
2014
+ required: ""
1989
2015
  }, {
1990
2016
  default: withCtx(() => [
1991
2017
  createVNode(_component_a_input, {
1992
2018
  placeholder: _ctx.$t("organ.deptName"),
1993
2019
  maxLength: 50,
1994
2020
  value: form.name,
1995
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.name = $event),
2021
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.name = $event),
1996
2022
  rules: [{ required: true, message: _ctx.$t("organ.deptName_msg1") }]
1997
2023
  }, null, 8, ["placeholder", "value", "rules"])
1998
2024
  ]),
@@ -2005,7 +2031,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
2005
2031
  default: withCtx(() => [
2006
2032
  createVNode(InputTextarea, {
2007
2033
  value: form.remarks,
2008
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.remarks = $event),
2034
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => form.remarks = $event),
2009
2035
  showCount: true,
2010
2036
  maxLength: 50,
2011
2037
  autoSize: false,
@@ -2107,7 +2133,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
2107
2133
  })
2108
2134
  );
2109
2135
  }
2110
- if (res) {
2136
+ if ((res == null ? void 0 : res.code) == 0) {
2111
2137
  emit("ok", { ...form });
2112
2138
  message.success(
2113
2139
  `${form.name} ${params.opType == "1" ? t("organ.ins_successtip") : t("organ.up_successtip")}`,
@@ -2248,8 +2274,8 @@ const _hoisted_12$2 = { class: "pay_span" };
2248
2274
  const _hoisted_13$1 = { class: "pay_span" };
2249
2275
  const _hoisted_14$1 = { class: "pay_span1" };
2250
2276
  const _hoisted_15$1 = { class: "pay_span" };
2251
- const _hoisted_16 = { class: "pay_span1" };
2252
- const _hoisted_17 = { class: "pay_span" };
2277
+ const _hoisted_16$1 = { class: "pay_span1" };
2278
+ const _hoisted_17$1 = { class: "pay_span" };
2253
2279
  const _hoisted_18 = { class: "pay_span1" };
2254
2280
  const _hoisted_19 = { style: {
2255
2281
  position: "absolute",
@@ -2345,10 +2371,10 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
2345
2371
  }, null, 8, ["defaultValue"]), [
2346
2372
  [vShow, insertData.udate]
2347
2373
  ]),
2348
- withDirectives(createElementVNode("span", _hoisted_16, toDisplayString("--"), 512), [
2374
+ withDirectives(createElementVNode("span", _hoisted_16$1, toDisplayString("--"), 512), [
2349
2375
  [vShow, !insertData.udate]
2350
2376
  ]),
2351
- createElementVNode("span", _hoisted_17, toDisplayString(_ctx.$t("organ.uoperator")), 1),
2377
+ createElementVNode("span", _hoisted_17$1, toDisplayString(_ctx.$t("organ.uoperator")), 1),
2352
2378
  createElementVNode("span", _hoisted_18, toDisplayString(insertData.uoperator ? insertData.uoperator : "--"), 1)
2353
2379
  ])
2354
2380
  ]),
@@ -2379,13 +2405,15 @@ const _hoisted_5$5 = { class: "pay_span1" };
2379
2405
  const _hoisted_6$5 = { class: "pay_span" };
2380
2406
  const _hoisted_7$3 = { class: "pay_span1" };
2381
2407
  const _hoisted_8$1 = { class: "pay_span" };
2382
- const _hoisted_9$1 = { class: "pay_span" };
2383
- const _hoisted_10$1 = { class: "pay_span1" };
2408
+ const _hoisted_9$1 = { class: "pay_span1" };
2409
+ const _hoisted_10$1 = { class: "pay_span" };
2384
2410
  const _hoisted_11$1 = { class: "pay_span" };
2385
2411
  const _hoisted_12$1 = { class: "pay_span1" };
2386
2412
  const _hoisted_13 = { class: "pay_span" };
2387
2413
  const _hoisted_14 = { class: "pay_span1" };
2388
- const _hoisted_15 = { style: {
2414
+ const _hoisted_15 = { class: "pay_span" };
2415
+ const _hoisted_16 = { class: "pay_span1" };
2416
+ const _hoisted_17 = { style: {
2389
2417
  position: "absolute",
2390
2418
  right: 0,
2391
2419
  bottom: 0,
@@ -2409,7 +2437,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2409
2437
  cdate: "",
2410
2438
  coperator: "",
2411
2439
  udate: "",
2412
- uoperator: ""
2440
+ uoperator: "",
2441
+ parentRegion: ""
2413
2442
  });
2414
2443
  const destroyOnClose = ref(true);
2415
2444
  const showModal = (params) => {
@@ -2444,37 +2473,39 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2444
2473
  createElementVNode("div", _hoisted_1$z, [
2445
2474
  createElementVNode("span", _hoisted_2$g, toDisplayString(_ctx.$t("organ.parentBranch")), 1),
2446
2475
  createElementVNode("span", _hoisted_3$e, toDisplayString(insertData.parentBranch), 1),
2447
- createElementVNode("span", _hoisted_4$b, toDisplayString(_ctx.$t("organ.deptName")), 1),
2448
- createElementVNode("span", _hoisted_5$5, toDisplayString(insertData.name), 1),
2476
+ createElementVNode("span", _hoisted_4$b, toDisplayString(_ctx.$t("organ.superiorRegion")), 1),
2477
+ createElementVNode("span", _hoisted_5$5, toDisplayString(insertData.parentRegion), 1),
2478
+ createElementVNode("span", _hoisted_6$5, toDisplayString(_ctx.$t("organ.deptName")), 1),
2479
+ createElementVNode("span", _hoisted_7$3, toDisplayString(insertData.name), 1),
2449
2480
  createCommentVNode(` <span class="pay_span">{{ $t('organ.depCode') }}</span>\r
2450
2481
  <span class="pay_span1">{{ insertData.refCode?insertData.refCode:'--' }}</span>\r
2451
2482
  <span class="pay_span">{{ $t('organ.orderNo') }}</span>\r
2452
2483
  <span class="pay_span1">{{ insertData.orderNo?insertData.orderNo:'--' }}</span> `),
2453
- createElementVNode("span", _hoisted_6$5, toDisplayString(_ctx.$t("organ.remarks")), 1),
2454
- createElementVNode("span", _hoisted_7$3, toDisplayString(insertData.remarks ? insertData.remarks : "--"), 1),
2484
+ createElementVNode("span", _hoisted_8$1, toDisplayString(_ctx.$t("organ.remarks")), 1),
2485
+ createElementVNode("span", _hoisted_9$1, toDisplayString(insertData.remarks ? insertData.remarks : "--"), 1),
2455
2486
  createVNode(_component_a_divider, { style: { "margin-top": "40px" } }),
2456
- createElementVNode("span", _hoisted_8$1, toDisplayString(_ctx.$t("organ.cdate")), 1),
2487
+ createElementVNode("span", _hoisted_10$1, toDisplayString(_ctx.$t("organ.cdate")), 1),
2457
2488
  createVNode(_component_uc_pick_label, {
2458
2489
  class: "pay_span1",
2459
2490
  defaultValue: insertData.cdate
2460
2491
  }, null, 8, ["defaultValue"]),
2461
- createElementVNode("span", _hoisted_9$1, toDisplayString(_ctx.$t("organ.coperator")), 1),
2462
- createElementVNode("span", _hoisted_10$1, toDisplayString(insertData.coperator), 1),
2463
- createElementVNode("span", _hoisted_11$1, toDisplayString(_ctx.$t("organ.udate")), 1),
2492
+ createElementVNode("span", _hoisted_11$1, toDisplayString(_ctx.$t("organ.coperator")), 1),
2493
+ createElementVNode("span", _hoisted_12$1, toDisplayString(insertData.coperator), 1),
2494
+ createElementVNode("span", _hoisted_13, toDisplayString(_ctx.$t("organ.udate")), 1),
2464
2495
  withDirectives(createVNode(_component_uc_pick_label, {
2465
2496
  class: "pay_span1",
2466
2497
  defaultValue: insertData.udate
2467
2498
  }, null, 8, ["defaultValue"]), [
2468
2499
  [vShow, insertData.udate]
2469
2500
  ]),
2470
- withDirectives(createElementVNode("span", _hoisted_12$1, toDisplayString("--"), 512), [
2501
+ withDirectives(createElementVNode("span", _hoisted_14, toDisplayString("--"), 512), [
2471
2502
  [vShow, !insertData.udate]
2472
2503
  ]),
2473
- createElementVNode("span", _hoisted_13, toDisplayString(_ctx.$t("organ.uoperator")), 1),
2474
- createElementVNode("span", _hoisted_14, toDisplayString(insertData.uoperator ? insertData.uoperator : "--"), 1)
2504
+ createElementVNode("span", _hoisted_15, toDisplayString(_ctx.$t("organ.uoperator")), 1),
2505
+ createElementVNode("span", _hoisted_16, toDisplayString(insertData.uoperator ? insertData.uoperator : "--"), 1)
2475
2506
  ])
2476
2507
  ]),
2477
- createElementVNode("div", _hoisted_15, [
2508
+ createElementVNode("div", _hoisted_17, [
2478
2509
  createVNode(_component_a_button, {
2479
2510
  onClick: _cache[0] || (_cache[0] = ($event) => onCancel())
2480
2511
  }, {
@@ -2522,6 +2553,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2522
2553
  const size = ref(2);
2523
2554
  const addShow = ref(false);
2524
2555
  const removeShow = ref(false);
2556
+ const editShow = ref(false);
2525
2557
  const expandedRowKeys = ref([]);
2526
2558
  const handleExpand = (record) => {
2527
2559
  if (expandedRowKeys.value.includes(record.id)) {
@@ -2647,22 +2679,58 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2647
2679
  branchDetailRef.value.showModal({ type: record.type, id: record.id });
2648
2680
  }
2649
2681
  };
2682
+ const handleUpdateBranchType = async (record) => {
2683
+ const res = await setUpdateBranchType({
2684
+ id: record.id
2685
+ });
2686
+ if (res.result) {
2687
+ message.success(`${t("organ.setBranchTypeTip")}`, 5);
2688
+ init2();
2689
+ }
2690
+ };
2691
+ const setUnderlyingInstitution = (record) => {
2692
+ Modal.confirm({
2693
+ title: t("organ.add3"),
2694
+ content: t("organ.setsuperiorRegionInfo"),
2695
+ icon: h(""),
2696
+ onOk() {
2697
+ handleUpdateBranchType(record);
2698
+ }
2699
+ });
2700
+ console.log("record", record);
2701
+ };
2650
2702
  const onSubmit = () => {
2651
2703
  init2();
2652
2704
  };
2653
2705
  const onDelete = (record) => {
2654
2706
  if (record.type == "3") {
2655
- setOrganDeleteDepartment({ id: record.id }).then((res) => {
2656
- if (res == null ? void 0 : res.result) {
2657
- init2();
2658
- message.success(`${record.name} ${t("organ.del_successtip")}`, 5);
2707
+ Modal.confirm({
2708
+ title: t("organ.deleteTip"),
2709
+ icon: h(ExclamationCircleOutlined, { style: "color:red" }),
2710
+ content: t("organ.deleteTipInfo"),
2711
+ okType: "danger",
2712
+ onOk() {
2713
+ setOrganDeleteDepartment({ id: record.id }).then((res) => {
2714
+ if (res == null ? void 0 : res.result) {
2715
+ init2();
2716
+ message.success(`${record.name} ${t("organ.del_successtip")}`, 5);
2717
+ }
2718
+ });
2659
2719
  }
2660
2720
  });
2661
2721
  } else {
2662
- setOrganDeleteBranch({ id: record.id }).then((res) => {
2663
- if (res == null ? void 0 : res.result) {
2664
- init2();
2665
- message.success(`${record.name} ${t("organ.del_successtip")}`, 5);
2722
+ Modal.confirm({
2723
+ title: t("organ.deleteTip"),
2724
+ icon: h(ExclamationCircleOutlined, { style: "color:red" }),
2725
+ content: t("organ.deleteTipInfo"),
2726
+ okType: "danger",
2727
+ onOk() {
2728
+ setOrganDeleteBranch({ id: record.id }).then((res) => {
2729
+ if (res == null ? void 0 : res.result) {
2730
+ init2();
2731
+ message.success(`${record.name} ${t("organ.del_successtip")}`, 5);
2732
+ }
2733
+ });
2666
2734
  }
2667
2735
  });
2668
2736
  }
@@ -2676,6 +2744,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2676
2744
  });
2677
2745
  onMounted(() => {
2678
2746
  addShow.value = hasPermissionId("002");
2747
+ editShow.value = hasPermissionId("003");
2679
2748
  removeShow.value = hasPermissionId("004");
2680
2749
  init2();
2681
2750
  });
@@ -2684,10 +2753,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2684
2753
  const _component_a_button = Button;
2685
2754
  const _component_a_tooltip = Tooltip;
2686
2755
  const _component_uc_pick_label = resolveComponent("uc-pick-label");
2687
- const _component_uc_btn_edit = resolveComponent("uc-btn-edit");
2688
2756
  const _component_a_divider = Divider;
2689
- const _component_uc_btn_remove = resolveComponent("uc-btn-remove");
2690
- const _component_uc_btn_add = resolveComponent("uc-btn-add");
2691
2757
  const _component_a_menu_item = MenuItem;
2692
2758
  const _component_a_menu = Menu;
2693
2759
  const _component_a_dropdown = Dropdown;
@@ -2779,25 +2845,50 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2779
2845
  }, null, 8, ["defaultValue"])) : createCommentVNode("v-if", true),
2780
2846
  column.key === "action" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
2781
2847
  withDirectives(createElementVNode("div", null, [
2782
- createVNode(_component_uc_btn_edit, {
2783
- onClick: ($event) => onUpdate(record),
2784
- type: "a"
2785
- }, null, 8, ["onClick"]),
2786
- createVNode(_component_a_divider, { type: "vertical" }),
2787
- withDirectives(createVNode(_component_uc_btn_remove, {
2788
- onClick: ($event) => onDelete(record),
2789
- type: "c",
2790
- title: _ctx.$t("organ.remove"),
2791
- content: _ctx.$t("organ.remove1")
2792
- }, null, 8, ["onClick", "title", "content"]), [
2848
+ withDirectives(createVNode(_component_a_button, {
2849
+ type: "link",
2850
+ style: { "padding": "0" },
2851
+ onClick: ($event) => onUpdate(record)
2852
+ }, {
2853
+ default: withCtx(() => [
2854
+ createTextVNode(toDisplayString(_ctx.$t("button._003")), 1)
2855
+ ]),
2856
+ _: 2
2857
+ }, 1032, ["onClick"]), [
2858
+ [vShow, editShow.value]
2859
+ ]),
2860
+ withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
2861
+ [vShow, record.type == 2 || record.type == 3]
2862
+ ]),
2863
+ withDirectives(createVNode(_component_a_button, {
2864
+ type: "link",
2865
+ style: { "padding": "0" },
2866
+ onClick: ($event) => onAddDep(record)
2867
+ }, {
2868
+ default: withCtx(() => [
2869
+ createTextVNode(toDisplayString(_ctx.$t("organ.add2")), 1)
2870
+ ]),
2871
+ _: 2
2872
+ }, 1032, ["onClick"]), [
2873
+ [vShow, (record.type == 2 || record.type == 3) && addShow.value]
2874
+ ]),
2875
+ withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
2793
2876
  [vShow, record.type == 3]
2794
2877
  ]),
2795
- withDirectives(createVNode(_component_uc_btn_add, {
2796
- type: "d",
2797
- onClick: ($event) => onAddDep(record),
2798
- text: _ctx.$t("organ.add2")
2799
- }, null, 8, ["onClick", "text"]), [
2800
- [vShow, record.type == 2]
2878
+ withDirectives(createVNode(_component_a_button, {
2879
+ type: "link",
2880
+ style: { "padding": "0" },
2881
+ onClick: ($event) => onDelete(record)
2882
+ }, {
2883
+ default: withCtx(() => [
2884
+ createTextVNode(toDisplayString(_ctx.$t("button._004")), 1)
2885
+ ]),
2886
+ _: 2
2887
+ }, 1032, ["onClick"]), [
2888
+ [vShow, record.type == 3 && removeShow.value]
2889
+ ]),
2890
+ withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
2891
+ [vShow, record.type != 3 && record.type != 2]
2801
2892
  ]),
2802
2893
  withDirectives(createElementVNode("span", null, [
2803
2894
  createVNode(_component_a_dropdown, null, {
@@ -2807,11 +2898,37 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2807
2898
  withDirectives(createElementVNode("div", null, [
2808
2899
  createVNode(_component_a_menu_item, { key: "1" }, {
2809
2900
  default: withCtx(() => [
2810
- createVNode(_component_uc_btn_add, {
2811
- type: "d",
2812
- text: _ctx.$t("organ.add1"),
2901
+ createVNode(_component_a_button, {
2902
+ type: "link",
2903
+ style: { "padding": "0" },
2904
+ onClick: ($event) => setUnderlyingInstitution(record)
2905
+ }, {
2906
+ default: withCtx(() => [
2907
+ createTextVNode(toDisplayString(_ctx.$t("organ.add3")), 1)
2908
+ ]),
2909
+ _: 2
2910
+ }, 1032, ["onClick"])
2911
+ ]),
2912
+ _: 2
2913
+ }, 1024)
2914
+ ], 512), [
2915
+ [vShow, record.branchUpdateFlag == 0]
2916
+ ]),
2917
+ withDirectives(createElementVNode("div", null, [
2918
+ createVNode(_component_a_menu_item, { key: "2" }, {
2919
+ default: withCtx(() => [
2920
+ withDirectives(createVNode(_component_a_button, {
2921
+ type: "link",
2922
+ style: { "padding": "0" },
2813
2923
  onClick: ($event) => onAdd(record)
2814
- }, null, 8, ["text", "onClick"])
2924
+ }, {
2925
+ default: withCtx(() => [
2926
+ createTextVNode(toDisplayString(_ctx.$t("organ.add1")), 1)
2927
+ ]),
2928
+ _: 2
2929
+ }, 1032, ["onClick"]), [
2930
+ [vShow, addShow.value]
2931
+ ])
2815
2932
  ]),
2816
2933
  _: 2
2817
2934
  }, 1024)
@@ -2819,13 +2936,20 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2819
2936
  [vShow, addShow.value]
2820
2937
  ]),
2821
2938
  withDirectives(createElementVNode("div", null, [
2822
- createVNode(_component_a_menu_item, { key: "2" }, {
2939
+ createVNode(_component_a_menu_item, { key: "3" }, {
2823
2940
  default: withCtx(() => [
2824
- createVNode(_component_uc_btn_add, {
2825
- type: "d",
2826
- text: _ctx.$t("organ.add2"),
2941
+ withDirectives(createVNode(_component_a_button, {
2942
+ type: "link",
2943
+ style: { "padding": "0" },
2827
2944
  onClick: ($event) => onAddDep(record)
2828
- }, null, 8, ["text", "onClick"])
2945
+ }, {
2946
+ default: withCtx(() => [
2947
+ createTextVNode(toDisplayString(_ctx.$t("organ.add2")), 1)
2948
+ ]),
2949
+ _: 2
2950
+ }, 1032, ["onClick"]), [
2951
+ [vShow, addShow.value]
2952
+ ])
2829
2953
  ]),
2830
2954
  _: 2
2831
2955
  }, 1024)
@@ -2833,14 +2957,20 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2833
2957
  [vShow, addShow.value]
2834
2958
  ]),
2835
2959
  withDirectives(createElementVNode("div", null, [
2836
- createVNode(_component_a_menu_item, { key: "3" }, {
2960
+ createVNode(_component_a_menu_item, { key: "4" }, {
2837
2961
  default: withCtx(() => [
2838
- createVNode(_component_uc_btn_remove, {
2839
- onClick: ($event) => onDelete(record),
2840
- type: "c",
2841
- title: _ctx.$t("organ.remove"),
2842
- content: _ctx.$t("organ.remove1")
2843
- }, null, 8, ["onClick", "title", "content"])
2962
+ withDirectives(createVNode(_component_a_button, {
2963
+ type: "link",
2964
+ style: { "padding": "0" },
2965
+ onClick: ($event) => onDelete(record)
2966
+ }, {
2967
+ default: withCtx(() => [
2968
+ createTextVNode(toDisplayString(_ctx.$t("button._004")), 1)
2969
+ ]),
2970
+ _: 2
2971
+ }, 1032, ["onClick"]), [
2972
+ [vShow, removeShow.value]
2973
+ ])
2844
2974
  ]),
2845
2975
  _: 2
2846
2976
  }, 1024)
@@ -2871,50 +3001,73 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2871
3001
  createElementVNode("span", null, toDisplayString(_ctx.$t("organ.nopermission")), 1)
2872
3002
  ]),
2873
3003
  default: withCtx(() => [
2874
- createVNode(_component_uc_btn_edit, {
2875
- type: "bt4",
2876
- style: { "color": "rgba(0, 0, 0, 0.25)" },
3004
+ withDirectives(createVNode(_component_a_button, {
3005
+ type: "link",
3006
+ style: { "padding": "0" },
3007
+ onClick: ($event) => onUpdate(record),
2877
3008
  disabled: ""
2878
- })
3009
+ }, {
3010
+ default: withCtx(() => [
3011
+ createTextVNode(toDisplayString(_ctx.$t("button._003")), 1)
3012
+ ]),
3013
+ _: 2
3014
+ }, 1032, ["onClick"]), [
3015
+ [vShow, editShow.value]
3016
+ ])
2879
3017
  ]),
2880
- _: 1
2881
- }),
2882
- createVNode(_component_a_divider, { type: "vertical" }),
3018
+ _: 2
3019
+ }, 1024),
3020
+ withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
3021
+ [vShow, (record.type == 2 || record.type == 3) && addShow.value]
3022
+ ]),
2883
3023
  createVNode(_component_a_tooltip, { placement: "top" }, {
2884
3024
  title: withCtx(() => [
2885
3025
  createElementVNode("span", null, toDisplayString(_ctx.$t("organ.nopermission")), 1)
2886
3026
  ]),
2887
3027
  default: withCtx(() => [
2888
- withDirectives(createVNode(_component_uc_btn_remove, {
2889
- onClick: ($event) => onDelete(record),
2890
- type: "c",
2891
- style: { "color": "rgba(0, 0, 0, 0.25)" },
2892
- disabled: "",
2893
- title: _ctx.$t("organ.remove"),
2894
- content: _ctx.$t("organ.remove1")
2895
- }, null, 8, ["onClick", "title", "content"]), [
2896
- [vShow, record.type == 3]
3028
+ withDirectives(createVNode(_component_a_button, {
3029
+ type: "link",
3030
+ style: { "padding": "0" },
3031
+ onClick: ($event) => onAddDep(record),
3032
+ disabled: ""
3033
+ }, {
3034
+ default: withCtx(() => [
3035
+ createTextVNode(toDisplayString(_ctx.$t("organ.add2")), 1)
3036
+ ]),
3037
+ _: 2
3038
+ }, 1032, ["onClick"]), [
3039
+ [vShow, (record.type == 2 || record.type == 3) && addShow.value]
2897
3040
  ])
2898
3041
  ]),
2899
3042
  _: 2
2900
3043
  }, 1024),
3044
+ withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
3045
+ [vShow, removeShow.value && record.type == 3]
3046
+ ]),
2901
3047
  createVNode(_component_a_tooltip, { placement: "top" }, {
2902
3048
  title: withCtx(() => [
2903
3049
  createElementVNode("span", null, toDisplayString(_ctx.$t("organ.nopermission")), 1)
2904
3050
  ]),
2905
3051
  default: withCtx(() => [
2906
- withDirectives(createVNode(_component_uc_btn_add, {
2907
- type: "b",
2908
- style: { "color": "rgba(0, 0, 0, 0.25)" },
2909
- disabled: "",
2910
- onClick: ($event) => onAddDep(record),
2911
- text: _ctx.$t("organ.add2")
2912
- }, null, 8, ["onClick", "text"]), [
2913
- [vShow, record.type == 2]
3052
+ withDirectives(createVNode(_component_a_button, {
3053
+ type: "link",
3054
+ style: { "padding": "0" },
3055
+ onClick: ($event) => onDelete(record),
3056
+ disabled: ""
3057
+ }, {
3058
+ default: withCtx(() => [
3059
+ createTextVNode(toDisplayString(_ctx.$t("button._004")), 1)
3060
+ ]),
3061
+ _: 2
3062
+ }, 1032, ["onClick"]), [
3063
+ [vShow, removeShow.value && record.type == 3]
2914
3064
  ])
2915
3065
  ]),
2916
3066
  _: 2
2917
3067
  }, 1024),
3068
+ withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
3069
+ [vShow, record.type != 3 && record.type != 2]
3070
+ ]),
2918
3071
  createVNode(_component_a_tooltip, { placement: "top" }, {
2919
3072
  title: withCtx(() => [
2920
3073
  createElementVNode("span", null, toDisplayString(_ctx.$t("organ.nopermission")), 1)
@@ -11799,7 +11952,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
11799
11952
  {
11800
11953
  required: true,
11801
11954
  message: t("org.user_pwd2_msg1"),
11802
- vidator: (rule, value) => {
11955
+ validator: (rule, value) => {
11803
11956
  if (value == form.userPwd) {
11804
11957
  return Promise.resolve();
11805
11958
  } else {
@@ -12739,8 +12892,19 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
12739
12892
  ]),
12740
12893
  _: 1
12741
12894
  }, 8, ["icon"])) : createCommentVNode("v-if", true),
12742
- __props.type == "c" ? (openBlock(), createBlock(_component_a_button, {
12895
+ __props.type == "bt1" ? (openBlock(), createBlock(_component_a_button, {
12743
12896
  key: 1,
12897
+ type: "link",
12898
+ disabled: "",
12899
+ style: { "padding": "0" }
12900
+ }, {
12901
+ default: withCtx(() => [
12902
+ createTextVNode(toDisplayString(!__props.text ? _ctx.$t("button._002") : __props.text), 1)
12903
+ ]),
12904
+ _: 1
12905
+ })) : createCommentVNode("v-if", true),
12906
+ __props.type == "c" ? (openBlock(), createBlock(_component_a_button, {
12907
+ key: 2,
12744
12908
  type: "primary",
12745
12909
  ghost: "",
12746
12910
  style: { "border": "1px solid #d9d9d9", "background": "#fff !important" },
@@ -12752,15 +12916,15 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
12752
12916
  _: 1
12753
12917
  })) : createCommentVNode("v-if", true),
12754
12918
  __props.type == "a" ? (openBlock(), createElementBlock("a", {
12755
- key: 2,
12919
+ key: 3,
12756
12920
  onClick: click
12757
12921
  }, toDisplayString(!__props.text ? _ctx.$t("button._002") : __props.text), 1)) : createCommentVNode("v-if", true),
12758
12922
  __props.type == "b" ? (openBlock(), createElementBlock("span", {
12759
- key: 3,
12923
+ key: 4,
12760
12924
  onClick: click
12761
12925
  }, toDisplayString(!__props.text ? _ctx.$t("button._002") : __props.text), 1)) : createCommentVNode("v-if", true),
12762
12926
  __props.type == "d" ? (openBlock(), createBlock(_component_a_button, {
12763
- key: 4,
12927
+ key: 5,
12764
12928
  type: "link",
12765
12929
  onClick: click
12766
12930
  }, {
@@ -12770,7 +12934,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
12770
12934
  _: 1
12771
12935
  })) : createCommentVNode("v-if", true),
12772
12936
  __props.type == "dropdown" ? (openBlock(), createBlock(_component_a_dropdown_button, {
12773
- key: 5,
12937
+ key: 6,
12774
12938
  onClick: click
12775
12939
  }, {
12776
12940
  overlay: withCtx(() => [