@jeecg/online 3.7.1-RC → 3.7.4
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-d2fed52f.mjs +254 -0
- package/AiModal-fbe4b68a.mjs +84 -0
- package/AppForgetPassword-3b3bec82.mjs +310 -0
- package/AppLogin-cd2e2a87.mjs +287 -0
- package/AppLoginHeader-9b5be678.mjs +27 -0
- package/AppNameEmail-b4e32ae8.mjs +180 -0
- package/AppRegister-7117b66a.mjs +303 -0
- package/AppTenant-5817729b.mjs +373 -0
- package/AppThirdForm-d14fb5e5.mjs +189 -0
- package/AuthButtonConfig-5e3b6d72.mjs +156 -0
- package/AuthButtonTree-7b4ec967.mjs +165 -0
- package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-48ee9228.mjs} +23 -23
- package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-02b3ba05.mjs} +43 -43
- package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-562cc6b6.mjs} +71 -71
- package/AuthFieldTree-2d458c0c.mjs +232 -0
- package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-38299230.mjs} +6 -6
- package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-78b06703.mjs} +9 -9
- package/BuiltInButtonList-bb6cf95c.mjs +10 -0
- package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
- package/CgformAddressModal-1b9cbe19.mjs +260 -0
- package/CgformCopyList-580bba0f.mjs +252 -0
- package/{CgformModal-21c5c387.mjs → CgformModal-12951453.mjs} +190 -194
- package/{CgreportModal-edefa8e3.mjs → CgreportModal-bfeb93ed.mjs} +181 -168
- package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-3c1e59e0.mjs} +3 -3
- package/CodeFileListModal-71752603.mjs +159 -0
- package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-eb803769.mjs} +66 -66
- package/CodeGeneratorModal-2fe1e920.mjs +281 -0
- package/CustomButtonList-22b5cdb3.mjs +274 -0
- package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-eb25565c.mjs} +3 -3
- package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-049b4bbd.mjs} +53 -54
- package/{DetailForm-deecbf3d.mjs → DetailForm-c127c27f.mjs} +5 -5
- package/DropMenuItem-b1a8f47d.mjs +44 -0
- package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-1a4d696b.mjs} +62 -62
- package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-48cf43ad.mjs} +35 -35
- package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-0e1f15f8.mjs} +102 -102
- package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-6a1aa471.mjs} +67 -67
- package/ErrorTip-bb616e32.mjs +7 -0
- package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
- package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-37af21a5.mjs} +2 -2
- package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-9441e08e.mjs} +2 -2
- package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-04490919.mjs} +23 -23
- package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-06300a47.mjs} +3 -3
- package/{IndexTable-cdcc2b48.mjs → IndexTable-79bddd5c.mjs} +3 -3
- package/JModalTip-192fafa1.mjs +49 -0
- package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-9abcf657.mjs} +1 -1
- package/{LeftDepart-d5615ed9.mjs → LeftDepart-35d78655.mjs} +1 -1
- package/LeftRole-9d88976d.mjs +86 -0
- package/{LeftUser-22baa378.mjs → LeftUser-04c89aea.mjs} +30 -30
- package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-5f94ef13.mjs} +43 -31
- package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-40753de5.mjs} +1 -1
- package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-179035c7.mjs} +1 -1
- package/{ModalFormDemo-711418db.mjs → ModalFormDemo-3a85920c.mjs} +1 -1
- package/OnlCgformErpList-8fd15fc1.mjs +488 -0
- package/OnlCgformErpSubTable-3515150b.mjs +441 -0
- package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-13e888c6.mjs} +38 -38
- package/OnlCgformInnerTableList-2e8f853c.mjs +474 -0
- package/OnlCgformTabList-583ac15f.mjs +424 -0
- package/OnlineAutoList-36ec0957.mjs +513 -0
- package/OnlineAutoModal-c0743caf.mjs +260 -0
- package/OnlineAutoTreeList-1cd718be.mjs +523 -0
- package/OnlineCustomModal-661ee850.mjs +232 -0
- package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-785e848e.mjs} +74 -65
- package/OnlineForm-c1fb38eb.mjs +1012 -0
- package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-50186870.mjs} +7 -7
- package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-905bf251.mjs} +9 -9
- package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-a9dd2bfa.mjs} +11 -11
- package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-b8941f05.mjs} +9 -9
- package/OnlineFormUrlSuccess-ecaf6a21.mjs +59 -0
- package/OnlineQueryForm-ca6186a3.mjs +484 -0
- package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-5c503a51.mjs} +82 -82
- package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-a3e686b3.mjs} +1 -1
- package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-be1ad3b9.mjs} +52 -53
- package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-fb59b573.mjs} +108 -95
- package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-4b9c4838.mjs} +36 -36
- package/OnlineTabForm-89389384.mjs +814 -0
- package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-72173ae4.mjs} +17 -17
- package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-345b97fe.mjs} +108 -108
- package/PhoneLoginForm-8ca7e2d4.mjs +214 -0
- package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-485b5679.mjs} +32 -32
- package/{QueryTable-f7bfca7f.mjs → QueryTable-f0a88d78.mjs} +3 -3
- package/SetSwitchOptions-cdcb22a1.mjs +62 -0
- package/ShareAddView-f713c0a5.mjs +86 -0
- package/ShareEditView-691764ad.mjs +92 -0
- package/ShareView-df344a8d.mjs +80 -0
- package/ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs +162 -0
- package/SingleView-ad0287d6.mjs +68 -0
- package/SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs +131 -0
- package/SuperQuery-2b293e3b.mjs +974 -0
- package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
- package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
- package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
- package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
- package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
- package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
- package/index-181f8344.mjs +219 -0
- package/index-19eaef11.mjs +11 -0
- package/{index-30e0e923.mjs → index-3c7392a4.mjs} +272 -262
- package/{index-f30613d1.mjs → index-3ccda826.mjs} +59 -59
- package/index-5e89258d.mjs +8 -0
- package/index-93341e02.mjs +110 -0
- package/index-bef7fe2d.mjs +74 -0
- package/index-d6f9ada7.mjs +135 -0
- package/index-f3683351.mjs +57 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/shareStore-7de6c7a6.mjs +67 -0
- package/style.css +1 -1
- package/useCgformList-13c8aab7.mjs +378 -0
- package/useExtendComponent-3f5734ca.mjs +4459 -0
- package/useListButton-ee23874a.mjs +719 -0
- package/{useSchemas-a9c75b0f.mjs → useSchemas-f1819e54.mjs} +72 -39
- package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
- package/utils-9fce7606.mjs +16 -0
- package/AiModal-6de335e3.mjs +0 -84
- package/AuthButtonConfig-89763932.mjs +0 -154
- package/AuthButtonTree-2d87d0b3.mjs +0 -157
- package/AuthFieldTree-e326fc38.mjs +0 -232
- package/CgformCopyList-365b3e8f.mjs +0 -251
- package/CodeFileListModal-24601898.mjs +0 -159
- package/CodeGeneratorModal-f09fe903.mjs +0 -282
- package/CustomButtonList-f07bc695.mjs +0 -397
- package/JModalTip-b055ab60.mjs +0 -49
- package/LeftRole-2ed8a2bf.mjs +0 -86
- package/OnlCgformErpList-58acdfa0.mjs +0 -470
- package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
- package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
- package/OnlCgformTabList-019ad753.mjs +0 -408
- package/OnlineAutoList-48589d09.mjs +0 -493
- package/OnlineAutoModal-c2928847.mjs +0 -239
- package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
- package/OnlineCustomModal-9e17b6ce.mjs +0 -232
- package/OnlineForm-9f1153ba.mjs +0 -985
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
- package/OnlineQueryForm-eedb9a60.mjs +0 -466
- package/OnlineTabForm-27655c83.mjs +0 -817
- package/SetSwitchOptions-b2af757f.mjs +0 -62
- package/SuperQuery-a8592995.mjs +0 -967
- package/index-1d1a6e56.mjs +0 -57
- package/useCgformList-f41d4dc1.mjs +0 -426
- package/useExtendComponent-dcae5c78.mjs +0 -4399
- package/useListButton-bfac4ecf.mjs +0 -697
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
var M = (d, l, i) => new Promise((e, m) => {
|
|
2
|
-
var p = (o) => {
|
|
3
|
-
try {
|
|
4
|
-
n(i.next(o));
|
|
5
|
-
} catch (r) {
|
|
6
|
-
m(r);
|
|
7
|
-
}
|
|
8
|
-
}, a = (o) => {
|
|
9
|
-
try {
|
|
10
|
-
n(i.throw(o));
|
|
11
|
-
} catch (r) {
|
|
12
|
-
m(r);
|
|
13
|
-
}
|
|
14
|
-
}, n = (o) => o.done ? e(o.value) : Promise.resolve(o.value).then(p, a);
|
|
15
|
-
n((i = i.apply(d, l)).next());
|
|
16
|
-
});
|
|
17
|
-
import { ref as u, reactive as x, resolveComponent as _, openBlock as C, createElementBlock as h, Fragment as v, createVNode as s, withCtx as c, createTextVNode as f, createElementVNode as y, normalizeStyle as F, renderList as B, toDisplayString as N } from "vue";
|
|
18
|
-
import { defHttp as R } from "/@/utils/http/axios";
|
|
19
|
-
import "/@/components/Form";
|
|
20
|
-
import { BasicModal as T, useModalInner as z, useModal as G } from "/@/components/Modal";
|
|
21
|
-
import { InfoCircleTwoTone as K } from "@ant-design/icons-vue";
|
|
22
|
-
import S from "./CodeFileViewModal-2fe911f4.mjs";
|
|
23
|
-
import { useMessage as H } from "/@/hooks/web/useMessage";
|
|
24
|
-
import { downloadByData as I } from "/@/utils/file/download";
|
|
25
|
-
import { _ as E } from "./index-1d1a6e56.mjs";
|
|
26
|
-
import "ant-design-vue";
|
|
27
|
-
import "/@/hooks/web/useDesign";
|
|
28
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
29
|
-
import "vue-router";
|
|
30
|
-
const j = {
|
|
31
|
-
name: "CodeFileListModal",
|
|
32
|
-
components: {
|
|
33
|
-
BasicModal: T,
|
|
34
|
-
InfoCircleTwoTone: K,
|
|
35
|
-
CodeFileViewModal: S
|
|
36
|
-
},
|
|
37
|
-
emits: ["register"],
|
|
38
|
-
setup() {
|
|
39
|
-
const { createMessage: d } = H(), l = u([]), i = window.innerHeight - 150, e = x({
|
|
40
|
-
overflowY: "auto",
|
|
41
|
-
maxHeight: i + "px"
|
|
42
|
-
}), m = u(!1), p = u(""), a = u(""), [n, { closeModal: o }] = z((t) => M(this, null, function* () {
|
|
43
|
-
l.value = t.codeList, p.value = t.tableName, a.value = t.pathKey;
|
|
44
|
-
}));
|
|
45
|
-
function r() {
|
|
46
|
-
o();
|
|
47
|
-
}
|
|
48
|
-
function g() {
|
|
49
|
-
let t = l.value;
|
|
50
|
-
if (!t || t.length == 0) {
|
|
51
|
-
d.warning("无代码!");
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
let V = t.join(",");
|
|
55
|
-
return R.post(
|
|
56
|
-
{
|
|
57
|
-
url: "/online/cgform/api/downGenerateCode",
|
|
58
|
-
params: {
|
|
59
|
-
fileList: encodeURI(V),
|
|
60
|
-
pathKey: a.value
|
|
61
|
-
},
|
|
62
|
-
responseType: "blob"
|
|
63
|
-
},
|
|
64
|
-
{ isTransformResponse: !1 }
|
|
65
|
-
).then((w) => {
|
|
66
|
-
if (!w || w.size == 0) {
|
|
67
|
-
d.warning("导出代码失败!");
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
let b = "导到生成代码_" + p.value + "_" + (/* @__PURE__ */ new Date()).getTime() + ".zip";
|
|
71
|
-
I(w, b, "application/zip");
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
const [L, { openModal: k }] = G();
|
|
75
|
-
function D() {
|
|
76
|
-
let t = l.value;
|
|
77
|
-
k(!0, {
|
|
78
|
-
codeList: t,
|
|
79
|
-
pathKey: a.value
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
registerModal: n,
|
|
84
|
-
registerCodeViewModal: L,
|
|
85
|
-
divStyle: e,
|
|
86
|
-
codeList: l,
|
|
87
|
-
onDownloadGenerateCode: g,
|
|
88
|
-
handleClose: r,
|
|
89
|
-
handleView: D,
|
|
90
|
-
loading: m
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
}, U = /* @__PURE__ */ y("br", null, null, -1);
|
|
94
|
-
function Y(d, l, i, e, m, p) {
|
|
95
|
-
const a = _("info-circle-two-tone"), n = _("a-button"), o = _("BasicModal"), r = _("code-file-view-modal");
|
|
96
|
-
return C(), h(v, null, [
|
|
97
|
-
s(o, {
|
|
98
|
-
onRegister: e.registerModal,
|
|
99
|
-
width: 1200,
|
|
100
|
-
defaultFullscreen: !1,
|
|
101
|
-
canFullscreen: !1
|
|
102
|
-
}, {
|
|
103
|
-
title: c(() => [
|
|
104
|
-
s(a),
|
|
105
|
-
f(" 代码生成结果 ")
|
|
106
|
-
]),
|
|
107
|
-
footer: c(() => [
|
|
108
|
-
s(n, { onClick: e.handleClose }, {
|
|
109
|
-
default: c(() => [
|
|
110
|
-
f("关闭")
|
|
111
|
-
]),
|
|
112
|
-
_: 1
|
|
113
|
-
}, 8, ["onClick"]),
|
|
114
|
-
s(n, {
|
|
115
|
-
type: "primary",
|
|
116
|
-
ghost: "",
|
|
117
|
-
onClick: e.handleView
|
|
118
|
-
}, {
|
|
119
|
-
default: c(() => [
|
|
120
|
-
f("在线预览")
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
}, 8, ["onClick"]),
|
|
124
|
-
s(n, {
|
|
125
|
-
type: "primary",
|
|
126
|
-
onClick: e.onDownloadGenerateCode,
|
|
127
|
-
loading: e.loading
|
|
128
|
-
}, {
|
|
129
|
-
default: c(() => [
|
|
130
|
-
f("下载到本地")
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
}, 8, ["onClick", "loading"])
|
|
134
|
-
]),
|
|
135
|
-
default: c(() => [
|
|
136
|
-
y("div", {
|
|
137
|
-
style: F(e.divStyle)
|
|
138
|
-
}, [
|
|
139
|
-
y("p", null, [
|
|
140
|
-
(C(!0), h(v, null, B(e.codeList, (g) => (C(), h(v, null, [
|
|
141
|
-
f(N(g), 1),
|
|
142
|
-
U
|
|
143
|
-
], 64))), 256))
|
|
144
|
-
])
|
|
145
|
-
], 4)
|
|
146
|
-
]),
|
|
147
|
-
_: 1
|
|
148
|
-
}, 8, ["onRegister"]),
|
|
149
|
-
s(r, {
|
|
150
|
-
onRegister: e.registerCodeViewModal,
|
|
151
|
-
onDownload: e.onDownloadGenerateCode,
|
|
152
|
-
onClose: e.handleClose
|
|
153
|
-
}, null, 8, ["onRegister", "onDownload", "onClose"])
|
|
154
|
-
], 64);
|
|
155
|
-
}
|
|
156
|
-
const le = /* @__PURE__ */ E(j, [["render", Y]]);
|
|
157
|
-
export {
|
|
158
|
-
le as default
|
|
159
|
-
};
|
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
var E = (t, m, c) => new Promise((_, p) => {
|
|
2
|
-
var y = (l) => {
|
|
3
|
-
try {
|
|
4
|
-
a(c.next(l));
|
|
5
|
-
} catch (f) {
|
|
6
|
-
p(f);
|
|
7
|
-
}
|
|
8
|
-
}, d = (l) => {
|
|
9
|
-
try {
|
|
10
|
-
a(c.throw(l));
|
|
11
|
-
} catch (f) {
|
|
12
|
-
p(f);
|
|
13
|
-
}
|
|
14
|
-
}, a = (l) => l.done ? _(l.value) : Promise.resolve(l.value).then(y, d);
|
|
15
|
-
a((c = c.apply(t, m)).next());
|
|
16
|
-
});
|
|
17
|
-
import { defineComponent as ie, ref as h, computed as G, reactive as P, nextTick as ue, resolveComponent as r, openBlock as L, createElementBlock as ce, Fragment as me, createVNode as i, withCtx as s, createTextVNode as J, createBlock as V, createCommentVNode as I, mergeProps as pe, createElementVNode as q } from "vue";
|
|
18
|
-
import { defHttp as $ } from "/@/utils/http/axios";
|
|
19
|
-
import { BasicForm as de, useForm as fe } from "/@/components/Form";
|
|
20
|
-
import { BasicModal as ge, useModalInner as _e, useModal as H } from "/@/components/Modal";
|
|
21
|
-
import { JVxeTypes as R } from "/@/components/jeecg/JVxeTable/types";
|
|
22
|
-
import { b as Fe } from "./useSchemas-a9c75b0f.mjs";
|
|
23
|
-
import { underLine2CamelCase as U } from "/@/utils/common/compUtils";
|
|
24
|
-
import be from "./CodeFileListModal-24601898.mjs";
|
|
25
|
-
import Ce from "./FileSelectModal-1643c8b9.mjs";
|
|
26
|
-
import { message as ve } from "ant-design-vue";
|
|
27
|
-
import { useDesign as he } from "/@/hooks/web/useDesign";
|
|
28
|
-
import { _ as Me } from "./index-1d1a6e56.mjs";
|
|
29
|
-
import "@ant-design/icons-vue";
|
|
30
|
-
import "/@/hooks/web/usePermission";
|
|
31
|
-
import "/@/utils/helper/validator";
|
|
32
|
-
import "./CodeFileViewModal-2fe911f4.mjs";
|
|
33
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
34
|
-
import "/@/hooks/web/useMessage";
|
|
35
|
-
import "vue-router";
|
|
36
|
-
import "/@/utils/file/download";
|
|
37
|
-
const Ne = ie({
|
|
38
|
-
name: "CodeGenerator",
|
|
39
|
-
components: { BasicForm: de, BasicModal: ge, FileSelectModal: Ce, CodeFileListModal: be },
|
|
40
|
-
emits: ["register"],
|
|
41
|
-
setup(t) {
|
|
42
|
-
const m = "JEECG_ONL_PROJECT_PATH", c = "JEECG_ONL_PROJECT_NAME", _ = h(!0), p = h(), y = G(() => _.value ? 800 : 1200), d = h("代码生成"), a = h(!1), { prefixCls: l } = he("code-generator-modal"), f = l, M = h(""), T = P({
|
|
43
|
-
projectPath: "",
|
|
44
|
-
packageStyle: "service",
|
|
45
|
-
jspMode: "",
|
|
46
|
-
jformType: "1",
|
|
47
|
-
tableName_tmp: "",
|
|
48
|
-
ftlDescription: "",
|
|
49
|
-
entityName: "",
|
|
50
|
-
codeTypes: "controller,service,dao,mapper,entity,vue"
|
|
51
|
-
}), o = P({}), N = h([]), F = P({
|
|
52
|
-
dataSource: [],
|
|
53
|
-
columns: [
|
|
54
|
-
{
|
|
55
|
-
title: "子表名",
|
|
56
|
-
key: "tableName",
|
|
57
|
-
type: R.input,
|
|
58
|
-
disabled: !0,
|
|
59
|
-
validateRules: [{ required: !0, message: "请输入${title}" }]
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
title: "子表实体",
|
|
63
|
-
key: "entityName",
|
|
64
|
-
type: R.input,
|
|
65
|
-
validateRules: [{ required: !0, message: "请输入${title}" }]
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
title: "功能说明",
|
|
69
|
-
key: "ftlDescription",
|
|
70
|
-
type: R.input,
|
|
71
|
-
validateRules: [{ required: !0, message: "请输入${title}" }]
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
}), B = G(() => F.dataSource.length > 0), { formSchemas: b } = Fe(
|
|
75
|
-
t,
|
|
76
|
-
{
|
|
77
|
-
onProjectPathChange: se,
|
|
78
|
-
onProjectPathSearch: oe,
|
|
79
|
-
jspModeOptions: N
|
|
80
|
-
},
|
|
81
|
-
_
|
|
82
|
-
), [S, { resetFields: j, setFieldsValue: k, validate: K }] = fe({
|
|
83
|
-
schemas: b,
|
|
84
|
-
showActionButtonGroup: !1,
|
|
85
|
-
labelAlign: "right"
|
|
86
|
-
}), [x, { closeModal: O }] = _e((e) => E(this, null, function* () {
|
|
87
|
-
yield j(), M.value = e.code, a.value = !1, F.dataSource = [], N.value = [], ne(), Object.assign(o, T), W();
|
|
88
|
-
}));
|
|
89
|
-
function W() {
|
|
90
|
-
return E(this, null, function* () {
|
|
91
|
-
let { main: e, sub: n, jspModeList: C, projectPath: u } = yield $.get({
|
|
92
|
-
url: "/online/cgform/head/tableInfo",
|
|
93
|
-
params: { code: M.value }
|
|
94
|
-
}), v = [];
|
|
95
|
-
for (let g of C) {
|
|
96
|
-
const { code: D, note: re } = g;
|
|
97
|
-
D == "many" || v.push({
|
|
98
|
-
label: re,
|
|
99
|
-
value: D
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
N.value = v, e.isTree == "Y" ? o.jspMode = "tree" : v.find((g) => g.value === e.themeTemplate) ? o.jspMode = e.themeTemplate : o.jspMode = v[0].value, _.value = e.tableType == 1, d.value = "代码生成【" + e.tableName + "】", o.projectPath || (o.projectPath = u, window.localStorage.setItem(m, u));
|
|
103
|
-
const w = localStorage.getItem(c);
|
|
104
|
-
w && (o.entityPackage = w), o.jformType = e.tableType + "", o.tableName_tmp = e.tableName, o.ftlDescription = e.tableTxt;
|
|
105
|
-
let A = U(e.tableName);
|
|
106
|
-
o.entityName = A.substring(0, 1).toUpperCase() + A.substring(1), yield ue(), k(o), n && n.length > 0 && (F.dataSource = n.map((g) => ({
|
|
107
|
-
tableName: g.tableName,
|
|
108
|
-
entityName: le(g.tableName),
|
|
109
|
-
ftlDescription: g.tableTxt
|
|
110
|
-
})));
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
const [z, { openModal: Y }] = H();
|
|
114
|
-
function Q() {
|
|
115
|
-
return E(this, null, function* () {
|
|
116
|
-
try {
|
|
117
|
-
const e = yield K();
|
|
118
|
-
let n = Object.assign({}, e, { code: M.value, tableName: e.tableName_tmp });
|
|
119
|
-
if (B.value) {
|
|
120
|
-
if (yield p.value.validateTable())
|
|
121
|
-
return;
|
|
122
|
-
n.subList = p.value.getTableData();
|
|
123
|
-
}
|
|
124
|
-
a.value = !0;
|
|
125
|
-
let C = yield X(n);
|
|
126
|
-
Y(!0, {
|
|
127
|
-
codeList: C.codeList,
|
|
128
|
-
pathKey: C.pathKey,
|
|
129
|
-
tableName: e.tableName_tmp
|
|
130
|
-
}), O(), localStorage.setItem(c, e.entityPackage);
|
|
131
|
-
} catch (e) {
|
|
132
|
-
} finally {
|
|
133
|
-
a.value = !1;
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
function X(e) {
|
|
138
|
-
return new Promise((n, C) => {
|
|
139
|
-
$.post({ url: "/online/cgform/api/codeGenerate", params: e }, { isTransformResponse: !1 }).then((u) => {
|
|
140
|
-
if (u.success) {
|
|
141
|
-
let v = u.result, w = u.message;
|
|
142
|
-
n({
|
|
143
|
-
codeList: v,
|
|
144
|
-
pathKey: w
|
|
145
|
-
});
|
|
146
|
-
} else
|
|
147
|
-
ve.error(u.message), C(u.message);
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
function Z() {
|
|
152
|
-
O();
|
|
153
|
-
}
|
|
154
|
-
const [ee, te] = H();
|
|
155
|
-
function oe() {
|
|
156
|
-
te.openModal(!0, {});
|
|
157
|
-
}
|
|
158
|
-
function ae(e) {
|
|
159
|
-
window.localStorage.setItem(m, e), k({ projectPath: e });
|
|
160
|
-
}
|
|
161
|
-
function le(e) {
|
|
162
|
-
let n = U(e);
|
|
163
|
-
return n.substring(0, 1).toUpperCase() + n.substring(1);
|
|
164
|
-
}
|
|
165
|
-
function ne() {
|
|
166
|
-
let e = window.localStorage.getItem(m);
|
|
167
|
-
e && (T.projectPath = e);
|
|
168
|
-
}
|
|
169
|
-
function se(e) {
|
|
170
|
-
e.target.value && window.localStorage.setItem(m, e.target.value);
|
|
171
|
-
}
|
|
172
|
-
return {
|
|
173
|
-
title: d,
|
|
174
|
-
modalWidth: y,
|
|
175
|
-
confirmLoading: a,
|
|
176
|
-
subTable: F,
|
|
177
|
-
showSubTable: B,
|
|
178
|
-
onSubmit: Q,
|
|
179
|
-
onCancel: Z,
|
|
180
|
-
onFileSelect: ae,
|
|
181
|
-
registerFileSelectModal: ee,
|
|
182
|
-
subTableRef: p,
|
|
183
|
-
registerForm: S,
|
|
184
|
-
registerModal: x,
|
|
185
|
-
registerCodeFileListModal: z,
|
|
186
|
-
wrapClassName: f
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
const ye = /* @__PURE__ */ q("span", null, "深度封装表单,用户只需定义字段json即可渲染表单,优点简单便捷,缺点扩展有难度", -1), Te = /* @__PURE__ */ q("span", null, "antd的原生表单,所有字段都需要硬编码,缺点编码繁琐,优点扩展容易", -1);
|
|
191
|
-
function Be(t, m, c, _, p, y) {
|
|
192
|
-
const d = r("a-radio"), a = r("a-tooltip"), l = r("a-radio-group"), f = r("BasicForm"), M = r("JVxeTable"), T = r("a-card"), o = r("a-spin"), N = r("BasicModal"), F = r("FileSelectModal"), B = r("code-file-list-modal");
|
|
193
|
-
return L(), ce(me, null, [
|
|
194
|
-
i(N, {
|
|
195
|
-
onRegister: t.registerModal,
|
|
196
|
-
title: t.title,
|
|
197
|
-
width: t.modalWidth,
|
|
198
|
-
confirmLoading: t.confirmLoading,
|
|
199
|
-
okText: "开始生成",
|
|
200
|
-
cancelText: "取消",
|
|
201
|
-
onOk: t.onSubmit,
|
|
202
|
-
onCancel: t.onCancel,
|
|
203
|
-
wrapClassName: t.wrapClassName
|
|
204
|
-
}, {
|
|
205
|
-
default: s(() => [
|
|
206
|
-
i(o, { spinning: t.confirmLoading }, {
|
|
207
|
-
default: s(() => [
|
|
208
|
-
i(f, { onRegister: t.registerForm }, {
|
|
209
|
-
pageCode: s(({ model: b, field: S }) => [
|
|
210
|
-
i(l, {
|
|
211
|
-
value: b[S],
|
|
212
|
-
"onUpdate:value": (j) => b[S] = j
|
|
213
|
-
}, {
|
|
214
|
-
default: s(() => [
|
|
215
|
-
i(a, { placement: "top" }, {
|
|
216
|
-
title: s(() => [
|
|
217
|
-
ye
|
|
218
|
-
]),
|
|
219
|
-
default: s(() => [
|
|
220
|
-
i(d, { value: "vue3" }, {
|
|
221
|
-
default: s(() => [
|
|
222
|
-
J("封装表单(BasicForm)")
|
|
223
|
-
]),
|
|
224
|
-
_: 1
|
|
225
|
-
})
|
|
226
|
-
]),
|
|
227
|
-
_: 1
|
|
228
|
-
}),
|
|
229
|
-
i(a, { placement: "top" }, {
|
|
230
|
-
title: s(() => [
|
|
231
|
-
Te
|
|
232
|
-
]),
|
|
233
|
-
default: s(() => [
|
|
234
|
-
b.jspMode == "innerTable" || b.jspMode == "tab" ? I("", !0) : (L(), V(d, {
|
|
235
|
-
key: 0,
|
|
236
|
-
value: "vue3Native"
|
|
237
|
-
}, {
|
|
238
|
-
default: s(() => [
|
|
239
|
-
J("原生表单(a-form)")
|
|
240
|
-
]),
|
|
241
|
-
_: 1
|
|
242
|
-
}))
|
|
243
|
-
]),
|
|
244
|
-
_: 2
|
|
245
|
-
}, 1024)
|
|
246
|
-
]),
|
|
247
|
-
_: 2
|
|
248
|
-
}, 1032, ["value", "onUpdate:value"])
|
|
249
|
-
]),
|
|
250
|
-
_: 1
|
|
251
|
-
}, 8, ["onRegister"]),
|
|
252
|
-
t.showSubTable ? (L(), V(T, {
|
|
253
|
-
key: 0,
|
|
254
|
-
title: "子表信息",
|
|
255
|
-
size: "small"
|
|
256
|
-
}, {
|
|
257
|
-
default: s(() => [
|
|
258
|
-
i(M, pe({
|
|
259
|
-
ref: "subTableRef",
|
|
260
|
-
rowNumber: "",
|
|
261
|
-
maxHeight: 580
|
|
262
|
-
}, t.subTable), null, 16)
|
|
263
|
-
]),
|
|
264
|
-
_: 1
|
|
265
|
-
})) : I("", !0)
|
|
266
|
-
]),
|
|
267
|
-
_: 1
|
|
268
|
-
}, 8, ["spinning"])
|
|
269
|
-
]),
|
|
270
|
-
_: 1
|
|
271
|
-
}, 8, ["onRegister", "title", "width", "confirmLoading", "onOk", "onCancel", "wrapClassName"]),
|
|
272
|
-
i(F, {
|
|
273
|
-
onRegister: t.registerFileSelectModal,
|
|
274
|
-
onSelect: t.onFileSelect
|
|
275
|
-
}, null, 8, ["onRegister", "onSelect"]),
|
|
276
|
-
i(B, { onRegister: t.registerCodeFileListModal }, null, 8, ["onRegister"])
|
|
277
|
-
], 64);
|
|
278
|
-
}
|
|
279
|
-
const We = /* @__PURE__ */ Me(Ne, [["render", Be]]);
|
|
280
|
-
export {
|
|
281
|
-
We as default
|
|
282
|
-
};
|