dlzn-ui 2.0.5 → 2.0.7

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 (166) hide show
  1. package/assets/IndexItem-CfYDJ95Q.css +1 -0
  2. package/assets/LoginBg-XqWOv7dJ.css +1 -0
  3. package/assets/main-CxSb5Gqw.css +2 -0
  4. package/assets/{button-Be7wyDo4.css → provider-1BcdscQq.css} +1 -1
  5. package/chunks/AssignUser-BPrzGjCg.mjs +124 -0
  6. package/chunks/{Common-B5NscAh_.mjs → Common-Ds4A0g73.mjs} +7 -7
  7. package/chunks/{Day-Ci8nR_Ll.mjs → Day-CWWVjsXu.mjs} +13 -13
  8. package/chunks/{DictTypeDetail-B_aSmp0m.mjs → DictTypeDetail-ijxK2MDm.mjs} +7 -7
  9. package/chunks/{Hour-C1yYXl7B.mjs → Hour-D-2s4xgR.mjs} +1 -1
  10. package/chunks/{Index-BxpYRhO7.mjs → Index-7ubKF9v4.mjs} +1 -1
  11. package/chunks/{Index-DU8S7od8.mjs → Index-CZnP6jHo.mjs} +1 -1
  12. package/chunks/{Index-UHMQ6ORy.mjs → Index-D0dEcWw2.mjs} +1 -1
  13. package/chunks/{Index-CHfwy4gI.mjs → Index-DhkEiAro.mjs} +5 -5
  14. package/chunks/{Index-Bb9OwRGB.mjs → Index-DoPLbOv7.mjs} +1 -1
  15. package/chunks/{Index-Z81MxcDh.mjs → Index-az-w01U3.mjs} +1 -1
  16. package/chunks/{IndexItem-BWoJrz24.mjs → IndexItem-KlRJte7i.mjs} +8 -8
  17. package/chunks/Log-LYCmf0zI.mjs +213 -0
  18. package/chunks/{LoginBg-B1auGWuJ.mjs → LoginBg-BtuSDFUq.mjs} +11 -19
  19. package/chunks/{MenuNode-Dp1kCBvH.mjs → MenuNode-6Nca-v9i.mjs} +2 -2
  20. package/chunks/{Minute-CA5DlXsq.mjs → Minute-8BpPY8V6.mjs} +1 -1
  21. package/chunks/{Month-D-4ld14M.mjs → Month-C5iIZpY7.mjs} +1 -1
  22. package/chunks/{Second-RPGoCkey.mjs → Second-BKF09AKl.mjs} +1 -1
  23. package/chunks/SelectDept-C78pnJtp.mjs +68 -0
  24. package/chunks/SelectMenu-B2-QkHU2.mjs +68 -0
  25. package/chunks/SelectUser-BuE4Lgm0.mjs +57 -0
  26. package/chunks/{UserInfo-CrBlooGu.mjs → UserInfo-uDVj4WPH.mjs} +11 -11
  27. package/chunks/{Wrapper-LEchQmDn.mjs → Wrapper-C6BtJDSa.mjs} +5 -5
  28. package/chunks/{app-DiNoDaOD.mjs → app-BXskd1Ae.mjs} +4 -4
  29. package/chunks/{custom-page-list-DF3Qw4y7.mjs → custom-page-list-r5EUcg98.mjs} +4 -4
  30. package/chunks/{custom-page-table-CH09hGDM.mjs → custom-page-table-D1FmkEop.mjs} +2 -2
  31. package/chunks/{overview-BQQnpz4N.mjs → overview-BCXuALeB.mjs} +1 -1
  32. package/chunks/{page-list-BjjvOqb5.mjs → page-list-Zp_EiMZd.mjs} +36 -36
  33. package/chunks/{page-query-BCNFOYTD.mjs → page-query-CxZBtQht.mjs} +5 -5
  34. package/chunks/{page-table-VeEt8uuI.mjs → page-table-BpyyKTMq.mjs} +9 -9
  35. package/chunks/{pagination-BuhM6NW1.mjs → pagination-y5tkmGDM.mjs} +1 -1
  36. package/chunks/{button-BcpR95gj.mjs → provider-C6TTHGoz.mjs} +429 -433
  37. package/chunks/{table-B3z8z5O8.mjs → table-2Eqd8Kcx.mjs} +10 -10
  38. package/components/app/index.mjs +1 -1
  39. package/components/app/src/app.mjs +1 -1
  40. package/components/button/index.mjs +1 -1
  41. package/components/button/src/button.mjs +1 -1
  42. package/components/checkbox-group/index.mjs +1 -1
  43. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  44. package/components/cron/index.mjs +1 -1
  45. package/components/cron/src/Common.mjs +1 -1
  46. package/components/cron/src/Day.mjs +1 -1
  47. package/components/cron/src/Hour.mjs +1 -1
  48. package/components/cron/src/Minute.mjs +1 -1
  49. package/components/cron/src/Month.mjs +1 -1
  50. package/components/cron/src/Picker.mjs +6 -6
  51. package/components/cron/src/Second.mjs +1 -1
  52. package/components/cron/src/cron.mjs +1 -1
  53. package/components/custom-page-list/index.mjs +1 -1
  54. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  55. package/components/custom-page-table/index.mjs +1 -1
  56. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  57. package/components/date-picker/index.mjs +1 -1
  58. package/components/date-picker/src/date-picker.mjs +1 -1
  59. package/components/form/index.mjs +1 -1
  60. package/components/form/src/form.mjs +1 -1
  61. package/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  62. package/components/index.mjs +11 -11
  63. package/components/overview/index.mjs +1 -1
  64. package/components/overview/src/DicLabel/Index.mjs +1 -1
  65. package/components/overview/src/IndexItem.mjs +1 -1
  66. package/components/overview/src/overview.mjs +1 -1
  67. package/components/page-list/index.mjs +1 -1
  68. package/components/page-list/src/page-list.d.ts +3 -3
  69. package/components/page-list/src/page-list.mjs +1 -1
  70. package/components/page-query/index.mjs +1 -1
  71. package/components/page-query/src/page-query.mjs +1 -1
  72. package/components/page-table/index.mjs +1 -1
  73. package/components/page-table/src/page-table.mjs +1 -1
  74. package/components/page-table/src/page-table.vue.d.ts +1 -1
  75. package/components/pagination/index.mjs +1 -1
  76. package/components/pagination/src/pagination.mjs +1 -1
  77. package/components/provider/index.mjs +1 -1
  78. package/components/provider/src/Provider.mjs +1 -1
  79. package/components/radio-group/index.mjs +1 -1
  80. package/components/radio-group/src/radio-group.mjs +1 -1
  81. package/components/select/index.mjs +2 -2
  82. package/components/select/src/select.mjs +1 -1
  83. package/components/select-sys-user/index.mjs +1 -1
  84. package/components/select-sys-user/src/Picker.mjs +2 -2
  85. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  86. package/components/table/index.mjs +1 -1
  87. package/components/table/src/table.mjs +1 -1
  88. package/components/table/src/table.vue.d.ts +1 -1
  89. package/components/tree/index.mjs +2 -2
  90. package/components/tree/src/tree.mjs +1 -1
  91. package/components/tree-select/index.mjs +1 -1
  92. package/components/tree-select/src/tree-select.mjs +1 -1
  93. package/components/upload/index.mjs +2 -2
  94. package/components/upload/src/upload.mjs +1 -1
  95. package/hooks/useDicOptions/index.mjs +2 -2
  96. package/hooks/useSysUser/index.mjs +2 -2
  97. package/index.d.ts +3 -0
  98. package/layout/Entry.mjs +2 -0
  99. package/layout/Login.mjs +5 -5
  100. package/layout/NotFound.mjs +1 -1
  101. package/layout/{index2.mjs → index.mjs} +1 -1
  102. package/layout/modules/Aside.mjs +1 -1
  103. package/layout/modules/Breadcrumb.mjs +1 -1
  104. package/layout/modules/Header.mjs +1 -1
  105. package/layout/modules/LoginBg.mjs +1 -1
  106. package/layout/modules/MenuNode.mjs +1 -1
  107. package/layout/profile/Index.mjs +4 -4
  108. package/layout/profile/ResetPwd.mjs +1 -1
  109. package/layout/profile/UserInfo.mjs +1 -1
  110. package/main.d.ts +2 -0
  111. package/main.mjs +14 -0
  112. package/package.json +13 -1
  113. package/plugins/autoImport/$alova/index.mjs +2 -2
  114. package/plugins/autoImport/$confirm/index.mjs +1 -1
  115. package/plugins/autoImport/$dialog/index.mjs +1 -1
  116. package/plugins/autoImport/$drawer/index.mjs +1 -1
  117. package/plugins/captcha/captcha.mjs +12 -12
  118. package/plugins/captcha/index.mjs +1 -1
  119. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  120. package/plugins/tableRenders/Wrapper.mjs +1 -1
  121. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  122. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  123. package/plugins/tableRenders/cell/ImageViewer/Index.vue.d.ts +1 -1
  124. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  125. package/plugins/tableRenders/cell/TypographyText/Index.mjs +1 -1
  126. package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
  127. package/plugins/tableRenders/cell/index.mjs +6 -6
  128. package/plugins/tableRenders/title/index.mjs +1 -1
  129. package/router/index.mjs +1 -1
  130. package/store/modules/common.mjs +1 -1
  131. package/store/modules/login.mjs +1 -1
  132. package/store/modules/recentRouters.mjs +1 -1
  133. package/store/modules/router.mjs +1 -1
  134. package/store/modules/user.mjs +2 -2
  135. package/views/index.mjs +9 -1
  136. package/views/system/dept/index.mjs +256 -0
  137. package/views/system/dept/index.vue.d.ts +3 -0
  138. package/views/system/dept/utils.d.ts +2 -0
  139. package/views/system/dept/utils.mjs +15 -0
  140. package/views/system/dict/index.mjs +18 -18
  141. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  142. package/views/system/menu/index.mjs +407 -0
  143. package/views/system/menu/index.vue.d.ts +3 -0
  144. package/views/system/post/index.mjs +182 -0
  145. package/views/system/post/index.vue.d.ts +3 -0
  146. package/views/system/role/index.mjs +319 -0
  147. package/views/system/role/index.vue.d.ts +3 -0
  148. package/views/system/role/modules/AssignUser.mjs +2 -0
  149. package/views/system/role/modules/AssignUser.vue.d.ts +6 -0
  150. package/views/system/role/modules/SelectDept.mjs +2 -0
  151. package/views/system/role/modules/SelectDept.vue.d.ts +6 -0
  152. package/views/system/role/modules/SelectMenu.mjs +2 -0
  153. package/views/system/role/modules/SelectMenu.vue.d.ts +6 -0
  154. package/views/system/role/modules/SelectUser.mjs +2 -0
  155. package/views/system/role/modules/SelectUser.vue.d.ts +11 -0
  156. package/views/system/user/index.mjs +451 -0
  157. package/views/system/user/index.vue.d.ts +9 -0
  158. package/views/tool/job/index.mjs +297 -0
  159. package/views/tool/job/index.vue.d.ts +3 -0
  160. package/views/tool/job/modules/Log.mjs +2 -0
  161. package/views/tool/job/modules/Log.vue.d.ts +6 -0
  162. package/assets/IndexItem-5VrD3wb-.css +0 -1
  163. package/assets/LoginBg-9HH4oQBJ.css +0 -1
  164. package/layout/Index.mjs +0 -2
  165. package/chunks/{date-picker-DtbDIFUH.mjs → date-picker-D15OhWnK.mjs} +1 -1
  166. /package/layout/{Index.vue.d.ts → Entry.vue.d.ts} +0 -0
@@ -1,8 +1,8 @@
1
1
  import e from "virtual:dlzn-ui/app-params";
2
2
  var t = {
3
3
  .../* @__PURE__ */ Object.assign({
4
+ "./Entry.vue": () => import("./Entry.mjs"),
4
5
  "./Home.vue": () => import("./Home.mjs"),
5
- "./Index.vue": () => import("./Index.mjs"),
6
6
  "./Login.vue": () => import("./Login.mjs"),
7
7
  "./NotFound.vue": () => import("./NotFound.mjs"),
8
8
  "./modules/LoginBg.vue": () => import("./modules/LoginBg.mjs"),
@@ -1,2 +1,2 @@
1
- import { R as e } from "../../chunks/button-BcpR95gj.mjs";
1
+ import { R as e } from "../../chunks/provider-C6TTHGoz.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { L as e } from "../../chunks/button-BcpR95gj.mjs";
1
+ import { L as e } from "../../chunks/provider-C6TTHGoz.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { k as e } from "../../chunks/button-BcpR95gj.mjs";
1
+ import { A as e } from "../../chunks/provider-C6TTHGoz.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-BtuSDFUq.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-6Nca-v9i.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 { S as e, a as t } from "../../chunks/provider-C6TTHGoz.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-uDVj4WPH.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";
@@ -13,7 +13,7 @@ import { useRequest as w } from "alova/client";
13
13
  var T = { class: "flex gap-4" }, E = /* @__PURE__ */ d({
14
14
  __name: "Index",
15
15
  setup(d) {
16
- let { data: E, send: D } = w(t.Get("system/user/profile", { meta: { useDataResult: !1 } }), { initialData: {} }), O = s(() => {
16
+ let { data: E, send: D } = w(e.Get("system/user/profile", { meta: { useDataResult: !1 } }), { initialData: {} }), O = s(() => {
17
17
  let e = E.value.data;
18
18
  return e === void 0 ? [] : [
19
19
  {
@@ -46,7 +46,7 @@ var T = { class: "flex gap-4" }, E = /* @__PURE__ */ d({
46
46
  label: "基本资料",
47
47
  value: "userInfo"
48
48
  }, {
49
- component: f(e),
49
+ component: f(t),
50
50
  label: "修改密码",
51
51
  value: "resetPwd"
52
52
  }], A = h(k[0].value);
@@ -1,2 +1,2 @@
1
- import { i as e } from "../../chunks/button-BcpR95gj.mjs";
1
+ import { a as e } from "../../chunks/provider-C6TTHGoz.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-uDVj4WPH.mjs";
2
2
  export { e as default };
package/main.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare const app: import('vue').App<Element>;
2
+ export default app;
package/main.mjs ADDED
@@ -0,0 +1,14 @@
1
+ import { D as e, H as t } from "./chunks/provider-C6TTHGoz.mjs";
2
+ import { t as n } from "./chunks/app-BXskd1Ae.mjs";
3
+ import "./components/app/index.mjs";
4
+ import r from "./plugins/directive/index.mjs";
5
+ import i from "./store/index.mjs";
6
+ import "./plugins/initialize/index.mjs";
7
+ import { autoAnimatePlugin as a } from "@formkit/auto-animate/vue";
8
+ import { createApp as o } from "vue";
9
+ import "tdesign-vue-next/es/style/index.css";
10
+ import './assets/main-CxSb5Gqw.css';//#region ../../packages/dlzn-ui/main.ts
11
+ var s = o(n);
12
+ s.config.throwUnhandledErrorInProduction = !0, s.use(i), s.use(e), s.use(r), s.use(a), t().getAppInfo();
13
+ //#endregion
14
+ export { s as default };
package/package.json CHANGED
@@ -6,6 +6,10 @@
6
6
  ".": {
7
7
  "types": "./index.d.ts"
8
8
  },
9
+ "./main": {
10
+ "types": "./main.d.ts",
11
+ "import": "./main.mjs"
12
+ },
9
13
  "./components/*": {
10
14
  "types": "./components/*/index.d.ts",
11
15
  "import": "./components/*/index.mjs"
@@ -40,6 +44,14 @@
40
44
  },
41
45
  "./index.css": {
42
46
  "import": "./assets/css/index.css"
47
+ },
48
+ "./layout/*": {
49
+ "types": "./layout/*.vue.d.ts",
50
+ "import": "./layout/*.mjs"
51
+ },
52
+ "./views/*": {
53
+ "types": "./views/*.vue.d.ts",
54
+ "import": "./views/*.mjs"
43
55
  }
44
56
  },
45
57
  "publishConfig": {
@@ -93,5 +105,5 @@
93
105
  "> 1%",
94
106
  "not dead"
95
107
  ],
96
- "version": "2.0.5"
108
+ "version": "2.0.7"
97
109
  }
@@ -1,2 +1,2 @@
1
- import { C as e, S as t, x as n } from "../../../chunks/button-BcpR95gj.mjs";
2
- export { n as default, t as getFilterEmptyParamsObj, e as getParamsString };
1
+ import { C as e, S as t, w as n } from "../../../chunks/provider-C6TTHGoz.mjs";
2
+ export { t as default, e as getFilterEmptyParamsObj, n as getParamsString };
@@ -1,2 +1,2 @@
1
- import { P as e } from "../../../chunks/button-BcpR95gj.mjs";
1
+ import { F as e } from "../../../chunks/provider-C6TTHGoz.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { F as e } from "../../../chunks/button-BcpR95gj.mjs";
1
+ import { I as e } from "../../../chunks/provider-C6TTHGoz.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { D as e } from "../../../chunks/button-BcpR95gj.mjs";
1
+ import { O as e } from "../../../chunks/provider-C6TTHGoz.mjs";
2
2
  export { e as default };
@@ -1,18 +1,18 @@
1
- import { t as e, x as t } from "../../chunks/button-BcpR95gj.mjs";
1
+ import { S as e, n as t } from "../../chunks/provider-C6TTHGoz.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";
5
5
  import "../../utils/index.mjs";
6
6
  import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, normalizeStyle as f, onMounted as p, openBlock as m, ref as h, toDisplayString as g, unref as _, useTemplateRef as v, vShow as y, withCtx as b, withDirectives as x } from "vue";
7
- import { useDraggable as S, useElementSize as C } from "@vueuse/core";
8
- import { LoadingDirective as w } from "tdesign-vue-next";
7
+ import { LoadingDirective as S } from "tdesign-vue-next";
8
+ import { useDraggable as C, useElementSize as w } from "@vueuse/core";
9
9
  import { useRequest as T } from "alova/client";
10
10
  //#region ../../packages/dlzn-ui/plugins/captcha/captcha.vue?vue&type=script&setup=true&lang.ts
11
11
  var E = ["src"], D = ["src"], O = 155, k = /* @__PURE__ */ u({
12
12
  __name: "captcha",
13
13
  emits: ["success"],
14
14
  setup(u, { emit: k }) {
15
- let A = k, j = w, M = {
15
+ let A = k, j = S, M = {
16
16
  barHeight: 40,
17
17
  imgHeight: O,
18
18
  imgWidth: 310
@@ -32,14 +32,14 @@ var E = ["src"], D = ["src"], O = 155, k = /* @__PURE__ */ u({
32
32
  bgColor: "#d9534f",
33
33
  color: "#fff",
34
34
  icon: "icon-close"
35
- }), B = h(0), V = h(""), H = h(""), U = v("dragBlock"), { width: W } = C(L, void 0, { box: "border-box" }), { x: G } = S(U, {
35
+ }), B = h(0), V = h(""), H = h(""), U = v("dragBlock"), { width: W } = w(L, void 0, { box: "border-box" }), { x: G } = C(U, {
36
36
  axis: "x",
37
37
  containerElement: L,
38
- onEnd: async ({ x: e }) => {
38
+ onEnd: async ({ x: t }) => {
39
39
  let n = Date.now();
40
- (await t.Post("captcha/check", {
40
+ (await e.Post("captcha/check", {
41
41
  pointJson: await r(JSON.stringify({
42
- x: e,
42
+ x: t,
43
43
  y: 5
44
44
  }), H.value),
45
45
  token: V.value
@@ -48,7 +48,7 @@ var E = ["src"], D = ["src"], O = 155, k = /* @__PURE__ */ u({
48
48
  useToken: !1
49
49
  } })).repCode === "0000" ? (R.value = "success", I.value = `${((n - B.value) / 1e3).toFixed(2)}s验证成功`, setTimeout(async () => {
50
50
  A("success", await r(`${V.value}---${JSON.stringify({
51
- x: e,
51
+ x: t,
52
52
  y: 5
53
53
  })}`, H.value));
54
54
  }, 500)) : (R.value = "fail", I.value = "验证失败", setTimeout(() => {
@@ -61,7 +61,7 @@ var E = ["src"], D = ["src"], O = 155, k = /* @__PURE__ */ u({
61
61
  },
62
62
  preventDefault: !0,
63
63
  stopPropagation: !0
64
- }), K = i(() => Math.min(G.value, W.value - M.barHeight)), { loading: q, send: J } = T(t.Post("captcha/get", {}, { meta: {
64
+ }), K = i(() => Math.min(G.value, W.value - M.barHeight)), { loading: q, send: J } = T(e.Post("captcha/get", {}, { meta: {
65
65
  useLoading: !1,
66
66
  useToken: !1
67
67
  } }), { immediate: !1 });
@@ -75,7 +75,7 @@ var E = ["src"], D = ["src"], O = 155, k = /* @__PURE__ */ u({
75
75
  function X() {
76
76
  I.value = "", G.value = 0, R.value = "default", H.value = "", Y();
77
77
  }
78
- return (t, r) => x((m(), s("div", {
78
+ return (e, r) => x((m(), s("div", {
79
79
  class: "relative overflow-hidden",
80
80
  style: f({ width: `${M.imgWidth}px` }),
81
81
  onSelectstart: () => !1
@@ -87,7 +87,7 @@ var E = ["src"], D = ["src"], O = 155, k = /* @__PURE__ */ u({
87
87
  class: "block h-full w-full",
88
88
  src: P.value ? `data:image/png;base64,${P.value}` : _(N)
89
89
  }, null, 8, E),
90
- l(_(e), {
90
+ l(_(t), {
91
91
  class: "absolute! top-0 right-0",
92
92
  shape: "square",
93
93
  variant: "text",
@@ -1,4 +1,4 @@
1
- import { F as e } from "../../chunks/button-BcpR95gj.mjs";
1
+ import { I as e } from "../../chunks/provider-C6TTHGoz.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 { F as e } from "../../chunks/provider-C6TTHGoz.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/Wrapper-LEchQmDn.mjs";
1
+ import { t as e } from "../../chunks/Wrapper-C6BtJDSa.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-UHMQ6ORy.mjs";
1
+ import { t as e } from "../../../../chunks/Index-D0dEcWw2.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-DoPLbOv7.mjs";
2
2
  export { e as default };
@@ -1,9 +1,9 @@
1
1
  declare const __VLS_export: import('vue').DefineComponent<import('../../../../components/image-viewer').ImageViewerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('../../../../components/image-viewer').ImageViewerProps> & Readonly<{}>, {
2
2
  visible: boolean;
3
3
  closeBtn: boolean | import('tdesign-vue-next').TNode;
4
- showOverlay: boolean;
5
4
  closeOnEscKeydown: boolean;
6
5
  draggable: boolean;
6
+ showOverlay: boolean;
7
7
  closeOnOverlay: boolean;
8
8
  navigationArrow: boolean | import('tdesign-vue-next').TNode;
9
9
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-CHfwy4gI.mjs";
1
+ import { t as e } from "../../../../chunks/Index-DhkEiAro.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-D0dEcWw2.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-DoPLbOv7.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,12 +12,12 @@ 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-DhkEiAro.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";
20
- import { t as y } from "../../../chunks/Wrapper-LEchQmDn.mjs";
18
+ import { t as _ } from "../../../chunks/Index-CZnP6jHo.mjs";
19
+ import { t as v } from "../../../chunks/Index-7ubKF9v4.mjs";
20
+ import { t as y } from "../../../chunks/Wrapper-C6BtJDSa.mjs";
21
21
  //#region ../../packages/dlzn-ui/plugins/tableRenders/cell/index.ts
22
22
  var b = /* #__PURE__ */ Object.assign({
23
23
  "./Avatar/Index.vue": t,
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../../chunks/Wrapper-LEchQmDn.mjs";
1
+ import { t as e } from "../../../chunks/Wrapper-C6BtJDSa.mjs";
2
2
  import { t } from "../../../chunks/Index-Cesv9ltS.mjs";
3
3
  //#region ../../packages/dlzn-ui/plugins/tableRenders/title/index.ts
4
4
  var n = /* #__PURE__ */ Object.assign({ "./Default/Index.vue": t });
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 { D as e, E as t, T as n } from "../chunks/provider-C6TTHGoz.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/provider-C6TTHGoz.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { A as e } from "../../chunks/button-BcpR95gj.mjs";
1
+ import { j as e } from "../../chunks/provider-C6TTHGoz.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/provider-C6TTHGoz.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/provider-C6TTHGoz.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";
2
- export { t as default, e as getUserInfoMethod };
1
+ import { i as e, r as t } from "../../chunks/provider-C6TTHGoz.mjs";
2
+ export { e as default, t 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 { F as e, S as t, o as n } from "../../../chunks/provider-C6TTHGoz.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-Zp_EiMZd.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) => t.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(n, {
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 t.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(n, {
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 t.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 t.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(n, {
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 t.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 };