@jeecg/online 3.5.3-beta2 → 3.5.3-vite4
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/AuthButtonConfig-2f71787c.mjs +125 -0
- package/AuthButtonTree-d73bccf5.mjs +156 -0
- package/AuthDataConfig-32cf23d2.mjs +212 -0
- package/AuthDataTree-03d62d3f.mjs +139 -0
- package/AuthFieldConfig-b1217a0c.mjs +139 -0
- package/AuthFieldTree-888e04a9.mjs +232 -0
- package/AuthManagerDrawer-f127b8a2.mjs +114 -0
- package/AuthSetterModal-37da78ed.mjs +261 -0
- package/CgformCopyList-3adab58f.mjs +245 -0
- package/CgformModal-6938d8c2.mjs +613 -0
- package/CgreportModal-77ec8c17.mjs +12 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
- package/CheckDictTable-414313f2.mjs +211 -0
- package/CodeFileListModal-4831ce3d.mjs +158 -0
- package/CodeFileViewModal-5990dac4.mjs +244 -0
- package/CodeGeneratorModal-7df9e25d.mjs +234 -0
- package/CustomButtonList-1c9bd859.mjs +363 -0
- package/DBAttributeTable-cd1c41e5.mjs +473 -0
- package/DbToOnlineModal-dc5d2030.mjs +160 -0
- package/DetailForm-e4538e7a.mjs +446 -0
- package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
- package/EnhanceJsHistory-c30805ce.mjs +184 -0
- package/EnhanceJsModal-0b133341.mjs +233 -0
- package/EnhanceSqlModal-33a94c83.mjs +259 -0
- package/ExtendConfigModal-60f2cf86.mjs +111 -0
- package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
- package/FileSelectModal-64aaf623.mjs +91 -0
- package/ForeignKeyTable-cb1abd1d.mjs +69 -0
- package/IndexTable-4e94cd1f.mjs +89 -0
- package/JModalTip-abe1515a.mjs +46 -0
- package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
- package/LeftDepart-ca7a7375.mjs +82 -0
- package/LeftRole-d0fa8398.mjs +86 -0
- package/LeftUser-0c88c240.mjs +105 -0
- package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
- package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
- package/LinkTableListPiece-34266919.mjs +34 -0
- package/ModalFormDemo-0eeea994.mjs +78 -0
- package/OnlCgformErpList-7a0388d8.mjs +425 -0
- package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
- package/OnlineAutoList-85e6a30d.mjs +472 -0
- package/OnlineAutoModal-2a146238.mjs +206 -0
- package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
- package/OnlineCustomModal-456a85a6.mjs +227 -0
- package/OnlineDetailModal-f967f080.mjs +177 -0
- package/OnlineForm-630a22c2.mjs +778 -0
- package/OnlineFormDetail-1b216792.mjs +296 -0
- package/OnlineQueryForm-1c5949a7.mjs +378 -0
- package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
- package/OnlineSelectCascade-c7baf52b.mjs +160 -0
- package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
- package/PageAttributeTable-811185fd.mjs +404 -0
- package/ProcessOnlineForm-27be6f6f.mjs +177 -0
- package/QueryTable-4ba771ef.mjs +115 -0
- package/SuperQuery-3821f984.mjs +845 -0
- package/SuperQueryValComponent-471110b5.mjs +8 -0
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
- package/auth.api-d3a6c4b3.mjs +39 -0
- package/auth.data-8be5c9e3.mjs +141 -0
- package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
- package/constant-fe20103a.mjs +6 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-074b92e5.mjs +236 -0
- package/index-6a09a912.mjs +58 -0
- package/index-9d32ae88.mjs +313 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-2d6a5955.mjs +388 -0
- package/useExtendComponent-48d37d9b.mjs +3919 -0
- package/useListButton-cef1371a.mjs +656 -0
- package/useOnlinePopEvent-e9a042f8.mjs +19 -0
- package/useOnlineTest-0df0ae86.mjs +43 -0
- package/useSchemas-fc8d97ce.mjs +669 -0
- package/useTableSync-dc333087.mjs +83 -0
- package/AuthButtonConfig.js +0 -147
- package/AuthButtonTree.js +0 -183
- package/AuthDataConfig.js +0 -246
- package/AuthDataTree.js +0 -160
- package/AuthFieldConfig.js +0 -170
- package/AuthFieldTree.js +0 -281
- package/AuthManagerDrawer.js +0 -125
- package/AuthSetterModal.js +0 -316
- package/CgformCopyList.js +0 -266
- package/CgformModal.js +0 -780
- package/CgreportModal.js +0 -667
- package/CheckDictTable.js +0 -242
- package/CodeFileListModal.js +0 -175
- package/CodeFileViewModal.js +0 -325
- package/CodeGeneratorModal.js +0 -297
- package/CustomButtonList.js +0 -410
- package/DBAttributeTable.js +0 -526
- package/DbToOnlineModal.js +0 -192
- package/DetailForm.js +0 -608
- package/EnhanceJavaModal.js +0 -298
- package/EnhanceJsHistory.js +0 -229
- package/EnhanceJsModal.js +0 -293
- package/EnhanceSqlModal.js +0 -299
- package/ExtendConfigModal.js +0 -151
- package/FieldExtendJsonModal.js +0 -283
- package/FileSelectModal.js +0 -102
- package/ForeignKeyTable.js +0 -79
- package/IndexTable.js +0 -97
- package/JModalTip.js +0 -54
- package/JOnlineSearchSelect.js +0 -115
- package/LICENSE +0 -9
- package/LeftDepart.js +0 -96
- package/LeftRole.js +0 -98
- package/LeftUser.js +0 -117
- package/LinkTableConfigModal.js +0 -289
- package/LinkTableFieldConfigModal.js +0 -218
- package/LinkTableListPiece.js +0 -36
- package/ModalFormDemo.js +0 -85
- package/OnlineAutoList.js +0 -524
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -553
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1018
- package/OnlineFormDetail.js +0 -347
- package/OnlineQueryForm.js +0 -484
- package/OnlineSearchFormItem.js +0 -436
- package/OnlineSelectCascade.js +0 -228
- package/OnlineSubFormDetail.js +0 -166
- package/PageAttributeTable.js +0 -486
- package/ProcessOnlineForm.js +0 -208
- package/QueryTable.js +0 -129
- package/SuperQuery.js +0 -1021
- package/SuperQueryValComponent.js +0 -9
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
- package/_arrayPush.js +0 -278
- package/_baseClone.js +0 -471
- package/_baseSlice.js +0 -18
- package/_commonjsHelpers.js +0 -5
- package/_flatRest.js +0 -174
- package/auth.api.js +0 -43
- package/auth.data.js +0 -142
- package/clipboard.js +0 -565
- package/enhance.api.js +0 -129
- package/enhance.data.js +0 -196
- package/index.js +0 -87
- package/index2.js +0 -340
- package/index3.js +0 -264
- package/isArray.js +0 -47
- package/omit.js +0 -60
- package/pick.js +0 -68
- package/toString.js +0 -31
- package/useCgformList.js +0 -470
- package/useExtendComponent.js +0 -5205
- package/useListButton.js +0 -923
- package/useOnlineTest.js +0 -44
- package/useSchemas.js +0 -653
- package/useTableSync.js +0 -117
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
var p = (o, f, r) => new Promise((m, u) => {
|
|
2
|
+
var c = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
s(r.next(t));
|
|
5
|
+
} catch (l) {
|
|
6
|
+
u(l);
|
|
7
|
+
}
|
|
8
|
+
}, a = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
s(r.throw(t));
|
|
11
|
+
} catch (l) {
|
|
12
|
+
u(l);
|
|
13
|
+
}
|
|
14
|
+
}, s = (t) => t.done ? m(t.value) : Promise.resolve(t.value).then(c, a);
|
|
15
|
+
s((r = r.apply(o, f)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as z, ref as i, nextTick as T, watch as J, reactive as Q, markRaw as W, defineAsyncComponent as X, resolveComponent as F, openBlock as S, createBlock as k, mergeProps as Y, withCtx as d, createVNode as R, createTextVNode as P, resolveDynamicComponent as Z } from "vue";
|
|
18
|
+
import { BasicModal as x, useModalInner as oo } from "/@/components/Modal";
|
|
19
|
+
import { g as _ } from "./useExtendComponent-48d37d9b.mjs";
|
|
20
|
+
import { defHttp as eo } from "/@/utils/http/axios";
|
|
21
|
+
import { O as to } from "./OnlineForm-630a22c2.mjs";
|
|
22
|
+
import { importViewsFile as no } from "/@/utils";
|
|
23
|
+
import { _ as ro } from "./index-6a09a912.mjs";
|
|
24
|
+
import "/@/components/Form/src/componentMap";
|
|
25
|
+
import "/@/utils/propTypes";
|
|
26
|
+
import "@ant-design/icons-vue";
|
|
27
|
+
import "/@/hooks/web/useMessage";
|
|
28
|
+
import "/@/components/Form/index";
|
|
29
|
+
import "lodash-es";
|
|
30
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
31
|
+
import "/@/views/system/user/user.api";
|
|
32
|
+
import "/@/store/modules/user";
|
|
33
|
+
import "/@/utils/desform/customExpression";
|
|
34
|
+
import "/@/store/modules/permission";
|
|
35
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
36
|
+
import "/@/utils/common/compUtils";
|
|
37
|
+
import "/@/components/Table";
|
|
38
|
+
import "/@/hooks/system/useListPage";
|
|
39
|
+
import "vue-router";
|
|
40
|
+
import "/@/components/Form/src/utils/Area";
|
|
41
|
+
import "/@/components/Preview/index";
|
|
42
|
+
import "./LinkTableListPiece-34266919.mjs";
|
|
43
|
+
import "./OnlineSelectCascade-c7baf52b.mjs";
|
|
44
|
+
import "/@/components/Loading";
|
|
45
|
+
import "/@/utils/auth";
|
|
46
|
+
import "./JModalTip-abe1515a.mjs";
|
|
47
|
+
import "ant-design-vue";
|
|
48
|
+
import "@vueuse/core";
|
|
49
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
50
|
+
import "/@/hooks/core/useContext";
|
|
51
|
+
import "/@/utils/mitt";
|
|
52
|
+
import "/@/utils/cache";
|
|
53
|
+
import "./constant-fe20103a.mjs";
|
|
54
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
55
|
+
const io = {
|
|
56
|
+
code: "",
|
|
57
|
+
title: "自定义弹框",
|
|
58
|
+
width: 600,
|
|
59
|
+
row: {},
|
|
60
|
+
hide: [],
|
|
61
|
+
show: [],
|
|
62
|
+
requestUrl: "",
|
|
63
|
+
tableType: "",
|
|
64
|
+
foreignKeys: "",
|
|
65
|
+
formComponent: ""
|
|
66
|
+
}, mo = z({
|
|
67
|
+
name: "OnlineCustomModal",
|
|
68
|
+
components: {
|
|
69
|
+
OnlineForm: to,
|
|
70
|
+
BasicModal: x
|
|
71
|
+
},
|
|
72
|
+
setup(o, { emit: f }) {
|
|
73
|
+
const r = i(), m = i(""), u = i("自定义弹框"), c = i(600);
|
|
74
|
+
let a = [], s = [], t = "", l = {};
|
|
75
|
+
const I = {
|
|
76
|
+
loadFormItems: "/online/cgform/api/getFormItem/",
|
|
77
|
+
optPre: "/online/cgform/api/form/"
|
|
78
|
+
}, B = { position: "relative" }, E = i(!1), g = i(!1);
|
|
79
|
+
function $() {
|
|
80
|
+
g.value = !0;
|
|
81
|
+
}
|
|
82
|
+
const h = i(!0), [N, { setModalProps: D, closeModal: b }] = oo((e) => p(this, null, function* () {
|
|
83
|
+
D({ confirmLoading: !1 }), L(e), yield T(() => p(this, null, function* () {
|
|
84
|
+
e.formComponent ? K(e.formComponent) : yield H();
|
|
85
|
+
}));
|
|
86
|
+
}));
|
|
87
|
+
function L(e) {
|
|
88
|
+
let n = Object.assign({}, io, e);
|
|
89
|
+
m.value = n.code, u.value = n.title, c.value = n.width, a = n.hide || [], s = n.show || [], t = U(n.requestUrl), l = n.row;
|
|
90
|
+
}
|
|
91
|
+
function U(e) {
|
|
92
|
+
return e || I.optPre + m.value;
|
|
93
|
+
}
|
|
94
|
+
const v = i(!1);
|
|
95
|
+
function V() {
|
|
96
|
+
v.value = !0, h.value === !0 ? r.value.handleSubmit() : M.value.handleSubmit(), setTimeout(() => {
|
|
97
|
+
v.value = !0;
|
|
98
|
+
}, 3500);
|
|
99
|
+
}
|
|
100
|
+
function j() {
|
|
101
|
+
b();
|
|
102
|
+
}
|
|
103
|
+
function A(e) {
|
|
104
|
+
f("success", e), b();
|
|
105
|
+
}
|
|
106
|
+
function H() {
|
|
107
|
+
return p(this, null, function* () {
|
|
108
|
+
h.value = !0, yield _(g), r.value.handleCustomFormSh(s, a), r.value.handleCustomFormEdit(l, t);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
const O = i(1);
|
|
112
|
+
J(m, q, { immediate: !0 });
|
|
113
|
+
function q() {
|
|
114
|
+
return p(this, null, function* () {
|
|
115
|
+
if (g.value = !1, !m.value)
|
|
116
|
+
return;
|
|
117
|
+
console.log("重新渲染表单》》》》modal");
|
|
118
|
+
let e = yield G(), n = e.head.formTemplate;
|
|
119
|
+
O.value = n ? Number(n) : 1, T(() => p(this, null, function* () {
|
|
120
|
+
(yield _(r)).createRootProperties(e);
|
|
121
|
+
}));
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function G() {
|
|
125
|
+
let e = `/online/cgform/api/getFormItem/${m.value}`;
|
|
126
|
+
return new Promise((n, y) => {
|
|
127
|
+
eo.get({ url: e }, { isTransformResponse: !1 }).then((C) => {
|
|
128
|
+
console.log("表单结果》》modal:", C), C.success ? n(C.result) : y(C.message);
|
|
129
|
+
}).catch(() => {
|
|
130
|
+
y();
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
const M = i(), w = Q({
|
|
135
|
+
url: "",
|
|
136
|
+
is: "",
|
|
137
|
+
row: {}
|
|
138
|
+
});
|
|
139
|
+
function K(e) {
|
|
140
|
+
h.value = !1, w.url = t, w.row = l, w.is = W(X(() => no(e)));
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
//modal
|
|
144
|
+
registerModal: N,
|
|
145
|
+
title: u,
|
|
146
|
+
width: c,
|
|
147
|
+
modalStyle: B,
|
|
148
|
+
handleSubmit: V,
|
|
149
|
+
handleCancel: j,
|
|
150
|
+
// online表单
|
|
151
|
+
id: m,
|
|
152
|
+
onlineFormCompRef: r,
|
|
153
|
+
formTemplate: O,
|
|
154
|
+
renderSuccess: $,
|
|
155
|
+
//自定义表单
|
|
156
|
+
customFormRef: M,
|
|
157
|
+
customFormComponent: w,
|
|
158
|
+
//通用
|
|
159
|
+
open,
|
|
160
|
+
isOnlineForm: h,
|
|
161
|
+
confirmLoading: E,
|
|
162
|
+
submitLoading: v,
|
|
163
|
+
handleSuccess: A
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
function lo(o, f, r, m, u, c) {
|
|
168
|
+
const a = F("a-button"), s = F("online-form"), t = F("a-spin"), l = F("BasicModal");
|
|
169
|
+
return S(), k(l, Y({
|
|
170
|
+
title: o.title,
|
|
171
|
+
width: o.width
|
|
172
|
+
}, o.$attrs, {
|
|
173
|
+
style: o.modalStyle,
|
|
174
|
+
onRegister: o.registerModal,
|
|
175
|
+
wrapClassName: "jeecg-online-modal2",
|
|
176
|
+
onOk: o.handleSubmit
|
|
177
|
+
}), {
|
|
178
|
+
footer: d(() => [
|
|
179
|
+
R(a, {
|
|
180
|
+
key: "submit",
|
|
181
|
+
type: "primary",
|
|
182
|
+
onClick: o.handleSubmit
|
|
183
|
+
}, {
|
|
184
|
+
default: d(() => [
|
|
185
|
+
P("确定")
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}, 8, ["onClick"]),
|
|
189
|
+
R(a, {
|
|
190
|
+
key: "back",
|
|
191
|
+
onClick: o.handleCancel
|
|
192
|
+
}, {
|
|
193
|
+
default: d(() => [
|
|
194
|
+
P("关闭")
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["onClick"])
|
|
198
|
+
]),
|
|
199
|
+
default: d(() => [
|
|
200
|
+
R(t, { spinning: o.confirmLoading }, {
|
|
201
|
+
default: d(() => [
|
|
202
|
+
o.isOnlineForm ? (S(), k(s, {
|
|
203
|
+
key: 0,
|
|
204
|
+
ref: "onlineFormCompRef",
|
|
205
|
+
id: o.id,
|
|
206
|
+
"form-template": o.formTemplate,
|
|
207
|
+
onRendered: o.renderSuccess,
|
|
208
|
+
onSuccess: o.handleSuccess,
|
|
209
|
+
modalClass: "jeecg-online-modal2"
|
|
210
|
+
}, null, 8, ["id", "form-template", "onRendered", "onSuccess"])) : (S(), k(Z(o.customFormComponent.is), {
|
|
211
|
+
key: 1,
|
|
212
|
+
ref: "customFormRef",
|
|
213
|
+
url: o.customFormComponent.url,
|
|
214
|
+
row: o.customFormComponent.row,
|
|
215
|
+
onClose: o.handleSuccess
|
|
216
|
+
}, null, 40, ["url", "row", "onClose"]))
|
|
217
|
+
]),
|
|
218
|
+
_: 1
|
|
219
|
+
}, 8, ["spinning"])
|
|
220
|
+
]),
|
|
221
|
+
_: 1
|
|
222
|
+
}, 16, ["title", "width", "style", "onRegister", "onOk"]);
|
|
223
|
+
}
|
|
224
|
+
const Qo = /* @__PURE__ */ ro(mo, [["render", lo]]);
|
|
225
|
+
export {
|
|
226
|
+
Qo as default
|
|
227
|
+
};
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
var c = (e, a, t) => new Promise((l, n) => {
|
|
2
|
+
var p = (o) => {
|
|
3
|
+
try {
|
|
4
|
+
m(t.next(o));
|
|
5
|
+
} catch (r) {
|
|
6
|
+
n(r);
|
|
7
|
+
}
|
|
8
|
+
}, i = (o) => {
|
|
9
|
+
try {
|
|
10
|
+
m(t.throw(o));
|
|
11
|
+
} catch (r) {
|
|
12
|
+
n(r);
|
|
13
|
+
}
|
|
14
|
+
}, m = (o) => o.done ? l(o.value) : Promise.resolve(o.value).then(p, i);
|
|
15
|
+
m((t = t.apply(e, a)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as I, ref as $, watch as v, resolveComponent as d, openBlock as P, createBlock as y, mergeProps as O, withCtx as s, createVNode as f, createTextVNode as L } from "vue";
|
|
18
|
+
import { BasicModal as V } from "/@/components/Modal";
|
|
19
|
+
import W from "./OnlineFormDetail-1b216792.mjs";
|
|
20
|
+
import { e as j } from "./useExtendComponent-48d37d9b.mjs";
|
|
21
|
+
import q from "/@/components/jeecg/comment/CommentPanel.vue";
|
|
22
|
+
import { _ as A } from "./index-6a09a912.mjs";
|
|
23
|
+
import "/@/hooks/web/useMessage";
|
|
24
|
+
import "/@/components/Loading";
|
|
25
|
+
import "/@/utils/auth";
|
|
26
|
+
import "/@/utils";
|
|
27
|
+
import "@ant-design/icons-vue";
|
|
28
|
+
import "./DetailForm-e4538e7a.mjs";
|
|
29
|
+
import "/@/utils/propTypes";
|
|
30
|
+
import "/@/utils/dict";
|
|
31
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
32
|
+
import "/@/utils/dict/index";
|
|
33
|
+
import "/@/api/common/api";
|
|
34
|
+
import "/@/utils/http/axios";
|
|
35
|
+
import "/@/components/Form/src/utils/Area";
|
|
36
|
+
import "/@/utils/common/compUtils";
|
|
37
|
+
import "/@/components/Preview/index";
|
|
38
|
+
import "./OnlineSubFormDetail-0aa4966c.mjs";
|
|
39
|
+
import "/@/components/Form/index";
|
|
40
|
+
import "./constant-fe20103a.mjs";
|
|
41
|
+
import "/@/components/Form/src/componentMap";
|
|
42
|
+
import "lodash-es";
|
|
43
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
44
|
+
import "/@/views/system/user/user.api";
|
|
45
|
+
import "/@/store/modules/user";
|
|
46
|
+
import "/@/utils/desform/customExpression";
|
|
47
|
+
import "/@/store/modules/permission";
|
|
48
|
+
import "/@/components/Table";
|
|
49
|
+
import "/@/hooks/system/useListPage";
|
|
50
|
+
import "vue-router";
|
|
51
|
+
import "./LinkTableListPiece-34266919.mjs";
|
|
52
|
+
import "./OnlineSelectCascade-c7baf52b.mjs";
|
|
53
|
+
import "./JModalTip-abe1515a.mjs";
|
|
54
|
+
import "ant-design-vue";
|
|
55
|
+
import "@vueuse/core";
|
|
56
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
57
|
+
const E = I({
|
|
58
|
+
name: "OnlineDetailModal",
|
|
59
|
+
props: {
|
|
60
|
+
id: {
|
|
61
|
+
type: String,
|
|
62
|
+
required: !1,
|
|
63
|
+
default: ""
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
components: {
|
|
67
|
+
BasicModal: V,
|
|
68
|
+
OnlineFormDetail: W,
|
|
69
|
+
CommentPanel: q
|
|
70
|
+
},
|
|
71
|
+
emits: ["success", "register", "formConfig"],
|
|
72
|
+
setup(e, { emit: a }) {
|
|
73
|
+
console.log("进入表单弹框》》》》modal");
|
|
74
|
+
const t = $();
|
|
75
|
+
function l() {
|
|
76
|
+
t.value && t.value.reload();
|
|
77
|
+
}
|
|
78
|
+
const {
|
|
79
|
+
title: n,
|
|
80
|
+
modalWidth: p,
|
|
81
|
+
registerModal: i,
|
|
82
|
+
cgButtonList: m,
|
|
83
|
+
handleCgButtonClick: o,
|
|
84
|
+
disableSubmit: r,
|
|
85
|
+
handleSubmit: u,
|
|
86
|
+
submitLoading: h,
|
|
87
|
+
handleCancel: C,
|
|
88
|
+
handleFormConfig: b,
|
|
89
|
+
onlineFormCompRef: g,
|
|
90
|
+
formTemplate: w,
|
|
91
|
+
isTreeForm: _,
|
|
92
|
+
pidFieldName: R,
|
|
93
|
+
renderSuccess: F,
|
|
94
|
+
formRendered: M,
|
|
95
|
+
showSub: N,
|
|
96
|
+
tableName: T,
|
|
97
|
+
formDataId: k,
|
|
98
|
+
enableComment: B,
|
|
99
|
+
themeTemplate: S
|
|
100
|
+
} = j(!1, { emit: a }, l);
|
|
101
|
+
v(() => e.id, D, { immediate: !0 });
|
|
102
|
+
function D() {
|
|
103
|
+
return c(this, null, function* () {
|
|
104
|
+
M.value = !1, e.id && (console.log("重新渲染表单》》》》modal"), yield b(e.id, {}));
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
title: n,
|
|
109
|
+
onlineFormCompRef: g,
|
|
110
|
+
renderSuccess: F,
|
|
111
|
+
registerModal: i,
|
|
112
|
+
handleSubmit: u,
|
|
113
|
+
handleCancel: C,
|
|
114
|
+
modalWidth: p,
|
|
115
|
+
formTemplate: w,
|
|
116
|
+
disableSubmit: r,
|
|
117
|
+
cgButtonList: m,
|
|
118
|
+
handleCgButtonClick: o,
|
|
119
|
+
isTreeForm: _,
|
|
120
|
+
pidFieldName: R,
|
|
121
|
+
submitLoading: h,
|
|
122
|
+
showSub: N,
|
|
123
|
+
tableName: T,
|
|
124
|
+
formDataId: k,
|
|
125
|
+
enableComment: B,
|
|
126
|
+
commentPanelRef: t,
|
|
127
|
+
themeTemplate: S
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
function z(e, a, t, l, n, p) {
|
|
132
|
+
const i = d("a-button"), m = d("online-form-detail"), o = d("comment-panel"), r = d("BasicModal");
|
|
133
|
+
return P(), y(r, O({
|
|
134
|
+
title: e.title,
|
|
135
|
+
width: e.modalWidth,
|
|
136
|
+
height: 600,
|
|
137
|
+
enableComment: e.enableComment,
|
|
138
|
+
defaultFullscreen: !1
|
|
139
|
+
}, e.$attrs, {
|
|
140
|
+
onRegister: e.registerModal,
|
|
141
|
+
wrapClassName: "jeecg-online-detail-modal"
|
|
142
|
+
}), {
|
|
143
|
+
footer: s(() => [
|
|
144
|
+
f(i, {
|
|
145
|
+
key: "back",
|
|
146
|
+
onClick: e.handleCancel
|
|
147
|
+
}, {
|
|
148
|
+
default: s(() => [
|
|
149
|
+
L("关闭")
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 8, ["onClick"])
|
|
153
|
+
]),
|
|
154
|
+
comment: s(() => [
|
|
155
|
+
f(o, {
|
|
156
|
+
ref: "commentPanelRef",
|
|
157
|
+
tableName: e.tableName,
|
|
158
|
+
dataId: e.formDataId
|
|
159
|
+
}, null, 8, ["tableName", "dataId"])
|
|
160
|
+
]),
|
|
161
|
+
default: s(() => [
|
|
162
|
+
f(m, {
|
|
163
|
+
ref: "onlineFormCompRef",
|
|
164
|
+
id: e.id,
|
|
165
|
+
"form-template": e.formTemplate,
|
|
166
|
+
"show-sub": e.showSub,
|
|
167
|
+
themeTemplate: e.themeTemplate,
|
|
168
|
+
onRendered: e.renderSuccess
|
|
169
|
+
}, null, 8, ["id", "form-template", "show-sub", "themeTemplate", "onRendered"])
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
}, 16, ["title", "width", "enableComment", "onRegister"]);
|
|
173
|
+
}
|
|
174
|
+
const ve = /* @__PURE__ */ A(E, [["render", z]]);
|
|
175
|
+
export {
|
|
176
|
+
ve as default
|
|
177
|
+
};
|