@witlink/usercenter 1.2.33 → 1.2.35

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";
@@ -1441,6 +1441,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
1441
1441
  title: t("fun.url"),
1442
1442
  dataIndex: "url",
1443
1443
  width: "150px",
1444
+ maxWidth: "250px",
1444
1445
  key: "url"
1445
1446
  },
1446
1447
  {
@@ -1475,7 +1476,9 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
1475
1476
  },
1476
1477
  {
1477
1478
  title: t("fun.action"),
1478
- key: "action"
1479
+ key: "action",
1480
+ fixed: "right",
1481
+ width: "120px"
1479
1482
  }
1480
1483
  ]);
1481
1484
  const onSelect = (selectedKeys, event) => {
@@ -1629,7 +1632,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
1629
1632
  ref: tableRef,
1630
1633
  columns: columns.value,
1631
1634
  data: loadData,
1632
- rowKey: "code"
1635
+ rowKey: "code",
1636
+ scroll: { x: 1e3 }
1633
1637
  }, {
1634
1638
  bodyCell: withCtx(({ record, column }) => [
1635
1639
  column.key === "index1" ? (openBlock(), createBlock(unref(Icon__default), {
@@ -1788,6 +1792,13 @@ function setOrganDeleteBranch(params) {
1788
1792
  data: params
1789
1793
  });
1790
1794
  }
1795
+ function setUpdateBranchType(params) {
1796
+ return handleRespPost({
1797
+ url: "/api/sys/organ/update-branchType",
1798
+ method: "post",
1799
+ params
1800
+ });
1801
+ }
1791
1802
  const _hoisted_1$D = { class: "textarea-wrapper" };
1792
1803
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
1793
1804
  __name: "InputTextarea",
@@ -1849,7 +1860,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1849
1860
  const form = reactive({
1850
1861
  parentBranch: "",
1851
1862
  name: "",
1852
- remarks: ""
1863
+ remarks: "",
1864
+ parentRegion: ""
1853
1865
  });
1854
1866
  const params = reactive({
1855
1867
  opType: "",
@@ -1868,7 +1880,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1868
1880
  id: params.id,
1869
1881
  type: params.type
1870
1882
  });
1871
- form.parentBranch = result;
1883
+ form.parentBranch = result.parentBranch;
1884
+ form.parentRegion = result.parentRegion || "--";
1872
1885
  loading.value = false;
1873
1886
  };
1874
1887
  const onCancel = () => {
@@ -1878,7 +1891,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1878
1891
  Object.assign(form, {
1879
1892
  parentBranch: "",
1880
1893
  name: "",
1881
- remarks: ""
1894
+ remarks: "",
1895
+ parentRegion: ""
1882
1896
  });
1883
1897
  Object.assign(params, data);
1884
1898
  params.opType == "2" ? initData() : initData1();
@@ -1908,7 +1922,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1908
1922
  })
1909
1923
  ));
1910
1924
  loading.value = false;
1911
- if (result) {
1925
+ if ((result == null ? void 0 : result.code) == 0) {
1912
1926
  message.success(
1913
1927
  `${form.name} ${params.opType == "1" ? t("organ.ins_successtip") : t("organ.up_successtip")}`,
1914
1928
  5
@@ -1934,7 +1948,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1934
1948
  width: 620,
1935
1949
  title: _ctx.$t("organ.dept" + params.opType),
1936
1950
  open: visible.value,
1937
- "onUpdate:open": _cache[3] || (_cache[3] = ($event) => visible.value = $event),
1951
+ "onUpdate:open": _cache[4] || (_cache[4] = ($event) => visible.value = $event),
1938
1952
  onCancel,
1939
1953
  destroyOnClose: true
1940
1954
  }, {
@@ -1983,16 +1997,32 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1983
1997
  ]),
1984
1998
  _: 1
1985
1999
  }, 8, ["label"]),
2000
+ createVNode(_component_a_form_item, {
2001
+ label: _ctx.$t("organ.superiorRegion"),
2002
+ name: "superiorRegion"
2003
+ }, {
2004
+ default: withCtx(() => [
2005
+ createVNode(_component_a_input, {
2006
+ placeholder: _ctx.$t("organ.superiorRegion"),
2007
+ maxLength: 20,
2008
+ disabled: "",
2009
+ value: form.parentRegion,
2010
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.parentRegion = $event)
2011
+ }, null, 8, ["placeholder", "value"])
2012
+ ]),
2013
+ _: 1
2014
+ }, 8, ["label"]),
1986
2015
  createVNode(_component_a_form_item, {
1987
2016
  label: _ctx.$t("organ.deptName"),
1988
- name: "name"
2017
+ name: "name",
2018
+ required: ""
1989
2019
  }, {
1990
2020
  default: withCtx(() => [
1991
2021
  createVNode(_component_a_input, {
1992
2022
  placeholder: _ctx.$t("organ.deptName"),
1993
2023
  maxLength: 50,
1994
2024
  value: form.name,
1995
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.name = $event),
2025
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.name = $event),
1996
2026
  rules: [{ required: true, message: _ctx.$t("organ.deptName_msg1") }]
1997
2027
  }, null, 8, ["placeholder", "value", "rules"])
1998
2028
  ]),
@@ -2005,7 +2035,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
2005
2035
  default: withCtx(() => [
2006
2036
  createVNode(InputTextarea, {
2007
2037
  value: form.remarks,
2008
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.remarks = $event),
2038
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => form.remarks = $event),
2009
2039
  showCount: true,
2010
2040
  maxLength: 50,
2011
2041
  autoSize: false,
@@ -2107,7 +2137,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
2107
2137
  })
2108
2138
  );
2109
2139
  }
2110
- if (res) {
2140
+ if ((res == null ? void 0 : res.code) == 0) {
2111
2141
  emit("ok", { ...form });
2112
2142
  message.success(
2113
2143
  `${form.name} ${params.opType == "1" ? t("organ.ins_successtip") : t("organ.up_successtip")}`,
@@ -2248,8 +2278,8 @@ const _hoisted_12$2 = { class: "pay_span" };
2248
2278
  const _hoisted_13$1 = { class: "pay_span" };
2249
2279
  const _hoisted_14$1 = { class: "pay_span1" };
2250
2280
  const _hoisted_15$1 = { class: "pay_span" };
2251
- const _hoisted_16 = { class: "pay_span1" };
2252
- const _hoisted_17 = { class: "pay_span" };
2281
+ const _hoisted_16$1 = { class: "pay_span1" };
2282
+ const _hoisted_17$1 = { class: "pay_span" };
2253
2283
  const _hoisted_18 = { class: "pay_span1" };
2254
2284
  const _hoisted_19 = { style: {
2255
2285
  position: "absolute",
@@ -2345,10 +2375,10 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
2345
2375
  }, null, 8, ["defaultValue"]), [
2346
2376
  [vShow, insertData.udate]
2347
2377
  ]),
2348
- withDirectives(createElementVNode("span", _hoisted_16, toDisplayString("--"), 512), [
2378
+ withDirectives(createElementVNode("span", _hoisted_16$1, toDisplayString("--"), 512), [
2349
2379
  [vShow, !insertData.udate]
2350
2380
  ]),
2351
- createElementVNode("span", _hoisted_17, toDisplayString(_ctx.$t("organ.uoperator")), 1),
2381
+ createElementVNode("span", _hoisted_17$1, toDisplayString(_ctx.$t("organ.uoperator")), 1),
2352
2382
  createElementVNode("span", _hoisted_18, toDisplayString(insertData.uoperator ? insertData.uoperator : "--"), 1)
2353
2383
  ])
2354
2384
  ]),
@@ -2379,13 +2409,15 @@ const _hoisted_5$5 = { class: "pay_span1" };
2379
2409
  const _hoisted_6$5 = { class: "pay_span" };
2380
2410
  const _hoisted_7$3 = { class: "pay_span1" };
2381
2411
  const _hoisted_8$1 = { class: "pay_span" };
2382
- const _hoisted_9$1 = { class: "pay_span" };
2383
- const _hoisted_10$1 = { class: "pay_span1" };
2412
+ const _hoisted_9$1 = { class: "pay_span1" };
2413
+ const _hoisted_10$1 = { class: "pay_span" };
2384
2414
  const _hoisted_11$1 = { class: "pay_span" };
2385
2415
  const _hoisted_12$1 = { class: "pay_span1" };
2386
2416
  const _hoisted_13 = { class: "pay_span" };
2387
2417
  const _hoisted_14 = { class: "pay_span1" };
2388
- const _hoisted_15 = { style: {
2418
+ const _hoisted_15 = { class: "pay_span" };
2419
+ const _hoisted_16 = { class: "pay_span1" };
2420
+ const _hoisted_17 = { style: {
2389
2421
  position: "absolute",
2390
2422
  right: 0,
2391
2423
  bottom: 0,
@@ -2409,7 +2441,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2409
2441
  cdate: "",
2410
2442
  coperator: "",
2411
2443
  udate: "",
2412
- uoperator: ""
2444
+ uoperator: "",
2445
+ parentRegion: ""
2413
2446
  });
2414
2447
  const destroyOnClose = ref(true);
2415
2448
  const showModal = (params) => {
@@ -2444,37 +2477,39 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2444
2477
  createElementVNode("div", _hoisted_1$z, [
2445
2478
  createElementVNode("span", _hoisted_2$g, toDisplayString(_ctx.$t("organ.parentBranch")), 1),
2446
2479
  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),
2480
+ createElementVNode("span", _hoisted_4$b, toDisplayString(_ctx.$t("organ.superiorRegion")), 1),
2481
+ createElementVNode("span", _hoisted_5$5, toDisplayString(insertData.parentRegion), 1),
2482
+ createElementVNode("span", _hoisted_6$5, toDisplayString(_ctx.$t("organ.deptName")), 1),
2483
+ createElementVNode("span", _hoisted_7$3, toDisplayString(insertData.name), 1),
2449
2484
  createCommentVNode(` <span class="pay_span">{{ $t('organ.depCode') }}</span>\r
2450
2485
  <span class="pay_span1">{{ insertData.refCode?insertData.refCode:'--' }}</span>\r
2451
2486
  <span class="pay_span">{{ $t('organ.orderNo') }}</span>\r
2452
2487
  <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),
2488
+ createElementVNode("span", _hoisted_8$1, toDisplayString(_ctx.$t("organ.remarks")), 1),
2489
+ createElementVNode("span", _hoisted_9$1, toDisplayString(insertData.remarks ? insertData.remarks : "--"), 1),
2455
2490
  createVNode(_component_a_divider, { style: { "margin-top": "40px" } }),
2456
- createElementVNode("span", _hoisted_8$1, toDisplayString(_ctx.$t("organ.cdate")), 1),
2491
+ createElementVNode("span", _hoisted_10$1, toDisplayString(_ctx.$t("organ.cdate")), 1),
2457
2492
  createVNode(_component_uc_pick_label, {
2458
2493
  class: "pay_span1",
2459
2494
  defaultValue: insertData.cdate
2460
2495
  }, 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),
2496
+ createElementVNode("span", _hoisted_11$1, toDisplayString(_ctx.$t("organ.coperator")), 1),
2497
+ createElementVNode("span", _hoisted_12$1, toDisplayString(insertData.coperator), 1),
2498
+ createElementVNode("span", _hoisted_13, toDisplayString(_ctx.$t("organ.udate")), 1),
2464
2499
  withDirectives(createVNode(_component_uc_pick_label, {
2465
2500
  class: "pay_span1",
2466
2501
  defaultValue: insertData.udate
2467
2502
  }, null, 8, ["defaultValue"]), [
2468
2503
  [vShow, insertData.udate]
2469
2504
  ]),
2470
- withDirectives(createElementVNode("span", _hoisted_12$1, toDisplayString("--"), 512), [
2505
+ withDirectives(createElementVNode("span", _hoisted_14, toDisplayString("--"), 512), [
2471
2506
  [vShow, !insertData.udate]
2472
2507
  ]),
2473
- createElementVNode("span", _hoisted_13, toDisplayString(_ctx.$t("organ.uoperator")), 1),
2474
- createElementVNode("span", _hoisted_14, toDisplayString(insertData.uoperator ? insertData.uoperator : "--"), 1)
2508
+ createElementVNode("span", _hoisted_15, toDisplayString(_ctx.$t("organ.uoperator")), 1),
2509
+ createElementVNode("span", _hoisted_16, toDisplayString(insertData.uoperator ? insertData.uoperator : "--"), 1)
2475
2510
  ])
2476
2511
  ]),
2477
- createElementVNode("div", _hoisted_15, [
2512
+ createElementVNode("div", _hoisted_17, [
2478
2513
  createVNode(_component_a_button, {
2479
2514
  onClick: _cache[0] || (_cache[0] = ($event) => onCancel())
2480
2515
  }, {
@@ -2522,6 +2557,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2522
2557
  const size = ref(2);
2523
2558
  const addShow = ref(false);
2524
2559
  const removeShow = ref(false);
2560
+ const editShow = ref(false);
2525
2561
  const expandedRowKeys = ref([]);
2526
2562
  const handleExpand = (record) => {
2527
2563
  if (expandedRowKeys.value.includes(record.id)) {
@@ -2647,22 +2683,58 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2647
2683
  branchDetailRef.value.showModal({ type: record.type, id: record.id });
2648
2684
  }
2649
2685
  };
2686
+ const handleUpdateBranchType = async (record) => {
2687
+ const res = await setUpdateBranchType({
2688
+ id: record.id
2689
+ });
2690
+ if (res.result) {
2691
+ message.success(`${t("organ.setBranchTypeTip")}`, 5);
2692
+ init2();
2693
+ }
2694
+ };
2695
+ const setUnderlyingInstitution = (record) => {
2696
+ Modal.confirm({
2697
+ title: t("organ.add3"),
2698
+ content: t("organ.setsuperiorRegionInfo"),
2699
+ icon: h(""),
2700
+ onOk() {
2701
+ handleUpdateBranchType(record);
2702
+ }
2703
+ });
2704
+ console.log("record", record);
2705
+ };
2650
2706
  const onSubmit = () => {
2651
2707
  init2();
2652
2708
  };
2653
2709
  const onDelete = (record) => {
2654
2710
  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);
2711
+ Modal.confirm({
2712
+ title: t("organ.deleteTip"),
2713
+ icon: h(ExclamationCircleOutlined, { style: "color:red" }),
2714
+ content: t("organ.deleteTipInfo"),
2715
+ okType: "danger",
2716
+ onOk() {
2717
+ setOrganDeleteDepartment({ id: record.id }).then((res) => {
2718
+ if (res == null ? void 0 : res.result) {
2719
+ init2();
2720
+ message.success(`${record.name} ${t("organ.del_successtip")}`, 5);
2721
+ }
2722
+ });
2659
2723
  }
2660
2724
  });
2661
2725
  } 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);
2726
+ Modal.confirm({
2727
+ title: t("organ.deleteTip"),
2728
+ icon: h(ExclamationCircleOutlined, { style: "color:red" }),
2729
+ content: t("organ.deleteTipInfo"),
2730
+ okType: "danger",
2731
+ onOk() {
2732
+ setOrganDeleteBranch({ id: record.id }).then((res) => {
2733
+ if (res == null ? void 0 : res.result) {
2734
+ init2();
2735
+ message.success(`${record.name} ${t("organ.del_successtip")}`, 5);
2736
+ }
2737
+ });
2666
2738
  }
2667
2739
  });
2668
2740
  }
@@ -2676,6 +2748,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2676
2748
  });
2677
2749
  onMounted(() => {
2678
2750
  addShow.value = hasPermissionId("002");
2751
+ editShow.value = hasPermissionId("003");
2679
2752
  removeShow.value = hasPermissionId("004");
2680
2753
  init2();
2681
2754
  });
@@ -2684,10 +2757,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2684
2757
  const _component_a_button = Button;
2685
2758
  const _component_a_tooltip = Tooltip;
2686
2759
  const _component_uc_pick_label = resolveComponent("uc-pick-label");
2687
- const _component_uc_btn_edit = resolveComponent("uc-btn-edit");
2688
2760
  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
2761
  const _component_a_menu_item = MenuItem;
2692
2762
  const _component_a_menu = Menu;
2693
2763
  const _component_a_dropdown = Dropdown;
@@ -2779,25 +2849,50 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2779
2849
  }, null, 8, ["defaultValue"])) : createCommentVNode("v-if", true),
2780
2850
  column.key === "action" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
2781
2851
  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"]), [
2852
+ withDirectives(createVNode(_component_a_button, {
2853
+ type: "link",
2854
+ style: { "padding": "0" },
2855
+ onClick: ($event) => onUpdate(record)
2856
+ }, {
2857
+ default: withCtx(() => [
2858
+ createTextVNode(toDisplayString(_ctx.$t("button._003")), 1)
2859
+ ]),
2860
+ _: 2
2861
+ }, 1032, ["onClick"]), [
2862
+ [vShow, editShow.value]
2863
+ ]),
2864
+ withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
2865
+ [vShow, record.type == 2 || record.type == 3]
2866
+ ]),
2867
+ withDirectives(createVNode(_component_a_button, {
2868
+ type: "link",
2869
+ style: { "padding": "0" },
2870
+ onClick: ($event) => onAddDep(record)
2871
+ }, {
2872
+ default: withCtx(() => [
2873
+ createTextVNode(toDisplayString(_ctx.$t("organ.add2")), 1)
2874
+ ]),
2875
+ _: 2
2876
+ }, 1032, ["onClick"]), [
2877
+ [vShow, (record.type == 2 || record.type == 3) && addShow.value]
2878
+ ]),
2879
+ withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
2793
2880
  [vShow, record.type == 3]
2794
2881
  ]),
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]
2882
+ withDirectives(createVNode(_component_a_button, {
2883
+ type: "link",
2884
+ style: { "padding": "0" },
2885
+ onClick: ($event) => onDelete(record)
2886
+ }, {
2887
+ default: withCtx(() => [
2888
+ createTextVNode(toDisplayString(_ctx.$t("button._004")), 1)
2889
+ ]),
2890
+ _: 2
2891
+ }, 1032, ["onClick"]), [
2892
+ [vShow, record.type == 3 && removeShow.value]
2893
+ ]),
2894
+ withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
2895
+ [vShow, record.type != 3 && record.type != 2]
2801
2896
  ]),
2802
2897
  withDirectives(createElementVNode("span", null, [
2803
2898
  createVNode(_component_a_dropdown, null, {
@@ -2807,11 +2902,37 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2807
2902
  withDirectives(createElementVNode("div", null, [
2808
2903
  createVNode(_component_a_menu_item, { key: "1" }, {
2809
2904
  default: withCtx(() => [
2810
- createVNode(_component_uc_btn_add, {
2811
- type: "d",
2812
- text: _ctx.$t("organ.add1"),
2905
+ createVNode(_component_a_button, {
2906
+ type: "link",
2907
+ style: { "padding": "0" },
2908
+ onClick: ($event) => setUnderlyingInstitution(record)
2909
+ }, {
2910
+ default: withCtx(() => [
2911
+ createTextVNode(toDisplayString(_ctx.$t("organ.add3")), 1)
2912
+ ]),
2913
+ _: 2
2914
+ }, 1032, ["onClick"])
2915
+ ]),
2916
+ _: 2
2917
+ }, 1024)
2918
+ ], 512), [
2919
+ [vShow, record.branchUpdateFlag == 0]
2920
+ ]),
2921
+ withDirectives(createElementVNode("div", null, [
2922
+ createVNode(_component_a_menu_item, { key: "2" }, {
2923
+ default: withCtx(() => [
2924
+ withDirectives(createVNode(_component_a_button, {
2925
+ type: "link",
2926
+ style: { "padding": "0" },
2813
2927
  onClick: ($event) => onAdd(record)
2814
- }, null, 8, ["text", "onClick"])
2928
+ }, {
2929
+ default: withCtx(() => [
2930
+ createTextVNode(toDisplayString(_ctx.$t("organ.add1")), 1)
2931
+ ]),
2932
+ _: 2
2933
+ }, 1032, ["onClick"]), [
2934
+ [vShow, addShow.value]
2935
+ ])
2815
2936
  ]),
2816
2937
  _: 2
2817
2938
  }, 1024)
@@ -2819,13 +2940,20 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2819
2940
  [vShow, addShow.value]
2820
2941
  ]),
2821
2942
  withDirectives(createElementVNode("div", null, [
2822
- createVNode(_component_a_menu_item, { key: "2" }, {
2943
+ createVNode(_component_a_menu_item, { key: "3" }, {
2823
2944
  default: withCtx(() => [
2824
- createVNode(_component_uc_btn_add, {
2825
- type: "d",
2826
- text: _ctx.$t("organ.add2"),
2945
+ withDirectives(createVNode(_component_a_button, {
2946
+ type: "link",
2947
+ style: { "padding": "0" },
2827
2948
  onClick: ($event) => onAddDep(record)
2828
- }, null, 8, ["text", "onClick"])
2949
+ }, {
2950
+ default: withCtx(() => [
2951
+ createTextVNode(toDisplayString(_ctx.$t("organ.add2")), 1)
2952
+ ]),
2953
+ _: 2
2954
+ }, 1032, ["onClick"]), [
2955
+ [vShow, addShow.value]
2956
+ ])
2829
2957
  ]),
2830
2958
  _: 2
2831
2959
  }, 1024)
@@ -2833,14 +2961,20 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2833
2961
  [vShow, addShow.value]
2834
2962
  ]),
2835
2963
  withDirectives(createElementVNode("div", null, [
2836
- createVNode(_component_a_menu_item, { key: "3" }, {
2964
+ createVNode(_component_a_menu_item, { key: "4" }, {
2837
2965
  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"])
2966
+ withDirectives(createVNode(_component_a_button, {
2967
+ type: "link",
2968
+ style: { "padding": "0" },
2969
+ onClick: ($event) => onDelete(record)
2970
+ }, {
2971
+ default: withCtx(() => [
2972
+ createTextVNode(toDisplayString(_ctx.$t("button._004")), 1)
2973
+ ]),
2974
+ _: 2
2975
+ }, 1032, ["onClick"]), [
2976
+ [vShow, removeShow.value]
2977
+ ])
2844
2978
  ]),
2845
2979
  _: 2
2846
2980
  }, 1024)
@@ -2871,49 +3005,73 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2871
3005
  createElementVNode("span", null, toDisplayString(_ctx.$t("organ.nopermission")), 1)
2872
3006
  ]),
2873
3007
  default: withCtx(() => [
2874
- createVNode(_component_uc_btn_edit, {
2875
- type: "bt4",
2876
- style: { "color": "rgba(0, 0, 0, 0.25)" },
3008
+ withDirectives(createVNode(_component_a_button, {
3009
+ type: "link",
3010
+ style: { "padding": "0" },
3011
+ onClick: ($event) => onUpdate(record),
2877
3012
  disabled: ""
2878
- })
3013
+ }, {
3014
+ default: withCtx(() => [
3015
+ createTextVNode(toDisplayString(_ctx.$t("button._003")), 1)
3016
+ ]),
3017
+ _: 2
3018
+ }, 1032, ["onClick"]), [
3019
+ [vShow, editShow.value]
3020
+ ])
2879
3021
  ]),
2880
- _: 1
2881
- }),
2882
- createVNode(_component_a_divider, { type: "vertical" }),
3022
+ _: 2
3023
+ }, 1024),
3024
+ withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
3025
+ [vShow, (record.type == 2 || record.type == 3) && addShow.value]
3026
+ ]),
2883
3027
  createVNode(_component_a_tooltip, { placement: "top" }, {
2884
3028
  title: withCtx(() => [
2885
3029
  createElementVNode("span", null, toDisplayString(_ctx.$t("organ.nopermission")), 1)
2886
3030
  ]),
2887
3031
  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]
3032
+ withDirectives(createVNode(_component_a_button, {
3033
+ type: "link",
3034
+ style: { "padding": "0" },
3035
+ onClick: ($event) => onAddDep(record),
3036
+ disabled: ""
3037
+ }, {
3038
+ default: withCtx(() => [
3039
+ createTextVNode(toDisplayString(_ctx.$t("organ.add2")), 1)
3040
+ ]),
3041
+ _: 2
3042
+ }, 1032, ["onClick"]), [
3043
+ [vShow, (record.type == 2 || record.type == 3) && addShow.value]
2897
3044
  ])
2898
3045
  ]),
2899
3046
  _: 2
2900
3047
  }, 1024),
3048
+ withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
3049
+ [vShow, removeShow.value && record.type == 3]
3050
+ ]),
2901
3051
  createVNode(_component_a_tooltip, { placement: "top" }, {
2902
3052
  title: withCtx(() => [
2903
3053
  createElementVNode("span", null, toDisplayString(_ctx.$t("organ.nopermission")), 1)
2904
3054
  ]),
2905
3055
  default: withCtx(() => [
2906
- withDirectives(createVNode(_component_uc_btn_add, {
2907
- type: "bt1",
2908
- style: { "color": "rgba(0, 0, 0, 0.25)" },
2909
- onClick: ($event) => onAddDep(record),
2910
- text: _ctx.$t("organ.add2")
2911
- }, null, 8, ["onClick", "text"]), [
2912
- [vShow, record.type == 2]
3056
+ withDirectives(createVNode(_component_a_button, {
3057
+ type: "link",
3058
+ style: { "padding": "0" },
3059
+ onClick: ($event) => onDelete(record),
3060
+ disabled: ""
3061
+ }, {
3062
+ default: withCtx(() => [
3063
+ createTextVNode(toDisplayString(_ctx.$t("button._004")), 1)
3064
+ ]),
3065
+ _: 2
3066
+ }, 1032, ["onClick"]), [
3067
+ [vShow, removeShow.value && record.type == 3]
2913
3068
  ])
2914
3069
  ]),
2915
3070
  _: 2
2916
3071
  }, 1024),
3072
+ withDirectives(createVNode(_component_a_divider, { type: "vertical" }, null, 512), [
3073
+ [vShow, record.type != 3 && record.type != 2]
3074
+ ]),
2917
3075
  createVNode(_component_a_tooltip, { placement: "top" }, {
2918
3076
  title: withCtx(() => [
2919
3077
  createElementVNode("span", null, toDisplayString(_ctx.$t("organ.nopermission")), 1)
@@ -3781,12 +3939,14 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
3781
3939
  title: t("personal_center.role"),
3782
3940
  dataIndex: "roleName",
3783
3941
  width: "150px",
3942
+ maxWidth: "250px",
3784
3943
  key: "roleName"
3785
3944
  },
3786
3945
  {
3787
3946
  title: t("role.remark"),
3788
3947
  dataIndex: "remark",
3789
3948
  width: "150px",
3949
+ maxWidth: "250px",
3790
3950
  key: "remark"
3791
3951
  },
3792
3952
  {
@@ -3803,7 +3963,9 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
3803
3963
  },
3804
3964
  {
3805
3965
  title: t("role.action"),
3806
- key: "action"
3966
+ key: "action",
3967
+ fixed: "right",
3968
+ width: "120px"
3807
3969
  }
3808
3970
  ]);
3809
3971
  const handleGetChecked = (_a = dictRoleStatusRef.value) == null ? void 0 : _a.getLabel(0);
@@ -3919,7 +4081,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
3919
4081
  ref: tableRef,
3920
4082
  data: loadData,
3921
4083
  columns: columns.value,
3922
- rowKey: "roleId"
4084
+ rowKey: "roleId",
4085
+ scroll: { x: 1e3 }
3923
4086
  }, {
3924
4087
  bodyCell: withCtx(({ record, column }) => [
3925
4088
  column.key === "index1" ? (openBlock(), createBlock(unref(Icon__default), {
@@ -7124,7 +7287,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
7124
7287
  },
7125
7288
  {
7126
7289
  title: t("user.action"),
7127
- key: "action"
7290
+ key: "action",
7291
+ fixed: "right",
7292
+ width: "120px"
7128
7293
  }
7129
7294
  ]);
7130
7295
  const handleInputSearch = () => {
@@ -7260,7 +7425,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
7260
7425
  data: loadData,
7261
7426
  columns: columns.value,
7262
7427
  rowKey: "userId",
7263
- style: { "margin-top": "16px" }
7428
+ style: { "margin-top": "16px" },
7429
+ scroll: { x: 1e3 }
7264
7430
  }, {
7265
7431
  customFilterDropdown: withCtx(({ confirm, clearFilters }) => [
7266
7432
  createElementVNode("div", null, [
@@ -10497,6 +10663,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
10497
10663
  {
10498
10664
  title: t("lang.lang3"),
10499
10665
  dataIndex: "lang3",
10666
+ width: "350px",
10500
10667
  key: "lang3"
10501
10668
  }
10502
10669
  ]);
@@ -11798,7 +11965,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
11798
11965
  {
11799
11966
  required: true,
11800
11967
  message: t("org.user_pwd2_msg1"),
11801
- vidator: (rule, value) => {
11968
+ validator: (rule, value) => {
11802
11969
  if (value == form.userPwd) {
11803
11970
  return Promise.resolve();
11804
11971
  } else {
@@ -12009,7 +12176,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
12009
12176
  },
12010
12177
  {
12011
12178
  title: t("org.action"),
12012
- key: "action"
12179
+ key: "action",
12180
+ width: "120px",
12181
+ fixed: "right"
12013
12182
  }
12014
12183
  ]);
12015
12184
  return (_ctx, _cache) => {
@@ -12074,7 +12243,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
12074
12243
  ref: tableRef,
12075
12244
  data: loadData,
12076
12245
  rowKey: "cdate",
12077
- columns: columns.value
12246
+ columns: columns.value,
12247
+ scroll: { x: 1e3 }
12078
12248
  }, {
12079
12249
  bodyCell: withCtx(({ record, column }) => [
12080
12250
  column.key === "index1" ? (openBlock(), createElementBlock("img", {