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

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 (140) hide show
  1. package/build/plugins.ts +39 -32
  2. package/dist/{403-Dp617CWX.js → 403-Ctxjn4q8.js} +1 -1
  3. package/dist/{404-Cz_Axb6Y.js → 404-W5yzyiZ9.js} +1 -1
  4. package/dist/{500-BGCtRNse.js → 500-DXuGEOm4.js} +1 -1
  5. package/dist/{AuthorityInfo-DGGfm7IS.js → AuthorityInfo-C2tflCt8.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-SVgy3HX7.js +100 -0
  7. package/dist/{Company-IV3GTnzY.js → Company-PLez5GoH.js} +3 -3
  8. package/dist/{CompanyPanel-qV-_VtoL.js → CompanyPanel-CIGaQooL.js} +16 -16
  9. package/dist/{Department-B3W-OxW8.js → Department-B9wLsXFm.js} +3 -3
  10. package/dist/{DepartmentPanel-Cw3OWxE7.js → DepartmentPanel-DSM4lTaz.js} +1 -1
  11. package/dist/{DesignPanel-BFxR2fHJ.js → DesignPanel-B6a9wW_A.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DljbeFba.js → DesignPanel.vue_vue_type_style_index_0_lang-DtHfoDQk.js} +24 -26
  13. package/dist/DictView-DhFbQxdJ.js +110 -0
  14. package/dist/InvOrganization-D90AbR3b.js +66 -0
  15. package/dist/Org-DxBkYabD.js +39 -0
  16. package/dist/{Preview-BlDMmpdR.js → Preview-BFtRpBxw.js} +1 -1
  17. package/dist/{ReportDefine-Cub_85LA.js → ReportDefine-BIa2QryC.js} +1 -1
  18. package/dist/{ReportDesign-hFhq5UVE.js → ReportDesign-CnyjI-WD.js} +43 -43
  19. package/dist/{ReportQuery-ChkWEyxT.js → ReportQuery-BiK7yEhV.js} +1 -1
  20. package/dist/{ReportQueryFrom-KVyD_8Dj.js → ReportQueryFrom-C2rqdFTm.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CLNODquq.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Ba9HLnXQ.js} +1 -1
  22. package/dist/{ReportTemplate-ag9NDvh2.js → ReportTemplate-DdkLscP3.js} +28 -28
  23. package/dist/{Role-_q3lQ8CZ.js → Role-BrsxgK8D.js} +6 -6
  24. package/dist/{RoleAssign-DZb9IRsm.js → RoleAssign-DiqwJqDa.js} +8 -8
  25. package/dist/{RolePanel-CsLsz-Ds.js → RolePanel-BDusGyo7.js} +1 -1
  26. package/dist/{RolePanel-BQb1LlhD.js → RolePanel-Dqx5dI3f.js} +1 -1
  27. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-2Z1q_5uW.js +132 -0
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BrnRgHEk.js → RolePanel.vue_vue_type_script_setup_true_lang-B5lUnaMI.js} +44 -38
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CaFKRwXu.js → ScrollPanel.vue_vue_type_style_index_0_lang-vSP23fEq.js} +21 -21
  30. package/dist/{Staff-BSf9Ypbk.js → Staff-Cwi9LQiZ.js} +3 -3
  31. package/dist/{StaffInfo-BNKasyMF.js → StaffInfo-XjVtyaMv.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js → StaffInfo.vue_vue_type_script_setup_true_lang-wSrAuyet.js} +11 -11
  33. package/dist/{StaffPanel-Bpq0WVlH.js → StaffPanel-C-wYcFdv.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-DZNArmnC.js} +2 -2
  35. package/dist/{SysUser-FAABuNti.js → SysUser-O4tvr-Ur.js} +2 -2
  36. package/dist/{SysUserPanel-PxJeOgHm.js → SysUserPanel-B853docZ.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DhiYYC97.js +294 -0
  38. package/dist/{SystemMenu-C-7NAGon.js → SystemMenu-CXR6mrXr.js} +26 -26
  39. package/dist/{UserInfo-ClXKtyGo.js → UserInfo-BkP8pE2a.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-8N7P4Hl7.js → UserInfo.vue_vue_type_style_index_0_lang-D4r_umjV.js} +39 -37
  41. package/dist/{childView-C_HmDQNd.js → childView-D0HwbgDT.js} +1 -1
  42. package/dist/{childView-uUlBcTza.js → childView-TRqUkSDC.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-Ckjmw6wJ.js → childView.vue_vue_type_style_index_0_lang-BzISq0Jf.js} +40 -40
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-y0sDvYx5.js → childView.vue_vue_type_style_index_0_lang-DQRgNsJY.js} +1 -1
  45. package/dist/{code-rule-AgCVDKFy.js → code-rule-BV7PQWhK.js} +9 -10
  46. package/dist/core.es.js +14 -11
  47. package/dist/{cron-task-C6FgQxTi.js → cron-task-9ZS9bi7K.js} +1 -1
  48. package/dist/{frameView-BDgISK7N.js → frameView-DE83AN50.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-DVARtten.js +2623 -0
  53. package/dist/{layoutView-yb3DV2DQ.js → layoutView-D1U-c4By.js} +111 -110
  54. package/dist/{login-log-CvVnyGi3.js → login-log-kqKzKTto.js} +1 -1
  55. package/dist/{login-RRpljbkm.js → login-sPCEiTGT.js} +106 -113
  56. package/dist/{lov-view-C9-rjzZR.js → lov-view-76NcYTYl.js} +2 -2
  57. package/dist/{menuInfo-CzPQyFhp.js → menuInfo-CxjfjFpm.js} +1 -1
  58. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BumXunCg.js → menuInfo.vue_vue_type_style_index_0_lang-C2qahH3r.js} +100 -97
  59. package/dist/{pda-app-Dvy3U-b6.js → pda-app-BUH16bLj.js} +211 -197
  60. package/dist/{resource-Fy0lFkSV.js → resource-CCuHzoA6.js} +15 -15
  61. package/dist/{su-welcome-DYvSCUST.js → su-welcome-mRArONsd.js} +109 -110
  62. package/dist/{sys-config-DJ1vNQTy.js → sys-config-Cvt05yF6.js} +7 -7
  63. package/dist/udp-core.css +2 -2
  64. package/dist/{utogether-CjmJiHoE.js → utogether-Dm_VBQHR.js} +1 -1
  65. package/index.ts +40 -36
  66. package/package.json +1 -1
  67. package/src/App.vue +65 -70
  68. package/src/api/index.ts +1 -1
  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 +11 -2
  81. package/src/components/udp/modal-grid.vue +288 -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 +1 -1
  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-sidebar/breadCrumb.vue +1 -1
  89. package/src/layout/components/lay-tag/index.vue +625 -625
  90. package/src/layout/layoutView.vue +215 -215
  91. package/src/main.ts +23 -13
  92. package/src/plugins/i18n/en.ts +302 -289
  93. package/src/plugins/i18n/zh.ts +348 -337
  94. package/src/plugins/vxe-table/index.ts +53 -46
  95. package/src/plugins/vxe-table/render.tsx +956 -817
  96. package/src/router/index.ts +187 -183
  97. package/src/router/modules/remaining.ts +58 -83
  98. package/src/style/button.scss +85 -78
  99. package/src/style/tailwind.css +1 -68
  100. package/src/style/vxetable.scss +44 -11
  101. package/src/utils/authority/index.ts +1 -1
  102. package/src/utils/{http → udp/http}/index.ts +8 -24
  103. package/src/utils/{http → udp/http}/types.d.ts +8 -5
  104. package/src/utils/udp/useRender.ts +17 -6
  105. package/src/views/login/login-view.vue +2 -2
  106. package/src/views/organization/company/CompanyPanel.vue +259 -259
  107. package/src/views/organization/inv-org/InvOrganization.vue +2 -3
  108. package/src/views/organization/org/Org.vue +9 -5
  109. package/src/views/system/menu/SystemMenu.vue +183 -197
  110. package/src/views/system/menu/menuInfo.vue +363 -371
  111. package/src/views/system/role/AuthorityInfo.vue +19 -15
  112. package/src/views/system/role/Role.vue +1 -5
  113. package/src/views/system/role/RolePanel.vue +11 -2
  114. package/src/views/system/role/UserInfo.vue +195 -193
  115. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  116. package/src/views/system/role-assign/RolePanel.vue +139 -136
  117. package/src/views/system/sys/sys-config.vue +1 -1
  118. package/src/views/system/sysUser/SysUserPanel.vue +278 -278
  119. package/src/views/uapp/pda/pda-app.vue +208 -176
  120. package/src/views/udev/dict/DictView.vue +118 -106
  121. package/src/views/udev/dict/childView.vue +7 -7
  122. package/src/views/udev/lov/lov-view.vue +91 -91
  123. package/src/views/ufile/aggregation/File.vue +5 -5
  124. package/src/views/ufile/file/water-mark.vue +14 -14
  125. package/src/views/uhome/su-welcome.vue +3 -3
  126. package/src/views/ulogin/login.vue +14 -9
  127. package/src/views/upms/user/login-log.vue +1 -1
  128. package/src/views/urpt/design/DesignPanel.vue +507 -526
  129. package/src/views/urpt/design/ReportDesign.vue +15 -19
  130. package/src/views/urpt/static-resource/resource.vue +3 -3
  131. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  132. package/types/global.d.ts +2 -1
  133. package/vite.config.ts +6 -2
  134. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BqccGW7v.js +0 -102
  135. package/dist/DictView-C-i7e4hZ.js +0 -95
  136. package/dist/InvOrganization-cfT6riGU.js +0 -260
  137. package/dist/Org-CA7vTDIF.js +0 -35
  138. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-cmW7zBLu.js +0 -126
  139. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-njefUln5.js +0 -288
  140. package/dist/index-DzOzUkf6.js +0 -3388
@@ -0,0 +1,294 @@
1
+ import { defineComponent as z, reactive as G, ref as h, inject as H, createVNode as s, Fragment as U, resolveComponent as l, onMounted as Q, createElementBlock as $, openBlock as v, withCtx as i, createBlock as k, createCommentVNode as J, renderList as K, unref as O } from "vue";
2
+ import { useI18n as W } from "vue-i18n";
3
+ import { t as q } from "./await-to-js.es5-BtRbN2QH.js";
4
+ import { useRender as X, warnMessage as Z, delay as ee, errorMessage as te } from "@utogether/utils";
5
+ import { VxeUI as se } from "vxe-pc-ui";
6
+ import { isEmpty as ae } from "xe-utils";
7
+ import { q as le } from "./index-DVARtten.js";
8
+ const re = {
9
+ class: "page"
10
+ }, u = "/uums/user", fe = /* @__PURE__ */ z({
11
+ __name: "SysUserPanel",
12
+ setup(oe) {
13
+ const t = G({
14
+ record: {},
15
+ listQuery: {},
16
+ dataList: [],
17
+ roleList: [],
18
+ submitLoading: !1,
19
+ showModelView: !1,
20
+ showUserRole: !1,
21
+ showAuth: !1,
22
+ dataStatus: ""
23
+ }), d = le(), {
24
+ t: r
25
+ } = W(), L = {
26
+ userName: [{
27
+ required: !0,
28
+ message: `${r("message.required")}${r("message.userCode")}`
29
+ }],
30
+ name: [{
31
+ required: !0,
32
+ message: `${r("message.required")}${r("message.userName")}`
33
+ }],
34
+ unitId: [{
35
+ required: !0,
36
+ message: `${r("message.required")}${r("message.unitName")}`
37
+ }],
38
+ userPwd: [{
39
+ required: !0,
40
+ message: `${r("message.required")}${r("message.userPwd")}`
41
+ }]
42
+ }, c = X(), w = h({}), C = H("treeList"), m = h(!1), _ = h(null), I = [{
43
+ field: "name",
44
+ title: "message.udp.userName"
45
+ }, {
46
+ field: "userName",
47
+ title: "message.udp.userCode"
48
+ }], y = [{
49
+ type: "checkbox",
50
+ width: 40,
51
+ align: "center"
52
+ }, {
53
+ field: "userName",
54
+ title: "message.udp.userCode",
55
+ required: !0,
56
+ editRender: c.renderInput()
57
+ }, {
58
+ field: "name",
59
+ title: "message.udp.userName",
60
+ required: !0,
61
+ editRender: c.renderInput()
62
+ }, {
63
+ field: "type",
64
+ title: "message.udp.userType",
65
+ formatter: ["formatDict", "SU.USER.TYPE"],
66
+ editRender: c.renderDict("SU.USER.TYPE")
67
+ }, {
68
+ field: "userPwd",
69
+ required: !0,
70
+ width: 150,
71
+ editRender: c.renderInput(),
72
+ formatter: () => "*******"
73
+ }, {
74
+ field: "enabled",
75
+ width: 80,
76
+ cellRender: c.renderEnabled(P)
77
+ }, {
78
+ field: "operate",
79
+ width: 240,
80
+ fixed: "right",
81
+ slots: {
82
+ default: ({
83
+ row: e
84
+ }) => e.id ? [s(U, null, [s(l("ut-button"), {
85
+ icon: "ri-user-fill",
86
+ content: "role",
87
+ onTap: () => S(e)
88
+ }, null), s(l("ut-button"), {
89
+ icon: "ri-lock-fill",
90
+ content: "auth",
91
+ status: "success",
92
+ onTap: () => E(e)
93
+ }, null), s(l("ut-button"), {
94
+ icon: "ri-lock-fill",
95
+ content: "passwordReset",
96
+ status: "warning",
97
+ onTap: () => A(e)
98
+ }, null)])] : null
99
+ }
100
+ }];
101
+ async function P({
102
+ row: e
103
+ }) {
104
+ await q(d.put(u, [e])), _.value.refreshData();
105
+ }
106
+ const S = async (e) => {
107
+ var o;
108
+ t.roleList = [], t.showUserRole = !0, m.value = !0;
109
+ const a = await d.get(u + "/getUserRole", {
110
+ userName: e.userName
111
+ });
112
+ m.value = !1, t.roleList = (o = a[0]) == null ? void 0 : o.sysRoles;
113
+ }, A = async (e) => {
114
+ await d.put(u + "/resetPwd", e), await se.modal.alert(r("message.tip.initPassword"));
115
+ }, E = async (e) => {
116
+ var g;
117
+ t.roleList = [], t.showAuth = !0, m.value = !0, t.record = e;
118
+ const [a, o] = await q(d.get(u + "/getUserRole", {
119
+ userName: e.userName
120
+ }));
121
+ m.value = !1, a || (ae(o) ? Z(r("message.tip.emptyAuth")) : t.roleList = (g = o[0]) == null ? void 0 : g.sysMenuExts);
122
+ }, M = {
123
+ editActived({
124
+ row: e
125
+ }) {
126
+ y[1].editRender.props.disabled = !!e.id, y[4].editRender.props.disabled = !!e.id;
127
+ }
128
+ }, R = h(null), D = () => {
129
+ R.value.validate(async (e) => {
130
+ if (!e) {
131
+ const {
132
+ record: a,
133
+ dataStatus: o
134
+ } = t;
135
+ o === "add" ? await d.post(u, a) : await d.put(u, a), V();
136
+ }
137
+ });
138
+ }, V = () => {
139
+ t.showModelView = !1;
140
+ }, T = () => {
141
+ d.get("/uums/unit", {
142
+ pageSize: 10
143
+ }).then(async (e) => {
144
+ w.value = {
145
+ unitId: e[0].id,
146
+ enabled: "1"
147
+ }, await ee(100), _.value.refreshData();
148
+ }).catch(() => {
149
+ te("获取租户失败,刷新后重试");
150
+ });
151
+ };
152
+ return Q(() => {
153
+ T();
154
+ }), (e, a) => {
155
+ const o = l("ut-grid"), g = l("vxe-option"), B = l("vxe-select"), p = l("vxe-form-item"), x = l("ut-button"), F = l("vxe-form"), b = l("vxe-modal"), N = l("vxe-column"), Y = l("vxe-table"), j = l("el-tree-v2");
156
+ return v(), $("div", re, [s(o, {
157
+ ref_key: "xgrid",
158
+ ref: _,
159
+ columns: y,
160
+ items: I,
161
+ url: u,
162
+ "auto-load": !1,
163
+ "default-params": w.value,
164
+ "default-value": w.value,
165
+ events: M
166
+ }, null, 8, ["default-params", "default-value"]), s(b, {
167
+ modelValue: t.showModelView,
168
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => t.showModelView = n),
169
+ title: "用户信息",
170
+ width: "300"
171
+ }, {
172
+ default: i(() => [s(F, {
173
+ ref_key: "xForm",
174
+ ref: R,
175
+ data: t.record,
176
+ rules: L,
177
+ "title-align": "right"
178
+ }, {
179
+ default: i(() => [s(p, {
180
+ title: e.$t("message.unitName"),
181
+ field: "unitId",
182
+ span: "24"
183
+ }, {
184
+ default: i(({
185
+ data: n
186
+ }) => [s(B, {
187
+ modelValue: n.unitId,
188
+ "onUpdate:modelValue": (f) => n.unitId = f
189
+ }, {
190
+ default: i(() => [(v(!0), $(U, null, K(O(C), (f) => (v(), k(g, {
191
+ key: f.id,
192
+ value: f.id,
193
+ label: f.unitName
194
+ }, null, 8, ["value", "label"]))), 128))]),
195
+ _: 2
196
+ }, 1032, ["modelValue", "onUpdate:modelValue"])]),
197
+ _: 1
198
+ }, 8, ["title"]), s(p, {
199
+ title: e.$t("message.userCode"),
200
+ "item-render": {
201
+ name: "input",
202
+ attrs: {
203
+ disabled: t.dataStatus === "update"
204
+ }
205
+ },
206
+ field: "userName",
207
+ span: "24"
208
+ }, null, 8, ["title", "item-render"]), s(p, {
209
+ title: e.$t("message.userName"),
210
+ field: "name",
211
+ span: "24",
212
+ "item-render": {
213
+ name: "input"
214
+ }
215
+ }, null, 8, ["title"]), t.dataStatus === "add" ? (v(), k(p, {
216
+ key: 0,
217
+ title: e.$t("message.userPwd"),
218
+ "item-render": {
219
+ name: "input"
220
+ },
221
+ field: "userPwd",
222
+ span: "24"
223
+ }, null, 8, ["title"])) : J("", !0), s(p, {
224
+ align: "right",
225
+ span: "24"
226
+ }, {
227
+ default: i(() => [s(x, {
228
+ content: "cancel",
229
+ icon: "ri-close-fill",
230
+ onClick: V
231
+ }), s(x, {
232
+ content: "confirm",
233
+ icon: "ri-save-3-fill",
234
+ status: "u-cyan",
235
+ onClick: D
236
+ })]),
237
+ _: 1
238
+ })]),
239
+ _: 1
240
+ }, 8, ["data"])]),
241
+ _: 1
242
+ }, 8, ["modelValue"]), s(b, {
243
+ modelValue: t.showUserRole,
244
+ "onUpdate:modelValue": a[1] || (a[1] = (n) => t.showUserRole = n),
245
+ loading: m.value,
246
+ title: e.$t("message.title.roleInfo"),
247
+ width: "600"
248
+ }, {
249
+ default: i(() => [s(Y, {
250
+ height: "300",
251
+ data: t.roleList,
252
+ border: ""
253
+ }, {
254
+ default: i(() => [s(N, {
255
+ type: "seq",
256
+ width: "60"
257
+ }), s(N, {
258
+ field: "roleName",
259
+ title: e.$t("message.udp.roleName")
260
+ }, null, 8, ["title"]), s(N, {
261
+ field: "roleDesc",
262
+ title: e.$t("message.udp.roleDesc")
263
+ }, null, 8, ["title"])]),
264
+ _: 1
265
+ }, 8, ["data"])]),
266
+ _: 1
267
+ }, 8, ["modelValue", "loading", "title"]), s(b, {
268
+ modelValue: t.showAuth,
269
+ "onUpdate:modelValue": a[2] || (a[2] = (n) => t.showAuth = n),
270
+ loading: m.value,
271
+ title: e.$t("message.title.authority", {
272
+ role: t.record.name || "88888"
273
+ }),
274
+ height: "620",
275
+ width: "560"
276
+ }, {
277
+ default: i(() => [s(j, {
278
+ ref: "xTree",
279
+ data: t.roleList,
280
+ props: {
281
+ children: "children",
282
+ label: "menuName"
283
+ },
284
+ height: 560,
285
+ "node-key": "id"
286
+ }, null, 8, ["data"])]),
287
+ _: 1
288
+ }, 8, ["modelValue", "loading", "title"])]);
289
+ };
290
+ }
291
+ });
292
+ export {
293
+ fe as _
294
+ };
@@ -1,12 +1,12 @@
1
- import { defineComponent as S, reactive as k, ref as v, createVNode as o, resolveComponent as i, Fragment as m, createElementBlock as D, openBlock as A } from "vue";
1
+ import { defineComponent as S, reactive as k, ref as v, createVNode as o, resolveComponent as r, Fragment as m, createElementBlock as D, openBlock as A } from "vue";
2
2
  import { useI18n as E } from "vue-i18n";
3
- import { _ as I } from "./menuInfo.vue_vue_type_style_index_0_lang-BumXunCg.js";
3
+ import { _ as I } from "./menuInfo.vue_vue_type_style_index_0_lang-C2qahH3r.js";
4
4
  import { _ as N } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js";
5
5
  import { clone as p } from "xe-utils";
6
6
  import { t as M } from "./await-to-js.es5-BtRbN2QH.js";
7
7
  import { VxeUI as R } from "vxe-pc-ui";
8
8
  import { useRender as U } from "@utogether/utils";
9
- import { q as B } from "./index-DzOzUkf6.js";
9
+ import { q as B } from "./index-DVARtten.js";
10
10
  const P = {
11
11
  class: "page-content"
12
12
  }, z = {
@@ -27,7 +27,7 @@ const P = {
27
27
  }
28
28
  }), {
29
29
  t: h
30
- } = E(), f = U(), d = B(), r = v(null), s = "/uums/menu";
30
+ } = E(), f = U(), d = B(), s = v(null), i = "/uums/menu";
31
31
  let l;
32
32
  const C = [{
33
33
  type: "checkbox",
@@ -66,17 +66,17 @@ const P = {
66
66
  default: ({
67
67
  row: e
68
68
  }) => {
69
- const n = e.menuType, a = o(i("ut-button"), {
69
+ const n = e.menuType, a = o(r("ut-button"), {
70
70
  status: "u-cyan",
71
71
  icon: "ri-add-fill",
72
72
  content: "add",
73
- onTap: () => c(e)
74
- }, null), x = o(i("ut-button"), {
73
+ onTap: () => u(e)
74
+ }, null), x = o(r("ut-button"), {
75
75
  icon: "ri-lock-fill",
76
76
  content: "auth",
77
77
  onTap: () => b(e)
78
78
  }, null);
79
- return [o(m, null, [n ? null : o(m, null, [o(i("ut-button"), {
79
+ return [o(m, null, [n ? null : o(m, null, [o(r("ut-button"), {
80
80
  status: "success",
81
81
  icon: "ri-edit-box-line",
82
82
  content: "edit",
@@ -84,66 +84,66 @@ const P = {
84
84
  }, null), ["0", "5"].includes(e.menuCategory) ? a : x])])];
85
85
  }
86
86
  }
87
- }], g = ({
87
+ }], y = ({
88
88
  code: e
89
89
  }) => {
90
- e === "add" && c(), e === "del" && T();
91
- }, y = async ({
90
+ e === "add" && u(), e === "del" && T();
91
+ }, g = async ({
92
92
  row: e
93
93
  }) => {
94
- const n = await d.get(s, {
94
+ const n = await d.get(i, {
95
95
  parentId: e.id
96
96
  });
97
97
  return new Promise((a) => {
98
98
  a(n.list);
99
99
  });
100
- }, c = (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.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 || [], console.log(t.record), l = e;
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.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
102
  }, w = (e) => {
103
103
  t.showDrawer = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
104
104
  };
105
105
  async function _({
106
106
  row: e
107
107
  }) {
108
- await d.put(s, [e]), r.value.refreshData();
108
+ await d.put(i, [e]), s.value.refreshData();
109
109
  }
110
110
  const T = async () => {
111
- const e = await R.modal.confirm(h("message.delRecord")), n = r.value.getInstance().getCheckboxRecords();
111
+ const e = await R.modal.confirm(h("message.delRecord")), n = s.value.getInstance().getCheckboxRecords();
112
112
  if (e === "confirm") {
113
- const [a] = await M(d.delete(s, n));
113
+ const [a] = await M(d.delete(i, n));
114
114
  }
115
115
  }, b = (e) => {
116
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
- }, u = (e) => {
118
- e === "submit" && r.value.getInstance().reloadTreeExpand(l), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
117
+ }, c = (e, n) => {
118
+ e === "submit" && (l || n) && s.value.getInstance().reloadTreeExpand(l || n), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
119
119
  };
120
120
  return (e, n) => {
121
- const a = i("ut-grid");
121
+ const a = r("ut-grid");
122
122
  return A(), D("div", P, [o(a, {
123
123
  ref_key: "xgrid",
124
- ref: r,
124
+ ref: s,
125
125
  "tree-config": {
126
126
  childrenField: "children",
127
127
  lazy: !0,
128
128
  hasChild: "hasChildren",
129
- loadMethod: y,
129
+ loadMethod: g,
130
130
  iconOpen: "ri-checkbox-indeterminate-line ri-lg",
131
131
  iconClose: "ri-add-box-line ri-lg"
132
132
  },
133
133
  columns: C,
134
- url: s,
134
+ url: i,
135
135
  stripe: !1,
136
136
  mode: "form",
137
- onToolbarButtonClick: g
137
+ onToolbarButtonClick: y
138
138
  }, null, 8, ["tree-config"]), o(I, {
139
139
  show: t.showDrawer,
140
140
  record: t.record,
141
141
  "data-status": t.dataStatus,
142
- onClose: u
142
+ onClose: c
143
143
  }, null, 8, ["show", "record", "data-status"]), o(N, {
144
144
  show: t.showAuthority,
145
145
  record: t.record,
146
- onClose: u
146
+ onClose: c
147
147
  }, null, 8, ["show", "record"])]);
148
148
  };
149
149
  }
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-8N7P4Hl7.js";
1
+ import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-D4r_umjV.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as x, ref as i, reactive as R, onBeforeMount as B, resolveComponent as d, createElementBlock as U, openBlock as u, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as q, mergeProps as A, toHandlers as E } from "vue";
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 q, mergeProps as A, toHandlers as E } from "vue";
2
2
  import { t as P } from "./await-to-js.es5-BtRbN2QH.js";
3
- import { q as S } from "./index-DzOzUkf6.js";
4
- const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
3
+ import { q as S } from "./index-DVARtten.js";
4
+ const V = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ R({
5
5
  __name: "UserInfo",
6
6
  props: {
7
7
  record: { default: () => ({}) },
@@ -9,17 +9,17 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
9
9
  direction: { default: "rtl" }
10
10
  },
11
11
  emits: ["onClose"],
12
- setup(f, { emit: p }) {
13
- const s = f, g = i(!1), r = i(!1), a = S(), h = p, b = [
12
+ setup(p, { emit: f }) {
13
+ const r = p, g = i(!1), o = i(!1), a = S(), h = f, b = [
14
14
  {
15
15
  field: "userName",
16
- title: "message.userCode",
16
+ title: "message.udp.userCode",
17
17
  span: 8,
18
18
  itemRender: { name: "$input" }
19
19
  },
20
20
  {
21
21
  field: "name",
22
- title: "message.userName",
22
+ title: "message.udp.userName",
23
23
  span: 8,
24
24
  itemRender: { name: "$input" }
25
25
  },
@@ -45,11 +45,11 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
45
45
  { type: "checkbox", width: 50, align: "center" },
46
46
  {
47
47
  field: "userName",
48
- title: "message.userCode"
48
+ title: "message.udp.userCode"
49
49
  },
50
50
  {
51
51
  field: "name",
52
- title: "message.userName"
52
+ title: "message.udp.userName"
53
53
  },
54
54
  {
55
55
  field: "enabled",
@@ -68,15 +68,15 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
68
68
  { code: "add", name: "message.btn.add", status: "u-cyan", icon: "ri-add-line" },
69
69
  { code: "delete", name: "message.btn.del", status: "danger", icon: "ri-delete-bin-5-fill" }
70
70
  ], y = [
71
- { field: "userName", title: "message.userCode" },
72
- { field: "name", title: "message.userName" }
73
- ], _ = [
71
+ { field: "userName", title: "message.udp.userCode", span: 9 },
72
+ { field: "name", title: "message.udp.userName", span: 9 }
73
+ ], w = [
74
74
  { type: "checkbox", width: 40 },
75
- { field: "userName", title: "message.userCode" },
76
- { field: "name", title: "message.userName" },
75
+ { field: "userName", title: "message.udp.userCode" },
76
+ { field: "name", title: "message.udp.userName" },
77
77
  { field: "enabled", width: 70, formatter: ["formatDict", "SU.ENABLE"] }
78
- ], m = i({}), n = R({
79
- height: 560,
78
+ ], u = i({}), n = x({
79
+ height: "auto",
80
80
  border: !0,
81
81
  pagerConfig: {},
82
82
  toolbarConfig: { buttons: C, perfect: !0 },
@@ -88,39 +88,39 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
88
88
  // 查询是需要启用表单代理
89
89
  ajax: {
90
90
  // 接收 Promise
91
- query: ({ page: e, form: o }) => {
92
- const t = Object.assign({}, o);
93
- return t.id = s.record.id, t.pageNum = e.currentPage, t.pageSize = e.pageSize, a.get("/uums/user/listRoleUsers", t);
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
94
  },
95
95
  // body 对象: { removeRecords }
96
96
  delete: ({ body: { removeRecords: e } }) => {
97
- const o = {
98
- roleId: s.record.id,
97
+ const s = {
98
+ roleId: r.record.id,
99
99
  userIds: e.map((t) => t.id).join()
100
100
  };
101
- return a.delete("/uums/role/deleteRoleUsers", o);
101
+ return a.delete("/uums/role/deleteRoleUsers", s);
102
102
  }
103
103
  }
104
104
  },
105
105
  columns: v
106
- }), w = {
106
+ }), _ = {
107
107
  toolbarButtonClick({ code: e }) {
108
- e === "add" && (r.value = !0);
108
+ e === "add" && (o.value = !0);
109
109
  }
110
110
  }, N = async (e) => {
111
- const o = { userIds: "", roleId: s.record.id };
112
- o.userIds = e.map((l) => l.id).join(","), n.loading = !0;
113
- const [t] = await P(a.post("/uums/role/addUserRole", o));
114
- n.loading = !1, t || (m.value.commitProxy("query"), r.value = !1);
111
+ const s = { userIds: "", roleId: r.record.id };
112
+ s.userIds = e.map((l) => l.id).join(","), n.loading = !0;
113
+ const [t] = await P(a.post("/uums/role/addUserRole", s));
114
+ n.loading = !1, t || (u.value.commitProxy("query"), o.value = !1);
115
115
  };
116
116
  function I() {
117
117
  h("onClose");
118
118
  }
119
119
  return B(() => {
120
120
  g.value = !0;
121
- }), (e, o) => {
121
+ }), (e, s) => {
122
122
  const t = d("vxe-grid"), l = d("ut-modal-grid"), k = d("el-drawer");
123
- return u(), U("div", V, [
123
+ return m(), U("div", V, [
124
124
  c(k, {
125
125
  "model-value": e.show,
126
126
  title: e.$t("message.title.authUser", { role: e.record.roleName }),
@@ -132,20 +132,22 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
132
132
  default: $(() => [
133
133
  c(t, A({
134
134
  ref_key: "xgrid",
135
- ref: m
136
- }, n, E(w)), null, 16),
137
- r.value ? (u(), j(l, {
135
+ ref: u
136
+ }, n, E(_)), null, 16),
137
+ o.value ? (m(), j(l, {
138
138
  key: 0,
139
139
  url: "/uums/user/listUserToRole",
140
140
  "default-params": { roleId: e.record.id },
141
141
  items: y,
142
- columns: _,
142
+ columns: w,
143
143
  "show-footer": !0,
144
144
  editable: !1,
145
+ title: e.$t("message.udp.userList"),
145
146
  width: "60%",
146
- onClose: o[0] || (o[0] = (z) => r.value = !1),
147
+ height: "75%",
148
+ onClose: s[0] || (s[0] = (z) => o.value = !1),
147
149
  onConfirm: N
148
- }, null, 8, ["default-params"])) : q("", !0)
150
+ }, null, 8, ["default-params", "title"])) : q("", !0)
149
151
  ]),
150
152
  _: 1
151
153
  }, 8, ["model-value", "title"])
@@ -154,5 +156,5 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
154
156
  }
155
157
  });
156
158
  export {
157
- F as _
159
+ D as _
158
160
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-Ckjmw6wJ.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-DQRgNsJY.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-y0sDvYx5.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-BzISq0Jf.js";
2
2
  export {
3
3
  f as default
4
4
  };