dlzn-ui 2.0.4 → 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 (156) hide show
  1. package/assets/IndexItem-CfYDJ95Q.css +1 -0
  2. package/assets/LoginBg-BTrRjkK7.css +1 -0
  3. package/assets/button-Bwn73ZEc.css +2 -0
  4. package/chunks/AssignUser-DCju22tm.mjs +124 -0
  5. package/chunks/{Common-BQTZ_uz9.mjs → Common-DQbblaTl.mjs} +1 -1
  6. package/chunks/{Day-DHc-joxZ.mjs → Day-9BKmHuZl.mjs} +1 -1
  7. package/chunks/DictTypeDetail-e14bGyiZ.mjs +188 -0
  8. package/chunks/{Hour-C4kJ4rZT.mjs → Hour-CrFFADzT.mjs} +1 -1
  9. package/chunks/{Index-BxpYRhO7.mjs → Index-7ubKF9v4.mjs} +1 -1
  10. package/chunks/{Index-Bk3I0k1K.mjs → Index-CZ0ICyCx.mjs} +1 -1
  11. package/chunks/{Index-DU8S7od8.mjs → Index-CZnP6jHo.mjs} +1 -1
  12. package/chunks/{Index-CCG3SRsb.mjs → Index-ChH8kYUs.mjs} +1 -1
  13. package/chunks/{Index-BJtXtnZE.mjs → Index-DloA1g7z.mjs} +1 -1
  14. package/chunks/{Index-7nQvK_SL.mjs → Index-QUCWrT4d.mjs} +1 -1
  15. package/chunks/{IndexItem-BYR8l3fS.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-D8j_Ugxd.mjs → MenuNode-DXgE629W.mjs} +2 -2
  19. package/chunks/{Minute-CvRY311e.mjs → Minute-xZNOCy8Q.mjs} +1 -1
  20. package/chunks/{Month-CKIsP_K8.mjs → Month-CvWOcD_9.mjs} +1 -1
  21. package/chunks/{Second-BA45p0oz.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-BmzDf5OX.mjs → UserInfo-qrNR9tve.mjs} +1 -1
  26. package/chunks/{app-gfbohwfS.mjs → app-CggLqjRQ.mjs} +1 -1
  27. package/chunks/{button-CI_79tzA.mjs → button-Dk3CiB69.mjs} +381 -380
  28. package/chunks/{custom-page-list-ClOelq_X.mjs → custom-page-list-CJWB72dw.mjs} +4 -4
  29. package/chunks/{custom-page-table-BmrOVzPO.mjs → custom-page-table-5f8lI6CQ.mjs} +2 -2
  30. package/chunks/{overview-B15xOap9.mjs → overview-BEtKbidZ.mjs} +1 -1
  31. package/chunks/{page-list-TMA20Io6.mjs → page-list-C3nqGnnX.mjs} +3 -3
  32. package/chunks/{page-query-CGlzVmmX.mjs → page-query-C6oSW1je.mjs} +1 -1
  33. package/chunks/{page-table-BLWMUBZ0.mjs → page-table-3DTiPP9H.mjs} +3 -3
  34. package/chunks/{pagination-X1rzhDDh.mjs → pagination-C6-VAj4W.mjs} +1 -1
  35. package/chunks/{table-DI_apdgZ.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/index.d.ts +1 -1
  90. package/layout/Entry.mjs +2 -0
  91. package/layout/Login.mjs +2 -2
  92. package/layout/NotFound.mjs +1 -1
  93. package/layout/{index2.mjs → index.mjs} +2 -2
  94. package/layout/modules/Aside.mjs +1 -1
  95. package/layout/modules/Breadcrumb.mjs +1 -1
  96. package/layout/modules/Header.mjs +1 -1
  97. package/layout/modules/LoginBg.mjs +1 -1
  98. package/layout/modules/MenuNode.mjs +1 -1
  99. package/layout/profile/Index.mjs +2 -2
  100. package/layout/profile/ResetPwd.mjs +1 -1
  101. package/layout/profile/UserInfo.mjs +1 -1
  102. package/package.json +9 -1
  103. package/plugins/autoImport/$alova/index.mjs +1 -1
  104. package/plugins/autoImport/$confirm/index.mjs +1 -1
  105. package/plugins/autoImport/$dialog/index.mjs +1 -1
  106. package/plugins/autoImport/$drawer/index.mjs +1 -1
  107. package/plugins/captcha/captcha.mjs +1 -1
  108. package/plugins/captcha/index.mjs +1 -1
  109. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  110. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  111. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  112. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  113. package/plugins/tableRenders/cell/TypographyText/Index.mjs +1 -1
  114. package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
  115. package/plugins/tableRenders/cell/index.mjs +5 -5
  116. package/router/index.mjs +1 -1
  117. package/store/modules/common.mjs +1 -1
  118. package/store/modules/login.mjs +1 -1
  119. package/store/modules/recentRouters.mjs +1 -1
  120. package/store/modules/router.mjs +1 -1
  121. package/store/modules/user.mjs +1 -1
  122. package/views/index.d.ts +4 -0
  123. package/views/index.mjs +15 -0
  124. package/views/system/dept/index.mjs +256 -0
  125. package/views/system/dept/index.vue.d.ts +3 -0
  126. package/views/system/dept/utils.d.ts +2 -0
  127. package/views/system/dept/utils.mjs +15 -0
  128. package/views/system/dict/index.mjs +195 -0
  129. package/views/system/dict/index.vue.d.ts +3 -0
  130. package/views/system/dict/modules/DictTypeDetail.mjs +2 -0
  131. package/views/system/dict/modules/DictTypeDetail.vue.d.ts +6 -0
  132. package/views/system/menu/index.mjs +407 -0
  133. package/views/system/menu/index.vue.d.ts +3 -0
  134. package/views/system/post/index.mjs +182 -0
  135. package/views/system/post/index.vue.d.ts +3 -0
  136. package/views/system/role/index.mjs +319 -0
  137. package/views/system/role/index.vue.d.ts +3 -0
  138. package/views/system/role/modules/AssignUser.mjs +2 -0
  139. package/views/system/role/modules/AssignUser.vue.d.ts +6 -0
  140. package/views/system/role/modules/SelectDept.mjs +2 -0
  141. package/views/system/role/modules/SelectDept.vue.d.ts +6 -0
  142. package/views/system/role/modules/SelectMenu.mjs +2 -0
  143. package/views/system/role/modules/SelectMenu.vue.d.ts +6 -0
  144. package/views/system/role/modules/SelectUser.mjs +2 -0
  145. package/views/system/role/modules/SelectUser.vue.d.ts +11 -0
  146. package/views/system/user/index.mjs +451 -0
  147. package/views/system/user/index.vue.d.ts +9 -0
  148. package/views/tool/job/index.mjs +297 -0
  149. package/views/tool/job/index.vue.d.ts +3 -0
  150. package/views/tool/job/modules/Log.mjs +2 -0
  151. package/views/tool/job/modules/Log.vue.d.ts +6 -0
  152. package/assets/IndexItem-5VrD3wb-.css +0 -1
  153. package/assets/LoginBg-9HH4oQBJ.css +0 -1
  154. package/assets/button-BtFXYlHm.css +0 -2
  155. package/layout/Index.mjs +0 -2
  156. /package/layout/{Index.vue.d.ts → Entry.vue.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { t as e, x as t } from "../../chunks/button-CI_79tzA.mjs";
1
+ import { t as e, x as t } from "../../chunks/button-Dk3CiB69.mjs";
2
2
  import { t as n } from "../../chunks/icon-COjp1yrx.mjs";
3
3
  import "../../components/icon/index.mjs";
4
4
  import { aesEncrypt as r } from "../../utils/tool.mjs";
@@ -1,4 +1,4 @@
1
- import { F as e } from "../../chunks/button-CI_79tzA.mjs";
1
+ import { F as e } from "../../chunks/button-Dk3CiB69.mjs";
2
2
  import { defineAsyncComponent as t, h as n } from "vue";
3
3
  //#region ../../packages/dlzn-ui/plugins/captcha/index.ts
4
4
  var r = () => new Promise((r) => {
@@ -1,4 +1,4 @@
1
- import { P as e } from "../../chunks/button-CI_79tzA.mjs";
1
+ import { P as e } from "../../chunks/button-Dk3CiB69.mjs";
2
2
  import { nextTick as t, ref as n } from "vue";
3
3
  //#region ../../packages/dlzn-ui/plugins/initialize/webUpdateNotify.ts
4
4
  var r = !1;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-CCG3SRsb.mjs";
1
+ import { t as e } from "../../../../chunks/Index-ChH8kYUs.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-7nQvK_SL.mjs";
1
+ import { t as e } from "../../../../chunks/Index-QUCWrT4d.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-BJtXtnZE.mjs";
1
+ import { t as e } from "../../../../chunks/Index-DloA1g7z.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-DU8S7od8.mjs";
1
+ import { t as e } from "../../../../chunks/Index-CZnP6jHo.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-BxpYRhO7.mjs";
1
+ import { t as e } from "../../../../chunks/Index-7ubKF9v4.mjs";
2
2
  export { e as default };
@@ -1,8 +1,8 @@
1
1
  import { n as e } from "../../../chunks/useAppContext-D47amIp5.mjs";
2
2
  import { t } from "../../../chunks/Index-BChP9CTL.mjs";
3
- import { t as n } from "../../../chunks/Index-CCG3SRsb.mjs";
3
+ import { t as n } from "../../../chunks/Index-ChH8kYUs.mjs";
4
4
  import { t as r } from "../../../chunks/Index-BuqrJDKe.mjs";
5
- import { t as i } from "../../../chunks/Index-7nQvK_SL.mjs";
5
+ import { t as i } from "../../../chunks/Index-QUCWrT4d.mjs";
6
6
  import { t as a } from "../../../chunks/Index-Bye0GY_j.mjs";
7
7
  import { t as o } from "../../../chunks/Index-BwWS0oPl.mjs";
8
8
  import { t as s } from "../../../chunks/Index-bEWcnIHJ.mjs";
@@ -12,11 +12,11 @@ import { t as u } from "../../../chunks/Index-CwksT4hO.mjs";
12
12
  import { t as d } from "../../../chunks/Index-CS1bfxu7.mjs";
13
13
  import { t as f } from "../../../chunks/Index-DC0L_zaY.mjs";
14
14
  import { t as p } from "../../../chunks/Index-Bi44jQm2.mjs";
15
- import { t as m } from "../../../chunks/Index-BJtXtnZE.mjs";
15
+ import { t as m } from "../../../chunks/Index-DloA1g7z.mjs";
16
16
  import { t as h } from "../../../chunks/Index--rlVexBg.mjs";
17
17
  import { t as g } from "../../../chunks/Index-De48YIRG.mjs";
18
- import { t as _ } from "../../../chunks/Index-DU8S7od8.mjs";
19
- import { t as v } from "../../../chunks/Index-BxpYRhO7.mjs";
18
+ import { t as _ } from "../../../chunks/Index-CZnP6jHo.mjs";
19
+ import { t as v } from "../../../chunks/Index-7ubKF9v4.mjs";
20
20
  import { t as y } from "../../../chunks/Wrapper-LEchQmDn.mjs";
21
21
  //#region ../../packages/dlzn-ui/plugins/tableRenders/cell/index.ts
22
22
  var b = /* #__PURE__ */ Object.assign({
package/router/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { E as e, T as t, w as n } from "../chunks/button-CI_79tzA.mjs";
1
+ import { E as e, T as t, w as n } from "../chunks/button-Dk3CiB69.mjs";
2
2
  export { e as default, n as getRoute, t as getTopRoute };
@@ -1,2 +1,2 @@
1
- import { H as e } from "../../chunks/button-CI_79tzA.mjs";
1
+ import { H as e } from "../../chunks/button-Dk3CiB69.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { A as e } from "../../chunks/button-CI_79tzA.mjs";
1
+ import { A as e } from "../../chunks/button-Dk3CiB69.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { V as e } from "../../chunks/button-CI_79tzA.mjs";
1
+ import { V as e } from "../../chunks/button-Dk3CiB69.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { B as e, z as t } from "../../chunks/button-CI_79tzA.mjs";
1
+ import { B as e, z as t } from "../../chunks/button-Dk3CiB69.mjs";
2
2
  export { e as default, t as getRoutersMethod };
@@ -1,2 +1,2 @@
1
- import { n as e, r as t } from "../../chunks/button-CI_79tzA.mjs";
1
+ import { n as e, r as t } from "../../chunks/button-Dk3CiB69.mjs";
2
2
  export { t as default, e as getUserInfoMethod };
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ [x: string]: AsyncVueComponentLoaderDefault;
3
+ };
4
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import e from "virtual:dlzn-ui/app-params";
2
+ var t = {
3
+ .../* @__PURE__ */ Object.assign({
4
+ "./system/dept/index.vue": () => import("./system/dept/index.mjs"),
5
+ "./system/dict/index.vue": () => import("./system/dict/index.mjs"),
6
+ "./system/menu/index.vue": () => import("./system/menu/index.mjs"),
7
+ "./system/post/index.vue": () => import("./system/post/index.mjs"),
8
+ "./system/role/index.vue": () => import("./system/role/index.mjs"),
9
+ "./system/user/index.vue": () => import("./system/user/index.mjs"),
10
+ "./tool/job/index.vue": () => import("./tool/job/index.mjs")
11
+ }),
12
+ ...e.viewsEntryLazyImport
13
+ };
14
+ //#endregion
15
+ export { t as default };
@@ -0,0 +1,256 @@
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 { flatArrToTree as i } from "../../../utils/tree.mjs";
4
+ import "../../../utils/index.mjs";
5
+ import { t as a } from "../../../chunks/page-list-C3nqGnnX.mjs";
6
+ import "../../../components/page-list/index.mjs";
7
+ import { deptTreeList as o, deptTreeListSend as s } from "./utils.mjs";
8
+ import { createBlock as c, defineComponent as l, h as u, mergeProps as d, openBlock as f, reactive as p, ref as m, unref as h, useTemplateRef as g, watch as _ } from "vue";
9
+ //#endregion
10
+ //#region ../../packages/dlzn-ui/views/system/dept/index.vue
11
+ var v = /* @__PURE__ */ l({
12
+ __name: "index",
13
+ setup(l) {
14
+ s();
15
+ let v = g("pageListRef"), y = m([]), b = {
16
+ deptName: {
17
+ _label: "部门名称",
18
+ _required: !0,
19
+ component: "TInput",
20
+ model: "deptName"
21
+ },
22
+ email: {
23
+ _label: "邮箱",
24
+ _rules: [{ email: !0 }],
25
+ component: "TInput",
26
+ model: "email"
27
+ },
28
+ leader: {
29
+ _label: "负责人",
30
+ component: "TInput",
31
+ maxlength: 20,
32
+ model: "leader"
33
+ },
34
+ orderNum: {
35
+ _label: "显示排序",
36
+ _required: !0,
37
+ component: "TInputNumber",
38
+ decimalPlaces: 0,
39
+ model: "orderNum",
40
+ theme: "row"
41
+ },
42
+ parentId: {
43
+ __others: ({ formData: e }) => ({
44
+ data: o.value,
45
+ show: e.parentId !== "0"
46
+ }),
47
+ _label: "上级部门",
48
+ _required: !0,
49
+ component: "TTreeSelect",
50
+ data: [],
51
+ model: "parentId",
52
+ treeProps: { expandAll: !0 }
53
+ },
54
+ phone: {
55
+ _label: "联系电话",
56
+ _rules: [{ telnumber: !0 }],
57
+ component: "TInput",
58
+ model: "phone"
59
+ },
60
+ status: {
61
+ _label: "状态",
62
+ component: "TRadioGroup",
63
+ dicCode: "sys_normal_disable",
64
+ model: "status"
65
+ }
66
+ }, x = {
67
+ apis: { list: { method: (e) => n.Get("system/dept/list", {
68
+ params: {
69
+ ...e,
70
+ pageNum: void 0,
71
+ pageSize: void 0
72
+ },
73
+ transform: (e) => {
74
+ let t = i(e, { idKey: "deptId" }), n = (e) => {
75
+ e.forEach((e) => {
76
+ (e.children ?? []).length > 0 && (y.value.push(e.deptId), n(e.children));
77
+ });
78
+ };
79
+ return n(t), {
80
+ rows: t,
81
+ total: 0
82
+ };
83
+ }
84
+ }) } },
85
+ columns: [
86
+ {
87
+ colKey: "deptName",
88
+ fixed: "left",
89
+ title: "部门名称"
90
+ },
91
+ {
92
+ colKey: "orderNum",
93
+ title: "排序"
94
+ },
95
+ {
96
+ colKey: "deptId",
97
+ title: "部门ID"
98
+ },
99
+ {
100
+ cell: {
101
+ component: "DicLabel",
102
+ dicCode: "sys_normal_disable"
103
+ },
104
+ colKey: "status",
105
+ title: "状态"
106
+ },
107
+ {
108
+ colKey: "createTime",
109
+ title: "创建时间"
110
+ },
111
+ {
112
+ colKey: "createBy",
113
+ title: "创建人"
114
+ },
115
+ {
116
+ colKey: "updateTime",
117
+ title: "更新时间"
118
+ },
119
+ {
120
+ colKey: "updateBy",
121
+ title: "更新人"
122
+ },
123
+ {
124
+ cell: {
125
+ buttons: [
126
+ ({ row: i }) => ({
127
+ default: "编辑",
128
+ onClick: () => {
129
+ let a = m(null);
130
+ _(a, () => {
131
+ a.value.setFormData(i);
132
+ }, { once: !0 }), e({
133
+ body: () => u(t, {
134
+ items: [
135
+ b.parentId,
136
+ b.deptName,
137
+ b.orderNum,
138
+ b.leader,
139
+ b.phone,
140
+ b.email,
141
+ b.status
142
+ ],
143
+ ref: a
144
+ }),
145
+ header: "编辑部门",
146
+ onConfirmCallback: async () => {
147
+ let e = await a.value.validate();
148
+ await n.Put("system/dept", {
149
+ ...e,
150
+ deptId: i.deptId
151
+ }), s(), r.success("部门修改成功"), v.value.query();
152
+ },
153
+ width: 730
154
+ });
155
+ },
156
+ permission: "system:dept:edit"
157
+ }),
158
+ ({ row: i }) => ({
159
+ default: "新增",
160
+ onClick: () => {
161
+ let a = m(null);
162
+ e({
163
+ body: () => u(t, {
164
+ data: p({
165
+ parentId: i.deptId,
166
+ status: "0"
167
+ }),
168
+ items: [
169
+ {
170
+ ...b.parentId,
171
+ disabled: !0
172
+ },
173
+ b.deptName,
174
+ b.orderNum,
175
+ b.leader,
176
+ b.phone,
177
+ b.email,
178
+ b.status
179
+ ],
180
+ ref: a
181
+ }),
182
+ header: "新增部门",
183
+ onConfirmCallback: async () => {
184
+ await n.Post("system/dept", await a.value.validate()), s(), r.success("部门添加成功"), v.value.query();
185
+ },
186
+ width: 730
187
+ });
188
+ },
189
+ permission: "system:dept:add"
190
+ }),
191
+ ({ row: e }) => ({
192
+ default: "删除",
193
+ permission: "system:dept:remove",
194
+ popconfirm: {
195
+ content: "确认删除吗",
196
+ onConfirm: async () => {
197
+ await n.Delete(`system/dept/${e.deptId}`), s(), r("删除成功"), v.value.query();
198
+ }
199
+ },
200
+ show: e.parentId !== "0"
201
+ })
202
+ ],
203
+ component: "Buttons"
204
+ },
205
+ colKey: "_operation",
206
+ title: "操作"
207
+ }
208
+ ],
209
+ formItems: [b.deptName, {
210
+ ...b.status,
211
+ component: "TSelect"
212
+ }],
213
+ operations: [{
214
+ default: "新增",
215
+ onClick: () => {
216
+ let i = m(null);
217
+ e({
218
+ body: () => u(t, {
219
+ data: p({ status: "0" }),
220
+ items: [
221
+ b.parentId,
222
+ b.deptName,
223
+ b.orderNum,
224
+ b.leader,
225
+ b.phone,
226
+ b.email,
227
+ b.status
228
+ ],
229
+ ref: i
230
+ }),
231
+ header: "添加部门",
232
+ onConfirmCallback: async () => {
233
+ await n.Post("system/dept", await i.value.validate()), s(), r.success("部门添加成功"), v.value.query();
234
+ },
235
+ width: 730
236
+ });
237
+ },
238
+ permission: "system:dept:add"
239
+ }],
240
+ tableOtherProps: p({
241
+ expandedTreeNodes: y,
242
+ onExpandedTreeNodesChange: (e) => {
243
+ y.value = e;
244
+ },
245
+ rowKey: "deptId",
246
+ showSerialNumber: !1
247
+ })
248
+ };
249
+ return (e, t) => (f(), c(h(a), d({
250
+ ref_key: "pageListRef",
251
+ ref: v
252
+ }, x), null, 16));
253
+ }
254
+ });
255
+ //#endregion
256
+ export { v 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,2 @@
1
+ declare const deptTreeList: import('vue').Ref<Record<string, any>[], Record<string, any>[]>, deptTreeListSend: import('alova/client').SendHandler<any[], Record<string, any>[]>;
2
+ export { deptTreeList, deptTreeListSend };
@@ -0,0 +1,15 @@
1
+ import { x as e } from "../../../chunks/button-Dk3CiB69.mjs";
2
+ import { flatArrToTree as t } from "../../../utils/tree.mjs";
3
+ import "../../../utils/index.mjs";
4
+ import { useRequest as n } from "alova/client";
5
+ //#region ../../packages/dlzn-ui/views/system/dept/utils.ts
6
+ var { data: r, send: i } = n(e.Get("system/dept/list", { transform: (e) => t(e.map((e) => ({
7
+ ...e,
8
+ label: e.deptName,
9
+ value: e.deptId
10
+ })), { idKey: "value" }) }), {
11
+ immediate: !1,
12
+ initialData: []
13
+ });
14
+ //#endregion
15
+ export { r as deptTreeList, i as deptTreeListSend };
@@ -0,0 +1,195 @@
1
+ import { F as e, P as t, a as n, x as r } from "../../../chunks/button-Dk3CiB69.mjs";
2
+ import i from "../../../plugins/autoImport/$msg/index.mjs";
3
+ import { t as a } from "../../../chunks/page-list-C3nqGnnX.mjs";
4
+ import "../../../components/page-list/index.mjs";
5
+ import { t as o } from "../../../chunks/DictTypeDetail-e14bGyiZ.mjs";
6
+ import { createBlock as s, defineComponent as c, h as l, mergeProps as u, openBlock as d, reactive as f, ref as p, unref as m, useTemplateRef as h, watch as g } from "vue";
7
+ //#endregion
8
+ //#region ../../packages/dlzn-ui/views/system/dict/index.vue
9
+ var _ = /* @__PURE__ */ c({
10
+ __name: "index",
11
+ setup(c) {
12
+ let _ = h("pageListRef"), v = {
13
+ dateRange: {
14
+ _class: "col-span-2",
15
+ _label: "创建时间",
16
+ component: "TDatePicker",
17
+ model: "dateRange",
18
+ type: "daterange"
19
+ },
20
+ dictName: {
21
+ _label: "字典名称",
22
+ _required: !0,
23
+ component: "TInput",
24
+ model: "dictName"
25
+ },
26
+ dictType: {
27
+ _label: "字典类型",
28
+ _required: !0,
29
+ component: "TInput",
30
+ model: "dictType"
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
+ }, y = {
44
+ apis: {
45
+ delete: {
46
+ method: "system/dict/type",
47
+ permission: "system:dict:remove"
48
+ },
49
+ export: {
50
+ method: "system/dict/type/export",
51
+ permission: "system:dict:export"
52
+ },
53
+ list: { method: (e) => r.Get("system/dict/type/list", { params: {
54
+ ...e,
55
+ dateRange: void 0,
56
+ "params[beginTime]": e.dateRange[0] ?? "",
57
+ "params[endTime]": e.dateRange[1] ?? ""
58
+ } }) }
59
+ },
60
+ columns: [
61
+ {
62
+ colKey: "dictId",
63
+ title: "字典编号"
64
+ },
65
+ {
66
+ colKey: "dictName",
67
+ title: "字典名称"
68
+ },
69
+ {
70
+ cell: (t, { row: n }) => ({
71
+ component: "TypographyTextLink",
72
+ link: { onClick: () => {
73
+ e({
74
+ body: () => l(o, { dictType: n.dictType }),
75
+ footer: !1,
76
+ header: `字典类型: ${n.dictName}(${n.dictType})`,
77
+ width: 1500
78
+ });
79
+ } }
80
+ }),
81
+ colKey: "dictType",
82
+ title: "字典类型"
83
+ },
84
+ {
85
+ cell: {
86
+ component: "DicLabel",
87
+ dicCode: "sys_normal_disable"
88
+ },
89
+ colKey: "status",
90
+ title: "状态"
91
+ },
92
+ {
93
+ colKey: "remark",
94
+ title: "备注"
95
+ },
96
+ {
97
+ colKey: "createBy",
98
+ title: "创建人"
99
+ },
100
+ {
101
+ colKey: "createTime",
102
+ title: "创建时间"
103
+ },
104
+ {
105
+ cell: {
106
+ buttons: [({ row: e }) => ({
107
+ default: "编辑",
108
+ onClick: () => {
109
+ let a = p(null);
110
+ g(a, () => {
111
+ a.value.setFormData(e);
112
+ }, { once: !0 }), t({
113
+ body: () => l(n, {
114
+ items: [
115
+ v.dictName,
116
+ v.dictType,
117
+ {
118
+ ...v.status,
119
+ component: "TRadioGroup"
120
+ },
121
+ v.remark
122
+ ],
123
+ labelAlign: "right",
124
+ layout: "vertical",
125
+ ref: a
126
+ }),
127
+ header: "修改字典类型",
128
+ onConfirmCallback: async () => {
129
+ await r.Put("system/dict/type", {
130
+ ...await a.value.validate(),
131
+ dictId: e.dictId
132
+ }), i.success("字典类型修改成功"), _.value.query();
133
+ },
134
+ width: 430
135
+ });
136
+ },
137
+ permission: "system:dict:edit"
138
+ })],
139
+ component: "Buttons"
140
+ },
141
+ colKey: "_operation",
142
+ title: "操作"
143
+ }
144
+ ],
145
+ formItems: [
146
+ v.dictName,
147
+ v.dictType,
148
+ v.status,
149
+ v.dateRange
150
+ ],
151
+ operations: [{
152
+ default: "新增",
153
+ onClick: () => {
154
+ let e = p(null);
155
+ t({
156
+ body: () => l(n, {
157
+ data: f({ status: "0" }),
158
+ items: [
159
+ v.dictName,
160
+ v.dictType,
161
+ {
162
+ ...v.status,
163
+ component: "TRadioGroup"
164
+ },
165
+ v.remark
166
+ ],
167
+ labelAlign: "right",
168
+ layout: "vertical",
169
+ ref: e
170
+ }),
171
+ header: "添加字典类型",
172
+ onConfirmCallback: async () => {
173
+ await r.Post("system/dict/type", await e.value.validate()), i.success("字典添加成功"), _.value.query();
174
+ },
175
+ width: 430
176
+ });
177
+ },
178
+ permission: "system:dict:add"
179
+ }, {
180
+ default: "刷新缓存",
181
+ onClick: async () => {
182
+ await r.Delete("system/dict/type/refreshCache", void 0, { meta: { useSuccessMsg: !0 } }), _.value.query();
183
+ },
184
+ permission: "system:dict:remove"
185
+ }],
186
+ tableOtherProps: { rowKey: "dictId" }
187
+ };
188
+ return (e, t) => (d(), s(m(a), u({
189
+ ref_key: "pageListRef",
190
+ ref: _
191
+ }, y), null, 16));
192
+ }
193
+ });
194
+ //#endregion
195
+ export { _ 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,2 @@
1
+ import { t as e } from "../../../../chunks/DictTypeDetail-e14bGyiZ.mjs";
2
+ export { e as default };
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ dictType: string;
3
+ };
4
+ 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>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;