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,407 @@
1
+ import { P as e, a as t, t as n, x as r } from "../../../chunks/button-Dk3CiB69.mjs";
2
+ import { t as i } from "../../../chunks/icon-COjp1yrx.mjs";
3
+ import "../../../components/icon/index.mjs";
4
+ import a from "../../../plugins/autoImport/$msg/index.mjs";
5
+ import { isFalsy as o } from "../../../utils/boolean.mjs";
6
+ import { flatArrToTree as s } from "../../../utils/tree.mjs";
7
+ import "../../../utils/index.mjs";
8
+ import { t as c } from "../../../chunks/page-list-C3nqGnnX.mjs";
9
+ import "../../../components/page-list/index.mjs";
10
+ import { createBlock as l, defineComponent as u, h as d, mergeProps as f, openBlock as p, reactive as m, ref as h, unref as g, useTemplateRef as _, watch as v } from "vue";
11
+ import { useRequest as y } from "alova/client";
12
+ //#endregion
13
+ //#region ../../packages/dlzn-ui/views/system/menu/index.vue
14
+ var b = /* @__PURE__ */ u({
15
+ __name: "index",
16
+ setup(u) {
17
+ let { data: b, send: x } = y(r.Get("system/menu/list", { transform: (e) => s(e.map((e) => ({
18
+ ...e,
19
+ label: e.menuName,
20
+ value: e.menuId
21
+ })), { idKey: "value" }) }), { initialData: [] }), S = _("pageListRef"), C = h([]), w = {
22
+ component: {
23
+ __others: ({ formData: e }) => ({ show: e.menuType === "C" }),
24
+ _class: "col-span-full",
25
+ _label: "组件路径",
26
+ _required: !0,
27
+ component: "TInput",
28
+ model: "component",
29
+ placeholder: "访问的组件路径,如:`system/user/index`,必须以index结尾,默认在`views`目录下"
30
+ },
31
+ icon: {
32
+ __others: ({ formData: e }) => ({
33
+ adornment: {
34
+ append: () => d(n, {
35
+ default: "去选择",
36
+ onClick: () => {
37
+ window.open("https://icon-sets.iconify.design/", "_blank");
38
+ },
39
+ variant: "text"
40
+ }, { icon: () => d(i, { icon: "line-md:link" }) }),
41
+ prepend: () => d(i, {
42
+ class: "mx-1",
43
+ icon: e.icon
44
+ })
45
+ },
46
+ show: e.menuType !== "F" && o(e.parentId)
47
+ }),
48
+ _label: "菜单图标",
49
+ _required: !0,
50
+ component: "TInput",
51
+ model: "icon"
52
+ },
53
+ isCache: {
54
+ __others: ({ formData: e }) => ({ show: e.menuType === "C" }),
55
+ _label: "是否被keep-alive缓存",
56
+ component: "TRadioGroup",
57
+ model: "isCache",
58
+ options: [{
59
+ label: "缓存",
60
+ value: "0"
61
+ }, {
62
+ label: "不缓存",
63
+ value: "1"
64
+ }]
65
+ },
66
+ isFrame: {
67
+ __others: ({ formData: e }) => ({ show: e.menuType === "C" }),
68
+ _label: "是否全屏页面",
69
+ component: "TRadioGroup",
70
+ model: "isFrame",
71
+ options: [{
72
+ label: "是",
73
+ value: "0"
74
+ }, {
75
+ label: "否",
76
+ value: "1"
77
+ }]
78
+ },
79
+ menuName: {
80
+ _class: "col-start-1",
81
+ _label: "菜单名称",
82
+ _required: !0,
83
+ component: "TInput",
84
+ model: "menuName"
85
+ },
86
+ menuType: {
87
+ _label: "菜单类型",
88
+ component: "TRadioGroup",
89
+ model: "menuType",
90
+ options: [
91
+ {
92
+ label: "目录",
93
+ value: "M"
94
+ },
95
+ {
96
+ label: "菜单",
97
+ value: "C"
98
+ },
99
+ {
100
+ label: "按钮",
101
+ value: "F"
102
+ }
103
+ ]
104
+ },
105
+ orderNum: {
106
+ _label: "显示排序",
107
+ _required: !0,
108
+ component: "TInputNumber",
109
+ decimalPlaces: 0,
110
+ model: "orderNum",
111
+ theme: "row"
112
+ },
113
+ parentId: m({
114
+ _class: "col-span-full",
115
+ _label: "上级菜单",
116
+ component: "TTreeSelect",
117
+ data: b,
118
+ model: "parentId",
119
+ placeholder: "请选择上级菜单, 不选择的话, 默认为顶级菜单"
120
+ }),
121
+ path: {
122
+ __others: ({ formData: e }) => ({ show: e.menuType !== "F" }),
123
+ _class: "col-span-full",
124
+ _label: "路由地址",
125
+ _required: !0,
126
+ component: "TInput",
127
+ model: "path",
128
+ placeholder: "请输入路由地址, router.name就是该字段首字母大写后的结果"
129
+ },
130
+ perms: {
131
+ __others: ({ formData: e }) => ({ show: e.menuType !== "M" }),
132
+ _label: "权限标识",
133
+ component: "TInput",
134
+ model: "perms",
135
+ placeholder: "如:system:user:list"
136
+ },
137
+ status: {
138
+ _label: "状态",
139
+ component: "TRadioGroup",
140
+ dicCode: "sys_normal_disable",
141
+ model: "status"
142
+ },
143
+ visible: {
144
+ __others: ({ formData: e }) => ({ show: e.menuType !== "F" }),
145
+ _label: "是否在左侧菜单中显示",
146
+ component: "TRadioGroup",
147
+ dicCode: "sys_show_hide",
148
+ model: "visible"
149
+ }
150
+ };
151
+ function T(e) {
152
+ if (o(e.component)) return;
153
+ let t = e.component.split("___");
154
+ e.component = e.isFrame === "0" ? `${t[0]}___0` : t[0];
155
+ }
156
+ let E = {
157
+ apis: {
158
+ delete: {
159
+ callback: () => {
160
+ x();
161
+ },
162
+ method: "system/menu",
163
+ permission: "system:menu:remove"
164
+ },
165
+ list: { method: (e) => r.Get("system/menu/list", {
166
+ params: {
167
+ ...e,
168
+ pageNum: void 0,
169
+ pageSize: void 0
170
+ },
171
+ transform: (e) => ({
172
+ rows: s(e, { idKey: "menuId" }),
173
+ total: 0
174
+ })
175
+ }) }
176
+ },
177
+ columns: [
178
+ {
179
+ colKey: "menuName",
180
+ fixed: "left",
181
+ title: "菜单名称"
182
+ },
183
+ {
184
+ colKey: "orderNum",
185
+ title: "排序"
186
+ },
187
+ {
188
+ cell: { component: "Icon" },
189
+ colKey: "icon",
190
+ title: "图标"
191
+ },
192
+ {
193
+ colKey: "perms",
194
+ title: "权限标识"
195
+ },
196
+ {
197
+ cell: (e, { row: t }) => t.component?.split("___")[0],
198
+ colKey: "component",
199
+ title: "组件路径"
200
+ },
201
+ {
202
+ cell: {
203
+ component: "OptionLabel",
204
+ options: [{
205
+ label: "是",
206
+ value: "0"
207
+ }, {
208
+ label: "否",
209
+ value: "1"
210
+ }]
211
+ },
212
+ colKey: "isFrame",
213
+ title: "是否全屏页面"
214
+ },
215
+ {
216
+ cell: {
217
+ component: "DicLabel",
218
+ dicCode: "sys_normal_disable"
219
+ },
220
+ colKey: "status",
221
+ title: "状态"
222
+ },
223
+ {
224
+ colKey: "createTime",
225
+ title: "创建时间"
226
+ },
227
+ {
228
+ colKey: "createBy",
229
+ title: "创建人"
230
+ },
231
+ {
232
+ colKey: "updateTime",
233
+ title: "更新时间"
234
+ },
235
+ {
236
+ colKey: "updateBy",
237
+ title: "更新人"
238
+ },
239
+ {
240
+ cell: {
241
+ buttons: [({ row: n }) => ({
242
+ default: "编辑",
243
+ onClick: () => {
244
+ let i = h(null);
245
+ v(i, () => {
246
+ i.value.setFormData({
247
+ ...n,
248
+ parentId: n.parentId === "0" ? "" : n.parentId
249
+ }, { numberToStringKeys: ["isFrame"] });
250
+ }, { once: !0 }), e({
251
+ body: () => d(t, {
252
+ data: m({
253
+ isCache: "0",
254
+ isFrame: "1",
255
+ visible: "0"
256
+ }),
257
+ items: [
258
+ w.parentId,
259
+ w.menuType,
260
+ w.icon,
261
+ w.menuName,
262
+ w.orderNum,
263
+ w.path,
264
+ w.component,
265
+ w.perms,
266
+ w.isCache,
267
+ w.visible,
268
+ w.isFrame,
269
+ w.status
270
+ ],
271
+ ref: i
272
+ }),
273
+ header: "编辑菜单",
274
+ onConfirmCallback: async () => {
275
+ let e = await i.value.validate();
276
+ [
277
+ "component",
278
+ "perms",
279
+ "visible",
280
+ "icon",
281
+ "isCache",
282
+ "path",
283
+ "isFrame"
284
+ ].forEach((t) => {
285
+ t in e || (e[t] = "");
286
+ }), T(e), await r.Put("system/menu", {
287
+ ...e,
288
+ menuId: n.menuId,
289
+ parentId: o(e.parentId) ? "0" : e.parentId
290
+ }), x(), a.success("菜单修改成功"), S.value.query();
291
+ },
292
+ width: 730
293
+ });
294
+ },
295
+ permission: "system:menu:edit"
296
+ }), ({ row: n }) => ({
297
+ default: "新增",
298
+ onClick: () => {
299
+ let i = h(null);
300
+ e({
301
+ body: () => d(t, {
302
+ data: m({
303
+ isCache: "0",
304
+ isFrame: "1",
305
+ menuType: "M",
306
+ parentId: n.menuId,
307
+ status: "0",
308
+ visible: "0"
309
+ }),
310
+ items: [
311
+ {
312
+ ...w.parentId,
313
+ disabled: !0
314
+ },
315
+ w.menuType,
316
+ w.icon,
317
+ w.menuName,
318
+ w.orderNum,
319
+ w.path,
320
+ w.component,
321
+ w.perms,
322
+ w.isCache,
323
+ w.visible,
324
+ w.isFrame,
325
+ w.status
326
+ ],
327
+ ref: i
328
+ }),
329
+ header: "新增菜单",
330
+ onConfirmCallback: async () => {
331
+ let e = await i.value.validate();
332
+ T(e), await r.Post("system/menu", e), x(), a.success("菜单修改成功"), S.value.query();
333
+ },
334
+ width: 730
335
+ });
336
+ },
337
+ permission: "system:menu:add"
338
+ })],
339
+ component: "Buttons"
340
+ },
341
+ colKey: "_operation",
342
+ title: "操作"
343
+ }
344
+ ],
345
+ formItems: [w.menuName, {
346
+ ...w.status,
347
+ component: "TSelect"
348
+ }],
349
+ operations: [{
350
+ default: "新增",
351
+ onClick: () => {
352
+ let n = h(null);
353
+ e({
354
+ body: () => d(t, {
355
+ data: m({
356
+ isCache: "0",
357
+ isFrame: "1",
358
+ menuType: "M",
359
+ status: "0",
360
+ visible: "0"
361
+ }),
362
+ items: [
363
+ w.parentId,
364
+ w.menuType,
365
+ w.icon,
366
+ w.menuName,
367
+ w.orderNum,
368
+ w.path,
369
+ w.component,
370
+ w.perms,
371
+ w.isCache,
372
+ w.visible,
373
+ w.isFrame,
374
+ w.status
375
+ ],
376
+ ref: n
377
+ }),
378
+ header: "添加菜单",
379
+ onConfirmCallback: async () => {
380
+ let e = await n.value.validate();
381
+ T(e), await r.Post("system/menu", {
382
+ ...e,
383
+ parentId: o(e.parentId) ? "0" : e.parentId
384
+ }), x(), a.success("菜单添加成功"), S.value.query();
385
+ },
386
+ width: 730
387
+ });
388
+ },
389
+ permission: "system:menu:add"
390
+ }],
391
+ tableOtherProps: m({
392
+ expandedTreeNodes: C,
393
+ onExpandedTreeNodesChange: (e) => {
394
+ C.value = e;
395
+ },
396
+ rowKey: "menuId",
397
+ showSerialNumber: !1
398
+ })
399
+ };
400
+ return (e, t) => (p(), l(g(c), f({
401
+ ref_key: "pageListRef",
402
+ ref: S
403
+ }, E), null, 16));
404
+ }
405
+ });
406
+ //#endregion
407
+ export { b as default };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,182 @@
1
+ import { P as e, a as t, x as n } from "../../../chunks/button-Dk3CiB69.mjs";
2
+ import r from "../../../plugins/autoImport/$msg/index.mjs";
3
+ import { t as i } from "../../../chunks/page-list-C3nqGnnX.mjs";
4
+ import "../../../components/page-list/index.mjs";
5
+ import { createBlock as a, defineComponent as o, h as s, mergeProps as c, openBlock as l, reactive as u, ref as d, unref as f, useTemplateRef as p, watch as m } from "vue";
6
+ //#endregion
7
+ //#region ../../packages/dlzn-ui/views/system/post/index.vue
8
+ var h = /* @__PURE__ */ o({
9
+ __name: "index",
10
+ setup(o) {
11
+ let h = p("pageListRef"), g = {
12
+ postCode: {
13
+ _label: "岗位编码",
14
+ _required: !0,
15
+ component: "TInput",
16
+ model: "postCode"
17
+ },
18
+ postName: {
19
+ _label: "岗位名称",
20
+ _required: !0,
21
+ component: "TInput",
22
+ model: "postName"
23
+ },
24
+ postSort: {
25
+ _label: "岗位顺序",
26
+ _required: !0,
27
+ component: "TInputNumber",
28
+ decimalPlaces: 0,
29
+ model: "postSort",
30
+ theme: "row"
31
+ },
32
+ remark: {
33
+ _label: "备注",
34
+ component: "TTextarea",
35
+ model: "remark"
36
+ },
37
+ status: {
38
+ _label: "状态",
39
+ component: "TSelect",
40
+ dicCode: "sys_normal_disable",
41
+ model: "status"
42
+ }
43
+ }, _ = {
44
+ apis: {
45
+ delete: {
46
+ method: "system/post",
47
+ permission: "system:post:remove"
48
+ },
49
+ export: {
50
+ method: "system/post/export",
51
+ permission: "system:post:export"
52
+ },
53
+ list: { method: "system/post/list" }
54
+ },
55
+ columns: [
56
+ {
57
+ colKey: "postId",
58
+ title: "岗位编号"
59
+ },
60
+ {
61
+ colKey: "postCode",
62
+ title: "岗位编码"
63
+ },
64
+ {
65
+ colKey: "postName",
66
+ title: "岗位名称"
67
+ },
68
+ {
69
+ colKey: "postSort",
70
+ title: "岗位排序"
71
+ },
72
+ {
73
+ cell: {
74
+ component: "DicLabel",
75
+ dicCode: "sys_normal_disable"
76
+ },
77
+ colKey: "status",
78
+ title: "状态"
79
+ },
80
+ {
81
+ colKey: "createTime",
82
+ title: "创建时间"
83
+ },
84
+ {
85
+ colKey: "createBy",
86
+ title: "创建人"
87
+ },
88
+ {
89
+ colKey: "updateTime",
90
+ title: "更新时间"
91
+ },
92
+ {
93
+ colKey: "updateBy",
94
+ title: "更新人"
95
+ },
96
+ {
97
+ cell: {
98
+ buttons: [({ row: i }) => ({
99
+ default: "编辑",
100
+ onClick: () => {
101
+ let a = d(null);
102
+ m(a, () => {
103
+ a.value.setFormData(i);
104
+ }, { once: !0 }), e({
105
+ body: () => s(t, {
106
+ items: [
107
+ g.postCode,
108
+ g.postName,
109
+ g.postSort,
110
+ {
111
+ ...g.status,
112
+ component: "TRadioGroup"
113
+ },
114
+ g.remark
115
+ ],
116
+ labelAlign: "right",
117
+ layout: "vertical",
118
+ ref: a
119
+ }),
120
+ header: "修改岗位",
121
+ onConfirmCallback: async () => {
122
+ await n.Put("system/post", {
123
+ ...await a.value.validate(),
124
+ postId: i.postId
125
+ }), r.success("岗位修改成功"), h.value.query();
126
+ },
127
+ width: 430
128
+ });
129
+ },
130
+ permission: "system:post:edit"
131
+ })],
132
+ component: "Buttons"
133
+ },
134
+ colKey: "_operation",
135
+ title: "操作"
136
+ }
137
+ ],
138
+ formItems: [
139
+ g.postCode,
140
+ g.postName,
141
+ g.status
142
+ ],
143
+ operations: [{
144
+ default: "新增",
145
+ onClick: () => {
146
+ let i = d(null);
147
+ e({
148
+ body: () => s(t, {
149
+ data: u({ status: "0" }),
150
+ items: [
151
+ g.postCode,
152
+ g.postName,
153
+ g.postSort,
154
+ {
155
+ ...g.status,
156
+ component: "TRadioGroup"
157
+ },
158
+ g.remark
159
+ ],
160
+ labelAlign: "right",
161
+ layout: "vertical",
162
+ ref: i
163
+ }),
164
+ header: "添加岗位",
165
+ onConfirmCallback: async () => {
166
+ await n.Post("system/post", await i.value.validate()), r.success("岗位添加成功"), h.value.query();
167
+ },
168
+ width: 430
169
+ });
170
+ },
171
+ permission: "system:post:add"
172
+ }],
173
+ tableOtherProps: { rowKey: "postId" }
174
+ };
175
+ return (e, t) => (l(), a(f(i), c({
176
+ ref_key: "pageListRef",
177
+ ref: h
178
+ }, _), null, 16));
179
+ }
180
+ });
181
+ //#endregion
182
+ export { h as default };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;