@jeecg/online 3.5.3-beta3 → 3.6.0-beta
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-b6a674fa.mjs +125 -0
- package/AuthButtonTree-09e57bc4.mjs +156 -0
- package/AuthDataConfig-6e7e61ec.mjs +212 -0
- package/AuthDataTree-e83286c5.mjs +139 -0
- package/AuthFieldConfig-f1ec2708.mjs +139 -0
- package/AuthFieldTree-bb72e21f.mjs +232 -0
- package/AuthManagerDrawer-28a2d108.mjs +114 -0
- package/AuthSetterModal-2990d553.mjs +261 -0
- package/CgformCopyList-36a4cbf0.mjs +246 -0
- package/CgformModal-7399a5ac.mjs +611 -0
- package/CgreportModal-2eb9c9e1.mjs +13 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs +566 -0
- package/CheckDictTable-3a8a54b3.mjs +211 -0
- package/CodeFileListModal-72f0d3bb.mjs +158 -0
- package/CodeFileViewModal-9eb88c47.mjs +244 -0
- package/CodeGeneratorModal-a89958f5.mjs +233 -0
- package/CustomButtonList-c44aec5a.mjs +363 -0
- package/DBAttributeTable-7d285e8d.mjs +473 -0
- package/DbToOnlineModal-d23cbeb1.mjs +160 -0
- package/DetailForm-2901d215.mjs +461 -0
- package/EnhanceJavaModal-153899a9.mjs +264 -0
- package/EnhanceJsHistory-7f5db3b1.mjs +184 -0
- package/EnhanceJsModal-c2fb75b8.mjs +311 -0
- package/EnhanceSqlModal-965e9b0a.mjs +268 -0
- package/ExtendConfigModal-8f08466f.mjs +111 -0
- package/FieldExtendJsonModal-adfcf5a7.mjs +219 -0
- package/FileSelectModal-432d4521.mjs +103 -0
- package/ForeignKeyTable-faab7ccf.mjs +69 -0
- package/IndexTable-0a2d3718.mjs +89 -0
- package/JModalTip-e1938b49.mjs +46 -0
- package/JOnlineSearchSelect-7e908492.mjs +95 -0
- package/LeftDepart-54f245b3.mjs +82 -0
- package/LeftRole-c138f892.mjs +86 -0
- package/LeftUser-9c812f8a.mjs +105 -0
- package/LinkTableConfigModal-c2c5c7e6.mjs +230 -0
- package/LinkTableFieldConfigModal-a3553b1f.mjs +176 -0
- package/LinkTableListPiece-7f793b08.mjs +34 -0
- package/ModalFormDemo-65685b0e.mjs +78 -0
- package/OnlCgformErpList-52c87ed3.mjs +449 -0
- package/OnlCgformErpSubTable-6e7fb17b.mjs +398 -0
- package/OnlCgformInnerSubTable-f0727b8f.mjs +248 -0
- package/OnlCgformInnerTableList-9f89c173.mjs +430 -0
- package/OnlCgformTabList-15516315.mjs +390 -0
- package/OnlineAutoList-63a0224f.mjs +474 -0
- package/OnlineAutoModal-ffe19c3f.mjs +206 -0
- package/OnlineAutoTreeList-317c7105.mjs +495 -0
- package/OnlineCustomModal-3939ce78.mjs +227 -0
- package/OnlineDetailModal-bfb1375f.mjs +177 -0
- package/OnlineForm-069f6092.mjs +749 -0
- package/OnlineFormDetail-ad5735fb.mjs +296 -0
- package/OnlineQueryForm-0771c80f.mjs +385 -0
- package/OnlineSearchFormItem-0db5834f.mjs +348 -0
- package/OnlineSelectCascade-a05c30f4.mjs +159 -0
- package/OnlineSubFormDetail-583d01eb.mjs +142 -0
- package/OnlineTabAutoModal-747e071d.mjs +253 -0
- package/OnlineTabDetailModal-887f0174.mjs +222 -0
- package/OnlineTabForm-b1dcd4b4.mjs +765 -0
- package/OnlineTabFormDetail-8e494a96.mjs +323 -0
- package/PageAttributeTable-5966b201.mjs +404 -0
- package/ProcessOnlineForm-4382bea7.mjs +177 -0
- package/QueryTable-6e8053ad.mjs +115 -0
- package/README.md +2 -1
- package/SuperQuery-78db6998.mjs +841 -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-754f1a9d.mjs +9 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-0a93652b.mjs +237 -0
- package/index-7e9a23f2.mjs +1494 -0
- package/index-b70302f2.mjs +56 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-0c603af1.mjs +424 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-aa1cdfc8.mjs +3917 -0
- package/useListButton-0f18bf6a.mjs +671 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/useSchemas-43429d80.mjs +685 -0
- package/useTableSync-774c3774.mjs +87 -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 -523
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -552
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1016
- 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 -1020
- package/SuperQueryValComponent.js +0 -8
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -168
- 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 = (e, 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(e, 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 C, 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 ee } from "/@/components/Modal";
|
|
19
|
+
import { g as _ } from "./useExtendComponent-aa1cdfc8.mjs";
|
|
20
|
+
import { defHttp as oe } from "/@/utils/http/axios";
|
|
21
|
+
import te from "./OnlineForm-069f6092.mjs";
|
|
22
|
+
import { importViewsFile as ne } from "/@/utils";
|
|
23
|
+
import { _ as re } from "./index-b70302f2.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 "./constant-754f1a9d.mjs";
|
|
31
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
32
|
+
import "/@/views/system/user/user.api";
|
|
33
|
+
import "/@/store/modules/user";
|
|
34
|
+
import "/@/utils/desform/customExpression";
|
|
35
|
+
import "/@/store/modules/permission";
|
|
36
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
37
|
+
import "/@/utils/common/compUtils";
|
|
38
|
+
import "/@/components/Table";
|
|
39
|
+
import "/@/hooks/system/useListPage";
|
|
40
|
+
import "vue-router";
|
|
41
|
+
import "/@/components/Form/src/utils/Area";
|
|
42
|
+
import "/@/components/Preview/index";
|
|
43
|
+
import "./LinkTableListPiece-7f793b08.mjs";
|
|
44
|
+
import "./OnlineSelectCascade-a05c30f4.mjs";
|
|
45
|
+
import "/@/components/Loading";
|
|
46
|
+
import "/@/utils/auth";
|
|
47
|
+
import "./JModalTip-e1938b49.mjs";
|
|
48
|
+
import "ant-design-vue";
|
|
49
|
+
import "@vueuse/core";
|
|
50
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
51
|
+
import "/@/hooks/core/useContext";
|
|
52
|
+
import "/@/utils/mitt";
|
|
53
|
+
import "./useCustomHook-acb00837.mjs";
|
|
54
|
+
import "/@/utils/cache";
|
|
55
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
56
|
+
const ie = {
|
|
57
|
+
code: "",
|
|
58
|
+
title: "自定义弹框",
|
|
59
|
+
width: 600,
|
|
60
|
+
row: {},
|
|
61
|
+
hide: [],
|
|
62
|
+
show: [],
|
|
63
|
+
requestUrl: "",
|
|
64
|
+
tableType: "",
|
|
65
|
+
foreignKeys: "",
|
|
66
|
+
formComponent: ""
|
|
67
|
+
}, me = z({
|
|
68
|
+
name: "OnlineCustomModal",
|
|
69
|
+
components: {
|
|
70
|
+
OnlineForm: te,
|
|
71
|
+
BasicModal: x
|
|
72
|
+
},
|
|
73
|
+
setup(e, { emit: f }) {
|
|
74
|
+
const r = i(), m = i(""), u = i("自定义弹框"), c = i(600);
|
|
75
|
+
let a = [], s = [], t = "", l = {};
|
|
76
|
+
const I = {
|
|
77
|
+
loadFormItems: "/online/cgform/api/getFormItem/",
|
|
78
|
+
optPre: "/online/cgform/api/form/"
|
|
79
|
+
}, B = { position: "relative" }, E = i(!1), F = i(!1);
|
|
80
|
+
function $() {
|
|
81
|
+
F.value = !0;
|
|
82
|
+
}
|
|
83
|
+
const h = i(!0), [N, { setModalProps: D, closeModal: b }] = ee((o) => p(this, null, function* () {
|
|
84
|
+
D({ confirmLoading: !1 }), L(o), yield T(() => p(this, null, function* () {
|
|
85
|
+
o.formComponent ? K(o.formComponent) : yield H();
|
|
86
|
+
}));
|
|
87
|
+
}));
|
|
88
|
+
function L(o) {
|
|
89
|
+
let n = Object.assign({}, ie, o);
|
|
90
|
+
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;
|
|
91
|
+
}
|
|
92
|
+
function U(o) {
|
|
93
|
+
return o || I.optPre + m.value;
|
|
94
|
+
}
|
|
95
|
+
const g = i(!1);
|
|
96
|
+
function V() {
|
|
97
|
+
g.value = !0, h.value === !0 ? r.value.handleSubmit() : M.value.handleSubmit(), setTimeout(() => {
|
|
98
|
+
g.value = !0;
|
|
99
|
+
}, 3500);
|
|
100
|
+
}
|
|
101
|
+
function j() {
|
|
102
|
+
b();
|
|
103
|
+
}
|
|
104
|
+
function A(o) {
|
|
105
|
+
f("success", o), b();
|
|
106
|
+
}
|
|
107
|
+
function H() {
|
|
108
|
+
return p(this, null, function* () {
|
|
109
|
+
h.value = !0, yield _(F), r.value.handleCustomFormSh(s, a), r.value.handleCustomFormEdit(l, t);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
const O = i(1);
|
|
113
|
+
J(m, q, { immediate: !0 });
|
|
114
|
+
function q() {
|
|
115
|
+
return p(this, null, function* () {
|
|
116
|
+
if (F.value = !1, !m.value)
|
|
117
|
+
return;
|
|
118
|
+
let o = yield G(), n = o.head.formTemplate;
|
|
119
|
+
O.value = n ? Number(n) : 1, T(() => p(this, null, function* () {
|
|
120
|
+
(yield _(r)).createRootProperties(o);
|
|
121
|
+
}));
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function G() {
|
|
125
|
+
let o = `/online/cgform/api/getFormItem/${m.value}`;
|
|
126
|
+
return new Promise((n, v) => {
|
|
127
|
+
oe.get({ url: o }, { isTransformResponse: !1 }).then((y) => {
|
|
128
|
+
y.success ? n(y.result) : v(y.message);
|
|
129
|
+
}).catch(() => {
|
|
130
|
+
v();
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
const M = i(), w = Q({
|
|
135
|
+
url: "",
|
|
136
|
+
is: "",
|
|
137
|
+
row: {}
|
|
138
|
+
});
|
|
139
|
+
function K(o) {
|
|
140
|
+
h.value = !1, w.url = t, w.row = l, w.is = W(X(() => ne(o)));
|
|
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: g,
|
|
163
|
+
handleSuccess: A
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
function le(e, f, r, m, u, c) {
|
|
168
|
+
const a = C("a-button"), s = C("online-form"), t = C("a-spin"), l = C("BasicModal");
|
|
169
|
+
return S(), k(l, Y({
|
|
170
|
+
title: e.title,
|
|
171
|
+
width: e.width
|
|
172
|
+
}, e.$attrs, {
|
|
173
|
+
style: e.modalStyle,
|
|
174
|
+
onRegister: e.registerModal,
|
|
175
|
+
wrapClassName: "jeecg-online-modal2",
|
|
176
|
+
onOk: e.handleSubmit
|
|
177
|
+
}), {
|
|
178
|
+
footer: d(() => [
|
|
179
|
+
R(a, {
|
|
180
|
+
key: "submit",
|
|
181
|
+
type: "primary",
|
|
182
|
+
onClick: e.handleSubmit
|
|
183
|
+
}, {
|
|
184
|
+
default: d(() => [
|
|
185
|
+
P("确定")
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}, 8, ["onClick"]),
|
|
189
|
+
R(a, {
|
|
190
|
+
key: "back",
|
|
191
|
+
onClick: e.handleCancel
|
|
192
|
+
}, {
|
|
193
|
+
default: d(() => [
|
|
194
|
+
P("关闭")
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["onClick"])
|
|
198
|
+
]),
|
|
199
|
+
default: d(() => [
|
|
200
|
+
R(t, { spinning: e.confirmLoading }, {
|
|
201
|
+
default: d(() => [
|
|
202
|
+
e.isOnlineForm ? (S(), k(s, {
|
|
203
|
+
key: 0,
|
|
204
|
+
ref: "onlineFormCompRef",
|
|
205
|
+
id: e.id,
|
|
206
|
+
"form-template": e.formTemplate,
|
|
207
|
+
onRendered: e.renderSuccess,
|
|
208
|
+
onSuccess: e.handleSuccess,
|
|
209
|
+
modalClass: "jeecg-online-modal2"
|
|
210
|
+
}, null, 8, ["id", "form-template", "onRendered", "onSuccess"])) : (S(), k(Z(e.customFormComponent.is), {
|
|
211
|
+
key: 1,
|
|
212
|
+
ref: "customFormRef",
|
|
213
|
+
url: e.customFormComponent.url,
|
|
214
|
+
row: e.customFormComponent.row,
|
|
215
|
+
onClose: e.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 Qe = /* @__PURE__ */ re(me, [["render", le]]);
|
|
225
|
+
export {
|
|
226
|
+
Qe as default
|
|
227
|
+
};
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
var c = (e, a, o) => new Promise((l, i) => {
|
|
2
|
+
var p = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
m(o.next(t));
|
|
5
|
+
} catch (r) {
|
|
6
|
+
i(r);
|
|
7
|
+
}
|
|
8
|
+
}, n = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
m(o.throw(t));
|
|
11
|
+
} catch (r) {
|
|
12
|
+
i(r);
|
|
13
|
+
}
|
|
14
|
+
}, m = (t) => t.done ? l(t.value) : Promise.resolve(t.value).then(p, n);
|
|
15
|
+
m((o = o.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-ad5735fb.mjs";
|
|
20
|
+
import { b as j } from "./useExtendComponent-aa1cdfc8.mjs";
|
|
21
|
+
import q from "/@/components/jeecg/comment/CommentPanel.vue";
|
|
22
|
+
import { _ as A } from "./index-b70302f2.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-2901d215.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 "/@/components/Markdown";
|
|
39
|
+
import "./OnlineSubFormDetail-583d01eb.mjs";
|
|
40
|
+
import "/@/components/Form/index";
|
|
41
|
+
import "./constant-754f1a9d.mjs";
|
|
42
|
+
import "/@/components/Form/src/componentMap";
|
|
43
|
+
import "lodash-es";
|
|
44
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
45
|
+
import "/@/views/system/user/user.api";
|
|
46
|
+
import "/@/store/modules/user";
|
|
47
|
+
import "/@/utils/desform/customExpression";
|
|
48
|
+
import "/@/store/modules/permission";
|
|
49
|
+
import "/@/components/Table";
|
|
50
|
+
import "/@/hooks/system/useListPage";
|
|
51
|
+
import "vue-router";
|
|
52
|
+
import "./LinkTableListPiece-7f793b08.mjs";
|
|
53
|
+
import "./OnlineSelectCascade-a05c30f4.mjs";
|
|
54
|
+
import "./JModalTip-e1938b49.mjs";
|
|
55
|
+
import "ant-design-vue";
|
|
56
|
+
import "@vueuse/core";
|
|
57
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
58
|
+
const E = I({
|
|
59
|
+
name: "OnlineDetailModal",
|
|
60
|
+
props: {
|
|
61
|
+
id: {
|
|
62
|
+
type: String,
|
|
63
|
+
required: !1,
|
|
64
|
+
default: ""
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
components: {
|
|
68
|
+
BasicModal: V,
|
|
69
|
+
OnlineFormDetail: W,
|
|
70
|
+
CommentPanel: q
|
|
71
|
+
},
|
|
72
|
+
emits: ["success", "register", "formConfig"],
|
|
73
|
+
setup(e, { emit: a }) {
|
|
74
|
+
const o = $();
|
|
75
|
+
function l() {
|
|
76
|
+
o.value && o.value.reload();
|
|
77
|
+
}
|
|
78
|
+
const {
|
|
79
|
+
title: i,
|
|
80
|
+
modalWidth: p,
|
|
81
|
+
registerModal: n,
|
|
82
|
+
cgButtonList: m,
|
|
83
|
+
handleCgButtonClick: t,
|
|
84
|
+
disableSubmit: r,
|
|
85
|
+
handleSubmit: u,
|
|
86
|
+
submitLoading: h,
|
|
87
|
+
handleCancel: b,
|
|
88
|
+
handleFormConfig: C,
|
|
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 && (yield C(e.id, {}));
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
title: i,
|
|
109
|
+
onlineFormCompRef: g,
|
|
110
|
+
renderSuccess: F,
|
|
111
|
+
registerModal: n,
|
|
112
|
+
handleSubmit: u,
|
|
113
|
+
handleCancel: b,
|
|
114
|
+
modalWidth: p,
|
|
115
|
+
formTemplate: w,
|
|
116
|
+
disableSubmit: r,
|
|
117
|
+
cgButtonList: m,
|
|
118
|
+
handleCgButtonClick: t,
|
|
119
|
+
isTreeForm: _,
|
|
120
|
+
pidFieldName: R,
|
|
121
|
+
submitLoading: h,
|
|
122
|
+
showSub: N,
|
|
123
|
+
tableName: T,
|
|
124
|
+
formDataId: k,
|
|
125
|
+
enableComment: B,
|
|
126
|
+
commentPanelRef: o,
|
|
127
|
+
themeTemplate: S
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
function z(e, a, o, l, i, p) {
|
|
132
|
+
const n = d("a-button"), m = d("online-form-detail"), t = 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(n, {
|
|
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(t, {
|
|
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 Pe = /* @__PURE__ */ A(E, [["render", z]]);
|
|
175
|
+
export {
|
|
176
|
+
Pe as default
|
|
177
|
+
};
|