@jeecg/online 3.9.0-beta2 → 3.9.1-RC
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/{AccountLoginForm-634a76b1.mjs → AccountLoginForm-BXyvcSds.mjs} +50 -53
- package/{AiModal-204a2146.mjs → AiModal-BgVzn074.mjs} +18 -20
- package/{AppForgetPassword-f9a6258a.mjs → AppForgetPassword-B-2CvL62.mjs} +59 -63
- package/AppLogin-BMBmx2oq.mjs +272 -0
- package/AppLoginHeader-BtKXOMRR.mjs +23 -0
- package/{AppNameEmail-54026ea8.mjs → AppNameEmail-DCqMNjaK.mjs} +20 -24
- package/{AppRegister-043efc45.mjs → AppRegister-C5iH-245.mjs} +33 -37
- package/{AppTenant-c7bb8700.mjs → AppTenant-etPXeUcW.mjs} +49 -55
- package/AppThirdForm-NMob-JaS.mjs +185 -0
- package/AuthButtonConfig-zUioaGwn.mjs +155 -0
- package/AuthButtonTree-DYZwphe6.mjs +159 -0
- package/{AuthDataConfig-3cd10ca2.mjs → AuthDataConfig-uQ5WT7rx.mjs} +57 -62
- package/AuthDataTree-Cr28_YKx.mjs +134 -0
- package/{AuthFieldConfig-bb65f78b.mjs → AuthFieldConfig-DjdaPIXF.mjs} +95 -101
- package/{AuthFieldTree-3e38b12b.mjs → AuthFieldTree-DHmnDQ0I.mjs} +94 -99
- package/AuthManagerDrawer-DUb6QylS.mjs +108 -0
- package/{AuthSetterModal-f176c221.mjs → AuthSetterModal-BBFdNv1M.mjs} +89 -100
- package/BuiltInButtonList-Cgg5maxI.mjs +4 -0
- package/{BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs → BuiltInButtonList.vue_vue_type_script_setup_true_lang-5-4hU0bi.mjs} +8 -8
- package/{CgformAddressModal-a3903b24.mjs → CgformAddressModal-BVoww1fk.mjs} +57 -63
- package/CgformCopyList-7e96RMbJ.mjs +176 -0
- package/{CgformModal-115710a6.mjs → CgformModal-RH-Tr08S.mjs} +240 -241
- package/{CgreportAigcModal-3bef8abe.mjs → CgreportAigcModal-rEfIpPF9.mjs} +35 -38
- package/{CgreportModal-0cc48587.mjs → CgreportModal-Bajb_3ku.mjs} +49 -50
- package/{CheckDictTable-65157c48.mjs → CheckDictTable-BxJFrctQ.mjs} +44 -52
- package/{CodeFileListModal-305c1a62.mjs → CodeFileListModal-C3uqsFvi.mjs} +32 -36
- package/{CodeFileViewModal-320d7acf.mjs → CodeFileViewModal-bEtZDbAY.mjs} +78 -81
- package/CodeGeneratorModal-ZWEIXRbY.mjs +291 -0
- package/{CustomButtonList-98db8fd2.mjs → CustomButtonList-7wjonhtu.mjs} +82 -85
- package/{DBAttributeTable-56701599.mjs → DBAttributeTable-DA2XttIQ.mjs} +50 -60
- package/{DbToOnlineModal-a82cdeb5.mjs → DbToOnlineModal-CDVqmEJH.mjs} +43 -45
- package/DetailForm-CnfJBMys.mjs +472 -0
- package/{DropMenuItem-b3a9cd6a.mjs → DropMenuItem-D8YWMle-.mjs} +8 -11
- package/EnhanceJavaModal-W8_oGY-U.mjs +255 -0
- package/{EnhanceJsHistory-bb6ba865.mjs → EnhanceJsHistory-ZzXedCNI.mjs} +48 -49
- package/{EnhanceJsModal-b0527cbf.mjs → EnhanceJsModal-Djb5ItH4.mjs} +95 -104
- package/EnhanceSqlModal-DxPdRcQc.mjs +258 -0
- package/ErrorTip-BDS1uxkW.mjs +4 -0
- package/{ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs → ErrorTip.vue_vue_type_script_setup_true_lang-Bl9zMjvW.mjs} +11 -11
- package/ExtendConfigModal-CxJIWvV4.mjs +102 -0
- package/{FieldExtendJsonModal-536e6d5b.mjs → FieldExtendJsonModal-Bvmbb6yd.mjs} +27 -30
- package/{FileSelectModal-eb026170.mjs → FileSelectModal-DXqL5msQ.mjs} +27 -31
- package/{ForeignKeyTable-97a5827f.mjs → ForeignKeyTable-D6AlLbfd.mjs} +17 -25
- package/{IndexTable-4d350e4e.mjs → IndexTable-B7ef6Aox.mjs} +9 -17
- package/JModalTip-DHrn6ksJ.mjs +46 -0
- package/{JOnlineSearchSelect-ffeac61d.mjs → JOnlineSearchSelect-CAv2Dm9V.mjs} +21 -23
- package/{LeftDepart-a727aab7.mjs → LeftDepart-BC1jpYJP.mjs} +8 -11
- package/{LeftRole-b533dcf6.mjs → LeftRole-sq_2p6Qk.mjs} +16 -19
- package/{LeftUser-aaac52cb.mjs → LeftUser-CYh4PBgd.mjs} +7 -10
- package/{LinkTableConfigModal-4053b62d.mjs → LinkTableConfigModal-BOWs0A5-.mjs} +38 -40
- package/{LinkTableFieldConfigModal-93552099.mjs → LinkTableFieldConfigModal-D7FTBP3E.mjs} +50 -52
- package/LinkTableListPiece-Bfu6vfo0.mjs +31 -0
- package/{ModalFormDemo-b8478356.mjs → ModalFormDemo-C1qQT6lj.mjs} +13 -16
- package/{OnlCgformErpList-b0605798.mjs → OnlCgformErpList-CavWG8GK.mjs} +139 -199
- package/OnlCgformErpSubTable-D3QM8oWi.mjs +382 -0
- package/OnlCgformInnerSubTable-BqmooFqy.mjs +213 -0
- package/OnlCgformInnerTableList-Dr1KdoSC.mjs +421 -0
- package/OnlCgformTabList-DCy3oudh.mjs +371 -0
- package/OnlineAutoList-C4pkORGb.mjs +500 -0
- package/OnlineAutoModal-Cuf_wcbU.mjs +222 -0
- package/{OnlineAutoTreeList-624106c1.mjs → OnlineAutoTreeList-LDE9Sm7X.mjs} +124 -181
- package/OnlineCustomModal-Jz4MxkH0.mjs +209 -0
- package/OnlineDetailModal-So0YEah1.mjs +160 -0
- package/{OnlineForm-86b5966d.mjs → OnlineForm-CvcbzRIZ.mjs} +47 -73
- package/OnlineFormDetail-KaD6cV31.mjs +321 -0
- package/OnlineFormUrlAdd-CktstdFD.mjs +86 -0
- package/OnlineFormUrlDetail-C4qptuTQ.mjs +85 -0
- package/OnlineFormUrlEdit-C06vTiM_.mjs +84 -0
- package/{OnlineFormUrlSuccess-0c2431a4.mjs → OnlineFormUrlSuccess-Cvbte2lW.mjs} +27 -30
- package/{OnlineQueryForm-3017a4ca.mjs → OnlineQueryForm-6E1IRi95.mjs} +139 -167
- package/{OnlineSearchFormItem-1b54585f.mjs → OnlineSearchFormItem-CdRuXQPu.mjs} +112 -118
- package/{OnlineSelectCascade-fab4426d.mjs → OnlineSelectCascade-O7iXAgdH.mjs} +31 -33
- package/OnlineSubFormDetail-DcMpAk8Z.mjs +109 -0
- package/OnlineTabAutoModal-DSOVDlOz.mjs +285 -0
- package/OnlineTabDetailModal-OXQ_2VLI.mjs +187 -0
- package/{OnlineTabForm-5c04cbc5.mjs → OnlineTabForm-Cg3_IX2H.mjs} +228 -253
- package/OnlineTabFormDetail-BgFkUkva.mjs +299 -0
- package/{PageAttributeTable-18aabf81.mjs → PageAttributeTable-C803SekP.mjs} +46 -59
- package/{PhoneLoginForm-4a9d7869.mjs → PhoneLoginForm-8a0Uehov.mjs} +40 -43
- package/ProcessOnlineForm-COeEaGc8.mjs +182 -0
- package/{QueryTable-342fd89a.mjs → QueryTable-DHYaYbKC.mjs} +23 -31
- package/SetSwitchOptions-B4Q6l-54.mjs +58 -0
- package/ShareAddView-CxZuNTQB.mjs +11 -0
- package/ShareEditView-Dqdzjmpc.mjs +17 -0
- package/ShareView-B9TiMmkR.mjs +4 -0
- package/{ShareView.vue_vue_type_script_setup_true_lang-9ea579c2.mjs → ShareView.vue_vue_type_script_setup_true_lang-BCdP9KMD.mjs} +21 -21
- package/SingleView-BDXeMLV-.mjs +4 -0
- package/{SingleView.vue_vue_type_style_index_0_lang-24d417dc.mjs → SingleView.vue_vue_type_style_index_0_lang-D3QcMcYT.mjs} +27 -27
- package/{SuperQuery-270b0968.mjs → SuperQuery-CgkajEWI.mjs} +342 -370
- package/SuperQueryValComponent-UO10kRg5.mjs +4 -0
- package/TaskOpinionList-C8rcU6ee.mjs +10 -0
- package/{aiModal-e7362c3f.mjs → aiModal-DTU-w5Xx.mjs} +33 -36
- package/{enhance.data-6601ff44.mjs → enhance.data-DRCzy5Bx.mjs} +5 -5
- package/index-0kQBIHx0.mjs +58 -0
- package/{index-b811abb9.mjs → index-B1H394jP.mjs} +35 -38
- package/index-CXD6__bJ.mjs +195 -0
- package/{index-6d1a78e2.mjs → index-DIjQbz6A.mjs} +37 -41
- package/{index-e2c3e6f3.mjs → index-Dbr1qL3H.mjs} +474 -608
- package/{index-19eaef11.mjs → index-dmWvLQET.mjs} +2 -2
- package/{index-d95bb7c2.mjs → index-pGbTziKP.mjs} +32 -44
- package/{index-b5fe9bd4.mjs → index-siZ6JDIW.mjs} +17 -20
- package/main.index.js +8 -9
- package/online.css +1 -0
- package/package.json +1 -1
- package/{useCgformList-6d5547ff.mjs → useCgformList-_o9GP7ca.mjs} +3 -3
- package/useExtendComponent-P9wrWQwT.mjs +4479 -0
- package/{useListButton-73071548.mjs → useListButton-DyOAscwT.mjs} +7 -9
- package/{useSchemas-b074f3a1.mjs → useSchemas-svH7q1tm.mjs} +69 -42
- package/{useTableSync-dbfba20e.mjs → useTableSync-BAWujyoc.mjs} +1 -1
- package/{utils-9fce7606.mjs → utils-DcQ65Qmw.mjs} +1 -1
- package/AppLogin-bf783eab.mjs +0 -287
- package/AppLoginHeader-55594326.mjs +0 -27
- package/AppThirdForm-5e7e1144.mjs +0 -189
- package/AuthButtonConfig-4887be0d.mjs +0 -160
- package/AuthButtonTree-7e47b44b.mjs +0 -165
- package/AuthDataTree-714c259c.mjs +0 -139
- package/AuthManagerDrawer-dee39b07.mjs +0 -119
- package/BuiltInButtonList-bb6cf95c.mjs +0 -10
- package/CgformCopyList-4be1000f.mjs +0 -259
- package/CodeGeneratorModal-2ba18bd1.mjs +0 -298
- package/DetailForm-7d4f630e.mjs +0 -497
- package/EnhanceJavaModal-469e645e.mjs +0 -264
- package/EnhanceSqlModal-c6e8bce1.mjs +0 -268
- package/ErrorTip-bb616e32.mjs +0 -7
- package/ExtendConfigModal-7b00b49a.mjs +0 -117
- package/JModalTip-c3e6726c.mjs +0 -49
- package/LinkTableListPiece-0f4ca559.mjs +0 -34
- package/OnlCgformErpSubTable-89699bc9.mjs +0 -443
- package/OnlCgformInnerSubTable-f2722f77.mjs +0 -269
- package/OnlCgformInnerTableList-992aa7e9.mjs +0 -481
- package/OnlCgformTabList-882a0e0c.mjs +0 -431
- package/OnlineAutoList-caedb54a.mjs +0 -558
- package/OnlineAutoModal-a0d1a6b8.mjs +0 -260
- package/OnlineCustomModal-f4e17bed.mjs +0 -246
- package/OnlineDetailModal-35394778.mjs +0 -198
- package/OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs +0 -1
- package/OnlineFormDetail-4b3ad130.mjs +0 -349
- package/OnlineFormUrlAdd-708c91fb.mjs +0 -116
- package/OnlineFormUrlDetail-5c8efaeb.mjs +0 -121
- package/OnlineFormUrlEdit-8f08474e.mjs +0 -114
- package/OnlineSubFormDetail-bbc48c3e.mjs +0 -147
- package/OnlineTabAutoModal-b0f9fce8.mjs +0 -319
- package/OnlineTabDetailModal-401a26ad.mjs +0 -226
- package/OnlineTabFormDetail-2a28febf.mjs +0 -328
- package/ProcessOnlineForm-0ddce4fb.mjs +0 -218
- package/SetSwitchOptions-e1d5a6b4.mjs +0 -62
- package/ShareAddView-a5154da3.mjs +0 -88
- package/ShareEditView-cf761cf3.mjs +0 -94
- package/ShareView-3b2f5457.mjs +0 -82
- package/SingleView-3cab20a9.mjs +0 -70
- package/SuperQueryValComponent-5a9ccfd4.mjs +0 -8
- package/TaskOpinionList-60cf4080.mjs +0 -13
- package/index-740b2c4a.mjs +0 -57
- package/index-8fd12d0f.mjs +0 -219
- package/style.css +0 -1
- package/useExtendComponent-95ce0719.mjs +0 -4460
- /package/{SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs → SuperQueryValComponent.vue_vue_type_script_lang-BM-iwlLi.mjs} +0 -0
- /package/{auth.api-53df4c33.mjs → auth.api-2QmzY0ji.mjs} +0 -0
- /package/{auth.data-e44c7975.mjs → auth.data-Cp8D9uZ7.mjs} +0 -0
- /package/{button.data-fe45d43b.mjs → button.data-CyUX77GQ.mjs} +0 -0
- /package/{cgform.data-0ca62d09.mjs → cgform.data-CviSPXEg.mjs} +0 -0
- /package/{cgformState-d9f8ec42.mjs → cgformState-CUyRXfhW.mjs} +0 -0
- /package/{constant-fa63bd66.mjs → constant-DnbpmwZg.mjs} +0 -0
- /package/{enhance.api-138e6826.mjs → enhance.api-BqHb-YGL.mjs} +0 -0
- /package/{index-5e89258d.mjs → index-aVGkB_J9.mjs} +0 -0
- /package/{shareStore-7de6c7a6.mjs → shareStore-k-kzyga5.mjs} +0 -0
- /package/{useCustomHook-3a17a690.mjs → useCustomHook-B35kFqDB.mjs} +0 -0
- /package/{useFormUrl-2ee1a82d.mjs → useFormUrl-D8ASmaz6.mjs} +0 -0
- /package/{useOnlinePopEvent-687070b7.mjs → useOnlinePopEvent-FOvbs0Ta.mjs} +0 -0
- /package/{useOnlineTest-e4bd8be3.mjs → useOnlineTest-_onDRxjY.mjs} +0 -0
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, ref as n, computed as C, resolveComponent as a, openBlock as g, createBlock as A, withCtx as u, createVNode as o, createElementBlock as D, Fragment as B, createCommentVNode as F } from "vue";
|
|
2
|
-
import { BasicDrawer as I, useDrawerInner as _ } from "/@/components/Drawer";
|
|
3
|
-
import v from "./AuthFieldConfig-bb65f78b.mjs";
|
|
4
|
-
import w from "./AuthButtonConfig-4887be0d.mjs";
|
|
5
|
-
import T from "./AuthDataConfig-3cd10ca2.mjs";
|
|
6
|
-
import { _ as k } from "./index-740b2c4a.mjs";
|
|
7
|
-
import "/@/components/Table";
|
|
8
|
-
import "./auth.api-53df4c33.mjs";
|
|
9
|
-
import "/@/utils/http/axios";
|
|
10
|
-
import "./auth.data-e44c7975.mjs";
|
|
11
|
-
import "/@/utils/index";
|
|
12
|
-
import "lodash-es";
|
|
13
|
-
import "/@/components/Modal";
|
|
14
|
-
import "/@/components/Form";
|
|
15
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
16
|
-
import "/@/hooks/web/useMessage";
|
|
17
|
-
import "vue-router";
|
|
18
|
-
const K = b({
|
|
19
|
-
name: "AuthManagerDrawer",
|
|
20
|
-
components: {
|
|
21
|
-
BasicDrawer: I,
|
|
22
|
-
AuthFieldConfig: v,
|
|
23
|
-
AuthButtonConfig: w,
|
|
24
|
-
AuthDataConfig: T
|
|
25
|
-
},
|
|
26
|
-
props: {
|
|
27
|
-
// 1单表 2主表 3附表
|
|
28
|
-
tableType: {
|
|
29
|
-
type: Number,
|
|
30
|
-
default: 1
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
emits: ["register"],
|
|
34
|
-
setup(e) {
|
|
35
|
-
const t = n(""), d = n(""), h = n([]), s = n("field"), l = n(1), p = C(() => e.tableType == 1 || e.tableType == 2), [r, { closeDrawer: m }] = _((i) => {
|
|
36
|
-
t.value = i.cgformId, d.value = t.value + "?" + (/* @__PURE__ */ new Date()).getTime(), s.value = "field", l.value = i.tableType;
|
|
37
|
-
});
|
|
38
|
-
function f() {
|
|
39
|
-
m();
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
activeKey: s,
|
|
43
|
-
cgformId: t,
|
|
44
|
-
headId: d,
|
|
45
|
-
authFields: h,
|
|
46
|
-
hasDataAuth: p,
|
|
47
|
-
onClose: f,
|
|
48
|
-
registerDrawer: r,
|
|
49
|
-
curTableType: l
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
function R(e, t, d, h, s, l) {
|
|
54
|
-
const p = a("AuthFieldConfig"), r = a("a-tab-pane"), m = a("AuthButtonConfig"), f = a("AuthDataConfig"), i = a("a-tabs"), y = a("BasicDrawer");
|
|
55
|
-
return g(), A(y, {
|
|
56
|
-
onRegister: e.registerDrawer,
|
|
57
|
-
title: "权限管理",
|
|
58
|
-
width: 800,
|
|
59
|
-
onClose: e.onClose
|
|
60
|
-
}, {
|
|
61
|
-
default: u(() => [
|
|
62
|
-
o(i, {
|
|
63
|
-
activeKey: e.activeKey,
|
|
64
|
-
"onUpdate:activeKey": t[1] || (t[1] = (c) => e.activeKey = c)
|
|
65
|
-
}, {
|
|
66
|
-
default: u(() => [
|
|
67
|
-
o(r, {
|
|
68
|
-
tab: "字段权限",
|
|
69
|
-
key: "field",
|
|
70
|
-
forceRender: ""
|
|
71
|
-
}, {
|
|
72
|
-
default: u(() => [
|
|
73
|
-
o(p, {
|
|
74
|
-
headId: e.headId,
|
|
75
|
-
authFields: e.authFields,
|
|
76
|
-
"onUpdate:authFields": t[0] || (t[0] = (c) => e.authFields = c)
|
|
77
|
-
}, null, 8, ["headId", "authFields"])
|
|
78
|
-
]),
|
|
79
|
-
_: 1
|
|
80
|
-
}),
|
|
81
|
-
e.hasDataAuth ? (g(), D(B, { key: 0 }, [
|
|
82
|
-
o(r, {
|
|
83
|
-
tab: "按钮权限",
|
|
84
|
-
key: "button",
|
|
85
|
-
forceRender: ""
|
|
86
|
-
}, {
|
|
87
|
-
default: u(() => [
|
|
88
|
-
o(m, {
|
|
89
|
-
headId: e.headId,
|
|
90
|
-
tableType: e.curTableType
|
|
91
|
-
}, null, 8, ["headId", "tableType"])
|
|
92
|
-
]),
|
|
93
|
-
_: 1
|
|
94
|
-
}),
|
|
95
|
-
o(r, {
|
|
96
|
-
tab: "数据权限",
|
|
97
|
-
key: "data",
|
|
98
|
-
forceRender: ""
|
|
99
|
-
}, {
|
|
100
|
-
default: u(() => [
|
|
101
|
-
o(f, {
|
|
102
|
-
cgformId: e.cgformId,
|
|
103
|
-
authFields: e.authFields
|
|
104
|
-
}, null, 8, ["cgformId", "authFields"])
|
|
105
|
-
]),
|
|
106
|
-
_: 1
|
|
107
|
-
})
|
|
108
|
-
], 64)) : F("", !0)
|
|
109
|
-
]),
|
|
110
|
-
_: 1
|
|
111
|
-
}, 8, ["activeKey"])
|
|
112
|
-
]),
|
|
113
|
-
_: 1
|
|
114
|
-
}, 8, ["onRegister", "onClose"]);
|
|
115
|
-
}
|
|
116
|
-
const W = /* @__PURE__ */ k(K, [["render", R]]);
|
|
117
|
-
export {
|
|
118
|
-
W as default
|
|
119
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { _ as o } from "./BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "/@/hooks/system/useListPage";
|
|
4
|
-
import "/@/components/Table";
|
|
5
|
-
import "/@/components/Modal";
|
|
6
|
-
import "/@/components/Form";
|
|
7
|
-
import "/@/utils/http/axios";
|
|
8
|
-
export {
|
|
9
|
-
o as default
|
|
10
|
-
};
|
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, provide as k, watch as v, resolveComponent as e, openBlock as S, createElementBlock as A, Fragment as I, createElementVNode as q, normalizeClass as L, createVNode as t, withCtx as i, createTextVNode as a, createCommentVNode as y } from "vue";
|
|
2
|
-
import { BasicTable as N, TableAction as V } from "/@/components/Table";
|
|
3
|
-
import { C as F } from "./CgformModal-115710a6.mjs";
|
|
4
|
-
import O from "./DbToOnlineModal-a82cdeb5.mjs";
|
|
5
|
-
import $ from "./CustomButtonList-98db8fd2.mjs";
|
|
6
|
-
import P from "./EnhanceJsModal-b0527cbf.mjs";
|
|
7
|
-
import z from "./EnhanceJavaModal-469e645e.mjs";
|
|
8
|
-
import Q from "./EnhanceSqlModal-c6e8bce1.mjs";
|
|
9
|
-
import Y from "./AuthManagerDrawer-dee39b07.mjs";
|
|
10
|
-
import j from "./AuthSetterModal-f176c221.mjs";
|
|
11
|
-
import G from "./CgformAddressModal-a3903b24.mjs";
|
|
12
|
-
import { C as H, u as K } from "./useCgformList-6d5547ff.mjs";
|
|
13
|
-
import { _ as U } from "./index-740b2c4a.mjs";
|
|
14
|
-
import "/@/components/Icon";
|
|
15
|
-
import "/@/components/Modal";
|
|
16
|
-
import "/@/components/Form/index";
|
|
17
|
-
import "/@/hooks/web/useMessage";
|
|
18
|
-
import "./useSchemas-b074f3a1.mjs";
|
|
19
|
-
import "ant-design-vue";
|
|
20
|
-
import "@ant-design/icons-vue";
|
|
21
|
-
import "/@/utils/common/compUtils";
|
|
22
|
-
import "/@/hooks/web/usePermission";
|
|
23
|
-
import "/@/utils/helper/validator";
|
|
24
|
-
import "./DBAttributeTable-56701599.mjs";
|
|
25
|
-
import "/@/components/jeecg/JVxeTable/types";
|
|
26
|
-
import "./useTableSync-dbfba20e.mjs";
|
|
27
|
-
import "./cgform.data-0ca62d09.mjs";
|
|
28
|
-
import "/@/utils/dict";
|
|
29
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
30
|
-
import "/@/utils/uuid";
|
|
31
|
-
import "lodash-es";
|
|
32
|
-
import "./aiModal-e7362c3f.mjs";
|
|
33
|
-
import "/@/utils/http/axios";
|
|
34
|
-
import "./PageAttributeTable-18aabf81.mjs";
|
|
35
|
-
import "./LinkTableConfigModal-4053b62d.mjs";
|
|
36
|
-
import "./LinkTableFieldConfigModal-93552099.mjs";
|
|
37
|
-
import "./FieldExtendJsonModal-536e6d5b.mjs";
|
|
38
|
-
import "./SetSwitchOptions-e1d5a6b4.mjs";
|
|
39
|
-
import "/@/utils/is";
|
|
40
|
-
import "./constant-fa63bd66.mjs";
|
|
41
|
-
import "./CheckDictTable-65157c48.mjs";
|
|
42
|
-
import "/@/components/jeecg/JPrompt";
|
|
43
|
-
import "/@/hooks/web/useDesign";
|
|
44
|
-
import "./ForeignKeyTable-97a5827f.mjs";
|
|
45
|
-
import "./IndexTable-4d350e4e.mjs";
|
|
46
|
-
import "./QueryTable-342fd89a.mjs";
|
|
47
|
-
import "./ExtendConfigModal-7b00b49a.mjs";
|
|
48
|
-
import "/@/components/Form";
|
|
49
|
-
import "./useOnlineTest-e4bd8be3.mjs";
|
|
50
|
-
import "/@/utils";
|
|
51
|
-
import "./useExtendComponent-95ce0719.mjs";
|
|
52
|
-
import "/@/components/Form/src/componentMap";
|
|
53
|
-
import "/@/utils/propTypes";
|
|
54
|
-
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
55
|
-
import "/@/views/system/user/user.api";
|
|
56
|
-
import "/@/store/modules/user";
|
|
57
|
-
import "/@/utils/desform/customExpression";
|
|
58
|
-
import "/@/store/modules/permission";
|
|
59
|
-
import "/@/hooks/system/useListPage";
|
|
60
|
-
import "vue-router";
|
|
61
|
-
import "/@/components/Form/src/utils/Area";
|
|
62
|
-
import "/@/components/Preview/index";
|
|
63
|
-
import "./LinkTableListPiece-0f4ca559.mjs";
|
|
64
|
-
import "/@/utils/auth";
|
|
65
|
-
import "/@/api/common/api";
|
|
66
|
-
import "/@/hooks/web/useAppInject";
|
|
67
|
-
import "/@/assets/images/placeholderImage.png";
|
|
68
|
-
import "./OnlineSelectCascade-fab4426d.mjs";
|
|
69
|
-
import "/@/components/Loading";
|
|
70
|
-
import "./JModalTip-c3e6726c.mjs";
|
|
71
|
-
import "@vueuse/core";
|
|
72
|
-
import "./utils-9fce7606.mjs";
|
|
73
|
-
import "./BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs";
|
|
74
|
-
import "./EnhanceJsHistory-bb6ba865.mjs";
|
|
75
|
-
import "/@/utils/dateUtil";
|
|
76
|
-
import "/@/store";
|
|
77
|
-
import "pinia";
|
|
78
|
-
import "/@/utils/cache";
|
|
79
|
-
import "./enhance.api-138e6826.mjs";
|
|
80
|
-
import "./enhance.data-6601ff44.mjs";
|
|
81
|
-
import "/@/components/Drawer";
|
|
82
|
-
import "./AuthFieldConfig-bb65f78b.mjs";
|
|
83
|
-
import "./auth.api-53df4c33.mjs";
|
|
84
|
-
import "./auth.data-e44c7975.mjs";
|
|
85
|
-
import "/@/utils/index";
|
|
86
|
-
import "./AuthButtonConfig-4887be0d.mjs";
|
|
87
|
-
import "./AuthDataConfig-3cd10ca2.mjs";
|
|
88
|
-
import "./LeftRole-b533dcf6.mjs";
|
|
89
|
-
import "./LeftDepart-a727aab7.mjs";
|
|
90
|
-
import "./LeftUser-aaac52cb.mjs";
|
|
91
|
-
import "./AuthFieldTree-3e38b12b.mjs";
|
|
92
|
-
import "./AuthButtonTree-7e47b44b.mjs";
|
|
93
|
-
import "./AuthDataTree-714c259c.mjs";
|
|
94
|
-
import "/@/hooks/web/useCopyToClipboard";
|
|
95
|
-
import "./cgformState-d9f8ec42.mjs";
|
|
96
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
97
|
-
const W = _({
|
|
98
|
-
name: "CgformCopyList",
|
|
99
|
-
components: {
|
|
100
|
-
BasicTable: N,
|
|
101
|
-
TableAction: V,
|
|
102
|
-
CgformModal: F,
|
|
103
|
-
DbToOnlineModal: O,
|
|
104
|
-
CustomButtonList: $,
|
|
105
|
-
EnhanceJsModal: P,
|
|
106
|
-
EnhanceJavaModal: z,
|
|
107
|
-
EnhanceSqlModal: Q,
|
|
108
|
-
AuthManagerDrawer: Y,
|
|
109
|
-
AuthSetterModal: j,
|
|
110
|
-
CgformAddressModal: G
|
|
111
|
-
},
|
|
112
|
-
setup() {
|
|
113
|
-
const o = H.copy;
|
|
114
|
-
k("cgformPageType", o);
|
|
115
|
-
const {
|
|
116
|
-
router: r,
|
|
117
|
-
pageContext: E,
|
|
118
|
-
getTableAction: b,
|
|
119
|
-
getDropDownAction: w,
|
|
120
|
-
onShowCustomButton: R,
|
|
121
|
-
onShowEnhanceJs: m,
|
|
122
|
-
onShowEnhanceSql: p,
|
|
123
|
-
onShowEnhanceJava: s,
|
|
124
|
-
registerCustomButtonModal: l,
|
|
125
|
-
registerEnhanceJsModal: c,
|
|
126
|
-
registerEnhanceSqlModal: d,
|
|
127
|
-
registerEnhanceJavaModal: u,
|
|
128
|
-
registerAuthManagerDrawer: g,
|
|
129
|
-
registerAuthSetterModal: f,
|
|
130
|
-
registerCgformModal: h,
|
|
131
|
-
registerDbToOnlineModal: C,
|
|
132
|
-
registerAddressModal: M
|
|
133
|
-
} = K({
|
|
134
|
-
pageType: o,
|
|
135
|
-
designScope: "online-cgform-list",
|
|
136
|
-
columns: [
|
|
137
|
-
{ title: "视图表名", dataIndex: "tableName" },
|
|
138
|
-
{ title: "视图表描述", dataIndex: "tableTxt" },
|
|
139
|
-
{ title: "原表版本", dataIndex: "copyVersion" },
|
|
140
|
-
{ title: "视图版本", dataIndex: "tableVersion" }
|
|
141
|
-
],
|
|
142
|
-
formSchemas: [{ label: "表名", field: "tableName", component: "JInput" }]
|
|
143
|
-
}), { prefixCls: n, tableContext: D } = E, [J, { reload: T }, { rowSelection: B }] = D;
|
|
144
|
-
return v(r.currentRoute, () => T()), {
|
|
145
|
-
prefixCls: n,
|
|
146
|
-
reload: T,
|
|
147
|
-
rowSelection: B,
|
|
148
|
-
getTableAction: b,
|
|
149
|
-
getDropDownAction: w,
|
|
150
|
-
onShowCustomButton: R,
|
|
151
|
-
onShowEnhanceJs: m,
|
|
152
|
-
onShowEnhanceSql: p,
|
|
153
|
-
onShowEnhanceJava: s,
|
|
154
|
-
registerCustomButtonModal: l,
|
|
155
|
-
registerEnhanceJsModal: c,
|
|
156
|
-
registerEnhanceSqlModal: d,
|
|
157
|
-
registerEnhanceJavaModal: u,
|
|
158
|
-
registerAuthManagerDrawer: g,
|
|
159
|
-
registerAuthSetterModal: f,
|
|
160
|
-
registerTable: J,
|
|
161
|
-
registerCgformModal: h,
|
|
162
|
-
registerDbToOnlineModal: C,
|
|
163
|
-
registerAddressModal: M
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
}), X = {
|
|
167
|
-
key: 0,
|
|
168
|
-
style: { color: "limegreen" }
|
|
169
|
-
}, Z = {
|
|
170
|
-
key: 1,
|
|
171
|
-
style: { color: "red" }
|
|
172
|
-
};
|
|
173
|
-
function x(o, r, E, b, w, R) {
|
|
174
|
-
const m = e("a-button"), p = e("TableAction"), s = e("BasicTable"), l = e("CgformModal"), c = e("EnhanceJsModal"), d = e("EnhanceJavaModal"), u = e("EnhanceSqlModal"), g = e("DbToOnlineModal"), f = e("CustomButtonList"), h = e("AuthManagerDrawer"), C = e("AuthSetterModal"), M = e("CgformAddressModal");
|
|
175
|
-
return S(), A(I, null, [
|
|
176
|
-
q("div", {
|
|
177
|
-
class: L(o.prefixCls)
|
|
178
|
-
}, [
|
|
179
|
-
t(s, {
|
|
180
|
-
onRegister: o.registerTable,
|
|
181
|
-
rowSelection: o.rowSelection
|
|
182
|
-
}, {
|
|
183
|
-
tableTitle: i(() => [
|
|
184
|
-
t(m, {
|
|
185
|
-
onClick: o.onShowCustomButton,
|
|
186
|
-
type: "primary",
|
|
187
|
-
preIcon: "ant-design:highlight"
|
|
188
|
-
}, {
|
|
189
|
-
default: i(() => r[0] || (r[0] = [
|
|
190
|
-
a("自定义按钮")
|
|
191
|
-
])),
|
|
192
|
-
_: 1
|
|
193
|
-
}, 8, ["onClick"]),
|
|
194
|
-
t(m, {
|
|
195
|
-
onClick: o.onShowEnhanceJs,
|
|
196
|
-
type: "primary",
|
|
197
|
-
preIcon: "ant-design:strikethrough"
|
|
198
|
-
}, {
|
|
199
|
-
default: i(() => r[1] || (r[1] = [
|
|
200
|
-
a("JS增强")
|
|
201
|
-
])),
|
|
202
|
-
_: 1
|
|
203
|
-
}, 8, ["onClick"]),
|
|
204
|
-
t(m, {
|
|
205
|
-
onClick: o.onShowEnhanceSql,
|
|
206
|
-
type: "primary",
|
|
207
|
-
preIcon: "ant-design:filter"
|
|
208
|
-
}, {
|
|
209
|
-
default: i(() => r[2] || (r[2] = [
|
|
210
|
-
a("SQL增强")
|
|
211
|
-
])),
|
|
212
|
-
_: 1
|
|
213
|
-
}, 8, ["onClick"]),
|
|
214
|
-
t(m, {
|
|
215
|
-
onClick: o.onShowEnhanceJava,
|
|
216
|
-
type: "primary",
|
|
217
|
-
preIcon: "ant-design:tool"
|
|
218
|
-
}, {
|
|
219
|
-
default: i(() => r[3] || (r[3] = [
|
|
220
|
-
a("Java增强")
|
|
221
|
-
])),
|
|
222
|
-
_: 1
|
|
223
|
-
}, 8, ["onClick"])
|
|
224
|
-
]),
|
|
225
|
-
dbSync: i(({ text: n }) => [
|
|
226
|
-
n === "Y" ? (S(), A("span", X, "已同步")) : y("", !0),
|
|
227
|
-
n === "N" ? (S(), A("span", Z, "未同步")) : y("", !0)
|
|
228
|
-
]),
|
|
229
|
-
action: i(({ record: n }) => [
|
|
230
|
-
t(p, {
|
|
231
|
-
actions: o.getTableAction(n),
|
|
232
|
-
dropDownActions: o.getDropDownAction(n)
|
|
233
|
-
}, null, 8, ["actions", "dropDownActions"])
|
|
234
|
-
]),
|
|
235
|
-
_: 1
|
|
236
|
-
}, 8, ["onRegister", "rowSelection"])
|
|
237
|
-
], 2),
|
|
238
|
-
t(l, {
|
|
239
|
-
onRegister: o.registerCgformModal,
|
|
240
|
-
actionButton: !1,
|
|
241
|
-
onSuccess: o.reload
|
|
242
|
-
}, null, 8, ["onRegister", "onSuccess"]),
|
|
243
|
-
t(c, { onRegister: o.registerEnhanceJsModal }, null, 8, ["onRegister"]),
|
|
244
|
-
t(d, { onRegister: o.registerEnhanceJavaModal }, null, 8, ["onRegister"]),
|
|
245
|
-
t(u, { onRegister: o.registerEnhanceSqlModal }, null, 8, ["onRegister"]),
|
|
246
|
-
t(g, {
|
|
247
|
-
onRegister: o.registerDbToOnlineModal,
|
|
248
|
-
onSuccess: o.reload
|
|
249
|
-
}, null, 8, ["onRegister", "onSuccess"]),
|
|
250
|
-
t(f, { onRegister: o.registerCustomButtonModal }, null, 8, ["onRegister"]),
|
|
251
|
-
t(h, { onRegister: o.registerAuthManagerDrawer }, null, 8, ["onRegister"]),
|
|
252
|
-
t(C, { onRegister: o.registerAuthSetterModal }, null, 8, ["onRegister"]),
|
|
253
|
-
t(M, { onRegister: o.registerAddressModal }, null, 8, ["onRegister"])
|
|
254
|
-
], 64);
|
|
255
|
-
}
|
|
256
|
-
const Qt = /* @__PURE__ */ U(W, [["render", x]]);
|
|
257
|
-
export {
|
|
258
|
-
Qt as default
|
|
259
|
-
};
|
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
var E = (t, o, p) => new Promise((C, d) => {
|
|
2
|
-
var h = (s) => {
|
|
3
|
-
try {
|
|
4
|
-
l(p.next(s));
|
|
5
|
-
} catch (g) {
|
|
6
|
-
d(g);
|
|
7
|
-
}
|
|
8
|
-
}, f = (s) => {
|
|
9
|
-
try {
|
|
10
|
-
l(p.throw(s));
|
|
11
|
-
} catch (g) {
|
|
12
|
-
d(g);
|
|
13
|
-
}
|
|
14
|
-
}, l = (s) => s.done ? C(s.value) : Promise.resolve(s.value).then(h, f);
|
|
15
|
-
l((p = p.apply(t, o)).next());
|
|
16
|
-
});
|
|
17
|
-
import { defineComponent as ue, ref as y, computed as V, reactive as P, nextTick as ce, h as L, resolveComponent as u, openBlock as R, createElementBlock as me, Fragment as pe, createVNode as c, withCtx as r, createElementVNode as G, createTextVNode as $, createBlock as I, createCommentVNode as U, mergeProps as de } from "vue";
|
|
18
|
-
import { defHttp as H } from "/@/utils/http/axios";
|
|
19
|
-
import { BasicForm as fe, useForm as ge } from "/@/components/Form";
|
|
20
|
-
import { BasicModal as be, useModalInner as Fe, useModal as q } from "/@/components/Modal";
|
|
21
|
-
import { JVxeTypes as k } from "/@/components/jeecg/JVxeTable/types";
|
|
22
|
-
import { b as Ce } from "./useSchemas-b074f3a1.mjs";
|
|
23
|
-
import { underLine2CamelCase as K } from "/@/utils/common/compUtils";
|
|
24
|
-
import _e from "./CodeFileListModal-305c1a62.mjs";
|
|
25
|
-
import ve from "./FileSelectModal-eb026170.mjs";
|
|
26
|
-
import { message as ye } from "ant-design-vue";
|
|
27
|
-
import { useDesign as Me } from "/@/hooks/web/useDesign";
|
|
28
|
-
import { createLocalStorage as Ne } from "/@/utils/cache";
|
|
29
|
-
import { useMessage as he } from "/@/hooks/web/useMessage";
|
|
30
|
-
import { _ as Te } from "./index-740b2c4a.mjs";
|
|
31
|
-
import "@ant-design/icons-vue";
|
|
32
|
-
import "/@/hooks/web/usePermission";
|
|
33
|
-
import "/@/utils/helper/validator";
|
|
34
|
-
import "./CodeFileViewModal-320d7acf.mjs";
|
|
35
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
36
|
-
import "vue-router";
|
|
37
|
-
import "/@/utils/file/download";
|
|
38
|
-
const we = Ne(), { notification: Se } = he(), Be = ue({
|
|
39
|
-
name: "CodeGenerator",
|
|
40
|
-
components: { BasicForm: fe, BasicModal: be, FileSelectModal: ve, CodeFileListModal: _e },
|
|
41
|
-
emits: ["register"],
|
|
42
|
-
setup(t) {
|
|
43
|
-
const o = "JEECG_ONL_PROJECT_PATH", p = "JEECG_ONL_PROJECT_NAME", C = y(!0), d = y(), h = V(() => C.value ? 800 : 1200), f = y("代码生成"), l = y(!1), { prefixCls: s } = Me("code-generator-modal"), g = s, M = y(""), T = P({
|
|
44
|
-
projectPath: "",
|
|
45
|
-
packageStyle: "service",
|
|
46
|
-
jspMode: "",
|
|
47
|
-
jformType: "1",
|
|
48
|
-
tableName_tmp: "",
|
|
49
|
-
ftlDescription: "",
|
|
50
|
-
entityName: "",
|
|
51
|
-
codeTypes: "controller,service,dao,mapper,entity,vue"
|
|
52
|
-
}), a = P({}), N = y([]), _ = P({
|
|
53
|
-
dataSource: [],
|
|
54
|
-
columns: [
|
|
55
|
-
{
|
|
56
|
-
title: "子表名",
|
|
57
|
-
key: "tableName",
|
|
58
|
-
type: k.input,
|
|
59
|
-
disabled: !0,
|
|
60
|
-
validateRules: [{ required: !0, message: "请输入${title}" }]
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
title: "子表实体",
|
|
64
|
-
key: "entityName",
|
|
65
|
-
type: k.input,
|
|
66
|
-
validateRules: [{ required: !0, message: "请输入${title}" }]
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
title: "功能说明",
|
|
70
|
-
key: "ftlDescription",
|
|
71
|
-
type: k.input,
|
|
72
|
-
validateRules: [{ required: !0, message: "请输入${title}" }]
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}), w = V(() => _.dataSource.length > 0), { formSchemas: v } = Ce(
|
|
76
|
-
t,
|
|
77
|
-
{
|
|
78
|
-
onProjectPathChange: re,
|
|
79
|
-
onProjectPathSearch: ae,
|
|
80
|
-
jspModeOptions: N
|
|
81
|
-
},
|
|
82
|
-
C
|
|
83
|
-
), [S, { resetFields: j, setFieldsValue: J, validate: x }] = ge({
|
|
84
|
-
schemas: v,
|
|
85
|
-
showActionButtonGroup: !1,
|
|
86
|
-
labelAlign: "right"
|
|
87
|
-
}), [W, { closeModal: O }] = Fe((e) => E(this, null, function* () {
|
|
88
|
-
yield j(), M.value = e.code, l.value = !1, _.dataSource = [], N.value = [], ne(), Object.assign(a, T), z();
|
|
89
|
-
}));
|
|
90
|
-
function z() {
|
|
91
|
-
return E(this, null, function* () {
|
|
92
|
-
let { main: e, sub: n, jspModeList: b, projectPath: m } = yield H.get({
|
|
93
|
-
url: "/online/cgform/head/tableInfo",
|
|
94
|
-
params: { code: M.value }
|
|
95
|
-
}), i = [];
|
|
96
|
-
for (let F of b) {
|
|
97
|
-
const { code: D, note: ie } = F;
|
|
98
|
-
D == "many" || i.push({
|
|
99
|
-
label: ie,
|
|
100
|
-
value: D
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
N.value = i, e.isTree == "Y" ? a.jspMode = "tree" : i.find((F) => F.value === e.themeTemplate) ? a.jspMode = e.themeTemplate : a.jspMode = i[0].value, C.value = e.tableType == 1, f.value = "代码生成【" + e.tableName + "】", a.projectPath || (a.projectPath = m, window.localStorage.setItem(o, m));
|
|
104
|
-
const B = localStorage.getItem(p);
|
|
105
|
-
B && (a.entityPackage = B), a.jformType = e.tableType + "", a.tableName_tmp = e.tableName, a.ftlDescription = e.tableTxt;
|
|
106
|
-
let A = K(e.tableName);
|
|
107
|
-
a.entityName = A.substring(0, 1).toUpperCase() + A.substring(1), yield ce(), J(a), n && n.length > 0 && (_.dataSource = n.map((F) => ({
|
|
108
|
-
tableName: F.tableName,
|
|
109
|
-
entityName: se(F.tableName),
|
|
110
|
-
ftlDescription: F.tableTxt
|
|
111
|
-
})));
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
const [Q, { openModal: Y }] = q();
|
|
115
|
-
function X() {
|
|
116
|
-
return E(this, null, function* () {
|
|
117
|
-
try {
|
|
118
|
-
const e = yield x();
|
|
119
|
-
let n = Object.assign({}, e, { code: M.value, tableName: e.tableName_tmp });
|
|
120
|
-
if (w.value) {
|
|
121
|
-
if (yield d.value.validateTable())
|
|
122
|
-
return;
|
|
123
|
-
n.subList = d.value.getTableData();
|
|
124
|
-
}
|
|
125
|
-
l.value = !0;
|
|
126
|
-
let b = yield Z(n);
|
|
127
|
-
Y(!0, {
|
|
128
|
-
codeList: b.codeList,
|
|
129
|
-
pathKey: b.pathKey,
|
|
130
|
-
tableName: e.tableName_tmp
|
|
131
|
-
}), b.codeList.some(
|
|
132
|
-
(i) => i.includes("src/views/") || i.includes("src\\views\\")
|
|
133
|
-
) ? we.set(
|
|
134
|
-
"code.genenrate.success.msg",
|
|
135
|
-
`表【${e.tableName_tmp}】代码生成成功!前端代码已自动刷新,Java后台需重启生效!`,
|
|
136
|
-
15
|
|
137
|
-
) : Se.success({
|
|
138
|
-
message: `表【${e.tableName_tmp}】代码生成成功`,
|
|
139
|
-
description: L("div", [
|
|
140
|
-
"1. 前端代码请迁移到 VUE3项目",
|
|
141
|
-
L("br"),
|
|
142
|
-
"2. 菜单SQL放到jeecg-system-start的flyway目录",
|
|
143
|
-
L("br"),
|
|
144
|
-
"3. Java 后台需重启生效"
|
|
145
|
-
]),
|
|
146
|
-
duration: 5
|
|
147
|
-
}), O(), localStorage.setItem(p, e.entityPackage);
|
|
148
|
-
} catch (e) {
|
|
149
|
-
} finally {
|
|
150
|
-
l.value = !1;
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
function Z(e) {
|
|
155
|
-
return new Promise((n, b) => {
|
|
156
|
-
H.post({ url: "/online/cgform/api/codeGenerate", params: e }, { isTransformResponse: !1 }).then((m) => {
|
|
157
|
-
if (m.success) {
|
|
158
|
-
let i = m.result, B = m.message;
|
|
159
|
-
n({
|
|
160
|
-
codeList: i,
|
|
161
|
-
pathKey: B
|
|
162
|
-
});
|
|
163
|
-
} else
|
|
164
|
-
ye.error(m.message), b(m.message);
|
|
165
|
-
});
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
function ee() {
|
|
169
|
-
O();
|
|
170
|
-
}
|
|
171
|
-
const [te, oe] = q();
|
|
172
|
-
function ae() {
|
|
173
|
-
oe.openModal(!0, {});
|
|
174
|
-
}
|
|
175
|
-
function le(e) {
|
|
176
|
-
window.localStorage.setItem(o, e), J({ projectPath: e });
|
|
177
|
-
}
|
|
178
|
-
function se(e) {
|
|
179
|
-
let n = K(e);
|
|
180
|
-
return n.substring(0, 1).toUpperCase() + n.substring(1);
|
|
181
|
-
}
|
|
182
|
-
function ne() {
|
|
183
|
-
let e = window.localStorage.getItem(o);
|
|
184
|
-
e && (T.projectPath = e);
|
|
185
|
-
}
|
|
186
|
-
function re(e) {
|
|
187
|
-
e.target.value && window.localStorage.setItem(o, e.target.value);
|
|
188
|
-
}
|
|
189
|
-
return {
|
|
190
|
-
title: f,
|
|
191
|
-
modalWidth: h,
|
|
192
|
-
confirmLoading: l,
|
|
193
|
-
subTable: _,
|
|
194
|
-
showSubTable: w,
|
|
195
|
-
onSubmit: X,
|
|
196
|
-
onCancel: ee,
|
|
197
|
-
onFileSelect: le,
|
|
198
|
-
registerFileSelectModal: te,
|
|
199
|
-
subTableRef: d,
|
|
200
|
-
registerForm: S,
|
|
201
|
-
registerModal: W,
|
|
202
|
-
registerCodeFileListModal: Q,
|
|
203
|
-
wrapClassName: g
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
function Ee(t, o, p, C, d, h) {
|
|
208
|
-
const f = u("a-radio"), l = u("a-tooltip"), s = u("a-radio-group"), g = u("BasicForm"), M = u("JVxeTable"), T = u("a-card"), a = u("a-spin"), N = u("BasicModal"), _ = u("FileSelectModal"), w = u("code-file-list-modal");
|
|
209
|
-
return R(), me(pe, null, [
|
|
210
|
-
c(N, {
|
|
211
|
-
onRegister: t.registerModal,
|
|
212
|
-
title: t.title,
|
|
213
|
-
width: t.modalWidth,
|
|
214
|
-
confirmLoading: t.confirmLoading,
|
|
215
|
-
okText: "开始生成",
|
|
216
|
-
cancelText: "取消",
|
|
217
|
-
onOk: t.onSubmit,
|
|
218
|
-
onCancel: t.onCancel,
|
|
219
|
-
wrapClassName: t.wrapClassName
|
|
220
|
-
}, {
|
|
221
|
-
default: r(() => [
|
|
222
|
-
c(a, { spinning: t.confirmLoading }, {
|
|
223
|
-
default: r(() => [
|
|
224
|
-
c(g, { onRegister: t.registerForm }, {
|
|
225
|
-
pageCode: r(({ model: v, field: S }) => [
|
|
226
|
-
c(s, {
|
|
227
|
-
value: v[S],
|
|
228
|
-
"onUpdate:value": (j) => v[S] = j
|
|
229
|
-
}, {
|
|
230
|
-
default: r(() => [
|
|
231
|
-
c(l, { placement: "top" }, {
|
|
232
|
-
title: r(() => o[0] || (o[0] = [
|
|
233
|
-
G("span", null, "深度封装表单,用户只需定义字段json即可渲染表单,优点简单便捷,缺点扩展有难度", -1)
|
|
234
|
-
])),
|
|
235
|
-
default: r(() => [
|
|
236
|
-
c(f, { value: "vue3" }, {
|
|
237
|
-
default: r(() => o[1] || (o[1] = [
|
|
238
|
-
$("封装表单(BasicForm)")
|
|
239
|
-
])),
|
|
240
|
-
_: 1
|
|
241
|
-
})
|
|
242
|
-
]),
|
|
243
|
-
_: 1
|
|
244
|
-
}),
|
|
245
|
-
c(l, { placement: "top" }, {
|
|
246
|
-
title: r(() => o[2] || (o[2] = [
|
|
247
|
-
G("span", null, "antd的原生表单,所有字段都需要硬编码,缺点编码繁琐,优点扩展容易", -1)
|
|
248
|
-
])),
|
|
249
|
-
default: r(() => [
|
|
250
|
-
v.jspMode == "innerTable" || v.jspMode == "tab" ? U("", !0) : (R(), I(f, {
|
|
251
|
-
key: 0,
|
|
252
|
-
value: "vue3Native"
|
|
253
|
-
}, {
|
|
254
|
-
default: r(() => o[3] || (o[3] = [
|
|
255
|
-
$("原生表单(a-form)")
|
|
256
|
-
])),
|
|
257
|
-
_: 1
|
|
258
|
-
}))
|
|
259
|
-
]),
|
|
260
|
-
_: 2
|
|
261
|
-
}, 1024)
|
|
262
|
-
]),
|
|
263
|
-
_: 2
|
|
264
|
-
}, 1032, ["value", "onUpdate:value"])
|
|
265
|
-
]),
|
|
266
|
-
_: 1
|
|
267
|
-
}, 8, ["onRegister"]),
|
|
268
|
-
t.showSubTable ? (R(), I(T, {
|
|
269
|
-
key: 0,
|
|
270
|
-
title: "子表信息",
|
|
271
|
-
size: "small"
|
|
272
|
-
}, {
|
|
273
|
-
default: r(() => [
|
|
274
|
-
c(M, de({
|
|
275
|
-
ref: "subTableRef",
|
|
276
|
-
rowNumber: "",
|
|
277
|
-
maxHeight: 580
|
|
278
|
-
}, t.subTable), null, 16)
|
|
279
|
-
]),
|
|
280
|
-
_: 1
|
|
281
|
-
})) : U("", !0)
|
|
282
|
-
]),
|
|
283
|
-
_: 1
|
|
284
|
-
}, 8, ["spinning"])
|
|
285
|
-
]),
|
|
286
|
-
_: 1
|
|
287
|
-
}, 8, ["onRegister", "title", "width", "confirmLoading", "onOk", "onCancel", "wrapClassName"]),
|
|
288
|
-
c(_, {
|
|
289
|
-
onRegister: t.registerFileSelectModal,
|
|
290
|
-
onSelect: t.onFileSelect
|
|
291
|
-
}, null, 8, ["onRegister", "onSelect"]),
|
|
292
|
-
c(w, { onRegister: t.registerCodeFileListModal }, null, 8, ["onRegister"])
|
|
293
|
-
], 64);
|
|
294
|
-
}
|
|
295
|
-
const Xe = /* @__PURE__ */ Te(Be, [["render", Ee]]);
|
|
296
|
-
export {
|
|
297
|
-
Xe as default
|
|
298
|
-
};
|