dlzn-ui 2.0.47 → 2.0.48

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 (176) hide show
  1. package/assets/css/tdesign-reset.css +6 -0
  2. package/assets/{provider-tmBy-gBq.css → provider-CwykAGOx.css} +1 -1
  3. package/chunks/{AssignUser-CUy0kpx7.mjs → AssignUser-B5wRIDyb.mjs} +3 -3
  4. package/chunks/BasicInfo-9WqspD1Z.mjs +69 -0
  5. package/chunks/ColumnInfo-CZwp56Y1.mjs +248 -0
  6. package/chunks/{Common-BgM-b-rd.mjs → Common-BVD38hp6.mjs} +1 -1
  7. package/chunks/{Day-BQhqFjXH.mjs → Day-CHWBklI0.mjs} +1 -1
  8. package/chunks/{DictTypeDetail-C1MGJ2Nv.mjs → DictTypeDetail-nQNP_aSN.mjs} +2 -2
  9. package/chunks/GenInfo-Dxoe_3RM.mjs +123 -0
  10. package/chunks/{Hour-oTSV7kzM.mjs → Hour-NaDEj833.mjs} +1 -1
  11. package/chunks/Import-Cw149ucc.mjs +67 -0
  12. package/chunks/Index-BKtK-Ikl.mjs +37 -0
  13. package/chunks/{Index-DKJXQAZ6.mjs → Index-CQSAs1h6.mjs} +1 -1
  14. package/chunks/{Index-B14jEhv1.mjs → Index-ClKOg-Wu.mjs} +1 -1
  15. package/chunks/{Index-BSICG9gU.mjs → Index-LNJ_79uk.mjs} +1 -1
  16. package/chunks/{Index-BC6YIzwn.mjs → Index-QeguMHYR.mjs} +1 -1
  17. package/chunks/{IndexItem-BgRYG21w.mjs → IndexItem-DsYwi-MU.mjs} +1 -1
  18. package/chunks/{Log-C4crM-tt.mjs → Log-BAt3Vxvi.mjs} +2 -2
  19. package/chunks/{LoginBg-D6LI-RQr.mjs → LoginBg-BharyaPx.mjs} +1 -1
  20. package/chunks/{Minute-r8Je2Ur9.mjs → Minute-CM6f_BSX.mjs} +1 -1
  21. package/chunks/{Month-CuxjKraz.mjs → Month-DRWusngF.mjs} +1 -1
  22. package/chunks/Preview-hFTldEUR.mjs +52 -0
  23. package/chunks/{Second-CY2fahMR.mjs → Second-BTRO-iOb.mjs} +1 -1
  24. package/chunks/{SelectDept-CRqN0-4G.mjs → SelectDept-B_9npI--.mjs} +2 -2
  25. package/chunks/{SelectMenu-D47x8Qp7.mjs → SelectMenu-CB0bsNEl.mjs} +2 -2
  26. package/chunks/{SelectUser-CUZMMvWP.mjs → SelectUser-CmdgRKZD.mjs} +2 -2
  27. package/chunks/{UserInfo-C6gko2hb.mjs → UserInfo-CT_ez2uW.mjs} +1 -1
  28. package/chunks/{app-F22ZiU9p.mjs → app-DNfYzQDT.mjs} +1 -1
  29. package/chunks/checkbox-C-5KTT1a.mjs +54 -0
  30. package/chunks/{custom-page-list-DRlRCSMU.mjs → custom-page-list-DZS45Fs5.mjs} +4 -4
  31. package/chunks/{custom-page-table-g4gSF8QC.mjs → custom-page-table-BpzYoGwO.mjs} +2 -2
  32. package/chunks/echarts-C3EKKtvU.mjs +26575 -0
  33. package/chunks/{overview-C2wCzdwi.mjs → overview-SpRnc3-2.mjs} +1 -1
  34. package/chunks/{page-list-B_PJaCBd.mjs → page-list-4xYQUHkI.mjs} +3 -3
  35. package/chunks/{page-query-CrnkGVHt.mjs → page-query-JDsWn-xy.mjs} +1 -1
  36. package/chunks/{page-table-uXFDhExO.mjs → page-table-JezgsQh2.mjs} +3 -3
  37. package/chunks/{pagination-DNfZiF_z.mjs → pagination-Cck2wqel.mjs} +1 -1
  38. package/chunks/{provider-DKvkPp1F.mjs → provider-CDqQoKIA.mjs} +10 -7
  39. package/chunks/{table-YEcEUM_t.mjs → table-DlFbYYNw.mjs} +1 -1
  40. package/components/app/index.mjs +1 -1
  41. package/components/app/src/app.mjs +1 -1
  42. package/components/button/index.mjs +1 -1
  43. package/components/button/src/button.mjs +1 -1
  44. package/components/checkbox/index.mjs +2 -2
  45. package/components/checkbox/src/checkbox.d.ts +10 -3
  46. package/components/checkbox/src/checkbox.mjs +1 -1
  47. package/components/checkbox/src/checkbox.vue.d.ts +2 -2
  48. package/components/checkbox-group/index.mjs +1 -1
  49. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  50. package/components/cron/index.mjs +1 -1
  51. package/components/cron/src/Common.mjs +1 -1
  52. package/components/cron/src/Day.mjs +1 -1
  53. package/components/cron/src/Hour.mjs +1 -1
  54. package/components/cron/src/Minute.mjs +1 -1
  55. package/components/cron/src/Month.mjs +1 -1
  56. package/components/cron/src/Picker.mjs +6 -6
  57. package/components/cron/src/Second.mjs +1 -1
  58. package/components/cron/src/cron.mjs +1 -1
  59. package/components/custom-page-list/index.mjs +1 -1
  60. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  61. package/components/custom-page-table/index.mjs +1 -1
  62. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  63. package/components/form/index.mjs +1 -1
  64. package/components/form/src/form.mjs +1 -1
  65. package/components/index.mjs +29 -29
  66. package/components/overview/index.mjs +1 -1
  67. package/components/overview/src/DicLabel/Index.mjs +1 -1
  68. package/components/overview/src/IndexItem.mjs +1 -1
  69. package/components/overview/src/overview.mjs +1 -1
  70. package/components/page-list/index.mjs +1 -1
  71. package/components/page-list/src/page-list.d.ts +5 -7
  72. package/components/page-list/src/page-list.mjs +1 -1
  73. package/components/page-query/index.mjs +1 -1
  74. package/components/page-query/src/page-query.mjs +1 -1
  75. package/components/page-table/index.mjs +1 -1
  76. package/components/page-table/src/page-table.mjs +1 -1
  77. package/components/pagination/index.mjs +1 -1
  78. package/components/pagination/src/pagination.mjs +1 -1
  79. package/components/provider/index.mjs +1 -1
  80. package/components/provider/src/Provider.mjs +1 -1
  81. package/components/radio-group/index.mjs +1 -1
  82. package/components/radio-group/src/radio-group.mjs +1 -1
  83. package/components/select/index.mjs +1 -1
  84. package/components/select/src/select.mjs +1 -1
  85. package/components/select-sys-user/index.mjs +1 -1
  86. package/components/select-sys-user/src/Picker.mjs +2 -2
  87. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  88. package/components/table/index.mjs +1 -1
  89. package/components/table/src/table.mjs +1 -1
  90. package/components/tree/index.mjs +1 -1
  91. package/components/tree/src/tree.mjs +1 -1
  92. package/components/tree-select/index.mjs +1 -1
  93. package/components/tree-select/src/tree-select.mjs +1 -1
  94. package/components/upload/index.mjs +1 -1
  95. package/components/upload/src/upload.mjs +1 -1
  96. package/hooks/useDicOptions/index.mjs +1 -1
  97. package/hooks/useSysUser/index.mjs +1 -1
  98. package/layout/Entry.mjs +1 -1
  99. package/layout/Home.mjs +2 -2
  100. package/layout/Login.mjs +2 -2
  101. package/layout/NotFound.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/profile/Index.mjs +2 -2
  107. package/layout/profile/ResetPwd.mjs +1 -1
  108. package/layout/profile/UserInfo.mjs +1 -1
  109. package/main.mjs +2 -2
  110. package/package.json +1 -1
  111. package/plugins/autoImport/$alova/index.mjs +1 -1
  112. package/plugins/autoImport/$confirm/index.mjs +1 -1
  113. package/plugins/autoImport/$dialog/index.mjs +1 -1
  114. package/plugins/autoImport/$drawer/index.mjs +1 -1
  115. package/plugins/captcha/captcha.mjs +1 -1
  116. package/plugins/captcha/index.mjs +1 -1
  117. package/plugins/echarts/index.mjs +2 -26575
  118. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  119. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  120. package/plugins/tableRenders/cell/Checkbox/Index.mjs +2 -0
  121. package/plugins/tableRenders/cell/Checkbox/Index.vue.d.ts +17 -0
  122. package/plugins/tableRenders/cell/Checkbox/index.d.ts +2 -0
  123. package/plugins/tableRenders/cell/Checkbox/index2.mjs +0 -0
  124. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  125. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  126. package/plugins/tableRenders/cell/index.d.ts +2 -0
  127. package/plugins/tableRenders/cell/index.mjs +47 -45
  128. package/router/index.mjs +1 -1
  129. package/store/modules/common.mjs +1 -1
  130. package/store/modules/login.mjs +1 -1
  131. package/store/modules/recentRouters.mjs +1 -1
  132. package/store/modules/router.mjs +1 -1
  133. package/store/modules/user.mjs +1 -1
  134. package/types/globle.d.ts +2 -0
  135. package/views/index.mjs +4 -0
  136. package/views/monitor/cache/index.mjs +139 -0
  137. package/views/monitor/cache/index.vue.d.ts +3 -0
  138. package/views/monitor/cacheList/index.mjs +179 -0
  139. package/views/monitor/cacheList/index.vue.d.ts +3 -0
  140. package/views/monitor/logininfor/index.mjs +2 -2
  141. package/views/monitor/online/index.mjs +2 -2
  142. package/views/monitor/operlog/index.mjs +2 -2
  143. package/views/monitor/server/index.mjs +2 -2
  144. package/views/system/config/index.mjs +2 -2
  145. package/views/system/dept/index.mjs +2 -2
  146. package/views/system/dept/utils.mjs +1 -1
  147. package/views/system/dict/index.mjs +3 -3
  148. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  149. package/views/system/menu/index.mjs +22 -26
  150. package/views/system/menu/utils.d.ts +4 -0
  151. package/views/system/menu/utils.mjs +18 -0
  152. package/views/system/notice/index.mjs +2 -2
  153. package/views/system/post/index.mjs +2 -2
  154. package/views/system/role/index.mjs +5 -5
  155. package/views/system/role/modules/AssignUser.mjs +1 -1
  156. package/views/system/role/modules/SelectDept.mjs +1 -1
  157. package/views/system/role/modules/SelectMenu.mjs +1 -1
  158. package/views/system/role/modules/SelectUser.mjs +1 -1
  159. package/views/system/user/index.mjs +3 -3
  160. package/views/tool/gen/editTable/index.mjs +67 -0
  161. package/views/tool/gen/editTable/index.vue.d.ts +3 -0
  162. package/views/tool/gen/editTable/modules/BasicInfo.mjs +2 -0
  163. package/views/tool/gen/editTable/modules/BasicInfo.vue.d.ts +8 -0
  164. package/views/tool/gen/editTable/modules/ColumnInfo.mjs +2 -0
  165. package/views/tool/gen/editTable/modules/ColumnInfo.vue.d.ts +14 -0
  166. package/views/tool/gen/editTable/modules/GenInfo.mjs +2 -0
  167. package/views/tool/gen/editTable/modules/GenInfo.vue.d.ts +8 -0
  168. package/views/tool/gen/index.mjs +163 -0
  169. package/views/tool/gen/index.vue.d.ts +3 -0
  170. package/views/tool/gen/modules/Import.mjs +2 -0
  171. package/views/tool/gen/modules/Import.vue.d.ts +6 -0
  172. package/views/tool/gen/modules/Preview.mjs +2 -0
  173. package/views/tool/gen/modules/Preview.vue.d.ts +6 -0
  174. package/views/tool/job/index.mjs +3 -3
  175. package/views/tool/job/modules/Log.mjs +1 -1
  176. package/chunks/checkbox-Drb_LAT6.mjs +0 -47
@@ -1,8 +1,8 @@
1
- import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-DKvkPp1F.mjs";
1
+ import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-CDqQoKIA.mjs";
2
2
  import i from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as a } from "../../../chunks/page-list-B_PJaCBd.mjs";
3
+ import { t as a } from "../../../chunks/page-list-4xYQUHkI.mjs";
4
4
  import "../../../components/page-list/index.mjs";
5
- import { t as o } from "../../../chunks/DictTypeDetail-C1MGJ2Nv.mjs";
5
+ import { t as o } from "../../../chunks/DictTypeDetail-nQNP_aSN.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-C1MGJ2Nv.mjs";
1
+ import { t as e } from "../../../../chunks/DictTypeDetail-nQNP_aSN.mjs";
2
2
  export { e as default };
@@ -1,24 +1,20 @@
1
- import { F as e, S as t, n, o as r } from "../../../chunks/provider-DKvkPp1F.mjs";
1
+ import { F as e, S as t, n, o as r } from "../../../chunks/provider-CDqQoKIA.mjs";
2
2
  import { t as i } from "../../../chunks/icon-DcFIQ_yG.mjs";
3
3
  import "../../../components/icon/index.mjs";
4
4
  import { isFalsy as a } from "../../../utils/boolean.mjs";
5
5
  import "../../../chunks/utils-ag05P503.mjs";
6
6
  import { flatArrToTree as o } from "../../../utils/tree.mjs";
7
7
  import s from "../../../plugins/autoImport/$msg/index.mjs";
8
- import { t as c } from "../../../chunks/page-list-B_PJaCBd.mjs";
8
+ import { t as c } from "../../../chunks/page-list-4xYQUHkI.mjs";
9
9
  import "../../../components/page-list/index.mjs";
10
- import { createBlock as l, defineComponent as u, h as d, mergeProps as f, openBlock as p, reactive as m, ref as h, unref as g, useTemplateRef as _, watch as v } from "vue";
11
- import { useRequest as y } from "alova/client";
10
+ import { useMenuTree as l } from "./utils.mjs";
11
+ import { createBlock as u, defineComponent as d, h as f, mergeProps as p, openBlock as m, reactive as h, ref as g, unref as _, useTemplateRef as v, watch as y } from "vue";
12
12
  //#endregion
13
13
  //#region ../../packages/dlzn-ui/views/system/menu/index.vue
14
- var b = /* @__PURE__ */ u({
14
+ var b = /* @__PURE__ */ d({
15
15
  __name: "index",
16
- setup(u) {
17
- let { data: b, send: x } = y(t.Get("system/menu/list", { transform: (e) => o(e.map((e) => ({
18
- ...e,
19
- label: e.menuName,
20
- value: e.menuId
21
- })), { idKey: "value" }) }), { initialData: [] }), S = _("pageListRef"), C = h([]), w = {
16
+ setup(d) {
17
+ let { menuTreeList: b, menuTreeListSend: x } = l(), S = v("pageListRef"), C = g([]), w = {
22
18
  component: {
23
19
  __others: ({ formData: e }) => ({ show: e.menuType === "C" }),
24
20
  _class: "col-span-full",
@@ -31,7 +27,7 @@ var b = /* @__PURE__ */ u({
31
27
  icon: {
32
28
  __others: ({ formData: e }) => ({
33
29
  adornment: {
34
- append: () => d(n, {
30
+ append: () => f(n, {
35
31
  default: "去选择",
36
32
  icon: "line-md:link",
37
33
  onClick: () => {
@@ -39,7 +35,7 @@ var b = /* @__PURE__ */ u({
39
35
  },
40
36
  variant: "text"
41
37
  }),
42
- prepend: () => d(i, {
38
+ prepend: () => f(i, {
43
39
  class: "mx-1",
44
40
  icon: e.icon
45
41
  })
@@ -111,7 +107,7 @@ var b = /* @__PURE__ */ u({
111
107
  model: "orderNum",
112
108
  theme: "row"
113
109
  },
114
- parentId: m({
110
+ parentId: h({
115
111
  _class: "col-span-full",
116
112
  _label: "上级菜单",
117
113
  component: "TTreeSelect",
@@ -242,15 +238,15 @@ var b = /* @__PURE__ */ u({
242
238
  buttons: [({ row: n }) => ({
243
239
  default: "编辑",
244
240
  onClick: () => {
245
- let i = h(null);
246
- v(i, () => {
241
+ let i = g(null);
242
+ y(i, () => {
247
243
  i.value.setFormData({
248
244
  ...n,
249
245
  parentId: n.parentId === "0" ? "" : n.parentId
250
246
  }, { numberToStringKeys: ["isFrame"] });
251
247
  }, { once: !0 }), e({
252
- body: () => d(r, {
253
- data: m({
248
+ body: () => f(r, {
249
+ data: h({
254
250
  isCache: "0",
255
251
  isFrame: "1",
256
252
  visible: "0"
@@ -297,10 +293,10 @@ var b = /* @__PURE__ */ u({
297
293
  }), ({ row: n }) => ({
298
294
  default: "新增",
299
295
  onClick: () => {
300
- let i = h(null);
296
+ let i = g(null);
301
297
  e({
302
- body: () => d(r, {
303
- data: m({
298
+ body: () => f(r, {
299
+ data: h({
304
300
  isCache: "0",
305
301
  isFrame: "1",
306
302
  menuType: "M",
@@ -350,10 +346,10 @@ var b = /* @__PURE__ */ u({
350
346
  operations: [{
351
347
  default: "新增",
352
348
  onClick: () => {
353
- let n = h(null);
349
+ let n = g(null);
354
350
  e({
355
- body: () => d(r, {
356
- data: m({
351
+ body: () => f(r, {
352
+ data: h({
357
353
  isCache: "0",
358
354
  isFrame: "1",
359
355
  menuType: "M",
@@ -389,7 +385,7 @@ var b = /* @__PURE__ */ u({
389
385
  },
390
386
  permission: "system:menu:add"
391
387
  }],
392
- tableOtherProps: m({
388
+ tableOtherProps: h({
393
389
  expandedTreeNodes: C,
394
390
  onExpandedTreeNodesChange: (e) => {
395
391
  C.value = e;
@@ -398,7 +394,7 @@ var b = /* @__PURE__ */ u({
398
394
  showSerialNumber: !1
399
395
  })
400
396
  };
401
- return (e, t) => (p(), l(g(c), f({
397
+ return (e, t) => (m(), u(_(c), p({
402
398
  ref_key: "pageListRef",
403
399
  ref: S
404
400
  }, E), null, 16));
@@ -0,0 +1,4 @@
1
+ export declare function useMenuTree(): {
2
+ menuTreeList: import('vue').Ref<Record<string, any>[], Record<string, any>[]>;
3
+ menuTreeListSend: import('alova/client').SendHandler<any[], Record<string, any>[]>;
4
+ };
@@ -0,0 +1,18 @@
1
+ import { S as e } from "../../../chunks/provider-CDqQoKIA.mjs";
2
+ import "../../../chunks/utils-ag05P503.mjs";
3
+ import { flatArrToTree as t } from "../../../utils/tree.mjs";
4
+ import { useRequest as n } from "alova/client";
5
+ //#region ../../packages/dlzn-ui/views/system/menu/utils.ts
6
+ function r() {
7
+ let { data: r, send: i } = n(e.Get("system/menu/list", { transform: (e) => t(e.map((e) => ({
8
+ ...e,
9
+ label: e.menuName,
10
+ value: e.menuId
11
+ })), { idKey: "value" }) }), { initialData: [] });
12
+ return {
13
+ menuTreeList: r,
14
+ menuTreeListSend: i
15
+ };
16
+ }
17
+ //#endregion
18
+ export { r as useMenuTree };
@@ -1,6 +1,6 @@
1
- import { F as e, S as t, o as n } from "../../../chunks/provider-DKvkPp1F.mjs";
1
+ import { F as e, S as t, o as n } from "../../../chunks/provider-CDqQoKIA.mjs";
2
2
  import r from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as i } from "../../../chunks/page-list-B_PJaCBd.mjs";
3
+ import { t as i } from "../../../chunks/page-list-4xYQUHkI.mjs";
4
4
  import "../../../components/page-list/index.mjs";
5
5
  import { createBlock as a, defineComponent as o, h as s, mergeProps as c, openBlock as l, reactive as u, ref as d, unref as f, useTemplateRef as p, watch as m } from "vue";
6
6
  //#endregion
@@ -1,6 +1,6 @@
1
- import { F as e, S as t, o as n } from "../../../chunks/provider-DKvkPp1F.mjs";
1
+ import { F as e, S as t, o as n } from "../../../chunks/provider-CDqQoKIA.mjs";
2
2
  import r from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as i } from "../../../chunks/page-list-B_PJaCBd.mjs";
3
+ import { t as i } from "../../../chunks/page-list-4xYQUHkI.mjs";
4
4
  import "../../../components/page-list/index.mjs";
5
5
  import { createBlock as a, defineComponent as o, h as s, mergeProps as c, openBlock as l, reactive as u, ref as d, unref as f, useTemplateRef as p, watch as m } from "vue";
6
6
  //#endregion
@@ -1,10 +1,10 @@
1
- import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-DKvkPp1F.mjs";
1
+ import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-CDqQoKIA.mjs";
2
2
  import i from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as a } from "../../../chunks/page-list-B_PJaCBd.mjs";
3
+ import { t as a } from "../../../chunks/page-list-4xYQUHkI.mjs";
4
4
  import "../../../components/page-list/index.mjs";
5
- import { t as o } from "../../../chunks/AssignUser-CUy0kpx7.mjs";
6
- import { t as s } from "../../../chunks/SelectDept-CRqN0-4G.mjs";
7
- import { t as c } from "../../../chunks/SelectMenu-D47x8Qp7.mjs";
5
+ import { t as o } from "../../../chunks/AssignUser-B5wRIDyb.mjs";
6
+ import { t as s } from "../../../chunks/SelectDept-B_9npI--.mjs";
7
+ import { t as c } from "../../../chunks/SelectMenu-CB0bsNEl.mjs";
8
8
  import { createBlock as l, defineComponent as u, h as d, mergeProps as f, openBlock as p, reactive as m, ref as h, unref as g, useTemplateRef as _, watch as v } from "vue";
9
9
  //#endregion
10
10
  //#region ../../packages/dlzn-ui/views/system/role/index.vue
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/AssignUser-CUy0kpx7.mjs";
1
+ import { t as e } from "../../../../chunks/AssignUser-B5wRIDyb.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/SelectDept-CRqN0-4G.mjs";
1
+ import { t as e } from "../../../../chunks/SelectDept-B_9npI--.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/SelectMenu-D47x8Qp7.mjs";
1
+ import { t as e } from "../../../../chunks/SelectMenu-CB0bsNEl.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/SelectUser-CUZMMvWP.mjs";
1
+ import { t as e } from "../../../../chunks/SelectUser-CmdgRKZD.mjs";
2
2
  export { e as default };
@@ -1,10 +1,10 @@
1
- import { F as e, N as t, S as n, o as r } from "../../../chunks/provider-DKvkPp1F.mjs";
1
+ import { F as e, N as t, S as n, o as r } from "../../../chunks/provider-CDqQoKIA.mjs";
2
2
  import { n as i } from "../../../chunks/useAppContext-D47amIp5.mjs";
3
3
  import { passwordReg as a, passwordRegMessage as o } from "../../../constants/regs.mjs";
4
4
  import s from "../../../plugins/autoImport/$msg/index.mjs";
5
- import { t as c } from "../../../chunks/table-YEcEUM_t.mjs";
5
+ import { t as c } from "../../../chunks/table-DlFbYYNw.mjs";
6
6
  import "../../../components/table/index.mjs";
7
- import { t as l } from "../../../chunks/page-list-B_PJaCBd.mjs";
7
+ import { t as l } from "../../../chunks/page-list-4xYQUHkI.mjs";
8
8
  import "../../../components/page-list/index.mjs";
9
9
  import { deptTreeList as u, deptTreeListSend as d } from "../dept/utils.mjs";
10
10
  import { createBlock as f, defineComponent as p, h as m, mergeProps as h, onActivated as g, openBlock as _, reactive as v, ref as y, unref as b, useTemplateRef as x, watch as S } from "vue";
@@ -0,0 +1,67 @@
1
+ import { S as e, V as t, n } from "../../../../chunks/provider-CDqQoKIA.mjs";
2
+ import r from "../../../../store/modules/excludeKPname.mjs";
3
+ import { t as i } from "../../../../chunks/BasicInfo-9WqspD1Z.mjs";
4
+ import { t as a } from "../../../../chunks/ColumnInfo-CZwp56Y1.mjs";
5
+ import { t as o } from "../../../../chunks/GenInfo-Dxoe_3RM.mjs";
6
+ import { createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, nextTick as f, openBlock as p, ref as m, unref as h, withCtx as g } from "vue";
7
+ import { useRoute as _ } from "vue-router";
8
+ //#region ../../packages/dlzn-ui/views/tool/gen/editTable/index.vue?vue&type=script&setup=true&lang.ts
9
+ var v = { class: "mt-4 text-center" }, y = /* @__PURE__ */ d({
10
+ __name: "index",
11
+ setup(d) {
12
+ let y = _(), b = m(null), x = m(null), S = m(null);
13
+ function C() {
14
+ t().close(y.name);
15
+ }
16
+ function w({ info: e }) {
17
+ f(() => {
18
+ b.value.setFormData(e), x.value.setFormData(e);
19
+ });
20
+ }
21
+ async function T() {
22
+ let [n, i, a] = await Promise.all([
23
+ b.value.handleSubmit(),
24
+ x.value.handleSubmit(),
25
+ S.value.handleSubmit()
26
+ ]);
27
+ await e.Put("tool/gen", {
28
+ ...n,
29
+ ...i,
30
+ columns: a,
31
+ params: { parentMenuId: i.parentMenuId },
32
+ tableId: y.query.id
33
+ }, { meta: { useSuccessMsg: !0 } }), r().add("Gen"), t().close(y.name);
34
+ }
35
+ return (e, t) => (p(), s("div", null, [
36
+ u(i, {
37
+ ref_key: "basicInfoRef",
38
+ ref: b
39
+ }, null, 512),
40
+ u(o, {
41
+ ref_key: "genInfoRef",
42
+ ref: x
43
+ }, null, 512),
44
+ u(a, {
45
+ ref_key: "columnInfoRef",
46
+ ref: S,
47
+ onQuerySuccess: w
48
+ }, null, 512),
49
+ c("div", v, [u(h(n), {
50
+ theme: "default",
51
+ variant: "outline",
52
+ onClick: C
53
+ }, {
54
+ default: g(() => [...t[0] ||= [l("取消", -1)]]),
55
+ _: 1
56
+ }), u(h(n), {
57
+ class: "ml-4!",
58
+ onClick: T
59
+ }, {
60
+ default: g(() => [...t[1] ||= [l("保存", -1)]]),
61
+ _: 1
62
+ })])
63
+ ]));
64
+ }
65
+ });
66
+ //#endregion
67
+ export { y as default };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../../../chunks/BasicInfo-9WqspD1Z.mjs";
2
+ export { e as default };
@@ -0,0 +1,8 @@
1
+ declare function handleSubmit(): Promise<Record<string, any>>;
2
+ declare function setFormData(data: Record<string, any>): void;
3
+ declare const __VLS_export: import('vue').DefineComponent<{}, {
4
+ handleSubmit: typeof handleSubmit;
5
+ setFormData: typeof setFormData;
6
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../../../chunks/ColumnInfo-CZwp56Y1.mjs";
2
+ export { e as default };
@@ -0,0 +1,14 @@
1
+ declare function handleSubmit(): Array<Record<string, any>>;
2
+ declare const __VLS_export: import('vue').DefineComponent<{}, {
3
+ handleSubmit: typeof handleSubmit;
4
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ querySuccess: (value: {
6
+ info: Record<string, any>;
7
+ }) => any;
8
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
9
+ onQuerySuccess?: ((value: {
10
+ info: Record<string, any>;
11
+ }) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../../../chunks/GenInfo-Dxoe_3RM.mjs";
2
+ export { e as default };
@@ -0,0 +1,8 @@
1
+ declare function handleSubmit(): Promise<Record<string, any>>;
2
+ declare function setFormData(data: Record<string, any>): void;
3
+ declare const __VLS_export: import('vue').DefineComponent<{}, {
4
+ handleSubmit: typeof handleSubmit;
5
+ setFormData: typeof setFormData;
6
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,163 @@
1
+ import { F as e, I as t, S as n } from "../../../chunks/provider-CDqQoKIA.mjs";
2
+ import { n as r } from "../../../chunks/useAppContext-D47amIp5.mjs";
3
+ import { t as i } from "../../../chunks/page-list-4xYQUHkI.mjs";
4
+ import "../../../components/page-list/index.mjs";
5
+ import { t as a } from "../../../chunks/Import-Cw149ucc.mjs";
6
+ import { t as o } from "../../../chunks/Preview-hFTldEUR.mjs";
7
+ import { computed as s, 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 } from "vue";
8
+ import { useRouter as _ } from "vue-router";
9
+ //#endregion
10
+ //#region ../../packages/dlzn-ui/views/tool/gen/index.vue
11
+ var v = /* @__PURE__ */ l({
12
+ __name: "index",
13
+ setup(l) {
14
+ let v = _(), y = g("pageListRef"), b = s(() => y.value?.selectedRows ?? []), x = {
15
+ dateRange: {
16
+ _class: "col-span-2",
17
+ _label: "创建时间",
18
+ component: "TDatePicker",
19
+ model: "dateRange",
20
+ type: "daterange"
21
+ },
22
+ tableComment: {
23
+ _label: "表描述",
24
+ component: "TInput",
25
+ model: "tableComment"
26
+ },
27
+ tableName: {
28
+ _label: "表名称",
29
+ component: "TInput",
30
+ model: "tableName"
31
+ }
32
+ };
33
+ async function S(e) {
34
+ await n.Get("tool/gen/batchGenCode", {
35
+ meta: {
36
+ useDownload: `生成的代码${e}.zip`,
37
+ useResponseBlob: !0
38
+ },
39
+ params: { tables: e }
40
+ });
41
+ }
42
+ let C = {
43
+ apis: {
44
+ delete: {
45
+ method: "tool/gen",
46
+ permission: "tool:gen:remove",
47
+ showBatch: !0
48
+ },
49
+ list: { method: (e) => n.Get("tool/gen/list", { params: {
50
+ ...e,
51
+ dateRange: void 0,
52
+ "params[beginTime]": e.dateRange[0],
53
+ "params[endTime]": e.dateRange[1]
54
+ } }) }
55
+ },
56
+ columns: [
57
+ {
58
+ colKey: "tableName",
59
+ title: "表名称"
60
+ },
61
+ {
62
+ colKey: "tableComment",
63
+ title: "表描述"
64
+ },
65
+ {
66
+ colKey: "className",
67
+ title: "实体"
68
+ },
69
+ {
70
+ colKey: "createTime",
71
+ title: "创建时间"
72
+ },
73
+ {
74
+ colKey: "updateTime",
75
+ title: "更新时间"
76
+ },
77
+ {
78
+ cell: {
79
+ buttons: [
80
+ ({ row: e }) => ({
81
+ default: "预览",
82
+ onClick: () => {
83
+ t({
84
+ body: () => u(o, { tableId: e.tableId }),
85
+ cancelBtn: "关闭",
86
+ confirmBtn: null,
87
+ header: "代码预览",
88
+ width: "80vw"
89
+ });
90
+ },
91
+ permission: "tool:gen:preview"
92
+ }),
93
+ ({ row: e }) => ({
94
+ default: "编辑",
95
+ onClick: () => {
96
+ v.push({
97
+ name: "GenEdit",
98
+ query: { id: e.tableId }
99
+ });
100
+ },
101
+ permission: "tool:gen:edit"
102
+ }),
103
+ ({ row: e }) => ({
104
+ default: "同步",
105
+ permission: "tool:gen:edit",
106
+ popconfirm: {
107
+ content: `确认要强制同步${e.tableName}表结构吗?`,
108
+ onConfirm: async () => {
109
+ await n.Get(`tool/gen/synchDb/${e.tableName}`, { meta: { useSuccessMsg: !0 } });
110
+ }
111
+ }
112
+ }),
113
+ ({ row: e }) => ({
114
+ default: "生成代码",
115
+ onClick: async () => {
116
+ e.genType === "1" ? (await n.Get(`tool/gen/genCode/${e.tableName}`), r(`成功生成到自定义路径:${e.genPath}`)) : await S(e.tableName);
117
+ },
118
+ permission: "tool:gen:code"
119
+ })
120
+ ],
121
+ component: "Buttons"
122
+ },
123
+ colKey: "_operation",
124
+ title: "操作"
125
+ }
126
+ ],
127
+ formItems: [
128
+ x.tableName,
129
+ x.tableComment,
130
+ x.dateRange
131
+ ],
132
+ operations: [p({
133
+ default: "生成",
134
+ disabled: s(() => b.value.length === 0),
135
+ onClick: async () => {
136
+ await S(b.value.map((e) => e.tableName).join(","));
137
+ },
138
+ permission: "tool:gen:code"
139
+ }), {
140
+ default: "导入",
141
+ onClick: () => {
142
+ let t = m(null);
143
+ e({
144
+ body: () => u(a, { ref: t }),
145
+ header: "导入表",
146
+ onConfirmCallback: async () => {
147
+ await t.value.handleSubmit(), y.value.query();
148
+ },
149
+ width: 800
150
+ });
151
+ },
152
+ permission: "tool:gen:import"
153
+ }],
154
+ tableOtherProps: { rowKey: "tableId" }
155
+ };
156
+ return (e, t) => (f(), c(h(i), d({
157
+ ref_key: "pageListRef",
158
+ ref: y
159
+ }, C), null, 16));
160
+ }
161
+ });
162
+ //#endregion
163
+ 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
+ import { t as e } from "../../../../chunks/Import-Cw149ucc.mjs";
2
+ export { e as default };
@@ -0,0 +1,6 @@
1
+ declare function handleSubmit(): Promise<void>;
2
+ declare const __VLS_export: import('vue').DefineComponent<{}, {
3
+ handleSubmit: typeof handleSubmit;
4
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../../chunks/Preview-hFTldEUR.mjs";
2
+ export { e as default };
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ tableId: string;
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -1,8 +1,8 @@
1
- import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-DKvkPp1F.mjs";
1
+ import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-CDqQoKIA.mjs";
2
2
  import i from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as a } from "../../../chunks/page-list-B_PJaCBd.mjs";
3
+ import { t as a } from "../../../chunks/page-list-4xYQUHkI.mjs";
4
4
  import "../../../components/page-list/index.mjs";
5
- import { t as o } from "../../../chunks/Log-C4crM-tt.mjs";
5
+ import { t as o } from "../../../chunks/Log-BAt3Vxvi.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/tool/job/index.vue
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Log-C4crM-tt.mjs";
1
+ import { t as e } from "../../../../chunks/Log-BAt3Vxvi.mjs";
2
2
  export { e as default };
@@ -1,47 +0,0 @@
1
- import { computed as e, createBlock as t, defineComponent as n, getCurrentInstance as r, h as i, mergeProps as a, openBlock as o, resolveDynamicComponent as s, unref as c } from "vue";
2
- import { Checkbox as l } from "tdesign-vue-next";
3
- //#endregion
4
- //#region ../../packages/dlzn-ui/components/checkbox/src/checkbox.vue
5
- var u = /* @__PURE__ */ n({
6
- inheritAttrs: !1,
7
- name: "TCheckbox",
8
- __name: "checkbox",
9
- props: {
10
- modelValue: { type: Boolean },
11
- disabled: {
12
- type: Boolean,
13
- default: void 0
14
- },
15
- indeterminate: { type: Boolean },
16
- label: {},
17
- lazyLoad: { type: Boolean },
18
- name: {},
19
- readonly: {
20
- type: Boolean,
21
- default: void 0
22
- },
23
- title: {},
24
- onChange: {}
25
- },
26
- emits: ["update:modelValue"],
27
- setup(n, { emit: u }) {
28
- let d = n, f = u, p = e(() => {
29
- let e = { ...d };
30
- return Object.keys(e).forEach((t) => {
31
- e[t] === void 0 && delete e[t];
32
- }), e;
33
- }), m = r();
34
- function h(e) {
35
- m.exposed = e ?? {};
36
- }
37
- return (e, n) => (o(), t(s(i(c(l), a(e.$attrs, {
38
- ...p.value,
39
- onChange: (...e) => {
40
- f("update:modelValue", e[0]), d.onChange?.(...e);
41
- },
42
- ref: h
43
- }), e.$slots))));
44
- }
45
- });
46
- //#endregion
47
- export { u as t };