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.
- package/assets/css/tdesign-reset.css +6 -0
- package/assets/{provider-tmBy-gBq.css → provider-CwykAGOx.css} +1 -1
- package/chunks/{AssignUser-CUy0kpx7.mjs → AssignUser-B5wRIDyb.mjs} +3 -3
- package/chunks/BasicInfo-9WqspD1Z.mjs +69 -0
- package/chunks/ColumnInfo-CZwp56Y1.mjs +248 -0
- package/chunks/{Common-BgM-b-rd.mjs → Common-BVD38hp6.mjs} +1 -1
- package/chunks/{Day-BQhqFjXH.mjs → Day-CHWBklI0.mjs} +1 -1
- package/chunks/{DictTypeDetail-C1MGJ2Nv.mjs → DictTypeDetail-nQNP_aSN.mjs} +2 -2
- package/chunks/GenInfo-Dxoe_3RM.mjs +123 -0
- package/chunks/{Hour-oTSV7kzM.mjs → Hour-NaDEj833.mjs} +1 -1
- package/chunks/Import-Cw149ucc.mjs +67 -0
- package/chunks/Index-BKtK-Ikl.mjs +37 -0
- package/chunks/{Index-DKJXQAZ6.mjs → Index-CQSAs1h6.mjs} +1 -1
- package/chunks/{Index-B14jEhv1.mjs → Index-ClKOg-Wu.mjs} +1 -1
- package/chunks/{Index-BSICG9gU.mjs → Index-LNJ_79uk.mjs} +1 -1
- package/chunks/{Index-BC6YIzwn.mjs → Index-QeguMHYR.mjs} +1 -1
- package/chunks/{IndexItem-BgRYG21w.mjs → IndexItem-DsYwi-MU.mjs} +1 -1
- package/chunks/{Log-C4crM-tt.mjs → Log-BAt3Vxvi.mjs} +2 -2
- package/chunks/{LoginBg-D6LI-RQr.mjs → LoginBg-BharyaPx.mjs} +1 -1
- package/chunks/{Minute-r8Je2Ur9.mjs → Minute-CM6f_BSX.mjs} +1 -1
- package/chunks/{Month-CuxjKraz.mjs → Month-DRWusngF.mjs} +1 -1
- package/chunks/Preview-hFTldEUR.mjs +52 -0
- package/chunks/{Second-CY2fahMR.mjs → Second-BTRO-iOb.mjs} +1 -1
- package/chunks/{SelectDept-CRqN0-4G.mjs → SelectDept-B_9npI--.mjs} +2 -2
- package/chunks/{SelectMenu-D47x8Qp7.mjs → SelectMenu-CB0bsNEl.mjs} +2 -2
- package/chunks/{SelectUser-CUZMMvWP.mjs → SelectUser-CmdgRKZD.mjs} +2 -2
- package/chunks/{UserInfo-C6gko2hb.mjs → UserInfo-CT_ez2uW.mjs} +1 -1
- package/chunks/{app-F22ZiU9p.mjs → app-DNfYzQDT.mjs} +1 -1
- package/chunks/checkbox-C-5KTT1a.mjs +54 -0
- package/chunks/{custom-page-list-DRlRCSMU.mjs → custom-page-list-DZS45Fs5.mjs} +4 -4
- package/chunks/{custom-page-table-g4gSF8QC.mjs → custom-page-table-BpzYoGwO.mjs} +2 -2
- package/chunks/echarts-C3EKKtvU.mjs +26575 -0
- package/chunks/{overview-C2wCzdwi.mjs → overview-SpRnc3-2.mjs} +1 -1
- package/chunks/{page-list-B_PJaCBd.mjs → page-list-4xYQUHkI.mjs} +3 -3
- package/chunks/{page-query-CrnkGVHt.mjs → page-query-JDsWn-xy.mjs} +1 -1
- package/chunks/{page-table-uXFDhExO.mjs → page-table-JezgsQh2.mjs} +3 -3
- package/chunks/{pagination-DNfZiF_z.mjs → pagination-Cck2wqel.mjs} +1 -1
- package/chunks/{provider-DKvkPp1F.mjs → provider-CDqQoKIA.mjs} +10 -7
- package/chunks/{table-YEcEUM_t.mjs → table-DlFbYYNw.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox/index.mjs +2 -2
- package/components/checkbox/src/checkbox.d.ts +10 -3
- package/components/checkbox/src/checkbox.mjs +1 -1
- package/components/checkbox/src/checkbox.vue.d.ts +2 -2
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +29 -29
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.d.ts +5 -7
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +1 -1
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +2 -2
- package/layout/Login.mjs +2 -2
- package/layout/NotFound.mjs +1 -1
- package/layout/modules/Aside.mjs +1 -1
- package/layout/modules/Breadcrumb.mjs +1 -1
- package/layout/modules/Header.mjs +1 -1
- package/layout/modules/LoginBg.mjs +1 -1
- package/layout/profile/Index.mjs +2 -2
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/main.mjs +2 -2
- package/package.json +1 -1
- package/plugins/autoImport/$alova/index.mjs +1 -1
- package/plugins/autoImport/$confirm/index.mjs +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +1 -1
- package/plugins/captcha/captcha.mjs +1 -1
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/echarts/index.mjs +2 -26575
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Checkbox/Index.mjs +2 -0
- package/plugins/tableRenders/cell/Checkbox/Index.vue.d.ts +17 -0
- package/plugins/tableRenders/cell/Checkbox/index.d.ts +2 -0
- package/plugins/tableRenders/cell/Checkbox/index2.mjs +0 -0
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.d.ts +2 -0
- package/plugins/tableRenders/cell/index.mjs +47 -45
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +1 -1
- package/types/globle.d.ts +2 -0
- package/views/index.mjs +4 -0
- package/views/monitor/cache/index.mjs +139 -0
- package/views/monitor/cache/index.vue.d.ts +3 -0
- package/views/monitor/cacheList/index.mjs +179 -0
- package/views/monitor/cacheList/index.vue.d.ts +3 -0
- package/views/monitor/logininfor/index.mjs +2 -2
- package/views/monitor/online/index.mjs +2 -2
- package/views/monitor/operlog/index.mjs +2 -2
- package/views/monitor/server/index.mjs +2 -2
- package/views/system/config/index.mjs +2 -2
- package/views/system/dept/index.mjs +2 -2
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +3 -3
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +22 -26
- package/views/system/menu/utils.d.ts +4 -0
- package/views/system/menu/utils.mjs +18 -0
- package/views/system/notice/index.mjs +2 -2
- package/views/system/post/index.mjs +2 -2
- package/views/system/role/index.mjs +5 -5
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +3 -3
- package/views/tool/gen/editTable/index.mjs +67 -0
- package/views/tool/gen/editTable/index.vue.d.ts +3 -0
- package/views/tool/gen/editTable/modules/BasicInfo.mjs +2 -0
- package/views/tool/gen/editTable/modules/BasicInfo.vue.d.ts +8 -0
- package/views/tool/gen/editTable/modules/ColumnInfo.mjs +2 -0
- package/views/tool/gen/editTable/modules/ColumnInfo.vue.d.ts +14 -0
- package/views/tool/gen/editTable/modules/GenInfo.mjs +2 -0
- package/views/tool/gen/editTable/modules/GenInfo.vue.d.ts +8 -0
- package/views/tool/gen/index.mjs +163 -0
- package/views/tool/gen/index.vue.d.ts +3 -0
- package/views/tool/gen/modules/Import.mjs +2 -0
- package/views/tool/gen/modules/Import.vue.d.ts +6 -0
- package/views/tool/gen/modules/Preview.mjs +2 -0
- package/views/tool/gen/modules/Preview.vue.d.ts +6 -0
- package/views/tool/job/index.mjs +3 -3
- package/views/tool/job/modules/Log.mjs +1 -1
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
8
|
+
import { t as c } from "../../../chunks/page-list-4xYQUHkI.mjs";
|
|
9
9
|
import "../../../components/page-list/index.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
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__ */
|
|
14
|
+
var b = /* @__PURE__ */ d({
|
|
15
15
|
__name: "index",
|
|
16
|
-
setup(
|
|
17
|
-
let {
|
|
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: () =>
|
|
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: () =>
|
|
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:
|
|
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 =
|
|
246
|
-
|
|
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: () =>
|
|
253
|
-
data:
|
|
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 =
|
|
296
|
+
let i = g(null);
|
|
301
297
|
e({
|
|
302
|
-
body: () =>
|
|
303
|
-
data:
|
|
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 =
|
|
349
|
+
let n = g(null);
|
|
354
350
|
e({
|
|
355
|
-
body: () =>
|
|
356
|
-
data:
|
|
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:
|
|
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) => (
|
|
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,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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
6
|
-
import { t as s } from "../../../chunks/SelectDept-
|
|
7
|
-
import { t as c } from "../../../chunks/SelectMenu-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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,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,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,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,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,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;
|
package/views/tool/job/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-
|
|
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-
|
|
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-
|
|
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-
|
|
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 };
|