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
@@ -0,0 +1,213 @@
1
+ import { F as e, S as t, o as n } from "./provider-C6TTHGoz.mjs";
2
+ import r from "../plugins/autoImport/$msg/index.mjs";
3
+ import { t as i } from "./page-list-Zp_EiMZd.mjs";
4
+ import "../components/page-list/index.mjs";
5
+ import { computed as a, createBlock as o, defineComponent as s, h as c, mergeProps as l, nextTick as u, openBlock as d, reactive as f, ref as p, unref as m, useTemplateRef as h, watch as g } from "vue";
6
+ import { useRequest as _ } from "alova/client";
7
+ //#endregion
8
+ //#region ../../packages/dlzn-ui/views/tool/job/modules/Log.vue
9
+ var v = /* @__PURE__ */ s({
10
+ __name: "Log",
11
+ props: { id: {} },
12
+ setup(s) {
13
+ let v = s, y = h("pageListRef"), { data: b, send: x } = _((e) => t.Get(`monitor/job/${e}`), {
14
+ immediate: !1,
15
+ initialData: {}
16
+ });
17
+ v.id === void 0 ? u(() => {
18
+ y.value.query();
19
+ }) : x(v.id).then(() => {
20
+ u(() => {
21
+ y.value.query();
22
+ });
23
+ });
24
+ let S = {
25
+ createTime: {
26
+ _label: "执行时间",
27
+ component: "TInput",
28
+ model: "createTime"
29
+ },
30
+ exceptionInfo: {
31
+ __others: ({ formData: e }) => ({ show: e.status === "1" }),
32
+ _class: "col-span-full",
33
+ _label: "异常信息",
34
+ component: "TTextarea",
35
+ maxlength: "",
36
+ model: "exceptionInfo"
37
+ },
38
+ invokeTarget: {
39
+ _class: "col-span-full",
40
+ _label: "调用目标方法",
41
+ component: "TTextarea",
42
+ model: "invokeTarget"
43
+ },
44
+ jobGroup: {
45
+ _label: "任务分组",
46
+ component: "TSelect",
47
+ dicCode: "sys_job_group",
48
+ model: "jobGroup"
49
+ },
50
+ jobLogId: {
51
+ _label: "日志编号",
52
+ component: "TInput",
53
+ model: "jobLogId"
54
+ },
55
+ jobMessage: {
56
+ _class: "col-span-full",
57
+ _label: "日志信息",
58
+ component: "TTextarea",
59
+ maxlength: "",
60
+ model: "jobMessage"
61
+ },
62
+ jobName: {
63
+ _label: "任务名称",
64
+ component: "TInput",
65
+ model: "jobName"
66
+ },
67
+ status: {
68
+ _label: "执行状态",
69
+ component: "TRadioGroup",
70
+ dicCode: "sys_job_status",
71
+ model: "status"
72
+ }
73
+ }, C = {
74
+ apis: {
75
+ delete: {
76
+ method: "monitor/jobLog",
77
+ permission: "monitor:job:remove",
78
+ showBatch: !0
79
+ },
80
+ export: {
81
+ method: "monitor/jobLog/export",
82
+ permission: "monitor:job:export"
83
+ },
84
+ list: { method: (e) => t.Get("monitor/jobLog/list", { params: {
85
+ ...e,
86
+ dateRange: void 0,
87
+ "params[beginTime]": e.dateRange[0] ?? "",
88
+ "params[endTime]": e.dateRange[1] ?? ""
89
+ } }) }
90
+ },
91
+ cardProps: {
92
+ bodyClassName: "p-0!",
93
+ shadow: !1
94
+ },
95
+ columns: [
96
+ {
97
+ colKey: "jobLogId",
98
+ title: "日志编号"
99
+ },
100
+ {
101
+ colKey: "jobName",
102
+ title: "任务名称"
103
+ },
104
+ {
105
+ cell: {
106
+ component: "DicLabel",
107
+ dicCode: "sys_job_group"
108
+ },
109
+ colKey: "jobGroup",
110
+ title: "任务组名"
111
+ },
112
+ {
113
+ colKey: "invokeTarget",
114
+ title: "调用目标字符串"
115
+ },
116
+ {
117
+ colKey: "jobMessage",
118
+ title: "日志信息"
119
+ },
120
+ {
121
+ cell: {
122
+ component: "DicLabel",
123
+ dicCode: "sys_job_status"
124
+ },
125
+ colKey: "status",
126
+ title: "执行状态"
127
+ },
128
+ {
129
+ colKey: "createTime",
130
+ title: "执行时间"
131
+ },
132
+ {
133
+ cell: {
134
+ buttons: [({ row: t }) => ({
135
+ default: "详情",
136
+ onClick: () => {
137
+ let r = p(null);
138
+ g(r, () => {
139
+ r.value.setFormData(t);
140
+ }, { once: !0 }), e({
141
+ body: () => c(n, {
142
+ items: [
143
+ S.jobLogId,
144
+ S.jobName,
145
+ S.jobGroup,
146
+ S.createTime,
147
+ S.invokeTarget,
148
+ S.jobMessage,
149
+ S.status,
150
+ S.exceptionInfo
151
+ ],
152
+ readonly: !0,
153
+ ref: r
154
+ }),
155
+ footer: !1,
156
+ header: "调度日志详细",
157
+ width: 730
158
+ });
159
+ },
160
+ permission: "monitor:job:query"
161
+ })],
162
+ component: "Buttons"
163
+ },
164
+ colKey: "_operation",
165
+ title: "操作"
166
+ }
167
+ ],
168
+ formItems: [
169
+ S.jobName,
170
+ S.jobGroup,
171
+ {
172
+ ...S.status,
173
+ component: "TSelect"
174
+ },
175
+ {
176
+ _class: "col-span-2",
177
+ _label: "执行时间",
178
+ component: "TDatePicker",
179
+ model: "dateRange",
180
+ type: "daterange"
181
+ }
182
+ ],
183
+ initialFormData: f({
184
+ jobGroup: a(() => b.value.jobGroup ?? ""),
185
+ jobName: a(() => b.value.jobName ?? "")
186
+ }),
187
+ isFirstQueryByParent: !0,
188
+ operations: [{
189
+ default: "清空",
190
+ permission: "monitor:job:remove",
191
+ popconfirm: {
192
+ content: "确认清空吗",
193
+ onConfirm: async () => {
194
+ await t.Delete("monitor/jobLog/clean"), r.success("清空成功"), y.value.query();
195
+ }
196
+ }
197
+ }],
198
+ tableOtherProps: {
199
+ flexHeight: !1,
200
+ rowKey: "jobLogId",
201
+ showColumnConfigBtn: !1,
202
+ showRowSelect: "multiple",
203
+ showToggleFullscreenBtn: !1
204
+ }
205
+ };
206
+ return (e, t) => (d(), o(m(i), l({
207
+ ref_key: "pageListRef",
208
+ ref: y
209
+ }, C), null, 16));
210
+ }
211
+ });
212
+ //#endregion
213
+ export { v as t };
@@ -4,35 +4,27 @@ import "../components/image/index.mjs";
4
4
  import { t as n } from "./card-BfHb58zl.mjs";
5
5
  import "../components/card/index.mjs";
6
6
  import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, openBlock as l, renderSlot as u, unref as d, withCtx as f } from "vue";
7
- import '../assets/LoginBg-9HH4oQBJ.css';//#region ../../packages/dlzn-ui/layout/modules/LoginBg.vue?vue&type=script&setup=true&lang.ts
8
- var p = {
7
+ import p from "virtual:dlzn-ui/app-params";
8
+ import '../assets/LoginBg-XqWOv7dJ.css';//#region ../../packages/dlzn-ui/layout/modules/LoginBg.vue?vue&type=script&setup=true&lang.ts
9
+ var m = {
9
10
  class: "relative flex h-full items-center justify-center",
10
- style: { background: "linear-gradient(159deg, #baccf6 0%, #fff 43%, #fff 61%, #baccf6 100%)" }
11
- }, m = { class: "bg_inner flex items-stretch justify-between" }, h = /*#__PURE__*/ e(/* @__PURE__ */ c({
11
+ style: { background: "linear-gradient(\n 159deg,\n var(--td-brand-color-3) 0%,\n #fff 43%,\n #fff 61%,\n var(--td-brand-color-3) 100%\n )" }
12
+ }, h = { class: "bg_inner flex items-stretch justify-between" }, g = /*#__PURE__*/ e(/* @__PURE__ */ c({
12
13
  __name: "LoginBg",
13
14
  setup(e) {
14
- let c = Object.values(import.meta.glob("img/login.*", {
15
- eager: !0,
16
- import: "default",
17
- query: "?url"
18
- }))[0], h = Object.values(import.meta.glob("img/logo.*", {
19
- eager: !0,
20
- import: "default",
21
- query: "?url"
22
- }))[0];
23
- return (e, g) => (l(), a("div", p, [o("div", m, [s(d(t), {
15
+ return (e, c) => (l(), a("div", m, [o("div", h, [s(d(t), {
24
16
  class: "left_banner",
25
- src: d(c),
17
+ src: d(p).loginLeftBannerUrl,
26
18
  style: { transform: "scale(1.4)" }
27
19
  }, null, 8, ["src"]), s(d(n), { class: "login_form_wrapper shrink-0 px-4!" }, {
28
20
  default: f(() => [u(e.$slots, "default", {}, void 0, !0)]),
29
21
  _: 3
30
- })]), d(h) ? (l(), r(d(t), {
22
+ })]), d(p).loginTopLeftLogoUrl ? (l(), r(d(t), {
31
23
  key: 0,
32
24
  class: "logo",
33
- src: d(h)
25
+ src: d(p).loginTopLeftLogoUrl
34
26
  }, null, 8, ["src"])) : i("v-if", !0)]));
35
27
  }
36
- }), [["__scopeId", "data-v-46e9141a"]]);
28
+ }), [["__scopeId", "data-v-637f6712"]]);
37
29
  //#endregion
38
- export { h as t };
30
+ export { g as t };
@@ -30,7 +30,7 @@ var _ = /* @__PURE__ */ c({
30
30
  }, [c.level === 0 ? {
31
31
  name: "icon",
32
32
  fn: m(() => [s(p(e), {
33
- class: "mr-2",
33
+ class: "relative right-1 mr-2",
34
34
  icon: _(u),
35
35
  size: "20"
36
36
  }, null, 8, ["icon"])]),
@@ -48,7 +48,7 @@ var _ = /* @__PURE__ */ c({
48
48
  }, [c.level === 0 ? {
49
49
  name: "icon",
50
50
  fn: m(() => [s(p(e), {
51
- class: "mr-3.5",
51
+ class: "relative right-1 mr-2",
52
52
  icon: _(u),
53
53
  size: "20"
54
54
  }, null, 8, ["icon"])]),
@@ -1,4 +1,4 @@
1
- import { t as e } from "./Common-B5NscAh_.mjs";
1
+ import { t as e } from "./Common-Ds4A0g73.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/Minute.vue
@@ -1,4 +1,4 @@
1
- import { t as e } from "./Common-B5NscAh_.mjs";
1
+ import { t as e } from "./Common-Ds4A0g73.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-B5NscAh_.mjs";
1
+ import { t as e } from "./Common-Ds4A0g73.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 { u as e } from "./provider-C6TTHGoz.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 { u as e } from "./provider-C6TTHGoz.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 { S as e } from "./provider-C6TTHGoz.mjs";
2
+ import t from "../plugins/autoImport/$msg/index.mjs";
3
+ import { t as n } from "./page-list-Zp_EiMZd.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-BcpR95gj.mjs";
1
+ import { S as e, V as t, b as n, i as r, n as i, o as a } from "./provider-C6TTHGoz.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
@@ -41,35 +41,35 @@ var v = /* @__PURE__ */ l({
41
41
  _required: !0,
42
42
  component: "TRadioGroup",
43
43
  model: "sex",
44
- options: a("sys_user_sex", ["0", "1"])
44
+ options: n("sys_user_sex", ["0", "1"])
45
45
  },
46
46
  { slot: "footer" }
47
47
  ]);
48
48
  function w() {
49
- e().close(b.name);
49
+ t().close(b.name);
50
50
  }
51
51
  async function T() {
52
- let e = await S.value.validate();
53
- await i.Put("system/user/profile", e, { meta: {
52
+ let t = await S.value.validate();
53
+ await e.Put("system/user/profile", t, { meta: {
54
54
  useLoading: "保存中...",
55
55
  useSuccessMsg: !0
56
- } }), n().getUserInfo(!1), y("update");
56
+ } }), r().getUserInfo(!1), y("update");
57
57
  }
58
- return (e, n) => (d(), o(p(t), {
58
+ return (e, t) => (d(), o(p(a), {
59
59
  ref: "form",
60
60
  items: C,
61
61
  "label-align": "right",
62
62
  layout: "vertical"
63
63
  }, {
64
- footer: g(() => [c(p(r), { onClick: T }, {
65
- default: g(() => [...n[0] ||= [s("保存", -1)]]),
64
+ footer: g(() => [c(p(i), { onClick: T }, {
65
+ default: g(() => [...t[0] ||= [s("保存", -1)]]),
66
66
  _: 1
67
- }), c(p(r), {
67
+ }), c(p(i), {
68
68
  class: "ml-4!",
69
69
  theme: "default",
70
70
  onClick: w
71
71
  }, {
72
- default: g(() => [...n[1] ||= [s("关闭", -1)]]),
72
+ default: g(() => [...t[1] ||= [s("关闭", -1)]]),
73
73
  _: 1
74
74
  })]),
75
75
  _: 1
@@ -1,12 +1,12 @@
1
1
  import { createBlock as e, createElementBlock as t, createElementVNode as n, defineComponent as r, inject as i, onMounted as a, onUpdated as o, openBlock as s, ref as c, renderSlot as l, unref as u, useAttrs as d, useTemplateRef as f, withCtx as p } from "vue";
2
- import { useMutationObserver as m, useThrottleFn as h } from "@vueuse/core";
3
- import { Tooltip as g } from "tdesign-vue-next";
2
+ import { Tooltip as m } from "tdesign-vue-next";
3
+ import { useMutationObserver as h, useThrottleFn as g } from "@vueuse/core";
4
4
  //#region ../../packages/dlzn-ui/plugins/tableRenders/Wrapper.vue?vue&type=script&setup=true&lang.ts
5
5
  var _ = { class: "inline-flex max-w-full align-middle" }, v = 25, y = /* @__PURE__ */ r({
6
6
  inheritAttrs: !1,
7
7
  __name: "Wrapper",
8
8
  setup(r) {
9
- let y = i("_columnWidths"), b = i("columnMinWidths"), x = i("columnMaxWidths"), S = d(), C = f("wrapperRef"), w = c(!1), T = c(""), E = h(() => {
9
+ let y = i("_columnWidths"), b = i("columnMinWidths"), x = i("columnMaxWidths"), S = d(), C = f("wrapperRef"), w = c(!1), T = c(""), E = g(() => {
10
10
  if (C.value === null) return;
11
11
  let e = C.value.closest("td, th"), t = C.value.getBoundingClientRect().width, n = C.value.scrollWidth, r = e.getBoundingClientRect().width, i = S.col.colKey, a = x[i], o = 0, s = e.querySelector(".t-table__tree-op-icon");
12
12
  s && (o = s.getBoundingClientRect().width + Number.parseFloat(getComputedStyle(s).marginRight));
@@ -17,7 +17,7 @@ var _ = { class: "inline-flex max-w-full align-middle" }, v = 25, y = /* @__PURE
17
17
  let f = Math.ceil(Math.max(t, n) + v + o + c + u), p = Math.max(Math.min(f, a), b[i]);
18
18
  p > y.value[i] && (p <= r ? b[i] = p : y.value[i] = p + 2);
19
19
  }, 500, !0);
20
- return a(E), o(E), m(C, (e) => {
20
+ return a(E), o(E), h(C, (e) => {
21
21
  e.forEach(() => {
22
22
  E();
23
23
  });
@@ -25,7 +25,7 @@ var _ = { class: "inline-flex max-w-full align-middle" }, v = 25, y = /* @__PURE
25
25
  characterData: !0,
26
26
  childList: !0,
27
27
  subtree: !0
28
- }), (r, i) => (s(), t("div", _, [w.value ? (s(), e(u(g), {
28
+ }), (r, i) => (s(), t("div", _, [w.value ? (s(), e(u(m), {
29
29
  key: 0,
30
30
  content: T.value
31
31
  }, {
@@ -1,4 +1,4 @@
1
- import { I as e, r as t } from "./button-BcpR95gj.mjs";
1
+ import { i as e, t } from "./provider-C6TTHGoz.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";
@@ -10,10 +10,10 @@ var f = /* @__PURE__ */ o({
10
10
  __name: "app",
11
11
  setup(o) {
12
12
  n();
13
- let f = t();
14
- return (t, n) => {
13
+ let f = e();
14
+ return (e, n) => {
15
15
  let o = c("RouterView");
16
- return s(), i(l(e), null, {
16
+ return s(), i(l(t), null, {
17
17
  default: u(() => [
18
18
  a(o, { class: "isolate" }),
19
19
  a(l(r)),
@@ -1,11 +1,11 @@
1
- import { t as e } from "./button-BcpR95gj.mjs";
1
+ import { n as e } from "./provider-C6TTHGoz.mjs";
2
2
  import { t } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
3
3
  import { t as n } from "./card-BfHb58zl.mjs";
4
4
  import "../components/card/index.mjs";
5
- import { t as r } from "./custom-page-table-CH09hGDM.mjs";
5
+ import { t as r } from "./custom-page-table-D1FmkEop.mjs";
6
6
  import "../components/custom-page-table/index.mjs";
7
- import { n as i, r as a } from "./page-list-BjjvOqb5.mjs";
8
- import { t as o } from "./page-query-BCNFOYTD.mjs";
7
+ import { n as i, r as a } from "./page-list-Zp_EiMZd.mjs";
8
+ import { t as o } from "./page-query-CxZBtQht.mjs";
9
9
  import "../components/page-query/index.mjs";
10
10
  import "../components/page-list/index.mjs";
11
11
  import { Fragment as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as f, createVNode as p, defineComponent as m, guardReactiveProps as h, mergeDefaults as g, mergeProps as _, normalizeProps as v, openBlock as y, renderList as b, renderSlot as x, unref as S, useTemplateRef as C, withCtx as w } from "vue";
@@ -1,5 +1,5 @@
1
- import { n as e, r as t } from "./page-table-VeEt8uuI.mjs";
2
- import { t as n } from "./pagination-BuhM6NW1.mjs";
1
+ import { n as e, r as t } from "./page-table-BpyyKTMq.mjs";
2
+ import { t as n } from "./pagination-y5tkmGDM.mjs";
3
3
  import "../components/pagination/index.mjs";
4
4
  import "../components/page-table/index.mjs";
5
5
  import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, defineComponent as s, guardReactiveProps as c, isRef as l, mergeDefaults as u, normalizeProps as d, openBlock as f, renderSlot as p, unref as m } from "vue";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./IndexItem-BWoJrz24.mjs";
1
+ import { t as e } from "./IndexItem-KlRJte7i.mjs";
2
2
  import { Fragment as t, createBlock as n, createElementBlock as r, defineComponent as i, normalizeStyle as a, openBlock as o, renderList as s } from "vue";
3
3
  //#endregion
4
4
  //#region ../../packages/dlzn-ui/components/overview/src/overview.vue