@utogether/udp-core 1.0.1-beta.1 → 1.0.1-beta.11

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 (147) hide show
  1. package/build/plugins.ts +39 -32
  2. package/dist/{403-Dp617CWX.js → 403-Dsgsr2M-.js} +1 -1
  3. package/dist/{404-Cz_Axb6Y.js → 404-DmPHEfqM.js} +1 -1
  4. package/dist/{500-BGCtRNse.js → 500-OYEgHR2a.js} +1 -1
  5. package/dist/{AuthorityInfo-DGGfm7IS.js → AuthorityInfo-B1H1txG-.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BUlmQtjQ.js +100 -0
  7. package/dist/{Company-IV3GTnzY.js → Company-C8ojgx93.js} +3 -3
  8. package/dist/{CompanyPanel-qV-_VtoL.js → CompanyPanel-Dageer1t.js} +16 -16
  9. package/dist/{Department-B3W-OxW8.js → Department-Dr94_85I.js} +3 -3
  10. package/dist/{DepartmentPanel-Cw3OWxE7.js → DepartmentPanel-Bc5r1HpT.js} +1 -1
  11. package/dist/{DesignPanel-BFxR2fHJ.js → DesignPanel-CcWt1Myp.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DljbeFba.js → DesignPanel.vue_vue_type_style_index_0_lang-CKA6nx1l.js} +24 -26
  13. package/dist/DictView-BHj6wexC.js +110 -0
  14. package/dist/InvOrganization-DP3Le9g-.js +72 -0
  15. package/dist/Org-BRGHTwsw.js +39 -0
  16. package/dist/{Preview-BlDMmpdR.js → Preview-CqMaUD_3.js} +1 -1
  17. package/dist/{ReportDefine-Cub_85LA.js → ReportDefine-PEQdTCOY.js} +1 -1
  18. package/dist/{ReportDesign-hFhq5UVE.js → ReportDesign-CB4bv8ba.js} +43 -43
  19. package/dist/{ReportQuery-ChkWEyxT.js → ReportQuery-B7t4lMK0.js} +1 -1
  20. package/dist/{ReportQueryFrom-KVyD_8Dj.js → ReportQueryFrom-VBxUIMRJ.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CLNODquq.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-HeLA4Qs5.js} +1 -1
  22. package/dist/{ReportTemplate-ag9NDvh2.js → ReportTemplate-DNkv7F5p.js} +28 -28
  23. package/dist/{Role-_q3lQ8CZ.js → Role-BGfTpZK4.js} +6 -6
  24. package/dist/{RoleAssign-DZb9IRsm.js → RoleAssign-DrKFWZzA.js} +8 -8
  25. package/dist/{RolePanel-CsLsz-Ds.js → RolePanel-3lvRh7aS.js} +1 -1
  26. package/dist/{RolePanel-BQb1LlhD.js → RolePanel-BRI5QYe4.js} +1 -1
  27. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-BXKZb7yt.js +132 -0
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BrnRgHEk.js → RolePanel.vue_vue_type_script_setup_true_lang-Cci_Ysty.js} +44 -38
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CaFKRwXu.js → ScrollPanel.vue_vue_type_style_index_0_lang-BmId6zzA.js} +21 -21
  30. package/dist/{Staff-BSf9Ypbk.js → Staff-Dr0dq3fW.js} +3 -3
  31. package/dist/{StaffInfo-BNKasyMF.js → StaffInfo-_N9g2hPa.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js → StaffInfo.vue_vue_type_script_setup_true_lang-DiTJY2ug.js} +11 -11
  33. package/dist/{StaffPanel-Bpq0WVlH.js → StaffPanel-mxJQiW3G.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BhiJ0Q-Q.js → StaffPanel.vue_vue_type_script_setup_true_lang-GRGn-5t6.js} +2 -2
  35. package/dist/{SysUser-FAABuNti.js → SysUser-DgA19hZE.js} +2 -2
  36. package/dist/{SysUserPanel-PxJeOgHm.js → SysUserPanel-Bc85z5_K.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BHDrP1Pk.js +294 -0
  38. package/dist/{SystemMenu-C-7NAGon.js → SystemMenu-Be-gFIie.js} +26 -26
  39. package/dist/{UserInfo-ClXKtyGo.js → UserInfo-BCYuwFmr.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-8N7P4Hl7.js → UserInfo.vue_vue_type_style_index_0_lang-B1lgokO6.js} +39 -37
  41. package/dist/{childView-C_HmDQNd.js → childView-DhcBr1UA.js} +1 -1
  42. package/dist/{childView-uUlBcTza.js → childView-Dk4zZoXd.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-Ckjmw6wJ.js → childView.vue_vue_type_style_index_0_lang-CVnLnl03.js} +40 -40
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-y0sDvYx5.js → childView.vue_vue_type_style_index_0_lang-D4GYVhOc.js} +1 -1
  45. package/dist/{code-rule-AgCVDKFy.js → code-rule-BSwPwuAL.js} +9 -10
  46. package/dist/core.es.js +14 -11
  47. package/dist/{cron-task-C6FgQxTi.js → cron-task-T1ztyra7.js} +1 -1
  48. package/dist/{frameView-BDgISK7N.js → frameView-BDgngiBq.js} +1 -1
  49. package/dist/img/l_img.svg +1 -1
  50. package/dist/img/minicolors.png +0 -0
  51. package/dist/img/v_img.svg +1 -1
  52. package/dist/index-BSj2AtVL.js +4468 -0
  53. package/dist/{layoutView-yb3DV2DQ.js → layoutView-i7dLLBzJ.js} +1181 -1176
  54. package/dist/{login-RRpljbkm.js → login-K5Ludp8x.js} +105 -113
  55. package/dist/{login-log-CvVnyGi3.js → login-log-kqKzKTto.js} +1 -1
  56. package/dist/{lov-view-C9-rjzZR.js → lov-view-lAexiucu.js} +2 -2
  57. package/dist/{menuInfo-CzPQyFhp.js → menuInfo-BaN5YZPp.js} +1 -1
  58. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BumXunCg.js → menuInfo.vue_vue_type_style_index_0_lang-yI4QOYxG.js} +100 -97
  59. package/dist/{pda-app-Dvy3U-b6.js → pda-app-DEtDXFvM.js} +211 -197
  60. package/dist/{resource-Fy0lFkSV.js → resource-Bztmz7pn.js} +15 -15
  61. package/dist/{su-welcome-DYvSCUST.js → su-welcome-Bx8nBPi9.js} +109 -110
  62. package/dist/sys-config-nvrtYGgi.js +290 -0
  63. package/dist/udp-core.css +2 -2
  64. package/dist/{utogether-CjmJiHoE.js → utogether-yPnwDAIH.js} +1 -1
  65. package/index.ts +40 -36
  66. package/package.json +18 -18
  67. package/src/App.vue +65 -70
  68. package/src/api/index.ts +31 -31
  69. package/src/components/SuCharts/src/UserInfo.vue +78 -78
  70. package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
  71. package/src/components/udp/count-down.vue +536 -0
  72. package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
  73. package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
  74. package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
  75. package/src/components/udp/form-upload.vue +414 -64
  76. package/src/components/udp/form.vue +112 -0
  77. package/src/components/udp/grid.vue +495 -0
  78. package/src/components/udp/index.ts +10 -4
  79. package/src/components/udp/lov.vue +388 -0
  80. package/src/components/udp/modal-form.vue +13 -3
  81. package/src/components/udp/modal-grid.vue +298 -0
  82. package/src/components/udp/upload.vue +423 -0
  83. package/src/components/udp/utils.ts +447 -40
  84. package/src/directives/permission/index.ts +1 -1
  85. package/src/layout/components/lay-navbar/index.vue +239 -237
  86. package/src/layout/components/lay-panel/index.vue +150 -150
  87. package/src/layout/components/lay-search/index.vue +25 -25
  88. package/src/layout/components/lay-select-org/index.vue +64 -69
  89. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  90. package/src/layout/components/lay-sidebar/horizontal.vue +190 -191
  91. package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
  92. package/src/layout/components/lay-sidebar/sidebar-logo.vue +92 -98
  93. package/src/layout/components/lay-tag/index.vue +625 -625
  94. package/src/layout/hooks/useNav.ts +173 -173
  95. package/src/layout/layoutView.vue +215 -215
  96. package/src/main.ts +119 -109
  97. package/src/plugins/i18n/en.ts +302 -289
  98. package/src/plugins/i18n/zh.ts +349 -337
  99. package/src/plugins/vxe-table/index.ts +53 -46
  100. package/src/plugins/vxe-table/render.tsx +956 -817
  101. package/src/router/index.ts +177 -183
  102. package/src/router/modules/remaining.ts +58 -83
  103. package/src/store/modules/permission.ts +1 -4
  104. package/src/style/button.scss +85 -78
  105. package/src/style/tailwind.css +1 -68
  106. package/src/style/vxetable.scss +44 -11
  107. package/src/utils/authority/index.ts +1 -1
  108. package/src/utils/{http → udp/http}/index.ts +283 -297
  109. package/src/utils/{http → udp/http}/types.d.ts +8 -5
  110. package/src/utils/udp/useRender.ts +17 -6
  111. package/src/views/login/login-view.vue +300 -314
  112. package/src/views/organization/company/CompanyPanel.vue +259 -259
  113. package/src/views/organization/inv-org/InvOrganization.vue +68 -54
  114. package/src/views/organization/org/Org.vue +9 -5
  115. package/src/views/system/menu/SystemMenu.vue +183 -197
  116. package/src/views/system/menu/menuInfo.vue +363 -371
  117. package/src/views/system/role/AuthorityInfo.vue +19 -15
  118. package/src/views/system/role/Role.vue +1 -5
  119. package/src/views/system/role/RolePanel.vue +11 -2
  120. package/src/views/system/role/UserInfo.vue +195 -193
  121. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  122. package/src/views/system/role-assign/RolePanel.vue +139 -136
  123. package/src/views/system/sys/sys-config.vue +287 -291
  124. package/src/views/system/sysUser/SysUserPanel.vue +278 -278
  125. package/src/views/uapp/pda/pda-app.vue +208 -176
  126. package/src/views/udev/dict/DictView.vue +118 -106
  127. package/src/views/udev/dict/childView.vue +7 -7
  128. package/src/views/udev/lov/lov-view.vue +91 -91
  129. package/src/views/ufile/aggregation/File.vue +5 -5
  130. package/src/views/ufile/file/water-mark.vue +14 -14
  131. package/src/views/uhome/su-welcome.vue +3 -3
  132. package/src/views/ulogin/login.vue +12 -8
  133. package/src/views/upms/user/login-log.vue +1 -1
  134. package/src/views/urpt/design/DesignPanel.vue +507 -526
  135. package/src/views/urpt/design/ReportDesign.vue +15 -19
  136. package/src/views/urpt/static-resource/resource.vue +3 -3
  137. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  138. package/types/global.d.ts +2 -1
  139. package/vite.config.ts +6 -2
  140. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BqccGW7v.js +0 -102
  141. package/dist/DictView-C-i7e4hZ.js +0 -95
  142. package/dist/InvOrganization-cfT6riGU.js +0 -260
  143. package/dist/Org-CA7vTDIF.js +0 -35
  144. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-cmW7zBLu.js +0 -126
  145. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-njefUln5.js +0 -288
  146. package/dist/index-DzOzUkf6.js +0 -3388
  147. package/dist/sys-config-DJ1vNQTy.js +0 -277
@@ -0,0 +1,132 @@
1
+ import { defineComponent as b, reactive as E, ref as g, inject as M, watch as N, nextTick as B, createVNode as h, resolveComponent as i, resolveDirective as L, withDirectives as P, createElementBlock as A, openBlock as w, createBlock as R, createCommentVNode as S, unref as T } from "vue";
2
+ import { useI18n as U } from "vue-i18n";
3
+ import { clone as $ } from "xe-utils";
4
+ import { VxeUI as j } from "vxe-pc-ui";
5
+ import { t as v } from "./await-to-js.es5-BtRbN2QH.js";
6
+ import { successMessage as _ } from "@utogether/utils";
7
+ import { q as C } from "./index-BSj2AtVL.js";
8
+ const q = {
9
+ class: "page-content"
10
+ }, d = "/uums/orgRole", X = /* @__PURE__ */ b({
11
+ __name: "RolePanel",
12
+ setup(z) {
13
+ const e = E({
14
+ record: {},
15
+ loading: !1,
16
+ showModalView: !1
17
+ }), {
18
+ t: c
19
+ } = U(), n = g(null), u = g(null), t = M("active");
20
+ N(() => t.value, () => {
21
+ t != null && t.value.id && (e.fetchExtParam = {
22
+ orgId: t == null ? void 0 : t.value.id
23
+ }, B(() => {
24
+ n.value.refreshData();
25
+ }));
26
+ });
27
+ const k = [{
28
+ code: "del",
29
+ auth: "/"
30
+ }], m = [{
31
+ field: "roleName",
32
+ title: "message.udp.roleName",
33
+ span: 9
34
+ }, {
35
+ field: "roleCode",
36
+ title: "message.udp.roleCode",
37
+ span: 9
38
+ }], f = [{
39
+ type: "checkbox",
40
+ width: 40
41
+ }, {
42
+ field: "roleCode",
43
+ title: "message.udp.roleCode"
44
+ }, {
45
+ field: "roleName",
46
+ title: "message.udp.roleName"
47
+ }, {
48
+ field: "roleDesc",
49
+ title: "message.udp.roleDesc"
50
+ }, {
51
+ field: "enabled",
52
+ width: 100,
53
+ formatter: ["formatDict", "SU.ENABLE"]
54
+ }], p = $(f, !0);
55
+ p.push({
56
+ field: "operate",
57
+ width: 80,
58
+ fixed: "right",
59
+ slots: {
60
+ default: ({
61
+ row: o
62
+ }) => o.roleCode === "admin" ? null : [h(i("ut-button"), {
63
+ icon: "ri-delete-bin-5-fill",
64
+ content: "del",
65
+ status: "danger",
66
+ auth: "del",
67
+ onTap: () => D(o)
68
+ }, null)]
69
+ }
70
+ });
71
+ const x = () => {
72
+ e.record = {}, e.record.orgId = t.value.id, e.showModalView = !0;
73
+ }, D = async (o) => {
74
+ if (await j.modal.confirm(c("message.tip.del")) === "confirm") {
75
+ const a = {
76
+ orgId: t.value.id,
77
+ roleId: o.id
78
+ };
79
+ e.loading = !0;
80
+ const [s] = await v(C().delete(d, a));
81
+ s || _(c("message.operateSuccess")), n.value.refreshData(), e.loading = !1;
82
+ }
83
+ }, I = async (o) => {
84
+ const r = [];
85
+ o.forEach((l) => {
86
+ l.orgId = t.value.id, l.roleId = l.id, r.push(l);
87
+ });
88
+ const a = {
89
+ orgRoleList: r
90
+ };
91
+ u.value.showLoading();
92
+ const [s] = await v(C().post(d, a));
93
+ s || (_(), n.value.refreshData(), e.showModalView = !1);
94
+ }, y = (o) => o.roleCode !== "admin", V = (o) => {
95
+ o === "add" && x();
96
+ };
97
+ return (o, r) => {
98
+ const a = i("ut-grid"), s = i("ut-modal-grid"), l = L("spinning");
99
+ return P((w(), A("div", q, [h(a, {
100
+ ref_key: "xgrid",
101
+ ref: n,
102
+ items: m,
103
+ columns: T(p),
104
+ "default-params": e.fetchExtParam,
105
+ "default-value": e.fetchExtParam,
106
+ buttons: k,
107
+ "auto-load": !1,
108
+ url: d,
109
+ "check-method": y,
110
+ mode: "form",
111
+ onButtonClick: V
112
+ }, null, 8, ["columns", "default-params", "default-value"]), e.showModalView ? (w(), R(s, {
113
+ key: 0,
114
+ ref_key: "xmodal",
115
+ ref: u,
116
+ items: m,
117
+ columns: f,
118
+ "show-footer": !0,
119
+ editable: !1,
120
+ title: o.$t("message.udp.roleList"),
121
+ url: "/uums/role",
122
+ width: "60%",
123
+ height: "75%",
124
+ onClose: r[0] || (r[0] = (F) => e.showModalView = !1),
125
+ onConfirm: I
126
+ }, null, 8, ["title"])) : S("", !0)])), [[l, e.loading]]);
127
+ };
128
+ }
129
+ });
130
+ export {
131
+ X as _
132
+ };
@@ -1,24 +1,24 @@
1
- import { defineComponent as N, reactive as S, inject as I, ref as l, watch as B, createVNode as s, Fragment as M, resolveComponent as r, createElementBlock as E, openBlock as d, createBlock as i, createCommentVNode as c } from "vue";
2
- import { useRender as $ } from "@utogether/utils";
3
- import { _ as q } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-BqccGW7v.js";
4
- import { _ as O } from "./UserInfo.vue_vue_type_style_index_0_lang-8N7P4Hl7.js";
5
- import { q as P, e as R } from "./index-DzOzUkf6.js";
6
- const T = {
1
+ import { defineComponent as S, reactive as I, inject as M, ref as l, watch as B, createVNode as s, Fragment as E, resolveComponent as r, createElementBlock as $, openBlock as d, createBlock as i, createCommentVNode as c } from "vue";
2
+ import { useRender as q } from "@utogether/utils";
3
+ import { _ as O } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-BUlmQtjQ.js";
4
+ import { _ as P } from "./UserInfo.vue_vue_type_style_index_0_lang-B1lgokO6.js";
5
+ import { q as R, e as T } from "./index-BSj2AtVL.js";
6
+ const H = {
7
7
  class: "page-content"
8
- }, J = /* @__PURE__ */ N({
8
+ }, K = /* @__PURE__ */ S({
9
9
  __name: "RolePanel",
10
- setup(H) {
11
- const e = S({
10
+ setup(j) {
11
+ const e = I({
12
12
  record: {},
13
13
  showAuthView: !1,
14
14
  showModalView: !1,
15
15
  showUserView: !1,
16
16
  dataStatus: ""
17
- }), o = I("active"), f = $(), a = l(null), n = l(""), w = l({}), u = l("");
17
+ }), o = M("active"), f = q(), a = l(null), n = l(""), p = l({}), u = l("");
18
18
  B(() => o.value, () => {
19
- V();
19
+ C();
20
20
  });
21
- const p = [{
21
+ const w = [{
22
22
  field: "roleName",
23
23
  title: "message.udp.roleName"
24
24
  }, {
@@ -52,7 +52,7 @@ const T = {
52
52
  }, {
53
53
  field: "enabled",
54
54
  width: 90,
55
- cellRender: f.renderEnabled(U)
55
+ cellRender: f.renderEnabled(A)
56
56
  }, {
57
57
  field: "operate",
58
58
  width: 260,
@@ -60,74 +60,80 @@ const T = {
60
60
  slots: {
61
61
  default: ({
62
62
  row: t
63
- }) => [s(M, null, [s(r("ut-button"), {
63
+ }) => [s(E, null, [s(r("ut-button"), {
64
64
  content: "edit",
65
65
  auth: "edit",
66
+ disabled: t.roleCode === "admin",
66
67
  onTap: () => k(t)
67
68
  }, null), s(r("ut-button"), {
68
69
  content: "dispatchUser",
69
70
  status: "warning",
70
71
  icon: "ri-user-3-line",
71
72
  auth: "user",
72
- onTap: () => A(t)
73
+ onTap: () => y(t)
73
74
  }, null), s(r("ut-button"), {
74
75
  content: "dispatchAuth",
75
76
  status: "success",
76
77
  icon: "ri-plane-line",
77
78
  auth: "auth",
78
- onTap: () => y(t)
79
+ onTap: () => D(t)
79
80
  }, null)])]
80
81
  }
81
- }], V = () => {
82
+ }], C = () => {
82
83
  var t;
83
- w.value = {
84
+ p.value = {
84
85
  unitId: (t = o == null ? void 0 : o.value) == null ? void 0 : t.id
85
86
  }, a.value.refreshData();
86
- }, v = (t) => {
87
- t === "add" && C(), t === "del" && D();
88
- }, C = () => {
87
+ }, V = (t) => {
88
+ t === "add" && v(), t === "del" && b();
89
+ }, v = () => {
89
90
  var t;
90
- e.dataStatus = "add", n.value = "post", u.value = "/uums/role", e.record = {}, e.record.unitId = (t = o == null ? void 0 : o.value) == null ? void 0 : t.id, e.record.enabled = "1", e.record.orgId = R().getOrgId, e.showModalView = !0;
91
+ e.dataStatus = "add", n.value = "post", u.value = "/uums/role", e.record = {}, e.record.unitId = (t = o == null ? void 0 : o.value) == null ? void 0 : t.id, e.record.enabled = "1", e.record.orgId = T().getOrgId, e.showModalView = !0;
91
92
  }, k = (t) => {
92
93
  n.value = "put", u.value = "/uums/role/singleUpdate", e.dataStatus = "update", e.record = t, e.showModalView = !0;
93
- }, D = () => {
94
+ }, b = () => {
94
95
  a.value.getInstance().commitProxy("delete");
95
- }, y = (t) => {
96
+ }, D = (t) => {
96
97
  e.record = t, e.showAuthView = !0;
97
- }, A = (t) => {
98
+ }, y = (t) => {
98
99
  e.record = t, e.showUserView = !0;
99
100
  };
100
- async function U({
101
+ async function A({
101
102
  row: t
102
103
  }) {
103
- await P().put("/uums/role/singleUpdate", t), a.value.refreshData();
104
+ if (t.roleCode === "admin") {
105
+ t.enabled = "1";
106
+ return;
107
+ }
108
+ await R().put("/uums/role/singleUpdate", t), a.value.refreshData();
104
109
  }
105
110
  const m = () => {
106
111
  e.showDrawView = !1, e.showAuthView = !1, e.showUserView = !1;
107
- };
112
+ }, U = (t) => t.roleCode !== "admin";
108
113
  return (t, h) => {
109
- const b = r("ut-grid"), x = r("ut-modal-form");
110
- return d(), E("div", T, [s(b, {
114
+ const x = r("ut-grid"), N = r("ut-modal-form");
115
+ return d(), $("div", H, [s(x, {
111
116
  ref_key: "xgrid",
112
117
  ref: a,
113
- items: p,
118
+ items: w,
114
119
  columns: _,
120
+ "check-method": U,
115
121
  url: "/uums/role",
116
122
  mode: "form",
117
- onButtonClick: v
118
- }, null, 512), e.showAuthView ? (d(), i(q, {
123
+ onButtonClick: V
124
+ }, null, 512), e.showAuthView ? (d(), i(O, {
119
125
  key: 0,
120
126
  show: e.showAuthView,
121
127
  record: e.record,
122
128
  "data-status": e.dataStatus,
123
129
  onOnClose: m
124
- }, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (d(), i(O, {
130
+ }, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (d(), i(P, {
125
131
  key: 1,
126
132
  show: e.showUserView,
127
133
  record: e.record,
128
134
  "data-status": e.dataStatus,
129
135
  onOnClose: m
130
- }, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showModalView ? (d(), i(x, {
136
+ }, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showModalView ? (d(), i(N, {
131
137
  key: 2,
132
138
  ref: "xmodal",
133
139
  record: e.record,
@@ -135,14 +141,14 @@ const T = {
135
141
  url: u.value,
136
142
  method: n.value,
137
143
  width: "400",
138
- height: "220",
144
+ height: "240",
139
145
  "data-status": "update",
140
146
  title: t.$t("message.title.authEdit"),
141
- onClose: h[0] || (h[0] = (j) => e.showModalView = !1)
147
+ onClose: h[0] || (h[0] = (F) => e.showModalView = !1)
142
148
  }, null, 8, ["record", "url", "method", "title"])) : c("", !0)]);
143
149
  };
144
150
  }
145
151
  });
146
152
  export {
147
- J as _
153
+ K as _
148
154
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as N, ref as k, inject as p, watch as A, nextTick as L, resolveComponent as v, createElementBlock as D, openBlock as f, withModifiers as O, createElementVNode as a, createBlock as C, createCommentVNode as g, createVNode as y, toDisplayString as _, withCtx as S, normalizeClass as V } from "vue";
2
- import { q as j } from "./index-DzOzUkf6.js";
1
+ import { defineComponent as N, ref as k, inject as p, watch as A, nextTick as L, resolveComponent as f, createElementBlock as D, openBlock as v, withModifiers as O, createElementVNode as a, createBlock as C, createCommentVNode as g, createVNode as y, toDisplayString as _, withCtx as S, normalizeClass as V } from "vue";
2
+ import { q as j } from "./index-BSj2AtVL.js";
3
3
  const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scrollbar" }, K = /* @__PURE__ */ N({
4
4
  __name: "ScrollPanel",
5
5
  props: {
@@ -10,10 +10,10 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
10
10
  children: "children",
11
11
  label: "label"
12
12
  }) },
13
- extParam: { default: () => ({}) }
13
+ defaultParams: { default: () => ({}) }
14
14
  },
15
- setup(b, { expose: x }) {
16
- const h = b, s = k([]), n = k(null), r = p("active"), c = p("scrollPanelChange"), B = p("treeList");
15
+ setup(b, { expose: B }) {
16
+ const h = b, s = k([]), o = k(null), r = p("active"), c = p("scrollPanelChange"), w = p("treeList");
17
17
  A(
18
18
  () => c.value,
19
19
  () => {
@@ -21,45 +21,45 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
21
21
  }
22
22
  );
23
23
  const u = async (l = {}) => {
24
- const t = Object.assign(l, h.extParam), e = await j().get(h.url, t);
25
- s.value = e.list || e, B.value = e.list || e, r.value = e.list ? e.list[0] : e[0], L(() => {
26
- var o;
27
- n.value && (n == null || n.value.setCurrentKey(((o = r.value) == null ? void 0 : o.id) || ""));
24
+ const t = Object.assign(l, h.defaultParams), e = await j().get(h.url, t);
25
+ s.value = e.list || e, w.value = e.list || e, r.value = e.list ? e.list[0] : e[0], L(() => {
26
+ var n;
27
+ o.value && (o == null || o.value.setCurrentKey(((n = r.value) == null ? void 0 : n.id) || ""));
28
28
  }), c.value = !1;
29
- }, w = (l) => {
29
+ }, x = (l) => {
30
30
  r.value = l;
31
31
  }, P = () => {
32
32
  r.value = {};
33
33
  }, d = (l, t) => {
34
34
  l.forEach((e) => {
35
- var o;
36
- n.value.store.nodesMap[e.id].expanded = t, (o = e.children) != null && o.length && d(e.children, t);
37
- }), console.log("[ tree.value ] >", n.value);
35
+ var n;
36
+ o.value.store.nodesMap[e.id].expanded = t, (n = e.children) != null && n.length && d(e.children, t);
37
+ });
38
38
  }, m = () => {
39
39
  u();
40
40
  };
41
- return x({
41
+ return B({
42
42
  onRefresh: m
43
43
  }), u(), (l, t) => {
44
- const e = v("ut-button"), o = v("vxe-button"), E = v("el-tree");
45
- return f(), D("div", {
44
+ const e = f("ut-button"), n = f("vxe-button"), E = f("el-tree");
45
+ return v(), D("div", {
46
46
  class: "u-scroll-panel",
47
47
  onClick: O(P, ["prevent"])
48
48
  }, [
49
49
  a("div", q, [
50
50
  a("h2", null, _(l.title), 1),
51
- l.showAllButton ? (f(), C(e, {
51
+ l.showAllButton ? (v(), C(e, {
52
52
  key: 0,
53
53
  content: "BtnExpand",
54
54
  onClick: t[0] || (t[0] = (i) => d(s.value, !0))
55
55
  })) : g("", !0),
56
- l.showAllButton ? (f(), C(e, {
56
+ l.showAllButton ? (v(), C(e, {
57
57
  key: 1,
58
58
  status: "warning",
59
59
  content: "BtnCollapse",
60
60
  onClick: t[1] || (t[1] = (i) => d(s.value, !1))
61
61
  })) : g("", !0),
62
- y(o, {
62
+ y(n, {
63
63
  icon: "vxe-icon-refresh",
64
64
  onClick: m
65
65
  })
@@ -67,7 +67,7 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
67
67
  a("div", M, [
68
68
  y(E, {
69
69
  ref_key: "tree",
70
- ref: n,
70
+ ref: o,
71
71
  data: s.value,
72
72
  props: l.treeOtions,
73
73
  "expand-on-click-node": !1,
@@ -75,7 +75,7 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
75
75
  class: "u-tree-panel",
76
76
  "node-key": "id",
77
77
  "highlight-current": "",
78
- onNodeClick: w
78
+ onNodeClick: x
79
79
  }, {
80
80
  default: S(({ node: i }) => [
81
81
  a("span", {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, ref as e, provide as t, createElementBlock as _, openBlock as i, createElementVNode as n, createVNode as a } from "vue";
2
- import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-CaFKRwXu.js";
3
- import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-BhiJ0Q-Q.js";
4
- import { _ as p } from "./index-DzOzUkf6.js";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-BmId6zzA.js";
3
+ import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-GRGn-5t6.js";
4
+ import { _ as p } from "./index-BSj2AtVL.js";
5
5
  const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = { name: "StaffPanel" }, C = /* @__PURE__ */ l({
6
6
  ...v,
7
7
  setup(N) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js";
1
+ import { _ as f } from "./StaffInfo.vue_vue_type_script_setup_true_lang-DiTJY2ug.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as b, ref as u, onMounted as D, resolveComponent as d, createElementBlock as E, openBlock as k, createVNode as n, withCtx as f } from "vue";
1
+ import { defineComponent as b, ref as u, onMounted as D, resolveComponent as r, createElementBlock as E, openBlock as k, createVNode as n, withCtx as f } from "vue";
2
2
  import { useRender as q } from "@utogether/utils";
3
- import { q as _ } from "./index-DzOzUkf6.js";
3
+ import { q as _ } from "./index-BSj2AtVL.js";
4
4
  const F = { class: "config" }, x = /* @__PURE__ */ b({
5
5
  __name: "StaffInfo",
6
6
  props: {
@@ -10,7 +10,7 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
10
10
  },
11
11
  emits: ["onClose"],
12
12
  setup(v, { emit: y }) {
13
- const i = v, t = q(), o = u({}), p = u(null), l = u(!1), R = { userName: "userName", userId: "id" }, w = { disabled: i.dataStatus !== "add" }, g = [
13
+ const i = v, t = q(), d = u({}), p = u(null), l = u(!1), R = { userName: "userName", userId: "id" }, w = { disabled: i.dataStatus !== "add" }, g = [
14
14
  {
15
15
  field: "employeeCode",
16
16
  required: !0,
@@ -39,14 +39,14 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
39
39
  }
40
40
  ];
41
41
  function C(e) {
42
- var r, a, s;
43
- e.row.deptName = ((r = e.item) == null ? void 0 : r.deptName) || e.row.deptName, e.row.deptCode = ((a = e.item) == null ? void 0 : a.deptCode) || e.row.deptCode, e.row.departmentId = ((s = e.item) == null ? void 0 : s.id) || e.row.departmentId;
42
+ var o, a, s;
43
+ e.row.deptName = ((o = e.item) == null ? void 0 : o.deptName) || e.row.deptName, e.row.deptCode = ((a = e.item) == null ? void 0 : a.deptCode) || e.row.deptCode, e.row.departmentId = ((s = e.item) == null ? void 0 : s.id) || e.row.departmentId;
44
44
  }
45
45
  const I = y, N = () => {
46
46
  p.value.validateForm(async (e) => {
47
47
  if (!e) {
48
- const { dataStatus: r } = i;
49
- l.value = !0, console.log(o), r === "add" ? await _().post("/uums/employee", o.value) : await _().put("/uums/employee", o.value), l.value = !1, m();
48
+ const { dataStatus: o } = i;
49
+ l.value = !0, o === "add" ? await _().post("/uums/employee", d.value) : await _().put("/uums/employee", d.value), l.value = !1, m();
50
50
  }
51
51
  });
52
52
  };
@@ -54,9 +54,9 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
54
54
  I("onClose");
55
55
  }
56
56
  return D(() => {
57
- o.value = i.record;
58
- }), (e, r) => {
59
- const a = d("ut-form"), s = d("el-divider"), c = d("ut-button"), S = d("el-row"), h = d("el-drawer");
57
+ d.value = i.record;
58
+ }), (e, o) => {
59
+ const a = r("ut-form"), s = r("el-divider"), c = r("ut-button"), S = r("el-row"), h = r("el-drawer");
60
60
  return k(), E("div", F, [
61
61
  n(h, {
62
62
  "model-value": e.show,
@@ -70,7 +70,7 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
70
70
  n(a, {
71
71
  ref_key: "suFormRef",
72
72
  ref: p,
73
- record: o.value,
73
+ record: d.value,
74
74
  loading: l.value,
75
75
  items: g,
76
76
  "data-status": e.dataStatus
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-BhiJ0Q-Q.js";
1
+ import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-GRGn-5t6.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as b, ref as g, inject as w, reactive as x, watch as y, nextTick as E, resolveComponent as l, createElementBlock as N, openBlock as c, createVNode as d, createBlock as k, createCommentVNode as C, Fragment as S } from "vue";
2
2
  import { clone as D } from "xe-utils";
3
3
  import { warnMessage as M } from "@utogether/utils";
4
- import { _ as B } from "./StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js";
5
- import { q as P } from "./index-DzOzUkf6.js";
4
+ import { _ as B } from "./StaffInfo.vue_vue_type_script_setup_true_lang-DiTJY2ug.js";
5
+ import { q as P } from "./index-BSj2AtVL.js";
6
6
  const A = {
7
7
  class: "page-content"
8
8
  }, s = "/uums/employee", j = /* @__PURE__ */ b({
@@ -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-njefUln5.js";
3
- import { _ as a } from "./index-DzOzUkf6.js";
2
+ import { _ as n } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-BHDrP1Pk.js";
3
+ import { _ as a } from "./index-BSj2AtVL.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-njefUln5.js";
1
+ import { _ as f } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-BHDrP1Pk.js";
2
2
  export {
3
3
  f as default
4
4
  };