@utogether/udp-core 1.0.2 → 1.0.4-beta.1

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.
Files changed (87) hide show
  1. package/dist/{403-B1rIjAAu.js → 403-CH-5FVhN.js} +1 -1
  2. package/dist/{404-mBqc2y4t.js → 404-CFk6Ivq-.js} +1 -1
  3. package/dist/{500-BoI45Zdh.js → 500-DRjSNKN3.js} +1 -1
  4. package/dist/{AuthorityInfo-B08NBIIn.js → AuthorityInfo-DxNFwxdz.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BI2PKcqq.js} +1 -1
  6. package/dist/{AuthorityPanel-BeBNiwqc.js → AuthorityPanel-BzIh29KB.js} +1 -1
  7. package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js → AuthorityPanel.vue_vue_type_style_index_0_lang-D3GN0Ybz.js} +32 -24
  8. package/dist/{Company-JGGyWEWH.js → Company-DGFD7_MF.js} +3 -3
  9. package/dist/{CompanyPanel-BQ_cCmDx.js → CompanyPanel-BHXndpIr.js} +1 -1
  10. package/dist/{Department-z2iO6hwM.js → Department-CFcjdf8m.js} +3 -3
  11. package/dist/{DepartmentPanel-BtQe7zwU.js → DepartmentPanel-DrBtJClY.js} +1 -1
  12. package/dist/{DesignPanel-7mhtVWas.js → DesignPanel-EAKuwOqp.js} +1 -1
  13. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js → DesignPanel.vue_vue_type_style_index_0_lang-BOP4Q41a.js} +2 -2
  14. package/dist/{DictView-CjchV2Yk.js → DictView-CpRvxDO0.js} +10 -9
  15. package/dist/{InvOrganization-Pn1O_XP0.js → InvOrganization-DZC9aKKv.js} +1 -1
  16. package/dist/{Org-BqytV_vi.js → Org-D5heLogi.js} +1 -1
  17. package/dist/{Preview-CLpUUMay.js → Preview-DWuThn2_.js} +1 -1
  18. package/dist/{ReportDefine-Cz1KtEUF.js → ReportDefine-FeHx3B-B.js} +1 -1
  19. package/dist/{ReportDesign-BaORYud4.js → ReportDesign-Deo5AK76.js} +2 -2
  20. package/dist/{ReportQuery-CPCPXiXz.js → ReportQuery-WK5BPREv.js} +1 -1
  21. package/dist/{ReportQueryFrom-C_AcrfkJ.js → ReportQueryFrom-BcbRvwcp.js} +1 -1
  22. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Bm67ejay.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DEXuBXHO.js} +1 -1
  23. package/dist/{ReportTemplate-CFiNMz79.js → ReportTemplate-DAk0qIJq.js} +1 -1
  24. package/dist/{Role-B-XDoJd5.js → Role-sSVr8txF.js} +3 -3
  25. package/dist/{RoleAssign-BolW8YVs.js → RoleAssign-gg9O7P1_.js} +3 -3
  26. package/dist/{RolePanel-HilSuYns.js → RolePanel-D2M-Wc-X.js} +1 -1
  27. package/dist/{RolePanel-2kfs5tw9.js → RolePanel-DsyVPcoq.js} +1 -1
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CE4gApUY.js → RolePanel.vue_vue_type_script_setup_true_lang-C4fuYoIS.js} +1 -1
  29. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DPzgfAyV.js → RolePanel.vue_vue_type_script_setup_true_lang-RR24avbF.js} +3 -3
  30. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js → ScrollPanel.vue_vue_type_style_index_0_lang-6v5vVx-e.js} +1 -1
  31. package/dist/{Staff-BTk3whFC.js → Staff-DTDrOuE0.js} +3 -3
  32. package/dist/{StaffInfo-d3AuSzlA.js → StaffInfo-B2H_6lwQ.js} +1 -1
  33. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js → StaffInfo.vue_vue_type_script_setup_true_lang-BkDRBn9p.js} +1 -1
  34. package/dist/{StaffPanel-DV-D4jjz.js → StaffPanel-dpmnAD0A.js} +1 -1
  35. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js → StaffPanel.vue_vue_type_script_setup_true_lang-dgV9B37R.js} +47 -39
  36. package/dist/{SysUser-BnjYytws.js → SysUser-BjpQdzSo.js} +2 -2
  37. package/dist/{SysUserPanel-CBoyD-Qi.js → SysUserPanel-C5IHO7JB.js} +1 -1
  38. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js → SysUserPanel.vue_vue_type_script_setup_true_lang-HvJ4Hrps.js} +1 -1
  39. package/dist/{SystemMenu-kYB_ZaUt.js → SystemMenu-D7W9E8SF.js} +53 -50
  40. package/dist/{UserInfo-4dx97VBL.js → UserInfo-D_lbSbUh.js} +1 -1
  41. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js → UserInfo.vue_vue_type_style_index_0_lang-NLl8VJ5I.js} +1 -1
  42. package/dist/{childView-CHPNfTEb.js → childView-B1XV2jZ7.js} +1 -1
  43. package/dist/{childView-CKA_JgVZ.js → childView-LQllG9vw.js} +1 -1
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-W7bCtXeu.js → childView.vue_vue_type_style_index_0_lang-DN19uWOO.js} +31 -31
  45. package/dist/{childView.vue_vue_type_style_index_0_lang-Bym2fQRd.js → childView.vue_vue_type_style_index_0_lang-Dpo_nfX9.js} +19 -20
  46. package/dist/{code-rule-CbxuZg0-.js → code-rule-DkKKcosO.js} +1 -1
  47. package/dist/core.es.js +1 -1
  48. package/dist/{cron-task-nTOpqQYf.js → cron-task-bGVrr2Jg.js} +1 -1
  49. package/dist/{frameView-Z1tPUyCh.js → frameView-B3n2JXTj.js} +1 -1
  50. package/dist/index-DYT0k5Sg.js +8134 -0
  51. package/dist/{layoutView--MGA9zUB.js → layoutView-bh22tftc.js} +144 -145
  52. package/dist/{log-in-CSYJDA6m.js → log-in-Dk_xyZ_l.js} +1 -1
  53. package/dist/{log-out-DiwGCg7p.js → log-out-CERhlqtr.js} +1 -1
  54. package/dist/{login-C6Y0ajDp.js → login-C5EJWWLi.js} +124 -134
  55. package/dist/{login-log-C0V-_l3F.js → login-log-DJBGJVV0.js} +4 -4
  56. package/dist/{lov-view-Cmv7wZZ9.js → lov-view-BNGHpq-d.js} +2 -2
  57. package/dist/{menuInfo-UeutJpOa.js → menuInfo-2DBTH6Vf.js} +1 -1
  58. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js → menuInfo.vue_vue_type_style_index_0_lang-KtLS__XM.js} +37 -35
  59. package/dist/{pda-app-B6w99SJo.js → pda-app-BzmHIT9A.js} +1 -1
  60. package/dist/{resource-BybJvUv0.js → resource-D6UY8vN8.js} +1 -1
  61. package/dist/{su-welcome-C1bmxHoY.js → su-welcome-okexK2W2.js} +20 -20
  62. package/dist/{sys-config-BnmIDnCj.js → sys-config-9F_C1LzR.js} +1 -1
  63. package/dist/udp-core.css +1 -1
  64. package/package.json +1 -1
  65. package/src/App.vue +73 -65
  66. package/src/components/udp/form-upload/form-upload.vue +492 -0
  67. package/src/components/udp/index.ts +2 -1
  68. package/src/layout/components/lay-content/index.vue +136 -143
  69. package/src/layout/components/lay-sidebar/sidebar-logo.vue +1 -1
  70. package/src/layout/layoutView.vue +7 -6
  71. package/src/main.ts +2 -2
  72. package/src/plugins/i18n/zh.ts +1 -0
  73. package/src/plugins/vxe-table/index.ts +116 -116
  74. package/src/plugins/vxe-table/render.tsx +968 -945
  75. package/src/style/vxetable.scss +356 -348
  76. package/src/utils/dataFormat/index.ts +17 -18
  77. package/src/views/organization/staff/StaffPanel.vue +12 -3
  78. package/src/views/system/menu/AuthorityPanel.vue +142 -140
  79. package/src/views/system/menu/SystemMenu.vue +194 -185
  80. package/src/views/system/menu/menuInfo.vue +384 -384
  81. package/src/views/udev/dict/DictView.vue +2 -2
  82. package/src/views/udev/dict/childView.vue +6 -6
  83. package/src/views/udev/lov/childView.vue +174 -174
  84. package/src/views/uhome/components/menu-favorite.vue +3 -2
  85. package/src/views/ulogin/login.vue +34 -23
  86. package/src/views/upms/user/login-log.vue +5 -5
  87. package/dist/index-C3q8HoJM.js +0 -4650
@@ -1,27 +1,28 @@
1
- import { defineComponent as E, ref as k, inject as C, reactive as N, watch as S, nextTick as B, resolveComponent as r, createElementBlock as D, openBlock as d, createVNode as s, createBlock as M, createCommentVNode as I, Fragment as L } from "vue";
2
- import { useI18n as A } from "vue-i18n";
3
- import { clone as P } from "xe-utils";
4
- import { warnMessage as U } from "@utogether/utils";
5
- import { _ as V } from "./StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js";
6
- import { y as i } from "./index-C3q8HoJM.js";
7
- import { VxeUI as T } from "vxe-pc-ui";
8
- const Y = {
1
+ import { defineComponent as E, ref as C, inject as S, reactive as N, watch as B, nextTick as D, resolveComponent as r, createElementBlock as M, openBlock as d, createVNode as s, createBlock as I, createCommentVNode as L, Fragment as A } from "vue";
2
+ import { useI18n as P } from "vue-i18n";
3
+ import { clone as U } from "xe-utils";
4
+ import { warnMessage as V } from "@utogether/utils";
5
+ import { _ as T } from "./StaffInfo.vue_vue_type_script_setup_true_lang-BkDRBn9p.js";
6
+ import { y as i } from "./index-DYT0k5Sg.js";
7
+ import { VxeUI as Y } from "vxe-pc-ui";
8
+ import { t as O } from "./await-to-js.es5-BtRbN2QH.js";
9
+ const j = {
9
10
  class: "page-content"
10
- }, l = "/uums/employee", H = /* @__PURE__ */ E({
11
+ }, l = "/uums/employee", Q = /* @__PURE__ */ E({
11
12
  __name: "StaffPanel",
12
- setup(O) {
13
- const o = k(null), {
13
+ setup(q) {
14
+ const a = C(null), {
14
15
  t: u
15
- } = A(), n = C("active"), t = N({
16
+ } = P(), n = S("active"), t = N({
16
17
  record: {},
17
18
  showModelView: !1,
18
19
  fetchExtParam: {}
19
20
  });
20
- S(() => n.value, (e) => {
21
+ B(() => n.value, (e) => {
21
22
  t.fetchExtParam = {
22
23
  departmentId: e == null ? void 0 : e.id
23
- }, B(() => {
24
- o.value.refreshData();
24
+ }, D(() => {
25
+ a.value.refreshData();
25
26
  });
26
27
  });
27
28
  const m = [{
@@ -71,16 +72,16 @@ const Y = {
71
72
  default: ({
72
73
  row: e
73
74
  }) => {
74
- const a = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", c = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", x = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
75
- return [s(L, null, [s(r("ut-button"), {
75
+ const o = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", c = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", x = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
76
+ return [s(A, null, [s(r("ut-button"), {
76
77
  icon: "ri-edit-box-line",
77
78
  content: "edit",
78
79
  onTap: () => v(e)
79
80
  }, null), s(r("ut-button"), {
80
81
  icon: c,
81
- content: a,
82
+ content: o,
82
83
  status: x,
83
- onTap: () => g(e)
84
+ onTap: () => b(e)
84
85
  }, null)])];
85
86
  }
86
87
  }
@@ -91,27 +92,33 @@ const Y = {
91
92
  e === "add" && y();
92
93
  }
93
94
  }, y = () => {
94
- var e, a;
95
+ var e, o;
95
96
  if (!((e = n.value) != null && e.deptName))
96
- return U("请先选择部门");
97
- t.dataStatus = "add", t.record = {}, t.record.departmentId = (a = n.value) == null ? void 0 : a.id, t.record.deptName = n.value.deptName, t.record.enabled = "1", t.showModelView = !0;
97
+ return V("请先选择部门");
98
+ t.dataStatus = "add", t.record = {}, t.record.departmentId = (o = n.value) == null ? void 0 : o.id, t.record.deptName = n.value.deptName, t.record.enabled = "1", t.showModelView = !0;
98
99
  }, v = (e) => {
99
100
  t.dataStatus = "update", t.record = e, t.showModelView = !0;
100
- }, g = async (e) => {
101
- const a = P(e, !0);
102
- o.value.showLoading(), a.enabled = a.enabled === "1" ? "0" : "1", await i().put(l, a), o.value.hiddenLoading(), o.value.refreshData();
103
- }, _ = async () => {
104
- await T.modal.confirm(u("message.tip.confirmSync")) === "confirm" && (o.value.showLoading(), await i().post("/uums/employee/syncEwEmp", {}), o.value.hiddenLoading(), o.value.refreshData());
105
- }, b = (e) => {
106
- e === "sync" && _();
107
- }, w = () => {
108
- t.showModelView = !1, o.value.refreshData();
101
+ }, b = async (e) => {
102
+ const o = U(e, !0);
103
+ a.value.showLoading(), o.enabled = o.enabled === "1" ? "0" : "1", await i().put(l, o), a.value.hiddenLoading(), a.value.refreshData();
104
+ }, g = async () => {
105
+ if (await Y.modal.confirm(u("message.tip.confirmSync")) !== "confirm") return;
106
+ a.value.showLoading();
107
+ const [o] = await O(i().post("/uums/employee/syncEwEmp", {}));
108
+ a.value.hiddenLoading(), !o && a.value.refreshData();
109
+ }, _ = (e) => {
110
+ e === "sync" && g();
111
+ }, w = {
112
+ querySuccess: (e) => {
113
+ }
114
+ }, k = () => {
115
+ t.showModelView = !1, a.value.refreshData();
109
116
  };
110
- return (e, a) => {
117
+ return (e, o) => {
111
118
  const c = r("ut-grid");
112
- return d(), D("div", Y, [s(c, {
119
+ return d(), M("div", j, [s(c, {
113
120
  ref_key: "xgrid",
114
- ref: o,
121
+ ref: a,
115
122
  items: f,
116
123
  columns: p,
117
124
  "default-params": t.fetchExtParam,
@@ -119,17 +126,18 @@ const Y = {
119
126
  "auto-load": !1,
120
127
  buttons: m,
121
128
  url: l,
129
+ callback: w,
122
130
  mode: "form",
123
- onButtonClick: b
124
- }, null, 8, ["default-params"]), t.showModelView ? (d(), M(V, {
131
+ onButtonClick: _
132
+ }, null, 8, ["default-params"]), t.showModelView ? (d(), I(T, {
125
133
  key: 0,
126
134
  record: t.record,
127
135
  "data-status": t.dataStatus,
128
- onOnClose: w
129
- }, null, 8, ["record", "data-status"])) : I("", !0)]);
136
+ onOnClose: k
137
+ }, null, 8, ["record", "data-status"])) : L("", !0)]);
130
138
  };
131
139
  }
132
140
  });
133
141
  export {
134
- H as _
142
+ Q as _
135
143
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as t, ref as o, provide as s, createElementBlock as r, openBlock as c, createVNode as _ } from "vue";
2
- import { _ as n } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js";
3
- import { _ as a } from "./index-C3q8HoJM.js";
2
+ import { _ as n } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-HvJ4Hrps.js";
3
+ import { _ as a } from "./index-DYT0k5Sg.js";
4
4
  const p = { class: "u-content-panel1" }, i = /* @__PURE__ */ t({
5
5
  __name: "SysUser",
6
6
  setup(m) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js";
1
+ import { _ as f } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-HvJ4Hrps.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -4,7 +4,7 @@ import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { useRender as ue, warnMessage as me, delay as ce, errorMessage as fe, getDictChildren as pe } from "@utogether/utils";
5
5
  import { VxeUI as ge } from "vxe-pc-ui";
6
6
  import { clone as C, isEmpty as he } from "xe-utils";
7
- import { y as we } from "./index-C3q8HoJM.js";
7
+ import { y as we } from "./index-DYT0k5Sg.js";
8
8
  const ve = {
9
9
  class: "page"
10
10
  }, i = "/uums/user", ke = /* @__PURE__ */ oe({
@@ -1,17 +1,17 @@
1
- import { defineComponent as k, reactive as S, ref as v, createVNode as n, resolveComponent as i, Fragment as m, createElementBlock as A, openBlock as D } from "vue";
2
- import { useI18n as E } from "vue-i18n";
3
- import { _ as N } from "./menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js";
4
- import { _ as I } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js";
5
- import { clone as p } from "xe-utils";
6
- import { t as M } from "./await-to-js.es5-BtRbN2QH.js";
7
- import { VxeUI as P } from "vxe-pc-ui";
8
- import { useRender as R } from "@utogether/utils";
9
- import { y as U } from "./index-C3q8HoJM.js";
1
+ import { defineComponent as k, reactive as S, ref as D, createVNode as o, resolveComponent as i, Fragment as h, createElementBlock as A, openBlock as E } from "vue";
2
+ import { useI18n as I } from "vue-i18n";
3
+ import { _ as N } from "./menuInfo.vue_vue_type_style_index_0_lang-KtLS__XM.js";
4
+ import { _ as P } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-D3GN0Ybz.js";
5
+ import { clone as f } from "xe-utils";
6
+ import { t as R } from "./await-to-js.es5-BtRbN2QH.js";
7
+ import { VxeUI as M } from "vxe-pc-ui";
8
+ import { useRender as U } from "@utogether/utils";
9
+ import { y as W } from "./index-DYT0k5Sg.js";
10
10
  const B = {
11
11
  class: "page-content"
12
12
  }, L = {
13
13
  name: "SystemMenu"
14
- }, q = /* @__PURE__ */ k({
14
+ }, G = /* @__PURE__ */ k({
15
15
  ...L,
16
16
  setup(z) {
17
17
  const t = S({
@@ -26,26 +26,26 @@ const B = {
26
26
  pageNum: 1
27
27
  }
28
28
  }), {
29
- t: h
30
- } = E(), f = R(), d = U(), r = v(null), s = "/uums/menu";
29
+ t: g
30
+ } = I(), y = U(), d = W(), a = D(null), s = "/uums/menu";
31
31
  let l;
32
- const y = [{
32
+ const C = [{
33
33
  type: "checkbox",
34
34
  width: 50,
35
35
  align: "center"
36
36
  }, {
37
37
  field: "menuName",
38
- width: 180,
38
+ minWidth: 220,
39
39
  treeNode: !0
40
40
  }, {
41
41
  field: "menuNameEn",
42
- width: 140
42
+ minWidth: 180
43
43
  }, {
44
44
  field: "sort",
45
45
  width: 70
46
46
  }, {
47
47
  field: "menuCode",
48
- width: 140
48
+ minWidth: 220
49
49
  }, {
50
50
  field: "permissionCode",
51
51
  minWidth: 180
@@ -57,7 +57,7 @@ const B = {
57
57
  }, {
58
58
  field: "enabled",
59
59
  width: 80,
60
- cellRender: f.renderEnabled(_)
60
+ cellRender: y.renderEnabled(b)
61
61
  }, {
62
62
  field: "operate",
63
63
  width: 140,
@@ -66,81 +66,84 @@ const B = {
66
66
  default: ({
67
67
  row: e
68
68
  }) => {
69
- const o = e.menuType, a = n(i("ut-button"), {
69
+ const n = e.menuType, r = o(i("ut-button"), {
70
70
  status: "u-cyan",
71
71
  icon: "ri-add-fill",
72
72
  content: "add",
73
73
  onTap: () => u(e)
74
- }, null), x = n(i("ut-button"), {
74
+ }, null), m = o(i("ut-button"), {
75
75
  icon: "ri-lock-fill",
76
76
  content: "auth",
77
- onTap: () => b(e)
77
+ onTap: () => v(e)
78
78
  }, null);
79
- return [n(m, null, [o ? null : n(m, null, [n(i("ut-button"), {
79
+ return [o(h, null, [n ? null : o(h, null, [o(i("ut-button"), {
80
80
  status: "success",
81
81
  icon: "ri-edit-box-line",
82
82
  content: "edit",
83
- onTap: () => w(e)
84
- }, null), ["0", "5"].includes(e.menuCategory) ? a : x])])];
83
+ onTap: () => T(e)
84
+ }, null), ["0", "5"].includes(e.menuCategory) ? r : m])])];
85
85
  }
86
86
  }
87
- }], C = ({
87
+ }], w = ({
88
88
  code: e
89
89
  }) => {
90
- e === "add" && u(), e === "del" && T();
91
- }, g = async ({
90
+ e === "add" && u(), e === "del" && x();
91
+ }, _ = async ({
92
92
  row: e
93
93
  }) => {
94
- const o = await d.get(s, {
94
+ const n = await d.get(s, {
95
95
  parentId: e.id
96
96
  });
97
- return new Promise((a) => {
98
- a(o.list);
97
+ return new Promise((r) => {
98
+ r(n.list);
99
99
  });
100
100
  }, u = (e) => {
101
101
  t.showDrawer = !0, t.dataStatus = "add", t.record.dispalyCode = e == null ? void 0 : e.permissionCode, t.record.permissionCode = e == null ? void 0 : e.permissionCode, t.record.menuType = "0", t.record.showLink = "Y", t.record.isApprovalPage = "N", t.record.menuCategory = e ? "" : "0", t.record.parentId = e == null ? void 0 : e.id, t.record.hasChildren = e == null ? void 0 : e.hasChildren, t.record.children = t.record.children || [], l = e;
102
- }, w = (e) => {
103
- t.showDrawer = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
102
+ }, T = (e) => {
103
+ t.showDrawer = !0, t.dataStatus = "update", t.record = f(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
104
104
  };
105
- async function _({
105
+ async function b({
106
106
  row: e
107
107
  }) {
108
- await d.put(s, [e]), r.value.refreshData();
108
+ await d.put(s, [e]), a.value.refreshData();
109
109
  }
110
- const T = async () => {
111
- const e = await P.modal.confirm(h("message.delRecord")), o = r.value.getInstance().getCheckboxRecords();
110
+ const x = async () => {
111
+ const e = await M.modal.confirm(g("message.delRecord")), n = a.value.getInstance().getCheckboxRecords();
112
112
  if (e === "confirm") {
113
- const [a] = await M(d.delete(s, o));
113
+ const [r, m] = await R(d.delete(s, n));
114
+ if (r) return;
115
+ const p = a.value.getInstance().getTreeParentRow(n[0]);
116
+ p ? a.value.getInstance().reloadTreeExpand(p) : a.value.refreshData();
114
117
  }
115
- }, b = (e) => {
116
- t.showAuthority = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
117
- }, c = (e, o) => {
118
- e === "submit" && (l || o) && r.value.getInstance().reloadTreeExpand(l || o), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
118
+ }, v = (e) => {
119
+ t.showAuthority = !0, t.dataStatus = "update", t.record = f(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
120
+ }, c = (e, n) => {
121
+ e === "submit" && (l || n) && a.value.getInstance().reloadTreeExpand(l || n), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
119
122
  };
120
- return (e, o) => {
121
- const a = i("ut-grid");
122
- return D(), A("div", B, [n(a, {
123
+ return (e, n) => {
124
+ const r = i("ut-grid");
125
+ return E(), A("div", B, [o(r, {
123
126
  ref_key: "xgrid",
124
- ref: r,
127
+ ref: a,
125
128
  "tree-config": {
126
129
  childrenField: "children",
127
130
  lazy: !0,
128
131
  hasChild: "hasChildren",
129
- loadMethod: g,
132
+ loadMethod: _,
130
133
  iconOpen: "ri-checkbox-indeterminate-line ri-lg",
131
134
  iconClose: "ri-add-box-line ri-lg"
132
135
  },
133
- columns: y,
136
+ columns: C,
134
137
  url: s,
135
138
  stripe: !1,
136
139
  mode: "form",
137
- onToolbarButtonClick: C
138
- }, null, 8, ["tree-config"]), n(N, {
140
+ onToolbarButtonClick: w
141
+ }, null, 8, ["tree-config"]), o(N, {
139
142
  show: t.showDrawer,
140
143
  record: t.record,
141
144
  "data-status": t.dataStatus,
142
145
  onClose: c
143
- }, null, 8, ["show", "record", "data-status"]), n(I, {
146
+ }, null, 8, ["show", "record", "data-status"]), o(P, {
144
147
  show: t.showAuthority,
145
148
  record: t.record,
146
149
  onClose: c
@@ -149,5 +152,5 @@ const B = {
149
152
  }
150
153
  });
151
154
  export {
152
- q as default
155
+ G as default
153
156
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js";
1
+ import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-NLl8VJ5I.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as R, ref as i, reactive as x, onBeforeMount as B, resolveComponent as d, createElementBlock as U, openBlock as m, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as A, mergeProps as E, toHandlers as P } from "vue";
2
2
  import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
3
- import { y as V } from "./index-C3q8HoJM.js";
3
+ import { y as V } from "./index-DYT0k5Sg.js";
4
4
  const q = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ R({
5
5
  __name: "UserInfo",
6
6
  props: {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-W7bCtXeu.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-Dpo_nfX9.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-Bym2fQRd.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-DN19uWOO.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as x, ref as l, resolveComponent as a, createElementBlock as E, openBlock as m, createVNode as n, withCtx as T, createBlock as z, createCommentVNode as H, Fragment as U } from "vue";
2
- import { useI18n as $ } from "vue-i18n";
1
+ import { defineComponent as S, ref as l, resolveComponent as a, createElementBlock as E, openBlock as m, createVNode as n, withCtx as T, createBlock as H, createCommentVNode as U, Fragment as $ } from "vue";
2
+ import { useI18n as z } from "vue-i18n";
3
3
  import { t as F } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { VxeUI as M } from "vxe-pc-ui";
5
5
  import { useRender as O, successMessage as f } from "@utogether/utils";
6
- import { y as p, i as g } from "./index-C3q8HoJM.js";
6
+ import { y as p, i as h } from "./index-DYT0k5Sg.js";
7
7
  import { clone as j } from "xe-utils";
8
8
  const G = {
9
9
  class: "u-dict-config_wrapper"
10
- }, h = "/upfm/v1/lov", ee = /* @__PURE__ */ x({
10
+ }, v = "/upfm/v1/lov", ee = /* @__PURE__ */ S({
11
11
  __name: "childView",
12
12
  props: {
13
13
  record: {
@@ -19,12 +19,12 @@ const G = {
19
19
  }
20
20
  },
21
21
  emits: ["onClose"],
22
- setup(v, {
22
+ setup(g, {
23
23
  emit: C
24
24
  }) {
25
- const w = v, y = O(), {
25
+ const w = g, y = O(), {
26
26
  t: _
27
- } = $(), d = l(!1), i = l(null), s = l(null), t = l({}), o = l("add"), I = window.innerHeight - 70, b = [{
27
+ } = z(), d = l(!1), i = l(null), s = l(null), t = l({}), o = l("add"), I = window.innerHeight - 70, k = [{
28
28
  field: "dictCode",
29
29
  title: "message.udp.dictCode",
30
30
  required: !0,
@@ -47,7 +47,7 @@ const G = {
47
47
  slots: {
48
48
  default: ({
49
49
  row: e
50
- }) => [n(U, null, [n(a("ut-button"), {
50
+ }) => [n($, null, [n(a("ut-button"), {
51
51
  content: "add",
52
52
  status: "warning",
53
53
  auth: "edit",
@@ -57,7 +57,7 @@ const G = {
57
57
  content: "edit",
58
58
  status: "primary",
59
59
  auth: "edit",
60
- onTap: () => D(e)
60
+ onTap: () => x(e)
61
61
  }, null), n(a("ut-button"), {
62
62
  content: "del",
63
63
  status: "danger",
@@ -65,7 +65,7 @@ const G = {
65
65
  onTap: () => V(e)
66
66
  }, null)])]
67
67
  }
68
- }], k = [{
68
+ }], b = [{
69
69
  field: "dictCode",
70
70
  title: "message.udp.dictCode",
71
71
  required: !0
@@ -94,17 +94,17 @@ const G = {
94
94
  parentId: e.id
95
95
  };
96
96
  }, V = async (e) => {
97
- await M.modal.confirm(_("message.delRecord")) === "confirm" && (await p().delete(h, [e]), f(), i.value.refreshData());
98
- }, D = async (e) => {
97
+ await M.modal.confirm(_("message.delRecord")) === "confirm" && (await p().delete(v, [e]), f(), i.value.refreshData());
98
+ }, x = async (e) => {
99
99
  d.value = !0, o.value = "edit", t.value = j(e, !0);
100
- }, q = async () => {
100
+ }, D = async () => {
101
101
  const e = {
102
102
  ...t.value,
103
- orgId: g().getOrgId,
104
- organizationId: g().getOrganizationId
103
+ orgId: h().getOrgId,
104
+ organizationId: h().getOrganizationId
105
105
  };
106
106
  s.value.showLoading();
107
- const r = o.value === "add" ? "post" : "put", [u] = await F(p()[r](h, [e]));
107
+ const r = o.value === "add" ? "post" : "put", [u] = await F(p()[r](v, [e]));
108
108
  if (s.value.hiddenLoading(), !u) {
109
109
  if (d.value = o.value !== "edit", o.value === "add") {
110
110
  const c = t.value.parentId;
@@ -115,28 +115,28 @@ const G = {
115
115
  }
116
116
  f(), i.value.refreshData();
117
117
  }
118
- }, A = (e) => {
118
+ }, q = (e) => {
119
119
  e === "add" && N();
120
- }, L = C;
121
- function R() {
122
- L("onClose");
120
+ }, A = C;
121
+ function L() {
122
+ A("onClose");
123
123
  }
124
124
  return (e, r) => {
125
- const u = a("ut-grid"), c = a("ut-modal-form"), S = a("el-drawer");
126
- return m(), E("div", G, [n(S, {
125
+ const u = a("ut-grid"), c = a("ut-modal-form"), R = a("vxe-drawer");
126
+ return m(), E("div", G, [n(R, {
127
127
  "model-value": e.show,
128
- "before-close": R,
129
128
  title: e.$t("message.title.dictList", {
130
129
  name: e.record.dictName
131
130
  }),
132
- direction: "rtl",
131
+ position: "right",
133
132
  "destroy-on-close": "",
134
- size: "76%"
133
+ width: "67%",
134
+ onClose: L
135
135
  }, {
136
136
  default: T(() => [n(u, {
137
137
  ref_key: "xgrid",
138
138
  ref: i,
139
- columns: b,
139
+ columns: k,
140
140
  height: I,
141
141
  "default-params": {
142
142
  parentId: e.record.id
@@ -151,13 +151,13 @@ const G = {
151
151
  },
152
152
  url: "/upfm/v1/lov/children",
153
153
  mode: "form",
154
- onButtonClick: A
155
- }, null, 8, ["default-params"]), d.value ? (m(), z(c, {
154
+ onButtonClick: q
155
+ }, null, 8, ["default-params"]), d.value ? (m(), H(c, {
156
156
  key: 0,
157
157
  ref_key: "xmodal",
158
158
  ref: s,
159
159
  record: t.value,
160
- items: k,
160
+ items: b,
161
161
  width: "400",
162
162
  height: "280",
163
163
  "data-status": o.value,
@@ -165,8 +165,8 @@ const G = {
165
165
  name: e.record.dictName
166
166
  }),
167
167
  onClose: r[0] || (r[0] = (J) => d.value = !1),
168
- onConfirm: q
169
- }, null, 8, ["record", "data-status", "title"])) : H("", !0)]),
168
+ onConfirm: D
169
+ }, null, 8, ["record", "data-status", "title"])) : U("", !0)]),
170
170
  _: 1
171
171
  }, 8, ["model-value", "title"])]);
172
172
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as V, ref as a, resolveComponent as o, resolveDirective as F, createElementBlock as h, openBlock as _, createVNode as d, withCtx as c, withDirectives as W } from "vue";
1
+ import { defineComponent as V, ref as a, resolveComponent as o, resolveDirective as F, createElementBlock as w, openBlock as _, createVNode as d, withCtx as c, withDirectives as W } from "vue";
2
2
  import { t as u } from "./await-to-js.es5-BtRbN2QH.js";
3
3
  import { useRender as P } from "@utogether/utils";
4
- import { i as $, y as f } from "./index-C3q8HoJM.js";
5
- const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/upfm/v1/lovViewLine", G = /* @__PURE__ */ V({
4
+ import { i as $, y as f } from "./index-DYT0k5Sg.js";
5
+ const x = { class: "ut-loview-wrapper" }, B = "/upfm/v1/lovViewHeader", p = "/upfm/v1/lovViewLine", G = /* @__PURE__ */ V({
6
6
  __name: "childView",
7
7
  props: {
8
8
  record: { default: () => ({}) },
@@ -10,7 +10,7 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/up
10
10
  },
11
11
  emits: ["onClose"],
12
12
  setup(R, { emit: g }) {
13
- const l = R, t = P(), p = $().dicts, s = a(!1), C = { value: "dictCode", label: "dictName" }, v = a(null), T = [
13
+ const l = R, t = P(), m = $().dicts, s = a(!1), C = { value: "dictCode", label: "dictName" }, v = a(null), T = [
14
14
  { field: "lovCode", disabled: !0 },
15
15
  { field: "lovName", required: !0 },
16
16
  { field: "valueField", required: !0 },
@@ -41,8 +41,8 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/up
41
41
  field: "dictCode",
42
42
  title: "message.dictName",
43
43
  width: 120,
44
- editRender: t.renderSelectLocal({ options: p, optionProps: C }),
45
- formatter: ["formatSelectLocal", [p, "dictCode", "dictName"]]
44
+ editRender: t.renderSelectLocal({ options: m, optionProps: C }),
45
+ formatter: ["formatSelectLocal", [m, "dictCode", "dictName"]]
46
46
  },
47
47
  {
48
48
  field: "isSearch",
@@ -58,7 +58,7 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/up
58
58
  editRender: t.renderDict("SU.WHETHER"),
59
59
  formatter: ["formatDict", "SU.WHETHER"]
60
60
  }
61
- ], w = a(null), q = window.innerHeight - 300, y = {
61
+ ], h = a(null), q = window.innerHeight - 195, y = {
62
62
  editActived({ row: e }) {
63
63
  i[6].editRender.props.disabled = e.fieldType !== "dictCode";
64
64
  }
@@ -70,10 +70,10 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/up
70
70
  v.value.validateForm(async (e) => {
71
71
  if (!e) {
72
72
  s.value = !0;
73
- const [n] = await u(f().put(Y, [l.record]));
73
+ const [n] = await u(f().put(B, [l.record]));
74
74
  if (!n) {
75
- const r = w.value.getInstance().getRecordset();
76
- r.insertRecords.length && await u(f().post(m, r.insertRecords)), r.updateRecords.length && await u(f().put(m, r.updateRecords));
75
+ const r = h.value.getInstance().getRecordset();
76
+ r.insertRecords.length && await u(f().post(p, r.insertRecords)), r.updateRecords.length && await u(f().put(p, r.updateRecords));
77
77
  }
78
78
  s.value = !1;
79
79
  }
@@ -83,17 +83,16 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/up
83
83
  b("onClose");
84
84
  }
85
85
  return (e, n) => {
86
- const r = o("ut-button"), D = o("ut-form"), N = o("ut-divider"), U = o("ut-grid"), k = o("ut-content"), I = o("el-drawer"), L = F("spinning");
87
- return _(), h("div", B, [
86
+ const r = o("ut-button"), D = o("ut-form"), N = o("ut-divider"), U = o("ut-grid"), k = o("ut-content"), I = o("vxe-drawer"), L = F("spinning");
87
+ return _(), w("div", x, [
88
88
  d(I, {
89
89
  "model-value": e.show,
90
- "with-header": !1,
91
- "show-close": !1,
92
- "close-on-click-modal": !1,
93
- size: "90%"
90
+ position: "right",
91
+ "show-header": !1,
92
+ width: "90%"
94
93
  }, {
95
94
  default: c(() => [
96
- W((_(), h("div", null, [
95
+ W((_(), w("div", null, [
97
96
  d(k, {
98
97
  title: e.$t("message.title.lovView"),
99
98
  onClose: H
@@ -102,7 +101,7 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/up
102
101
  d(r, {
103
102
  icon: "ri-save-3-fill",
104
103
  content: "save",
105
- onTap: n[0] || (n[0] = (A) => S())
104
+ onTap: n[0] || (n[0] = (Y) => S())
106
105
  })
107
106
  ]),
108
107
  body: c(() => [
@@ -118,9 +117,9 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/up
118
117
  }, null, 8, ["title"]),
119
118
  d(U, {
120
119
  ref_key: "xgrid",
121
- ref: w,
120
+ ref: h,
122
121
  columns: i,
123
- url: m,
122
+ url: p,
124
123
  "default-value": { headerId: e.record.id },
125
124
  "default-params": { headerId: e.record.id },
126
125
  height: q,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as U, ref as d, createVNode as f, resolveComponent as i, nextTick as C, createElementBlock as y, openBlock as p, createBlock as b, createCommentVNode as q } from "vue";
2
2
  import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
3
3
  import { useRender as B } from "@utogether/utils";
4
- import { y as D } from "./index-C3q8HoJM.js";
4
+ import { y as D } from "./index-DYT0k5Sg.js";
5
5
  const I = {
6
6
  name: "CodeRule"
7
7
  }, M = /* @__PURE__ */ U({