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 } from "./Common-BQTZ_uz9.mjs";
1
+ import { t as e } from "./Common-DQbblaTl.mjs";
2
2
  import { createBlock as t, defineComponent as n, openBlock as r, useModel as i } from "vue";
3
3
  //#endregion
4
4
  //#region ../../packages/dlzn-ui/components/cron/src/Month.vue
@@ -1,4 +1,4 @@
1
- import { t as e } from "./Common-BQTZ_uz9.mjs";
1
+ import { t as e } from "./Common-DQbblaTl.mjs";
2
2
  import { createBlock as t, defineComponent as n, openBlock as r, useModel as i } from "vue";
3
3
  //#endregion
4
4
  //#region ../../packages/dlzn-ui/components/cron/src/Second.vue
@@ -0,0 +1,68 @@
1
+ import { l as e } from "./button-Dk3CiB69.mjs";
2
+ import { t } from "./checkbox-CLlUEbkk.mjs";
3
+ import "../components/checkbox/index.mjs";
4
+ import { treeToFlatArr as n } from "../utils/tree.mjs";
5
+ import "../utils/index.mjs";
6
+ import { computed as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, inject as c, openBlock as l, ref as u, unref as d, useTemplateRef as f, watch as p } from "vue";
7
+ //#region ../../packages/dlzn-ui/views/system/role/modules/SelectDept.vue?vue&type=script&setup=true&lang.ts
8
+ var m = { class: "w-full" }, h = { class: "mb-1 flex gap-4" }, g = /* @__PURE__ */ s({
9
+ __name: "SelectDept",
10
+ props: { deptOptions: {} },
11
+ setup(s) {
12
+ let g = s, _ = c("formData"), v = u(!0), y = u(!1), b = u(!0), x = r(() => {
13
+ let e = [], t = (n) => {
14
+ n.forEach((n) => {
15
+ e.push(n), n.children && t(n.children);
16
+ });
17
+ };
18
+ return t(g.deptOptions), e;
19
+ });
20
+ p(y, (e) => {
21
+ e ? _.deptIds = x.value.map((e) => e.id) : _.deptIds = [];
22
+ });
23
+ let S = f("treeRef"), C = (...e) => {
24
+ if (!b.value) return;
25
+ let { node: t, trigger: r } = e[1], i = e[0].includes(t.value);
26
+ if (r === "node-click") {
27
+ let e = S.value.getTreeData(t.value);
28
+ n(e).forEach((e) => {
29
+ S.value.setItem(e.value, { checked: i });
30
+ });
31
+ }
32
+ };
33
+ return (n, r) => (l(), i("div", m, [a("div", h, [
34
+ o(d(t), {
35
+ modelValue: v.value,
36
+ "onUpdate:modelValue": r[0] ||= (e) => v.value = e,
37
+ label: "展开/折叠"
38
+ }, null, 8, ["modelValue"]),
39
+ o(d(t), {
40
+ modelValue: y.value,
41
+ "onUpdate:modelValue": r[1] ||= (e) => y.value = e,
42
+ label: "全选/全不选"
43
+ }, null, 8, ["modelValue"]),
44
+ o(d(t), {
45
+ modelValue: b.value,
46
+ "onUpdate:modelValue": r[2] ||= (e) => b.value = e,
47
+ label: "父子联动"
48
+ }, null, 8, ["modelValue"])
49
+ ]), o(d(e), {
50
+ ref_key: "treeRef",
51
+ ref: S,
52
+ modelValue: d(_).deptIds,
53
+ "onUpdate:modelValue": r[3] ||= (e) => d(_).deptIds = e,
54
+ "check-strictly": !0,
55
+ checkable: "",
56
+ data: s.deptOptions,
57
+ "expand-all": v.value,
58
+ keys: { value: "id" },
59
+ onChange: C
60
+ }, null, 8, [
61
+ "modelValue",
62
+ "data",
63
+ "expand-all"
64
+ ])]));
65
+ }
66
+ });
67
+ //#endregion
68
+ export { g as t };
@@ -0,0 +1,68 @@
1
+ import { l as e } from "./button-Dk3CiB69.mjs";
2
+ import { t } from "./checkbox-CLlUEbkk.mjs";
3
+ import "../components/checkbox/index.mjs";
4
+ import { treeToFlatArr as n } from "../utils/tree.mjs";
5
+ import "../utils/index.mjs";
6
+ import { computed as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, inject as c, openBlock as l, ref as u, unref as d, useTemplateRef as f, watch as p } from "vue";
7
+ //#region ../../packages/dlzn-ui/views/system/role/modules/SelectMenu.vue?vue&type=script&setup=true&lang.ts
8
+ var m = { class: "w-full" }, h = { class: "mb-1 flex gap-4" }, g = /* @__PURE__ */ s({
9
+ __name: "SelectMenu",
10
+ props: { menuOptions: {} },
11
+ setup(s) {
12
+ let g = s, _ = c("formData"), v = u(!1), y = u(!1), b = u(!0), x = r(() => {
13
+ let e = [], t = (n) => {
14
+ n.forEach((n) => {
15
+ e.push(n), n.children && t(n.children);
16
+ });
17
+ };
18
+ return t(g.menuOptions), e;
19
+ });
20
+ p(y, (e) => {
21
+ e ? _.menuIds = x.value.map((e) => e.id) : _.menuIds = [];
22
+ });
23
+ let S = f("treeRef"), C = (...e) => {
24
+ if (!b.value) return;
25
+ let { node: t, trigger: r } = e[1], i = e[0].includes(t.value);
26
+ if (r === "node-click") {
27
+ let e = S.value.getTreeData(t.value);
28
+ n(e).forEach((e) => {
29
+ S.value.setItem(e.value, { checked: i });
30
+ });
31
+ }
32
+ };
33
+ return (n, r) => (l(), i("div", m, [a("div", h, [
34
+ o(d(t), {
35
+ modelValue: v.value,
36
+ "onUpdate:modelValue": r[0] ||= (e) => v.value = e,
37
+ label: "展开/折叠"
38
+ }, null, 8, ["modelValue"]),
39
+ o(d(t), {
40
+ modelValue: y.value,
41
+ "onUpdate:modelValue": r[1] ||= (e) => y.value = e,
42
+ label: "全选/全不选"
43
+ }, null, 8, ["modelValue"]),
44
+ o(d(t), {
45
+ modelValue: b.value,
46
+ "onUpdate:modelValue": r[2] ||= (e) => b.value = e,
47
+ label: "父子联动"
48
+ }, null, 8, ["modelValue"])
49
+ ]), o(d(e), {
50
+ ref_key: "treeRef",
51
+ ref: S,
52
+ modelValue: d(_).menuIds,
53
+ "onUpdate:modelValue": r[3] ||= (e) => d(_).menuIds = e,
54
+ "check-strictly": !0,
55
+ checkable: "",
56
+ data: s.menuOptions,
57
+ "expand-all": v.value,
58
+ keys: { value: "id" },
59
+ onChange: C
60
+ }, null, 8, [
61
+ "modelValue",
62
+ "data",
63
+ "expand-all"
64
+ ])]));
65
+ }
66
+ });
67
+ //#endregion
68
+ export { g as t };
@@ -0,0 +1,57 @@
1
+ import { x as e } from "./button-Dk3CiB69.mjs";
2
+ import t from "../plugins/autoImport/$msg/index.mjs";
3
+ import { t as n } from "./page-list-C3nqGnnX.mjs";
4
+ import "../components/page-list/index.mjs";
5
+ import { createBlock as r, defineComponent as i, mergeProps as a, openBlock as o, unref as s, useTemplateRef as c } from "vue";
6
+ //#endregion
7
+ //#region ../../packages/dlzn-ui/views/system/role/modules/SelectUser.vue
8
+ var l = /* @__PURE__ */ i({
9
+ __name: "SelectUser",
10
+ props: {
11
+ roleId: {},
12
+ tableCol: {}
13
+ },
14
+ setup(i, { expose: l }) {
15
+ let u = i, d = c("pageListRef"), f = {
16
+ apis: { list: { method: (t) => e.Get("system/role/authUser/unallocatedList", { params: {
17
+ ...t,
18
+ roleId: u.roleId
19
+ } }) } },
20
+ cardProps: {
21
+ bodyClassName: "p-0!",
22
+ shadow: !1
23
+ },
24
+ columns: u.tableCol,
25
+ formItems: [{
26
+ _label: "用户名称",
27
+ component: "TInput",
28
+ model: "userName"
29
+ }, {
30
+ _label: "手机号码",
31
+ component: "TInput",
32
+ model: "phonenumber"
33
+ }],
34
+ tableOtherProps: {
35
+ flexHeight: !1,
36
+ rowKey: "userId",
37
+ showColumnConfigBtn: !1,
38
+ showRowSelect: "multiple",
39
+ showToggleFullscreenBtn: !1
40
+ }
41
+ };
42
+ async function p() {
43
+ let n = d.value.selectedRowKeys;
44
+ if (n.length === 0) return Promise.reject("请选择要分配的用户");
45
+ await e.Put("system/role/authUser/selectAll", {}, { params: {
46
+ roleId: u.roleId,
47
+ userIds: n.join(",")
48
+ } }), t("分配用户成功");
49
+ }
50
+ return l({ handleSubmit: p }), (e, t) => (o(), r(s(n), a({
51
+ ref_key: "pageListRef",
52
+ ref: d
53
+ }, f), null, 16));
54
+ }
55
+ });
56
+ //#endregion
57
+ export { l as t };
@@ -1,4 +1,4 @@
1
- import { V as e, a as t, r as n, t as r, x as i, y as a } from "./button-CI_79tzA.mjs";
1
+ import { V as e, a as t, r as n, t as r, x as i, y as a } from "./button-Dk3CiB69.mjs";
2
2
  import { createBlock as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, openBlock as d, reactive as f, unref as p, useTemplateRef as m, watchEffect as h, withCtx as g } from "vue";
3
3
  import { useRoute as _ } from "vue-router";
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { I as e, r as t } from "./button-CI_79tzA.mjs";
1
+ import { I as e, r as t } from "./button-Dk3CiB69.mjs";
2
2
  import { t as n } from "./useAppContext-D47amIp5.mjs";
3
3
  import { t as r } from "./menu-CjNx3wKR.mjs";
4
4
  import "../hooks/useContextMenu/menu/index.mjs";