@utogether/udp-core 2.0.0-beta.24 → 2.0.0-beta.25

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 (149) hide show
  1. package/dist/403-QwBKrRZE.js +72 -0
  2. package/dist/404-Cr7MbzNV.js +72 -0
  3. package/dist/500-B7kCOeIA.js +77 -0
  4. package/dist/AuthorityInfo-Dwml2K4S.js +91 -0
  5. package/dist/AuthorityPanel-DzPhsPpa.js +98 -0
  6. package/dist/Company-BhOlvl7Q.js +21 -0
  7. package/dist/CompanyPanel-ByhY5-Sq.js +199 -0
  8. package/dist/DataSet-CuGZcKC-.js +141 -0
  9. package/dist/Department-QvngN63N.js +21 -0
  10. package/dist/DepartmentPanel-BCXqC39J.js +2 -0
  11. package/dist/DepartmentPanel-DntGycxr.js +242 -0
  12. package/dist/DesignPanel-BMN4DZ0R.js +1196 -0
  13. package/dist/DictView-ERFqZ5VD.js +100 -0
  14. package/dist/File-WJXjGYxr.js +89 -0
  15. package/dist/InvOrganization-BwMmD8Ua.js +76 -0
  16. package/dist/Org-HgnOWubi.js +76 -0
  17. package/dist/Preview-CVZdnHB1.js +45 -0
  18. package/dist/ReIcon-DecitXmg.js +413 -0
  19. package/dist/ReportDefine-BgLM-Rjk.js +10 -0
  20. package/dist/ReportDesign-CjfTyyy_.js +158 -0
  21. package/dist/ReportQuery-CP-E0Puv.js +101 -0
  22. package/dist/ReportQueryFrom-D7SPPAps.js +198 -0
  23. package/dist/ReportTemplate-DE25zc1f.js +162 -0
  24. package/dist/Role-K7v_ZhFE.js +21 -0
  25. package/dist/RoleAssign-C16fjLaX.js +22 -0
  26. package/dist/RolePanel-CV-xPlYJ.js +176 -0
  27. package/dist/RolePanel-DPCe9k8f.js +131 -0
  28. package/dist/ScrollPanel-DW30pGz1.js +88 -0
  29. package/dist/Staff-w2ly4qd0.js +22 -0
  30. package/dist/StaffInfo-DPDRpz6F.js +149 -0
  31. package/dist/StaffPanel-DI1eTTp9.js +143 -0
  32. package/dist/SysUser-BMTX1cJM.js +12 -0
  33. package/dist/SysUserPanel-xwZdVjdp.js +365 -0
  34. package/dist/SystemMenu-TXhiQZVm.js +154 -0
  35. package/dist/UserInfo-JQqw8FMT.js +194 -0
  36. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +8 -0
  37. package/dist/api-BFNxcxSN.js +30 -0
  38. package/dist/authority-Bi6BGB5B.js +20 -0
  39. package/dist/await-to-js.es5-DkWYmPXW.js +10 -0
  40. package/dist/childView-Bk8OD9bV.js +181 -0
  41. package/dist/childView-CyrcwshT.js +184 -0
  42. package/dist/code-rule-QFrhqFrW.js +151 -0
  43. package/dist/contant-Q77dU_V3.js +4 -0
  44. package/dist/core.es.js +6 -23
  45. package/dist/cron-task-BpUDKEAU.js +131 -0
  46. package/dist/flow-task-DAc2NrDU.js +11 -0
  47. package/dist/frameView-Di0zJZUR.js +39 -0
  48. package/dist/img/v_img.svg +1 -1
  49. package/dist/layout-home-BVp7vYLR.js +239 -0
  50. package/dist/layoutView-DFUjrqAS.js +2662 -0
  51. package/dist/log-in-BrNB0mLz.js +117 -0
  52. package/dist/log-out-dYfqvzy6.js +111 -0
  53. package/dist/login-BdCDnuXL.js +233 -0
  54. package/dist/login-log-CJak-ANA.js +79 -0
  55. package/dist/lov-view-DkmG4K57.js +95 -0
  56. package/dist/menuInfo-kp2wNYOp.js +346 -0
  57. package/dist/mitt-CQgI7DYU.js +27 -0
  58. package/dist/pda-app-CA7YI37u.js +589 -0
  59. package/dist/redirect-N0k4tImU.js +16 -0
  60. package/dist/resource-CfQTHFcs.js +94 -0
  61. package/dist/router-CeluSGiD.js +1531 -0
  62. package/dist/su-welcome-JeiovGpe.js +799 -0
  63. package/dist/sys-config-Ddb3vBpK.js +316 -0
  64. package/dist/udp-core-Dhm-BlAs.js +2032 -0
  65. package/dist/udp-core.css +2 -1
  66. package/dist/useDataThemeChange-BCy8JBG7.js +226 -0
  67. package/dist/useNav-DY8FkltH.js +106 -0
  68. package/dist/utogether-l7JXs4Lv.js +4 -0
  69. package/dist/water-mark-WDQZ9YqB.js +119 -0
  70. package/dist/wecom-push-kWkAVRCj.js +77 -0
  71. package/package.json +1 -1
  72. package/src/api/index.ts +51 -51
  73. package/src/components/udp/index.ts +9 -8
  74. package/src/components/udp/lov/index.vue +430 -0
  75. package/src/components/udp/upload/index.vue +444 -444
  76. package/src/main.ts +110 -111
  77. package/src/plugins/vxe-table/index.ts +1 -1
  78. package/src/plugins/vxe-table/render.tsx +999 -998
  79. package/tsconfig.json +1 -1
  80. package/vite.config.ts +8 -3
  81. package/dist/403-DDCAPCYb.js +0 -65
  82. package/dist/404-BclWW4UB.js +0 -65
  83. package/dist/500-BAggMgTl.js +0 -67
  84. package/dist/AuthorityInfo-liCxYVNc.js +0 -4
  85. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bd5A4CD-.js +0 -100
  86. package/dist/AuthorityPanel-CRlAwbaI.js +0 -4
  87. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js +0 -114
  88. package/dist/Company-DjaOAaWM.js +0 -25
  89. package/dist/CompanyPanel-Dp_2z717.js +0 -206
  90. package/dist/DataSet-DT-rGICv.js +0 -147
  91. package/dist/Department-Bp5RGbl9.js +0 -25
  92. package/dist/DepartmentPanel-Bg4xM4Lx.js +0 -254
  93. package/dist/DesignPanel-BS2ioHd_.js +0 -4
  94. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-DWwfRVCj.js +0 -1013
  95. package/dist/DictView-pYJXt6IS.js +0 -111
  96. package/dist/InvOrganization-D90gRzlN.js +0 -74
  97. package/dist/Org-Dk4KuIx2.js +0 -39
  98. package/dist/Preview-DpZR6uKs.js +0 -48
  99. package/dist/ReportDefine-PtJnfaLw.js +0 -10
  100. package/dist/ReportDesign-4HWkcTtA.js +0 -165
  101. package/dist/ReportQuery-BPY1lWFn.js +0 -75
  102. package/dist/ReportQueryFrom-CHFlkZ42.js +0 -4
  103. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DbbQydKz.js +0 -178
  104. package/dist/ReportTemplate-C2F3oy8I.js +0 -161
  105. package/dist/Role-iTP6DYOi.js +0 -25
  106. package/dist/RoleAssign-DIYNHQeF.js +0 -26
  107. package/dist/RolePanel-0ojFIz9G.js +0 -4
  108. package/dist/RolePanel-B0Yr5vjo.js +0 -4
  109. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CHAj3dCD.js +0 -132
  110. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CXZBxePU.js +0 -154
  111. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-DtNzPRjS.js +0 -101
  112. package/dist/Staff-sftZ0bIV.js +0 -26
  113. package/dist/StaffInfo-BG2FMXzR.js +0 -4
  114. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DzGn0pYY.js +0 -108
  115. package/dist/StaffPanel-BydqiitC.js +0 -4
  116. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-C42Pnb-b.js +0 -154
  117. package/dist/SysUser-qMGVHpJ_.js +0 -15
  118. package/dist/SysUserPanel-Bh1HgSAr.js +0 -4
  119. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BBEMYLQN.js +0 -356
  120. package/dist/SystemMenu-DUbWmLip.js +0 -156
  121. package/dist/UserInfo-DNkiTdWm.js +0 -4
  122. package/dist/UserInfo.vue_vue_type_style_index_0_lang-B1eNklEd.js +0 -160
  123. package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
  124. package/dist/childView-CjUjh8Da.js +0 -4
  125. package/dist/childView-DT9luEEK.js +0 -4
  126. package/dist/childView.vue_vue_type_style_index_0_lang-CgqosFJQ.js +0 -183
  127. package/dist/childView.vue_vue_type_style_index_0_lang-DkXHMFPd.js +0 -143
  128. package/dist/code-rule-uOazxFfn.js +0 -148
  129. package/dist/cron-task-DEykunjo.js +0 -135
  130. package/dist/flow-task-B07st2aD.js +0 -10
  131. package/dist/frameView-FxzlbkeM.js +0 -44
  132. package/dist/index-BnxyUGKa.js +0 -7944
  133. package/dist/layout-home-C0jme8Ju.js +0 -232
  134. package/dist/layoutView-BqMAHIxF.js +0 -3239
  135. package/dist/log-in-skZaWMBY.js +0 -117
  136. package/dist/log-out-BiND7muW.js +0 -130
  137. package/dist/login-C-184YPO.js +0 -235
  138. package/dist/login-log-BEHYT0v0.js +0 -70
  139. package/dist/lov-view-Df-swRfy.js +0 -99
  140. package/dist/menuInfo-CpyjX4a4.js +0 -4
  141. package/dist/menuInfo.vue_vue_type_style_index_0_lang-D09-OKji.js +0 -363
  142. package/dist/pda-app-DP87aTBc.js +0 -710
  143. package/dist/redirect-BqegffKC.js +0 -15
  144. package/dist/resource-CAldbnw4.js +0 -97
  145. package/dist/su-welcome-DoBUqadB.js +0 -42225
  146. package/dist/sys-config-hGuE7DUf.js +0 -385
  147. package/dist/useNav-Cf_e5pBY.js +0 -92
  148. package/dist/utogether-MlnyYtNS.js +0 -4
  149. package/dist/wecom-push-DR7NsNro.js +0 -70
@@ -1,356 +0,0 @@
1
- import { defineComponent as re, reactive as ne, ref as v, inject as ie, createVNode as o, Fragment as x, resolveComponent as r, onMounted as de, createElementBlock as S, openBlock as h, createBlock as N, createCommentVNode as $, withCtx as u, renderList as ue, unref as me } from "vue";
2
- import { useI18n as ce } from "vue-i18n";
3
- import { t as M } from "./await-to-js.es5-Bv3Eu4mi.js";
4
- import { useRender as fe, warnMessage as pe, delay as ge, errorMessage as he, getDictChildren as we } from "@utogether/utils";
5
- import { VxeUI as _ } from "vxe-pc-ui";
6
- import { clone as U, isEmpty as ve } from "xe-utils";
7
- import { i as _e } from "./index-BnxyUGKa.js";
8
- const ye = {
9
- class: "page"
10
- }, i = "/uums/user", xe = /* @__PURE__ */ re({
11
- __name: "SysUserPanel",
12
- setup(be) {
13
- const t = ne({
14
- record: {},
15
- listQuery: {},
16
- dataList: [],
17
- roleList: [],
18
- items: [],
19
- submitLoading: !1,
20
- showModelView: !1,
21
- showUserRole: !1,
22
- showModal: !1,
23
- showAuth: !1,
24
- dataStatus: ""
25
- }), d = _e(), {
26
- t: a
27
- } = ce(), L = {
28
- userName: [{
29
- required: !0,
30
- message: `${a("message.required")}${a("message.userCode")}`
31
- }],
32
- name: [{
33
- required: !0,
34
- message: `${a("message.required")}${a("message.userName")}`
35
- }],
36
- unitId: [{
37
- required: !0,
38
- message: `${a("message.required")}${a("message.unitName")}`
39
- }],
40
- userPwd: [{
41
- required: !0,
42
- message: `${a("message.required")}${a("message.userPwd")}`
43
- }]
44
- }, q = fe(), y = v({}), D = ie("treeList"), c = v(!1);
45
- let w = "";
46
- const E = [{
47
- code: "resetPassword",
48
- status: "warning",
49
- icon: "ri-lock-line",
50
- auth: "batch"
51
- }], m = v(null), A = [{
52
- field: "name",
53
- title: "message.udp.userName"
54
- }, {
55
- field: "userName",
56
- title: "message.udp.userCode"
57
- }, {
58
- field: "type",
59
- title: "message.udp.userType",
60
- code: "SU.USER.TYPE"
61
- }], I = [{
62
- type: "checkbox",
63
- width: 40,
64
- align: "center"
65
- }, {
66
- field: "userName",
67
- title: "message.udp.userCode"
68
- }, {
69
- field: "name",
70
- title: "message.udp.userName"
71
- }, {
72
- field: "type",
73
- title: "message.udp.userType",
74
- formatter: ["formatDict", "SU.USER.TYPE"]
75
- }, {
76
- field: "enabled",
77
- width: 80,
78
- cellRender: q.renderEnabled(O)
79
- }, {
80
- field: "operate",
81
- width: 150,
82
- fixed: "right",
83
- slots: {
84
- default: ({
85
- row: e
86
- }) => [o(x, null, [o(r("ut-button"), {
87
- content: "edit",
88
- icon: "ri-edit-line",
89
- onTap: () => Y(e)
90
- }, null), o(r("ut-dropdown"), {
91
- buttons: B(),
92
- onCommand: (s) => T(e, s)
93
- }, null)])]
94
- }
95
- }], T = (e, s) => {
96
- s === "role" && Q(e), s === "auth" && J(e), s === "passwordReset" && W(e);
97
- }, B = () => [{
98
- code: "role",
99
- icon: "ri-user-fill"
100
- }, {
101
- code: "auth",
102
- icon: "ri-lock-fill"
103
- }, {
104
- code: "passwordReset",
105
- icon: "ri-lock-password-line"
106
- }], C = [{
107
- field: "userName",
108
- title: "message.udp.userCode",
109
- required: !0,
110
- disabled: !1
111
- }, {
112
- field: "name",
113
- title: "message.udp.userName",
114
- required: !0
115
- }, {
116
- field: "type",
117
- required: !0,
118
- title: "message.udp.userType",
119
- code: "SU.USER.TYPE"
120
- }, {
121
- field: "userPwd",
122
- required: !0,
123
- visibleMethod: ({
124
- data: e
125
- }) => !e.id
126
- }], F = () => {
127
- t.record = {
128
- userPwd: w,
129
- ...y.value,
130
- type: "system"
131
- }, t.items = U(C, !0), t.height = 280, t.showModal = !0;
132
- }, Y = (e) => {
133
- t.record = U(e, !0), t.items = U(C, !0), t.items[0].disabled = !0, t.height = 240, t.showModal = !0;
134
- }, j = () => {
135
- m.value.getInstance().commitProxy("delete");
136
- }, z = (e) => [e], H = () => {
137
- m.value.refreshData();
138
- };
139
- async function O({
140
- row: e
141
- }) {
142
- await M(d.put(i, [e])), m.value.refreshData();
143
- }
144
- const Q = async (e) => {
145
- var l;
146
- t.roleList = [], t.showUserRole = !0, c.value = !0;
147
- const s = await d.get(i + "/getUserRole", {
148
- userName: e.userName
149
- });
150
- c.value = !1, t.roleList = (l = s[0]) == null ? void 0 : l.sysRoles;
151
- }, W = async (e) => {
152
- await _.modal.confirm(a("message.tip.confirmResetPassword")) === "confirm" && (await d.put(i + "/resetPwd", e), await _.modal.alert(a("message.tip.initPassword", {
153
- code: w
154
- })));
155
- }, G = async () => {
156
- const e = m.value.getSelectRecords();
157
- if (!e.length || await _.modal.confirm(a("message.tip.confirmResetPassword")) !== "confirm") return;
158
- const l = e.map((f) => ({
159
- id: f.id
160
- }));
161
- await d.put(i + "/batchUpdatePwd", l), await _.modal.alert(a("message.tip.initPassword", {
162
- code: w
163
- })), m.value.refreshData();
164
- }, J = async (e) => {
165
- var f;
166
- t.roleList = [], t.showAuth = !0, c.value = !0, t.record = e;
167
- const [s, l] = await M(d.get(i + "/getUserRole", {
168
- userName: e.userName
169
- }));
170
- c.value = !1, s || (ve(l) ? pe(a("message.tip.emptyAuth")) : t.roleList = (f = l[0]) == null ? void 0 : f.sysMenuExts);
171
- }, R = v(null), K = () => {
172
- R.value.validate(async (e) => {
173
- if (!e) {
174
- const {
175
- record: s,
176
- dataStatus: l
177
- } = t;
178
- l === "add" ? await d.post(i, s) : await d.put(i, s), V();
179
- }
180
- });
181
- }, V = () => {
182
- t.showModelView = !1;
183
- }, X = (e) => {
184
- e === "add" && F(), e === "del" && j(), e === "resetPassword" && G();
185
- }, Z = () => {
186
- d.get("/uums/unit", {
187
- pageSize: 10
188
- }).then(async (e) => {
189
- y.value = {
190
- unitId: e[0].id,
191
- enabled: "1"
192
- }, await ge(100), m.value.refreshData();
193
- }).catch(() => {
194
- he("获取租户失败,刷新后重试");
195
- });
196
- }, ee = () => {
197
- var s;
198
- w = ((s = we("SU.DEFAULT_PASSWORD")) == null ? void 0 : s.find((l) => l.dictCode === "default")).dictName;
199
- };
200
- return de(() => {
201
- ee(), Z();
202
- }), (e, s) => {
203
- const l = r("ut-grid"), f = r("vxe-option"), te = r("vxe-select"), p = r("vxe-form-item"), k = r("ut-button"), se = r("vxe-form"), b = r("vxe-modal"), P = r("vxe-column"), oe = r("vxe-table"), ae = r("el-tree-v2"), le = r("ut-modal-form");
204
- return h(), S("div", ye, [o(l, {
205
- ref_key: "xgrid",
206
- ref: m,
207
- columns: I,
208
- items: A,
209
- url: i,
210
- "auto-load": !1,
211
- "default-params": y.value,
212
- buttons: E,
213
- mode: "form",
214
- onButtonClick: X
215
- }, null, 8, ["default-params"]), o(b, {
216
- modelValue: t.showModelView,
217
- "onUpdate:modelValue": s[0] || (s[0] = (n) => t.showModelView = n),
218
- title: "用户信息",
219
- width: "300"
220
- }, {
221
- default: u(() => [o(se, {
222
- ref_key: "xForm",
223
- ref: R,
224
- data: t.record,
225
- rules: L,
226
- "title-align": "right"
227
- }, {
228
- default: u(() => [o(p, {
229
- title: e.$t("message.unitName"),
230
- field: "unitId",
231
- span: "24"
232
- }, {
233
- default: u(({
234
- data: n
235
- }) => [o(te, {
236
- modelValue: n.unitId,
237
- "onUpdate:modelValue": (g) => n.unitId = g
238
- }, {
239
- default: u(() => [(h(!0), S(x, null, ue(me(D), (g) => (h(), N(f, {
240
- key: g.id,
241
- value: g.id,
242
- label: g.unitName
243
- }, null, 8, ["value", "label"]))), 128))]),
244
- _: 2
245
- }, 1032, ["modelValue", "onUpdate:modelValue"])]),
246
- _: 1
247
- }, 8, ["title"]), o(p, {
248
- title: e.$t("message.userCode"),
249
- "item-render": {
250
- name: "input",
251
- attrs: {
252
- disabled: t.dataStatus === "update"
253
- }
254
- },
255
- field: "userName",
256
- span: "24"
257
- }, null, 8, ["title", "item-render"]), o(p, {
258
- title: e.$t("message.userName"),
259
- field: "name",
260
- span: "24",
261
- "item-render": {
262
- name: "input"
263
- }
264
- }, null, 8, ["title"]), t.dataStatus === "add" ? (h(), N(p, {
265
- key: 0,
266
- title: e.$t("message.userPwd"),
267
- "item-render": {
268
- name: "input"
269
- },
270
- field: "userPwd",
271
- span: "24"
272
- }, null, 8, ["title"])) : $("", !0), o(p, {
273
- align: "right",
274
- span: "24"
275
- }, {
276
- default: u(() => [o(k, {
277
- content: "cancel",
278
- icon: "ri-close-fill",
279
- onClick: V
280
- }), o(k, {
281
- content: "confirm",
282
- icon: "ri-save-3-fill",
283
- status: "u-cyan",
284
- onClick: K
285
- })]),
286
- _: 1
287
- })]),
288
- _: 1
289
- }, 8, ["data"])]),
290
- _: 1
291
- }, 8, ["modelValue"]), o(b, {
292
- modelValue: t.showUserRole,
293
- "onUpdate:modelValue": s[1] || (s[1] = (n) => t.showUserRole = n),
294
- loading: c.value,
295
- title: e.$t("message.title.roleInfo"),
296
- width: "600"
297
- }, {
298
- default: u(() => [o(oe, {
299
- height: "300",
300
- data: t.roleList,
301
- border: ""
302
- }, {
303
- default: u(() => [o(P, {
304
- type: "seq",
305
- width: "60"
306
- }), o(P, {
307
- field: "roleName",
308
- title: e.$t("message.udp.roleName")
309
- }, null, 8, ["title"]), o(P, {
310
- field: "roleDesc",
311
- title: e.$t("message.udp.roleDesc")
312
- }, null, 8, ["title"])]),
313
- _: 1
314
- }, 8, ["data"])]),
315
- _: 1
316
- }, 8, ["modelValue", "loading", "title"]), o(b, {
317
- modelValue: t.showAuth,
318
- "onUpdate:modelValue": s[2] || (s[2] = (n) => t.showAuth = n),
319
- loading: c.value,
320
- title: e.$t("message.title.authority", {
321
- role: t.record.name || "88888"
322
- }),
323
- height: "620",
324
- width: "560"
325
- }, {
326
- default: u(() => [o(ae, {
327
- ref: "xTree",
328
- data: t.roleList,
329
- props: {
330
- children: "children",
331
- label: "menuName"
332
- },
333
- height: 560,
334
- "node-key": "id"
335
- }, null, 8, ["data"])]),
336
- _: 1
337
- }, 8, ["modelValue", "loading", "title"]), t.showModal ? (h(), N(le, {
338
- key: 0,
339
- record: t.record,
340
- items: t.items,
341
- width: 360,
342
- height: t.height,
343
- method: t.record.id ? "put" : "post",
344
- "data-process-method": z,
345
- title: e.$t("message.title.userInfo"),
346
- "data-status": "update",
347
- url: i,
348
- onClose: s[3] || (s[3] = (n) => t.showModal = !1),
349
- onConfirm: H
350
- }, null, 8, ["record", "items", "height", "method", "title"])) : $("", !0)]);
351
- };
352
- }
353
- });
354
- export {
355
- xe as _
356
- };
@@ -1,156 +0,0 @@
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-D09-OKji.js";
4
- import { _ as P } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js";
5
- import { clone as f } from "xe-utils";
6
- import { t as R } from "./await-to-js.es5-Bv3Eu4mi.js";
7
- import { VxeUI as M } from "vxe-pc-ui";
8
- import { useRender as U } from "@utogether/utils";
9
- import { i as W } from "./index-BnxyUGKa.js";
10
- const B = {
11
- class: "page-content"
12
- }, L = {
13
- name: "SystemMenu"
14
- }, G = /* @__PURE__ */ k({
15
- ...L,
16
- setup(z) {
17
- const t = S({
18
- record: {},
19
- dataList: [],
20
- submitLoading: !1,
21
- showDrawer: !1,
22
- dataStatus: "",
23
- total: 0,
24
- listQuery: {
25
- pageSize: 10,
26
- pageNum: 1
27
- }
28
- }), {
29
- t: g
30
- } = I(), C = U(), d = W(), a = D(null), s = "/uums/menu";
31
- let l;
32
- const y = [{
33
- type: "checkbox",
34
- width: 50,
35
- align: "center"
36
- }, {
37
- field: "menuName",
38
- minWidth: 220,
39
- treeNode: !0
40
- }, {
41
- field: "menuNameEn",
42
- minWidth: 180
43
- }, {
44
- field: "sort",
45
- width: 70
46
- }, {
47
- field: "menuCode",
48
- minWidth: 220
49
- }, {
50
- field: "permissionCode",
51
- minWidth: 180
52
- }, {
53
- field: "menuCategory",
54
- title: "message.menuType",
55
- formatter: ["formatDict", "SU.MENU.TYPE"],
56
- width: 100
57
- }, {
58
- field: "enabled",
59
- width: 80,
60
- cellRender: C.renderEnabled(b)
61
- }, {
62
- field: "operate",
63
- width: 140,
64
- fixed: "right",
65
- slots: {
66
- default: ({
67
- row: e
68
- }) => {
69
- const n = e.menuType, r = o(i("ut-button"), {
70
- status: "u-cyan",
71
- icon: "ri-add-fill",
72
- content: "add",
73
- onTap: () => u(e)
74
- }, null), m = o(i("ut-button"), {
75
- icon: "ri-lock-fill",
76
- content: "auth",
77
- onTap: () => v(e)
78
- }, null);
79
- return [o(h, null, [n ? null : o(h, null, [o(i("ut-button"), {
80
- status: "success",
81
- icon: "ri-edit-box-line",
82
- content: "edit",
83
- onTap: () => T(e)
84
- }, null), ["0", "5"].includes(e.menuCategory) ? r : m])])];
85
- }
86
- }
87
- }], w = ({
88
- code: e
89
- }) => {
90
- e === "add" && u(), e === "del" && x();
91
- }, _ = async ({
92
- row: e
93
- }) => {
94
- const n = await d.get(s, {
95
- parentId: e.id
96
- });
97
- return new Promise((r) => {
98
- r(n.list);
99
- });
100
- }, u = (e) => {
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
- }, 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
- };
105
- async function b({
106
- row: e
107
- }) {
108
- await d.put(s, [e]), a.value.refreshData();
109
- }
110
- const x = async () => {
111
- const e = await M.modal.confirm(g("message.delRecord")), n = a.value.getInstance().getCheckboxRecords();
112
- if (e === "confirm") {
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();
117
- }
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;
122
- };
123
- return (e, n) => {
124
- const r = i("ut-grid");
125
- return E(), A("div", B, [o(r, {
126
- ref_key: "xgrid",
127
- ref: a,
128
- "tree-config": {
129
- childrenField: "children",
130
- lazy: !0,
131
- hasChild: "hasChildren",
132
- loadMethod: _,
133
- iconOpen: "ri-checkbox-indeterminate-line ri-lg",
134
- iconClose: "ri-add-box-line ri-lg"
135
- },
136
- columns: y,
137
- url: s,
138
- stripe: !1,
139
- mode: "form",
140
- onToolbarButtonClick: w
141
- }, null, 8, ["tree-config"]), o(N, {
142
- show: t.showDrawer,
143
- record: t.record,
144
- "data-status": t.dataStatus,
145
- onClose: c
146
- }, null, 8, ["show", "record", "data-status"]), o(P, {
147
- show: t.showAuthority,
148
- record: t.record,
149
- onClose: c
150
- }, null, 8, ["show", "record"])]);
151
- };
152
- }
153
- });
154
- export {
155
- G as default
156
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-B1eNklEd.js";
2
- export {
3
- f as default
4
- };
@@ -1,160 +0,0 @@
1
- import { defineComponent as R, ref as l, 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
- import { t as S } from "./await-to-js.es5-Bv3Eu4mi.js";
3
- import { i as V } from "./index-BnxyUGKa.js";
4
- const q = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ R({
5
- __name: "UserInfo",
6
- props: {
7
- record: { default: () => ({}) },
8
- show: { type: Boolean, default: !1 },
9
- direction: { default: "rtl" }
10
- },
11
- emits: ["onClose"],
12
- setup(p, { emit: f }) {
13
- const r = p, g = l(!1), o = l(!1), a = V(), h = f, b = [
14
- {
15
- field: "userName",
16
- title: "message.udp.userCode",
17
- span: 8,
18
- itemRender: { name: "$input" }
19
- },
20
- {
21
- field: "name",
22
- title: "message.udp.userName",
23
- span: 8,
24
- itemRender: { name: "$input" }
25
- },
26
- {
27
- span: 8,
28
- align: "right",
29
- itemRender: {
30
- name: "$buttons",
31
- children: [
32
- {
33
- props: {
34
- type: "submit",
35
- content: "message.btn.search",
36
- icon: "ri-search-line",
37
- status: "primary"
38
- }
39
- },
40
- { props: { type: "reset", icon: "ri-refresh-line", content: "message.btn.reset" } }
41
- ]
42
- }
43
- }
44
- ], v = [
45
- { type: "checkbox", width: 50, align: "center" },
46
- {
47
- field: "userName",
48
- title: "message.udp.userCode"
49
- },
50
- {
51
- field: "name",
52
- title: "message.udp.userName"
53
- },
54
- {
55
- field: "enabled",
56
- title: "message.enabled",
57
- width: 70,
58
- editRender: {
59
- name: "$select",
60
- options: [
61
- { label: "启用", value: "1" },
62
- { label: "禁用", value: "0" }
63
- ],
64
- defaultValue: "1"
65
- }
66
- }
67
- ], C = [
68
- { code: "add", name: "message.btn.add", status: "u-cyan", icon: "ri-add-line" },
69
- { code: "delete", name: "message.btn.del", status: "danger", icon: "ri-delete-bin-5-fill" }
70
- ], y = [
71
- { field: "userName", title: "message.udp.userCode", span: 9 },
72
- { field: "name", title: "message.udp.userName", span: 9 }
73
- ], w = [
74
- { type: "checkbox", width: 40 },
75
- { field: "userName", title: "message.udp.userCode" },
76
- { field: "name", title: "message.udp.userName" },
77
- { field: "enabled", width: 70, formatter: ["formatDict", "SU.ENABLE"] }
78
- ], u = l({}), n = x({
79
- height: "auto",
80
- border: !0,
81
- pagerConfig: {},
82
- toolbarConfig: { buttons: C, perfect: !0 },
83
- loading: !1,
84
- formConfig: { titleWidth: 100, titleAlign: "right", items: b },
85
- // data: props.record.children,
86
- proxyConfig: {
87
- form: !0,
88
- // 查询是需要启用表单代理
89
- ajax: {
90
- // 接收 Promise
91
- query: ({ page: e, form: s }) => {
92
- const t = Object.assign({}, s);
93
- return t.id = r.record.id, t.pageNum = e.currentPage, t.pageSize = e.pageSize, a.get("/uums/user/listRoleUsers", t);
94
- },
95
- // body 对象: { removeRecords }
96
- delete: ({ body: { removeRecords: e } }) => {
97
- const s = {
98
- roleId: r.record.id,
99
- userIds: e.map((t) => t.id).join()
100
- };
101
- return a.delete("/uums/role/deleteRoleUsers", s);
102
- }
103
- }
104
- },
105
- columns: v
106
- }), _ = {
107
- toolbarButtonClick({ code: e }) {
108
- e === "add" && (o.value = !0);
109
- }
110
- }, N = async (e) => {
111
- const s = { userIds: "", roleId: r.record.id };
112
- s.userIds = e.map((i) => i.id).join(","), n.loading = !0;
113
- const [t] = await S(a.post("/uums/role/addUserRole", s));
114
- n.loading = !1, t || (u.value.commitProxy("query"), o.value = !1);
115
- };
116
- function I() {
117
- h("onClose");
118
- }
119
- return B(() => {
120
- g.value = !0;
121
- }), (e, s) => {
122
- const t = d("vxe-grid"), i = d("ut-modal-grid"), k = d("el-drawer");
123
- return m(), U("div", q, [
124
- c(k, {
125
- "model-value": e.show,
126
- title: e.$t("message.title.authUser", { role: e.record.roleName }),
127
- "before-close": I,
128
- direction: "rtl",
129
- "destroy-on-close": "",
130
- size: "80%"
131
- }, {
132
- default: $(() => [
133
- c(t, E({
134
- ref_key: "xgrid",
135
- ref: u
136
- }, n, P(_)), null, 16),
137
- o.value ? (m(), j(i, {
138
- key: 0,
139
- url: "/uums/user/listUserToRole",
140
- "default-params": { roleId: e.record.id },
141
- items: y,
142
- columns: w,
143
- "show-footer": !0,
144
- editable: !1,
145
- title: e.$t("message.udp.userList"),
146
- width: "60%",
147
- height: "75%",
148
- onClose: s[0] || (s[0] = (z) => o.value = !1),
149
- onConfirm: N
150
- }, null, 8, ["default-params", "title"])) : A("", !0)
151
- ]),
152
- _: 1
153
- }, 8, ["model-value", "title"])
154
- ]);
155
- };
156
- }
157
- });
158
- export {
159
- D as _
160
- };
@@ -1,10 +0,0 @@
1
- function c(u, t) {
2
- return u.then(function(n) {
3
- return [null, n];
4
- }).catch(function(n) {
5
- return t && Object.assign(n, t), [n, void 0];
6
- });
7
- }
8
- export {
9
- c as t
10
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-CgqosFJQ.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-DkXHMFPd.js";
2
- export {
3
- f as default
4
- };