dlzn-ui 2.0.5 → 2.0.6

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 (151) hide show
  1. package/assets/IndexItem-CfYDJ95Q.css +1 -0
  2. package/assets/LoginBg-BTrRjkK7.css +1 -0
  3. package/assets/{button-Be7wyDo4.css → button-Bwn73ZEc.css} +1 -1
  4. package/chunks/AssignUser-DCju22tm.mjs +124 -0
  5. package/chunks/{Common-B5NscAh_.mjs → Common-DQbblaTl.mjs} +1 -1
  6. package/chunks/{Day-Ci8nR_Ll.mjs → Day-9BKmHuZl.mjs} +1 -1
  7. package/chunks/{DictTypeDetail-B_aSmp0m.mjs → DictTypeDetail-e14bGyiZ.mjs} +2 -2
  8. package/chunks/{Hour-C1yYXl7B.mjs → Hour-CrFFADzT.mjs} +1 -1
  9. package/chunks/{Index-BxpYRhO7.mjs → Index-7ubKF9v4.mjs} +1 -1
  10. package/chunks/{Index-Z81MxcDh.mjs → Index-CZ0ICyCx.mjs} +1 -1
  11. package/chunks/{Index-DU8S7od8.mjs → Index-CZnP6jHo.mjs} +1 -1
  12. package/chunks/{Index-UHMQ6ORy.mjs → Index-ChH8kYUs.mjs} +1 -1
  13. package/chunks/{Index-CHfwy4gI.mjs → Index-DloA1g7z.mjs} +1 -1
  14. package/chunks/{Index-Bb9OwRGB.mjs → Index-QUCWrT4d.mjs} +1 -1
  15. package/chunks/{IndexItem-BWoJrz24.mjs → IndexItem-OIGXdAkP.mjs} +4 -4
  16. package/chunks/Log-DdemNjDW.mjs +213 -0
  17. package/chunks/{LoginBg-B1auGWuJ.mjs → LoginBg-BD6ChYvu.mjs} +3 -3
  18. package/chunks/{MenuNode-Dp1kCBvH.mjs → MenuNode-DXgE629W.mjs} +1 -1
  19. package/chunks/{Minute-CA5DlXsq.mjs → Minute-xZNOCy8Q.mjs} +1 -1
  20. package/chunks/{Month-D-4ld14M.mjs → Month-CvWOcD_9.mjs} +1 -1
  21. package/chunks/{Second-RPGoCkey.mjs → Second-BvMnEOms.mjs} +1 -1
  22. package/chunks/SelectDept-DmtKBaW0.mjs +68 -0
  23. package/chunks/SelectMenu-tEpLm6Ij.mjs +68 -0
  24. package/chunks/SelectUser-CTvBarod.mjs +57 -0
  25. package/chunks/{UserInfo-CrBlooGu.mjs → UserInfo-qrNR9tve.mjs} +1 -1
  26. package/chunks/{app-DiNoDaOD.mjs → app-CggLqjRQ.mjs} +1 -1
  27. package/chunks/{button-BcpR95gj.mjs → button-Dk3CiB69.mjs} +5 -5
  28. package/chunks/{custom-page-list-DF3Qw4y7.mjs → custom-page-list-CJWB72dw.mjs} +4 -4
  29. package/chunks/{custom-page-table-CH09hGDM.mjs → custom-page-table-5f8lI6CQ.mjs} +2 -2
  30. package/chunks/{overview-BQQnpz4N.mjs → overview-BEtKbidZ.mjs} +1 -1
  31. package/chunks/{page-list-BjjvOqb5.mjs → page-list-C3nqGnnX.mjs} +3 -3
  32. package/chunks/{page-query-BCNFOYTD.mjs → page-query-C6oSW1je.mjs} +1 -1
  33. package/chunks/{page-table-VeEt8uuI.mjs → page-table-3DTiPP9H.mjs} +3 -3
  34. package/chunks/{pagination-BuhM6NW1.mjs → pagination-C6-VAj4W.mjs} +1 -1
  35. package/chunks/{table-B3z8z5O8.mjs → table-Cp9NQHjQ.mjs} +1 -1
  36. package/components/app/index.mjs +1 -1
  37. package/components/app/src/app.mjs +1 -1
  38. package/components/button/index.mjs +1 -1
  39. package/components/button/src/button.mjs +1 -1
  40. package/components/checkbox-group/index.mjs +1 -1
  41. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  42. package/components/cron/index.mjs +1 -1
  43. package/components/cron/src/Common.mjs +1 -1
  44. package/components/cron/src/Day.mjs +1 -1
  45. package/components/cron/src/Hour.mjs +1 -1
  46. package/components/cron/src/Minute.mjs +1 -1
  47. package/components/cron/src/Month.mjs +1 -1
  48. package/components/cron/src/Picker.mjs +6 -6
  49. package/components/cron/src/Second.mjs +1 -1
  50. package/components/cron/src/cron.mjs +1 -1
  51. package/components/custom-page-list/index.mjs +1 -1
  52. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  53. package/components/custom-page-table/index.mjs +1 -1
  54. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  55. package/components/form/index.mjs +1 -1
  56. package/components/form/src/form.mjs +1 -1
  57. package/components/index.mjs +9 -9
  58. package/components/overview/index.mjs +1 -1
  59. package/components/overview/src/DicLabel/Index.mjs +1 -1
  60. package/components/overview/src/IndexItem.mjs +1 -1
  61. package/components/overview/src/overview.mjs +1 -1
  62. package/components/page-list/index.mjs +1 -1
  63. package/components/page-list/src/page-list.mjs +1 -1
  64. package/components/page-query/index.mjs +1 -1
  65. package/components/page-query/src/page-query.mjs +1 -1
  66. package/components/page-table/index.mjs +1 -1
  67. package/components/page-table/src/page-table.mjs +1 -1
  68. package/components/pagination/index.mjs +1 -1
  69. package/components/pagination/src/pagination.mjs +1 -1
  70. package/components/provider/index.mjs +1 -1
  71. package/components/provider/src/Provider.mjs +1 -1
  72. package/components/radio-group/index.mjs +1 -1
  73. package/components/radio-group/src/radio-group.mjs +1 -1
  74. package/components/select/index.mjs +1 -1
  75. package/components/select/src/select.mjs +1 -1
  76. package/components/select-sys-user/index.mjs +1 -1
  77. package/components/select-sys-user/src/Picker.mjs +2 -2
  78. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  79. package/components/table/index.mjs +1 -1
  80. package/components/table/src/table.mjs +1 -1
  81. package/components/tree/index.mjs +1 -1
  82. package/components/tree/src/tree.mjs +1 -1
  83. package/components/tree-select/index.mjs +1 -1
  84. package/components/tree-select/src/tree-select.mjs +1 -1
  85. package/components/upload/index.mjs +1 -1
  86. package/components/upload/src/upload.mjs +1 -1
  87. package/hooks/useDicOptions/index.mjs +1 -1
  88. package/hooks/useSysUser/index.mjs +1 -1
  89. package/layout/Entry.mjs +2 -0
  90. package/layout/Login.mjs +2 -2
  91. package/layout/NotFound.mjs +1 -1
  92. package/layout/{index2.mjs → index.mjs} +1 -1
  93. package/layout/modules/Aside.mjs +1 -1
  94. package/layout/modules/Breadcrumb.mjs +1 -1
  95. package/layout/modules/Header.mjs +1 -1
  96. package/layout/modules/LoginBg.mjs +1 -1
  97. package/layout/modules/MenuNode.mjs +1 -1
  98. package/layout/profile/Index.mjs +2 -2
  99. package/layout/profile/ResetPwd.mjs +1 -1
  100. package/layout/profile/UserInfo.mjs +1 -1
  101. package/package.json +9 -1
  102. package/plugins/autoImport/$alova/index.mjs +1 -1
  103. package/plugins/autoImport/$confirm/index.mjs +1 -1
  104. package/plugins/autoImport/$dialog/index.mjs +1 -1
  105. package/plugins/autoImport/$drawer/index.mjs +1 -1
  106. package/plugins/captcha/captcha.mjs +1 -1
  107. package/plugins/captcha/index.mjs +1 -1
  108. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  109. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  110. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  111. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  112. package/plugins/tableRenders/cell/TypographyText/Index.mjs +1 -1
  113. package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
  114. package/plugins/tableRenders/cell/index.mjs +5 -5
  115. package/router/index.mjs +1 -1
  116. package/store/modules/common.mjs +1 -1
  117. package/store/modules/login.mjs +1 -1
  118. package/store/modules/recentRouters.mjs +1 -1
  119. package/store/modules/router.mjs +1 -1
  120. package/store/modules/user.mjs +1 -1
  121. package/views/index.mjs +9 -1
  122. package/views/system/dept/index.mjs +256 -0
  123. package/views/system/dept/index.vue.d.ts +3 -0
  124. package/views/system/dept/utils.d.ts +2 -0
  125. package/views/system/dept/utils.mjs +15 -0
  126. package/views/system/dict/index.mjs +3 -3
  127. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  128. package/views/system/menu/index.mjs +407 -0
  129. package/views/system/menu/index.vue.d.ts +3 -0
  130. package/views/system/post/index.mjs +182 -0
  131. package/views/system/post/index.vue.d.ts +3 -0
  132. package/views/system/role/index.mjs +319 -0
  133. package/views/system/role/index.vue.d.ts +3 -0
  134. package/views/system/role/modules/AssignUser.mjs +2 -0
  135. package/views/system/role/modules/AssignUser.vue.d.ts +6 -0
  136. package/views/system/role/modules/SelectDept.mjs +2 -0
  137. package/views/system/role/modules/SelectDept.vue.d.ts +6 -0
  138. package/views/system/role/modules/SelectMenu.mjs +2 -0
  139. package/views/system/role/modules/SelectMenu.vue.d.ts +6 -0
  140. package/views/system/role/modules/SelectUser.mjs +2 -0
  141. package/views/system/role/modules/SelectUser.vue.d.ts +11 -0
  142. package/views/system/user/index.mjs +451 -0
  143. package/views/system/user/index.vue.d.ts +9 -0
  144. package/views/tool/job/index.mjs +297 -0
  145. package/views/tool/job/index.vue.d.ts +3 -0
  146. package/views/tool/job/modules/Log.mjs +2 -0
  147. package/views/tool/job/modules/Log.vue.d.ts +6 -0
  148. package/assets/IndexItem-5VrD3wb-.css +0 -1
  149. package/assets/LoginBg-9HH4oQBJ.css +0 -1
  150. package/layout/Index.mjs +0 -2
  151. /package/layout/{Index.vue.d.ts → Entry.vue.d.ts} +0 -0
@@ -0,0 +1,451 @@
1
+ import { M as e, P as t, a as n, x as r } from "../../../chunks/button-Dk3CiB69.mjs";
2
+ import { n as i } from "../../../chunks/useAppContext-D47amIp5.mjs";
3
+ import a from "../../../plugins/autoImport/$msg/index.mjs";
4
+ import { passwordReg as o, passwordRegMessage as s } from "../../../constants/others.mjs";
5
+ import { t as c } from "../../../chunks/table-Cp9NQHjQ.mjs";
6
+ import "../../../components/table/index.mjs";
7
+ import { t as l } from "../../../chunks/page-list-C3nqGnnX.mjs";
8
+ import "../../../components/page-list/index.mjs";
9
+ import { deptTreeList as u, deptTreeListSend as d } from "../dept/utils.mjs";
10
+ import { createBlock as f, defineComponent as p, h as m, mergeProps as h, onActivated as g, openBlock as _, reactive as v, ref as y, unref as b, useTemplateRef as x, watch as S } from "vue";
11
+ import { useRequest as C } from "alova/client";
12
+ //#endregion
13
+ //#region ../../packages/dlzn-ui/views/system/user/index.vue
14
+ var w = /* @__PURE__ */ p({
15
+ __name: "index",
16
+ props: {
17
+ formItemMap: {},
18
+ tableColumns: {}
19
+ },
20
+ setup(p) {
21
+ let w = p;
22
+ g(() => {
23
+ d();
24
+ });
25
+ let { send: T } = C((e) => r.Get(`system/user/${e}`, { meta: { useDataResult: !1 } }), { immediate: !1 }), E = x("pageListRef"), D = {
26
+ deptId: v({
27
+ _label: "归属部门",
28
+ _required: !0,
29
+ component: "TTreeSelect",
30
+ data: u,
31
+ model: "deptId",
32
+ treeProps: { expandAll: !0 }
33
+ }),
34
+ email: {
35
+ _label: "邮箱",
36
+ _rules: [{ email: !0 }],
37
+ component: "TInput",
38
+ model: "email"
39
+ },
40
+ nickName: {
41
+ _label: "用户昵称",
42
+ _required: !0,
43
+ component: "TInput",
44
+ maxlength: 30,
45
+ model: "nickName"
46
+ },
47
+ password: {
48
+ _label: "登录密码",
49
+ _required: !0,
50
+ _rules: [{
51
+ message: s,
52
+ pattern: o
53
+ }],
54
+ autocomplete: "new-password",
55
+ component: "TInput",
56
+ model: "password",
57
+ type: "password"
58
+ },
59
+ phonenumber: {
60
+ _label: "手机号码",
61
+ _rules: [{ telnumber: !0 }],
62
+ component: "TInput",
63
+ model: "phonenumber"
64
+ },
65
+ postIds: {
66
+ _label: "岗位",
67
+ component: "TSelect",
68
+ model: "postIds",
69
+ multiple: !0,
70
+ options: []
71
+ },
72
+ remark: {
73
+ _class: "col-span-full",
74
+ _label: "备注",
75
+ component: "TTextarea",
76
+ model: "remark"
77
+ },
78
+ roleIds: {
79
+ _label: "角色",
80
+ component: "TSelect",
81
+ model: "roleIds",
82
+ multiple: !0,
83
+ options: []
84
+ },
85
+ sex: {
86
+ _label: "用户性别",
87
+ component: "TSelect",
88
+ dicCode: "sys_user_sex",
89
+ model: "sex"
90
+ },
91
+ status: {
92
+ _label: "状态",
93
+ component: "TRadioGroup",
94
+ dicCode: "sys_normal_disable",
95
+ model: "status"
96
+ },
97
+ ...VITE_APP_ID === "1" ? { ...w.formItemMap } : {},
98
+ userName: {
99
+ _label: "登录账号",
100
+ _required: !0,
101
+ _rules: [{
102
+ message: "登录账号长度为2-20个字符",
103
+ min: 2
104
+ }, {
105
+ max: 20,
106
+ message: "登录账号长度为2-20个字符"
107
+ }],
108
+ component: "TInput",
109
+ model: "userName"
110
+ }
111
+ }, O = {
112
+ apis: {
113
+ export: {
114
+ method: "system/user/export",
115
+ permission: "system:user:export"
116
+ },
117
+ list: { method: (e) => r.Get("system/user/list", { params: {
118
+ ...e,
119
+ dateRange: void 0,
120
+ "params[beginTime]": e.dateRange[0] ?? "",
121
+ "params[endTime]": e.dateRange[1] ?? ""
122
+ } }) }
123
+ },
124
+ columns: [
125
+ {
126
+ colKey: "userId",
127
+ title: "用户编号"
128
+ },
129
+ {
130
+ cell: { component: "TypographyText" },
131
+ colKey: "userName",
132
+ title: "登录账号"
133
+ },
134
+ ...VITE_APP_ID === "1" ? w.tableColumns : [],
135
+ {
136
+ colKey: "nickName",
137
+ title: "用户昵称"
138
+ },
139
+ {
140
+ colKey: "dept.deptName",
141
+ title: "部门"
142
+ },
143
+ {
144
+ colKey: "phonenumber",
145
+ title: "手机号码"
146
+ },
147
+ {
148
+ cell: (e, { row: n }) => ({
149
+ beforeChange: async () => {
150
+ let e = n.status === "1" ? "启用" : "停用";
151
+ return await t(`确认${e}${n.userName}用户吗?`), await r.Put("system/user/changeStatus", {
152
+ status: n.status === "1" ? "0" : "1",
153
+ userId: n.userId
154
+ }, { meta: { useSuccessMsg: !0 } }), E.value.query(), !0;
155
+ },
156
+ component: "Switch",
157
+ customValue: ["0", "1"]
158
+ }),
159
+ colKey: "status",
160
+ title: "状态"
161
+ },
162
+ {
163
+ colKey: "remark",
164
+ title: "备注"
165
+ },
166
+ {
167
+ colKey: "createBy",
168
+ title: "创建人"
169
+ },
170
+ {
171
+ colKey: "createTime",
172
+ title: "创建时间"
173
+ },
174
+ {
175
+ colKey: "updateBy",
176
+ title: "更新人"
177
+ },
178
+ {
179
+ colKey: "updateTime",
180
+ title: "更新时间"
181
+ },
182
+ {
183
+ cell: {
184
+ buttons: [
185
+ ({ row: i }) => ({
186
+ default: "编辑",
187
+ onClick: async () => {
188
+ let { data: o, postIds: s, posts: c, roleIds: l, roles: u } = await T(i.userId), d = y(null);
189
+ S(d, () => {
190
+ d.value.setFormData(o, { splitToArrKeys: VITE_APP_ID === "1" ? ["userDeptIds"] : [] });
191
+ }, { once: !0 }), t({
192
+ body: () => m(n, {
193
+ data: v({
194
+ postIds: s,
195
+ roleIds: l
196
+ }),
197
+ items: [
198
+ D.nickName,
199
+ ...VITE_APP_ID === "1" ? Object.values(w.formItemMap) : [],
200
+ D.deptId,
201
+ D.phonenumber,
202
+ D.email,
203
+ D.sex,
204
+ D.status,
205
+ {
206
+ ...D.postIds,
207
+ options: c.map((e) => ({
208
+ disabled: e.status === "1",
209
+ label: e.postName,
210
+ value: e.postId
211
+ }))
212
+ },
213
+ {
214
+ ...D.roleIds,
215
+ options: u.map((e) => ({
216
+ disabled: e.status === "1",
217
+ label: e.roleName,
218
+ value: e.roleId
219
+ }))
220
+ },
221
+ D.remark
222
+ ],
223
+ ref: d
224
+ }),
225
+ header: "修改用户",
226
+ onConfirmCallback: async () => {
227
+ let t = await d.value.validate();
228
+ await r.Put("system/user", {
229
+ ...t,
230
+ ...VITE_APP_ID === "1" ? { userDeptIds: t.userDeptIds.join(",") } : {},
231
+ userId: o.userId,
232
+ userName: o.userName
233
+ }), e(o.userId), a.success("用户修改成功"), E.value.query();
234
+ },
235
+ width: 730
236
+ });
237
+ },
238
+ permission: "system:user:edit",
239
+ show: i.userId !== "1"
240
+ }),
241
+ ({ row: e }) => ({
242
+ default: "重置密码",
243
+ onClick: async () => {
244
+ let a = y(null);
245
+ t({
246
+ body: () => m(n, {
247
+ items: [{
248
+ _required: !0,
249
+ _rules: [{
250
+ message: s,
251
+ pattern: o
252
+ }],
253
+ component: "TInput",
254
+ model: "newPassword",
255
+ type: "password"
256
+ }],
257
+ ref: a
258
+ }),
259
+ header: `请输入${e.userName}用户的新密码`,
260
+ onConfirmCallback: async () => {
261
+ let t = (await a.value.validate()).newPassword;
262
+ await r.Put("system/user/resetPwd", {
263
+ password: t,
264
+ userId: e.userId
265
+ }), i(`密码修改成功,新密码是:${t}`), E.value.query();
266
+ },
267
+ width: 430
268
+ });
269
+ },
270
+ permission: "system:user:resetPwd",
271
+ show: e.userId !== "1"
272
+ }),
273
+ ({ row: e }) => ({
274
+ default: "分配角色",
275
+ onClick: async () => {
276
+ let { roles: n, user: i } = await r.Get(`system/user/authRole/${e.userId}`), a = y(null);
277
+ t({
278
+ body: () => m(c, {
279
+ columns: [
280
+ {
281
+ colKey: "roleId",
282
+ title: "角色编号"
283
+ },
284
+ {
285
+ colKey: "roleName",
286
+ title: "角色名称"
287
+ },
288
+ {
289
+ colKey: "roleKey",
290
+ title: "权限字符"
291
+ },
292
+ {
293
+ colKey: "createTime",
294
+ title: "创建时间"
295
+ },
296
+ {
297
+ colKey: "remark",
298
+ title: "角色说明"
299
+ }
300
+ ],
301
+ data: n,
302
+ defaultSelectedRowKeys: n.filter((e) => e.flag).map((e) => e.roleId),
303
+ ref: a,
304
+ rowKey: "roleId",
305
+ showRowSelect: "multiple"
306
+ }),
307
+ header: `为用户${i.nickName}(${i.userName})分配角色`,
308
+ onConfirmCallback: async () => {
309
+ await r.Put("system/user/authRole", {}, {
310
+ meta: { useSuccessMsg: !0 },
311
+ params: {
312
+ roleIds: a.value.selectedRowKeys.join(","),
313
+ userId: e.userId
314
+ }
315
+ }), E.value.query();
316
+ },
317
+ width: 800
318
+ });
319
+ },
320
+ permission: "system:user:edit",
321
+ show: e.userId !== "1"
322
+ }),
323
+ ({ row: e }) => ({
324
+ default: "删除",
325
+ permission: "system:user:remove",
326
+ popconfirm: {
327
+ content: "确认删除吗",
328
+ onConfirm: async () => {
329
+ await r.Delete(`system/user/${e.userId}`), a("删除成功"), E.value.query();
330
+ }
331
+ },
332
+ show: e.userId !== "1"
333
+ })
334
+ ],
335
+ component: "Buttons"
336
+ },
337
+ colKey: "_operation",
338
+ title: "操作"
339
+ }
340
+ ],
341
+ formItems: [
342
+ D.deptId,
343
+ D.userName,
344
+ D.nickName,
345
+ D.phonenumber,
346
+ {
347
+ ...D.status,
348
+ component: "TSelect"
349
+ },
350
+ {
351
+ _class: "col-span-2",
352
+ _label: "创建时间",
353
+ component: "TDatePicker",
354
+ model: "dateRange",
355
+ type: "daterange"
356
+ }
357
+ ],
358
+ operations: [{
359
+ default: "新增",
360
+ onClick: async () => {
361
+ let { posts: e, roles: i } = await T(""), o = y(null);
362
+ t({
363
+ body: () => m(n, {
364
+ data: v({ status: "0" }),
365
+ items: [
366
+ D.nickName,
367
+ ...VITE_APP_ID === "1" ? Object.values(w.formItemMap) : [],
368
+ D.deptId,
369
+ D.phonenumber,
370
+ D.email,
371
+ D.userName,
372
+ D.password,
373
+ D.sex,
374
+ D.status,
375
+ {
376
+ ...D.postIds,
377
+ options: e.map((e) => ({
378
+ disabled: e.status === "1",
379
+ label: e.postName,
380
+ value: e.postId
381
+ }))
382
+ },
383
+ {
384
+ ...D.roleIds,
385
+ options: i.map((e) => ({
386
+ disabled: e.status === "1",
387
+ label: e.roleName,
388
+ value: e.roleId
389
+ }))
390
+ },
391
+ D.remark
392
+ ],
393
+ ref: o
394
+ }),
395
+ header: "添加用户",
396
+ onConfirmCallback: async () => {
397
+ let e = await o.value.validate();
398
+ await r.Post("system/user", {
399
+ ...e,
400
+ ...VITE_APP_ID === "1" ? { userDeptIds: e.userDeptIds.join(",") } : {}
401
+ }), a.success("用户添加成功"), E.value.query();
402
+ },
403
+ width: 730
404
+ });
405
+ },
406
+ permission: "system:user:add"
407
+ }, {
408
+ default: "导入",
409
+ onClick: async () => {
410
+ let e = y(null);
411
+ t({
412
+ body: () => m(n, {
413
+ items: [{
414
+ _required: !0,
415
+ component: "TUpload",
416
+ downloadTemplate: r.Post("system/user/importTemplate", {}, { meta: {
417
+ useDownload: "用户管理导入模板.xlsx",
418
+ useResponseBlob: !0
419
+ } }),
420
+ model: "file",
421
+ tips: "请下载模板,并按照模板格式导入"
422
+ }, {
423
+ component: "TCheckbox",
424
+ label: "是否更新已经存在的用户数据",
425
+ model: "updateSupport"
426
+ }],
427
+ ref: e
428
+ }),
429
+ header: "导入用户",
430
+ onConfirmCallback: async () => {
431
+ let t = await e.value.validate();
432
+ await r.Post("system/user/importData", { file: t.file[0].raw }, {
433
+ meta: { useFormData: !0 },
434
+ params: { updateSupport: t.updateSupport }
435
+ }), E.value.query();
436
+ },
437
+ width: 480
438
+ });
439
+ },
440
+ permission: "system:user:import"
441
+ }],
442
+ tableOtherProps: { rowKey: "userId" }
443
+ };
444
+ return (e, t) => (_(), f(b(l), h({
445
+ ref_key: "pageListRef",
446
+ ref: E
447
+ }, O), null, 16));
448
+ }
449
+ });
450
+ //#endregion
451
+ export { w as default };
@@ -0,0 +1,9 @@
1
+ import { FormItem } from '../../../components/form';
2
+ import { TableCol } from '../../../components/table';
3
+ type __VLS_Props = {
4
+ formItemMap?: Record<string, FormItem>;
5
+ tableColumns?: TableCol[];
6
+ };
7
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;