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
@@ -1,2 +1,2 @@
1
- import { k as e } from "../../chunks/button-BcpR95gj.mjs";
1
+ import { k as e } from "../../chunks/button-Dk3CiB69.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/LoginBg-B1auGWuJ.mjs";
1
+ import { t as e } from "../../chunks/LoginBg-BD6ChYvu.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/MenuNode-Dp1kCBvH.mjs";
1
+ import { t as e } from "../../chunks/MenuNode-DXgE629W.mjs";
2
2
  export { e as default };
@@ -1,11 +1,11 @@
1
- import { i as e, x as t } from "../../chunks/button-BcpR95gj.mjs";
1
+ import { i as e, x as t } from "../../chunks/button-Dk3CiB69.mjs";
2
2
  import { isFalsy as n } from "../../utils/boolean.mjs";
3
3
  import "../../utils/index.mjs";
4
4
  import { t as r } from "../../chunks/card-BfHb58zl.mjs";
5
5
  import "../../components/card/index.mjs";
6
6
  import { t as i } from "../../chunks/tab-panel-CtYeK29i.mjs";
7
7
  import "../../components/tab-panel/index.mjs";
8
- import { t as a } from "../../chunks/UserInfo-CrBlooGu.mjs";
8
+ import { t as a } from "../../chunks/UserInfo-qrNR9tve.mjs";
9
9
  import { Fragment as o, computed as s, createBlock as c, createElementBlock as l, createVNode as u, defineComponent as d, markRaw as f, openBlock as p, provide as m, ref as h, renderList as g, resolveDynamicComponent as _, unref as v, withCtx as y } from "vue";
10
10
  import { List as b, ListItem as x, ListItemMeta as S, Tabs as C } from "tdesign-vue-next";
11
11
  import { useRequest as w } from "alova/client";
@@ -1,2 +1,2 @@
1
- import { i as e } from "../../chunks/button-BcpR95gj.mjs";
1
+ import { i as e } from "../../chunks/button-Dk3CiB69.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/UserInfo-CrBlooGu.mjs";
1
+ import { t as e } from "../../chunks/UserInfo-qrNR9tve.mjs";
2
2
  export { e as default };
package/package.json CHANGED
@@ -40,6 +40,14 @@
40
40
  },
41
41
  "./index.css": {
42
42
  "import": "./assets/css/index.css"
43
+ },
44
+ "./layout/*.vue": {
45
+ "types": "./layout/*.vue.d.ts",
46
+ "import": "./layout/*.mjs"
47
+ },
48
+ "./views/*.vue": {
49
+ "types": "./views/*.vue.d.ts",
50
+ "import": "./views/*.mjs"
43
51
  }
44
52
  },
45
53
  "publishConfig": {
@@ -93,5 +101,5 @@
93
101
  "> 1%",
94
102
  "not dead"
95
103
  ],
96
- "version": "2.0.5"
104
+ "version": "2.0.6"
97
105
  }
@@ -1,2 +1,2 @@
1
- import { C as e, S as t, x as n } from "../../../chunks/button-BcpR95gj.mjs";
1
+ import { C as e, S as t, x as n } from "../../../chunks/button-Dk3CiB69.mjs";
2
2
  export { n as default, t as getFilterEmptyParamsObj, e as getParamsString };
@@ -1,2 +1,2 @@
1
- import { P as e } from "../../../chunks/button-BcpR95gj.mjs";
1
+ import { P as e } from "../../../chunks/button-Dk3CiB69.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { F as e } from "../../../chunks/button-BcpR95gj.mjs";
1
+ import { F as e } from "../../../chunks/button-Dk3CiB69.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { D as e } from "../../../chunks/button-BcpR95gj.mjs";
1
+ import { D as e } from "../../../chunks/button-Dk3CiB69.mjs";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { t as e, x as t } from "../../chunks/button-BcpR95gj.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-BcpR95gj.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-BcpR95gj.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-UHMQ6ORy.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-Bb9OwRGB.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-CHfwy4gI.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-UHMQ6ORy.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-Bb9OwRGB.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-CHfwy4gI.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-BcpR95gj.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-BcpR95gj.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-BcpR95gj.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-BcpR95gj.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-BcpR95gj.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-BcpR95gj.mjs";
1
+ import { n as e, r as t } from "../../chunks/button-Dk3CiB69.mjs";
2
2
  export { t as default, e as getUserInfoMethod };
package/views/index.mjs CHANGED
@@ -1,6 +1,14 @@
1
1
  import e from "virtual:dlzn-ui/app-params";
2
2
  var t = {
3
- .../* @__PURE__ */ Object.assign({ "./system/dict/index.vue": () => import("./system/dict/index.mjs") }),
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
+ }),
4
12
  ...e.viewsEntryLazyImport
5
13
  };
6
14
  //#endregion
@@ -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 };
@@ -1,8 +1,8 @@
1
- import { F as e, P as t, a as n, x as r } from "../../../chunks/button-BcpR95gj.mjs";
1
+ import { F as e, P as t, a as n, x as r } from "../../../chunks/button-Dk3CiB69.mjs";
2
2
  import i from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as a } from "../../../chunks/page-list-BjjvOqb5.mjs";
3
+ import { t as a } from "../../../chunks/page-list-C3nqGnnX.mjs";
4
4
  import "../../../components/page-list/index.mjs";
5
- import { t as o } from "../../../chunks/DictTypeDetail-B_aSmp0m.mjs";
5
+ import { t as o } from "../../../chunks/DictTypeDetail-e14bGyiZ.mjs";
6
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
7
  //#endregion
8
8
  //#region ../../packages/dlzn-ui/views/system/dict/index.vue
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/DictTypeDetail-B_aSmp0m.mjs";
1
+ import { t as e } from "../../../../chunks/DictTypeDetail-e14bGyiZ.mjs";
2
2
  export { e as default };