@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,398 @@
|
|
|
1
|
+
var E = (T, R, c) => new Promise((p, C) => {
|
|
2
|
+
var n = (r) => {
|
|
3
|
+
try {
|
|
4
|
+
d(c.next(r));
|
|
5
|
+
} catch (m) {
|
|
6
|
+
C(m);
|
|
7
|
+
}
|
|
8
|
+
}, w = (r) => {
|
|
9
|
+
try {
|
|
10
|
+
d(c.throw(r));
|
|
11
|
+
} catch (m) {
|
|
12
|
+
C(m);
|
|
13
|
+
}
|
|
14
|
+
}, d = (r) => r.done ? p(r.value) : Promise.resolve(r.value).then(n, w);
|
|
15
|
+
d((c = c.apply(T, R)).next());
|
|
16
|
+
});
|
|
17
|
+
import { ref as O, provide as xe, watch as H, resolveComponent as K, openBlock as i, createElementBlock as h, Fragment as B, createVNode as s, unref as e, createBlock as u, normalizeClass as Fe, withCtx as l, createTextVNode as f, createCommentVNode as y, renderList as De, toDisplayString as v, withDirectives as Le, vShow as Pe, createElementVNode as x, mergeProps as Ae, toHandlers as He, resolveDynamicComponent as Ke, normalizeProps as Je, guardReactiveProps as Ne } from "vue";
|
|
18
|
+
import { BasicTable as ze, TableAction as Ve } from "/@/components/Table";
|
|
19
|
+
import "/@/hooks/web/useMessage";
|
|
20
|
+
import $e from "./OnlineAutoModal-ffe19c3f.mjs";
|
|
21
|
+
import je from "./OnlineCustomModal-3939ce78.mjs";
|
|
22
|
+
import J from "./OnlineDetailModal-bfb1375f.mjs";
|
|
23
|
+
import qe from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
24
|
+
import { u as Qe, a as Ue } from "./useListButton-0f18bf6a.mjs";
|
|
25
|
+
import { u as We, a as Ge, O as Xe } from "./useExtendComponent-aa1cdfc8.mjs";
|
|
26
|
+
import Ye from "./OnlineQueryForm-0771c80f.mjs";
|
|
27
|
+
import { u as Ze } from "./useOnlinePopEvent-687070b7.mjs";
|
|
28
|
+
import { E as eo } from "./constant-754f1a9d.mjs";
|
|
29
|
+
import { cloneDeep as oo } from "lodash-es";
|
|
30
|
+
import "/@/components/Modal";
|
|
31
|
+
import "./OnlineForm-069f6092.mjs";
|
|
32
|
+
import "/@/components/Form/index";
|
|
33
|
+
import "/@/utils/http/axios";
|
|
34
|
+
import "/@/utils";
|
|
35
|
+
import "/@/components/Loading";
|
|
36
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
37
|
+
import "/@/utils/auth";
|
|
38
|
+
import "@ant-design/icons-vue";
|
|
39
|
+
import "/@/hooks/core/useContext";
|
|
40
|
+
import "/@/utils/mitt";
|
|
41
|
+
import "./useCustomHook-acb00837.mjs";
|
|
42
|
+
import "/@/utils/cache";
|
|
43
|
+
import "/@/utils/common/compUtils";
|
|
44
|
+
import "/@/store/modules/user";
|
|
45
|
+
import "./index-b70302f2.mjs";
|
|
46
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
47
|
+
import "vue-router";
|
|
48
|
+
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
49
|
+
import "./OnlineFormDetail-ad5735fb.mjs";
|
|
50
|
+
import "./DetailForm-2901d215.mjs";
|
|
51
|
+
import "/@/utils/propTypes";
|
|
52
|
+
import "/@/utils/dict";
|
|
53
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
54
|
+
import "/@/utils/dict/index";
|
|
55
|
+
import "/@/api/common/api";
|
|
56
|
+
import "/@/components/Form/src/utils/Area";
|
|
57
|
+
import "/@/components/Preview/index";
|
|
58
|
+
import "/@/components/Markdown";
|
|
59
|
+
import "./OnlineSubFormDetail-583d01eb.mjs";
|
|
60
|
+
import "/@/router";
|
|
61
|
+
import "/@/hooks/core/onMountedOrActivated";
|
|
62
|
+
import "ant-design-vue";
|
|
63
|
+
import "/@/hooks/system/useMethods";
|
|
64
|
+
import "/@/components/Form/src/componentMap";
|
|
65
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
66
|
+
import "/@/views/system/user/user.api";
|
|
67
|
+
import "/@/utils/desform/customExpression";
|
|
68
|
+
import "/@/store/modules/permission";
|
|
69
|
+
import "/@/hooks/system/useListPage";
|
|
70
|
+
import "./LinkTableListPiece-7f793b08.mjs";
|
|
71
|
+
import "./OnlineSelectCascade-a05c30f4.mjs";
|
|
72
|
+
import "./JModalTip-e1938b49.mjs";
|
|
73
|
+
import "@vueuse/core";
|
|
74
|
+
const to = {
|
|
75
|
+
key: 0,
|
|
76
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
77
|
+
}, no = {
|
|
78
|
+
key: 0,
|
|
79
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
80
|
+
}, io = ["src", "onClick"], lo = ["innerHTML"], ro = ["title"], ht = {
|
|
81
|
+
__name: "OnlCgformErpSubTable",
|
|
82
|
+
props: ["data", "mainTableSelectedRowRcord"],
|
|
83
|
+
emits: ["getSource"],
|
|
84
|
+
setup(T, { emit: R }) {
|
|
85
|
+
const c = T, p = O(!1), {
|
|
86
|
+
ID: C,
|
|
87
|
+
onlineTableContext: n,
|
|
88
|
+
onlineQueryFormOuter: w,
|
|
89
|
+
loading: d,
|
|
90
|
+
reload: r,
|
|
91
|
+
dataSource: m,
|
|
92
|
+
pagination: N,
|
|
93
|
+
handleSpecialConfig: z,
|
|
94
|
+
getColumnList: ao,
|
|
95
|
+
handleChangeInTable: V,
|
|
96
|
+
loadData: $,
|
|
97
|
+
onlineExtConfigJson: F,
|
|
98
|
+
handleFormConfig: j,
|
|
99
|
+
registerCustomModal: q,
|
|
100
|
+
tableReloading: Q
|
|
101
|
+
} = Qe({ code: c.data.code, themeTemplate: eo });
|
|
102
|
+
n.isErpSubTable = !0;
|
|
103
|
+
let { initCgEnhanceJs: U } = We(n);
|
|
104
|
+
const {
|
|
105
|
+
buttonSwitch: b,
|
|
106
|
+
cgLinkButtonList: co,
|
|
107
|
+
cgTopButtonList: I,
|
|
108
|
+
importUrl: W,
|
|
109
|
+
registerModal: G,
|
|
110
|
+
handleAdd: X,
|
|
111
|
+
handleEdit: so,
|
|
112
|
+
handleBatchDelete: Y,
|
|
113
|
+
registerImportModal: Z,
|
|
114
|
+
onImportExcel: ee,
|
|
115
|
+
onExportExcel: oe,
|
|
116
|
+
cgButtonJsHandler: te,
|
|
117
|
+
cgButtonActionHandler: ne,
|
|
118
|
+
cgButtonLinkHandler: uo,
|
|
119
|
+
handleSubmitFlow: po,
|
|
120
|
+
getDropDownActions: ie,
|
|
121
|
+
getActions: le,
|
|
122
|
+
initButtonList: re,
|
|
123
|
+
initButtonSwitch: ae,
|
|
124
|
+
registerDetailModal: ce,
|
|
125
|
+
registerBpmModal: mo
|
|
126
|
+
} = Ue(n, F), M = O(!1);
|
|
127
|
+
function se() {
|
|
128
|
+
return E(this, null, function* () {
|
|
129
|
+
try {
|
|
130
|
+
M.value = !0, yield oe();
|
|
131
|
+
} finally {
|
|
132
|
+
setTimeout(() => M.value = !1, 1500);
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
const {
|
|
137
|
+
columns: ue,
|
|
138
|
+
actionColumn: pe,
|
|
139
|
+
selectedKeys: de,
|
|
140
|
+
rowSelection: me,
|
|
141
|
+
enableScrollBar: ge,
|
|
142
|
+
tableScroll: fe,
|
|
143
|
+
downloadRowFile: ye,
|
|
144
|
+
getImgView: Ce,
|
|
145
|
+
getPcaText: D,
|
|
146
|
+
getFormatDate: he,
|
|
147
|
+
handleColumnResult: be,
|
|
148
|
+
hrefComponent: k,
|
|
149
|
+
viewOnlineCellImage: ke,
|
|
150
|
+
hrefMainTableId: Se,
|
|
151
|
+
registerOnlineHrefModal: _e,
|
|
152
|
+
registerPopModal: ve,
|
|
153
|
+
openPopModal: Te,
|
|
154
|
+
onlinePopModalRef: Re,
|
|
155
|
+
popTableId: L
|
|
156
|
+
} = Ge(n, F);
|
|
157
|
+
we(oo(c.data));
|
|
158
|
+
const P = O(null), S = c.data.foreignKeys;
|
|
159
|
+
let A;
|
|
160
|
+
if (S != null && S.length) {
|
|
161
|
+
const t = S[0], a = t.field;
|
|
162
|
+
A = t.key, n.foreignKeyField = a;
|
|
163
|
+
} else
|
|
164
|
+
n.foreignKeyField = null, n.foreignKeyValue = null;
|
|
165
|
+
xe("foreignkey", P), H(
|
|
166
|
+
() => c.mainTableSelectedRowRcord,
|
|
167
|
+
(t) => {
|
|
168
|
+
if (t) {
|
|
169
|
+
if (n.foreignKeyField) {
|
|
170
|
+
const a = t[A];
|
|
171
|
+
n.foreignKeyValue = a, P.value = { field: n.foreignKeyField, value: a };
|
|
172
|
+
}
|
|
173
|
+
p.value = !0, d.value = !0, $().finally(() => {
|
|
174
|
+
d.value = !1;
|
|
175
|
+
});
|
|
176
|
+
} else
|
|
177
|
+
p.value = !1, m.value = [];
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
immediate: !0
|
|
181
|
+
}
|
|
182
|
+
), H(
|
|
183
|
+
() => m.value,
|
|
184
|
+
() => {
|
|
185
|
+
R("getSource", c.data.currentTableName, m.value);
|
|
186
|
+
},
|
|
187
|
+
{ immediate: !0 }
|
|
188
|
+
);
|
|
189
|
+
function we(t) {
|
|
190
|
+
return E(this, null, function* () {
|
|
191
|
+
Ie(t), d.value = !1, n.execButtonEnhance("setup");
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
function Ie(t) {
|
|
195
|
+
let a = U(t.enhanceJs);
|
|
196
|
+
n.EnhanceJS = a, re(t.cgButtonList), ae(t.hideColumns), be(t), z(t);
|
|
197
|
+
}
|
|
198
|
+
function Me(t) {
|
|
199
|
+
n.queryParam = t, r();
|
|
200
|
+
}
|
|
201
|
+
function Ee(t) {
|
|
202
|
+
L.value = t.id;
|
|
203
|
+
let a = {
|
|
204
|
+
title: t.describe
|
|
205
|
+
};
|
|
206
|
+
t.record && t.record.id && (a.record = t.record, a.isUpdate = !0), Te(!0, a);
|
|
207
|
+
}
|
|
208
|
+
return Ze(Ee), (t, a) => {
|
|
209
|
+
const g = K("a-button"), Oe = K("a-modal");
|
|
210
|
+
return i(), h(B, null, [
|
|
211
|
+
s(Ye, {
|
|
212
|
+
ref_key: "onlineQueryFormOuter",
|
|
213
|
+
ref: w,
|
|
214
|
+
id: e(C),
|
|
215
|
+
onSearch: Me
|
|
216
|
+
}, null, 8, ["id"]),
|
|
217
|
+
e(Q) ? y("", !0) : (i(), u(e(ze), {
|
|
218
|
+
key: 0,
|
|
219
|
+
ref: "onlineTable",
|
|
220
|
+
rowKey: "jeecg_row_key",
|
|
221
|
+
canResize: !0,
|
|
222
|
+
bordered: !0,
|
|
223
|
+
showIndexColumn: !1,
|
|
224
|
+
loading: e(d),
|
|
225
|
+
columns: e(ue),
|
|
226
|
+
dataSource: e(m),
|
|
227
|
+
pagination: e(N),
|
|
228
|
+
rowSelection: e(me),
|
|
229
|
+
actionColumn: e(pe),
|
|
230
|
+
showTableSetting: !0,
|
|
231
|
+
clickToRowSelect: !1,
|
|
232
|
+
scroll: e(fe),
|
|
233
|
+
onTableRedo: e(r),
|
|
234
|
+
class: Fe({ "j-table-force-nowrap": e(ge) }),
|
|
235
|
+
onChange: e(V),
|
|
236
|
+
minHeight: 300
|
|
237
|
+
}, {
|
|
238
|
+
tableTitle: l(() => [
|
|
239
|
+
p.value && e(b).add ? (i(), u(g, {
|
|
240
|
+
key: 0,
|
|
241
|
+
preIcon: "ant-design:plus-outlined",
|
|
242
|
+
type: "primary",
|
|
243
|
+
onClick: e(X)
|
|
244
|
+
}, {
|
|
245
|
+
default: l(() => [
|
|
246
|
+
f("新增")
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}, 8, ["onClick"])) : y("", !0),
|
|
250
|
+
p.value && e(b).import ? (i(), u(g, {
|
|
251
|
+
key: 1,
|
|
252
|
+
preIcon: "ant-design:import-outlined",
|
|
253
|
+
type: "primary",
|
|
254
|
+
onClick: e(ee)
|
|
255
|
+
}, {
|
|
256
|
+
default: l(() => [
|
|
257
|
+
f("导入")
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
}, 8, ["onClick"])) : y("", !0),
|
|
261
|
+
p.value && e(b).export ? (i(), u(g, {
|
|
262
|
+
key: 2,
|
|
263
|
+
preIcon: "ant-design:export-outlined",
|
|
264
|
+
type: "primary",
|
|
265
|
+
loading: M.value,
|
|
266
|
+
onClick: se
|
|
267
|
+
}, {
|
|
268
|
+
default: l(() => [
|
|
269
|
+
f(" 导出")
|
|
270
|
+
]),
|
|
271
|
+
_: 1
|
|
272
|
+
}, 8, ["loading"])) : y("", !0),
|
|
273
|
+
p.value && e(I) && e(I).length > 0 ? (i(!0), h(B, { key: 3 }, De(e(I), (o, _) => (i(), h(B, null, [
|
|
274
|
+
o.optType == "js" ? (i(), u(g, {
|
|
275
|
+
key: "cgbtn" + _,
|
|
276
|
+
onClick: (Be) => e(te)(o.buttonCode),
|
|
277
|
+
type: "primary",
|
|
278
|
+
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
279
|
+
}, {
|
|
280
|
+
default: l(() => [
|
|
281
|
+
f(v(o.buttonName), 1)
|
|
282
|
+
]),
|
|
283
|
+
_: 2
|
|
284
|
+
}, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (i(), u(g, {
|
|
285
|
+
key: "cgbtn" + _,
|
|
286
|
+
onClick: (Be) => e(ne)(o.buttonCode),
|
|
287
|
+
type: "primary",
|
|
288
|
+
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
289
|
+
}, {
|
|
290
|
+
default: l(() => [
|
|
291
|
+
f(v(o.buttonName), 1)
|
|
292
|
+
]),
|
|
293
|
+
_: 2
|
|
294
|
+
}, 1032, ["onClick", "preIcon"])) : y("", !0)
|
|
295
|
+
], 64))), 256)) : y("", !0),
|
|
296
|
+
e(b).batch_delete ? Le((i(), u(g, {
|
|
297
|
+
key: 4,
|
|
298
|
+
preIcon: "ant-design:delete-outlined",
|
|
299
|
+
onClick: e(Y)
|
|
300
|
+
}, {
|
|
301
|
+
default: l(() => [
|
|
302
|
+
f(" 批量删除")
|
|
303
|
+
]),
|
|
304
|
+
_: 1
|
|
305
|
+
}, 8, ["onClick"])), [
|
|
306
|
+
[Pe, e(de).length > 0]
|
|
307
|
+
]) : y("", !0)
|
|
308
|
+
]),
|
|
309
|
+
fileSlot: l(({ text: o }) => [
|
|
310
|
+
o ? (i(), u(g, {
|
|
311
|
+
key: 1,
|
|
312
|
+
ghost: !0,
|
|
313
|
+
type: "primary",
|
|
314
|
+
preIcon: "ant-design:download",
|
|
315
|
+
size: "small",
|
|
316
|
+
onClick: (_) => e(ye)(o)
|
|
317
|
+
}, {
|
|
318
|
+
default: l(() => [
|
|
319
|
+
f(" 下载 ")
|
|
320
|
+
]),
|
|
321
|
+
_: 2
|
|
322
|
+
}, 1032, ["onClick"])) : (i(), h("span", to, "无文件"))
|
|
323
|
+
]),
|
|
324
|
+
imgSlot: l(({ text: o }) => [
|
|
325
|
+
o ? (i(), h("img", {
|
|
326
|
+
key: 1,
|
|
327
|
+
src: e(Ce)(o),
|
|
328
|
+
alt: "图片不存在",
|
|
329
|
+
class: "online-cell-image",
|
|
330
|
+
onClick: (_) => e(ke)(o)
|
|
331
|
+
}, null, 8, io)) : (i(), h("span", no, "无图片"))
|
|
332
|
+
]),
|
|
333
|
+
htmlSlot: l(({ text: o }) => [
|
|
334
|
+
x("div", { innerHTML: o }, null, 8, lo)
|
|
335
|
+
]),
|
|
336
|
+
pcaSlot: l(({ text: o }) => [
|
|
337
|
+
x("div", {
|
|
338
|
+
title: e(D)(o)
|
|
339
|
+
}, v(e(D)(o)), 9, ro)
|
|
340
|
+
]),
|
|
341
|
+
dateSlot: l(({ text: o }) => [
|
|
342
|
+
x("span", null, v(e(he)(o)), 1)
|
|
343
|
+
]),
|
|
344
|
+
action: l(({ record: o }) => [
|
|
345
|
+
s(e(Ve), {
|
|
346
|
+
actions: e(le)(o),
|
|
347
|
+
dropDownActions: e(ie)(o)
|
|
348
|
+
}, null, 8, ["actions", "dropDownActions"])
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
}, 8, ["loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
|
|
352
|
+
s($e, {
|
|
353
|
+
id: e(C),
|
|
354
|
+
onRegister: e(G),
|
|
355
|
+
onSuccess: e(r),
|
|
356
|
+
onFormConfig: e(j)
|
|
357
|
+
}, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
|
|
358
|
+
s(J, {
|
|
359
|
+
id: e(C),
|
|
360
|
+
onRegister: e(ce)
|
|
361
|
+
}, null, 8, ["id", "onRegister"]),
|
|
362
|
+
s(qe, {
|
|
363
|
+
onRegister: e(Z),
|
|
364
|
+
url: e(W)(),
|
|
365
|
+
onOk: e(r),
|
|
366
|
+
online: ""
|
|
367
|
+
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
368
|
+
s(Oe, Ae(e(k).model, He(e(k).on)), {
|
|
369
|
+
default: l(() => [
|
|
370
|
+
(i(), u(Ke(e(k).is), Je(Ne(e(k).params)), null, 16))
|
|
371
|
+
]),
|
|
372
|
+
_: 1
|
|
373
|
+
}, 16),
|
|
374
|
+
s(je, {
|
|
375
|
+
onRegister: e(q),
|
|
376
|
+
onSuccess: e(r)
|
|
377
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
378
|
+
s(J, {
|
|
379
|
+
id: e(Se),
|
|
380
|
+
onRegister: e(_e),
|
|
381
|
+
defaultFullscreen: !1
|
|
382
|
+
}, null, 8, ["id", "onRegister"]),
|
|
383
|
+
s(Xe, {
|
|
384
|
+
ref_key: "onlinePopModalRef",
|
|
385
|
+
ref: Re,
|
|
386
|
+
id: e(L),
|
|
387
|
+
onRegister: e(ve),
|
|
388
|
+
onSuccess: e(r),
|
|
389
|
+
request: "",
|
|
390
|
+
topTip: ""
|
|
391
|
+
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
392
|
+
], 64);
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
export {
|
|
397
|
+
ht as default
|
|
398
|
+
};
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
var M = (h, p, a) => new Promise((d, n) => {
|
|
2
|
+
var u = (l) => {
|
|
3
|
+
try {
|
|
4
|
+
g(a.next(l));
|
|
5
|
+
} catch (f) {
|
|
6
|
+
n(f);
|
|
7
|
+
}
|
|
8
|
+
}, s = (l) => {
|
|
9
|
+
try {
|
|
10
|
+
g(a.throw(l));
|
|
11
|
+
} catch (f) {
|
|
12
|
+
n(f);
|
|
13
|
+
}
|
|
14
|
+
}, g = (l) => l.done ? d(l.value) : Promise.resolve(l.value).then(u, s);
|
|
15
|
+
g((a = a.apply(h, p)).next());
|
|
16
|
+
});
|
|
17
|
+
import { watch as ne, resolveComponent as w, openBlock as i, createElementBlock as _, Fragment as le, unref as e, createBlock as C, normalizeClass as ie, withCtx as r, createTextVNode as re, createElementVNode as T, toDisplayString as y, createCommentVNode as ae, createVNode as c, mergeProps as se, toHandlers as me, resolveDynamicComponent as ce, normalizeProps as pe, guardReactiveProps as de } from "vue";
|
|
18
|
+
import { BasicTable as ue } from "/@/components/Table";
|
|
19
|
+
import { useMessage as ge } from "/@/hooks/web/useMessage";
|
|
20
|
+
import fe from "./OnlineCustomModal-3939ce78.mjs";
|
|
21
|
+
import k from "./OnlineDetailModal-bfb1375f.mjs";
|
|
22
|
+
import be from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
23
|
+
import { u as _e, a as he } from "./useListButton-0f18bf6a.mjs";
|
|
24
|
+
import { u as Ce, a as Te, O as Se } from "./useExtendComponent-aa1cdfc8.mjs";
|
|
25
|
+
import { u as Re } from "./useOnlinePopEvent-687070b7.mjs";
|
|
26
|
+
import { I as Ie } from "./constant-754f1a9d.mjs";
|
|
27
|
+
import "/@/components/Table/src/const";
|
|
28
|
+
import "/@/components/Modal";
|
|
29
|
+
import "/@/utils/http/axios";
|
|
30
|
+
import "./OnlineForm-069f6092.mjs";
|
|
31
|
+
import "/@/components/Form/index";
|
|
32
|
+
import "lodash-es";
|
|
33
|
+
import "/@/utils";
|
|
34
|
+
import "/@/components/Loading";
|
|
35
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
36
|
+
import "/@/utils/auth";
|
|
37
|
+
import "@ant-design/icons-vue";
|
|
38
|
+
import "/@/hooks/core/useContext";
|
|
39
|
+
import "/@/utils/mitt";
|
|
40
|
+
import "./useCustomHook-acb00837.mjs";
|
|
41
|
+
import "/@/utils/cache";
|
|
42
|
+
import "/@/utils/common/compUtils";
|
|
43
|
+
import "/@/store/modules/user";
|
|
44
|
+
import "./index-b70302f2.mjs";
|
|
45
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
46
|
+
import "vue-router";
|
|
47
|
+
import "./OnlineFormDetail-ad5735fb.mjs";
|
|
48
|
+
import "./DetailForm-2901d215.mjs";
|
|
49
|
+
import "/@/utils/propTypes";
|
|
50
|
+
import "/@/utils/dict";
|
|
51
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
52
|
+
import "/@/utils/dict/index";
|
|
53
|
+
import "/@/api/common/api";
|
|
54
|
+
import "/@/components/Form/src/utils/Area";
|
|
55
|
+
import "/@/components/Preview/index";
|
|
56
|
+
import "/@/components/Markdown";
|
|
57
|
+
import "./OnlineSubFormDetail-583d01eb.mjs";
|
|
58
|
+
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
59
|
+
import "/@/router";
|
|
60
|
+
import "/@/hooks/core/onMountedOrActivated";
|
|
61
|
+
import "ant-design-vue";
|
|
62
|
+
import "/@/hooks/system/useMethods";
|
|
63
|
+
import "/@/components/Form/src/componentMap";
|
|
64
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
65
|
+
import "/@/views/system/user/user.api";
|
|
66
|
+
import "/@/utils/desform/customExpression";
|
|
67
|
+
import "/@/store/modules/permission";
|
|
68
|
+
import "/@/hooks/system/useListPage";
|
|
69
|
+
import "./LinkTableListPiece-7f793b08.mjs";
|
|
70
|
+
import "./OnlineSelectCascade-a05c30f4.mjs";
|
|
71
|
+
import "./JModalTip-e1938b49.mjs";
|
|
72
|
+
import "@vueuse/core";
|
|
73
|
+
const Me = {
|
|
74
|
+
key: 0,
|
|
75
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
76
|
+
}, we = {
|
|
77
|
+
key: 0,
|
|
78
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
79
|
+
}, ye = ["src", "onClick"], ke = ["innerHTML"], ve = ["title"], Lo = {
|
|
80
|
+
__name: "OnlCgformInnerSubTable",
|
|
81
|
+
props: ["subTableId", "subTableName", "mTableSelectedRcordId"],
|
|
82
|
+
setup(h) {
|
|
83
|
+
const p = h, { createMessage: a } = ge(), {
|
|
84
|
+
ID: d,
|
|
85
|
+
onlineTableContext: n,
|
|
86
|
+
loading: u,
|
|
87
|
+
reload: s,
|
|
88
|
+
dataSource: g,
|
|
89
|
+
handleSpecialConfig: l,
|
|
90
|
+
getColumnList: f,
|
|
91
|
+
handleChangeInTable: v,
|
|
92
|
+
loadData: O,
|
|
93
|
+
onlineExtConfigJson: S,
|
|
94
|
+
registerCustomModal: B,
|
|
95
|
+
tableReloading: P
|
|
96
|
+
} = _e({ code: p.subTableId });
|
|
97
|
+
n.isInnerSubTable = !0, n.innerSubTableName = p.subTableName, n.mTableSelectedRcordId = p.mTableSelectedRcordId, d.value || a.warning("地址错误, 配置ID不存在!");
|
|
98
|
+
let { initCgEnhanceJs: E } = Ce(n);
|
|
99
|
+
const {
|
|
100
|
+
importUrl: x,
|
|
101
|
+
registerImportModal: L,
|
|
102
|
+
initButtonList: N,
|
|
103
|
+
initButtonSwitch: D,
|
|
104
|
+
registerDetailModal: z,
|
|
105
|
+
registerBpmModal: Oe
|
|
106
|
+
} = he(n, S), {
|
|
107
|
+
columns: J,
|
|
108
|
+
enableScrollBar: V,
|
|
109
|
+
tableScroll: F,
|
|
110
|
+
downloadRowFile: H,
|
|
111
|
+
getImgView: A,
|
|
112
|
+
getPcaText: R,
|
|
113
|
+
getFormatDate: $,
|
|
114
|
+
handleColumnResult: j,
|
|
115
|
+
hrefComponent: b,
|
|
116
|
+
viewOnlineCellImage: U,
|
|
117
|
+
hrefMainTableId: q,
|
|
118
|
+
registerOnlineHrefModal: K,
|
|
119
|
+
registerPopModal: G,
|
|
120
|
+
openPopModal: Q,
|
|
121
|
+
onlinePopModalRef: W,
|
|
122
|
+
popTableId: I
|
|
123
|
+
} = Te(n, S);
|
|
124
|
+
ne(
|
|
125
|
+
d,
|
|
126
|
+
() => {
|
|
127
|
+
X();
|
|
128
|
+
},
|
|
129
|
+
{ immediate: !0 }
|
|
130
|
+
);
|
|
131
|
+
function X() {
|
|
132
|
+
return M(this, null, function* () {
|
|
133
|
+
u.value = !0;
|
|
134
|
+
let o = yield f(Ie);
|
|
135
|
+
Y(o), yield O(), u.value = !1, n.execButtonEnhance("setup");
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
function Y(o) {
|
|
139
|
+
let m = E(o.enhanceJs);
|
|
140
|
+
n.EnhanceJS = m, N(o.cgButtonList), D(o.hideColumns), j(o), l(o);
|
|
141
|
+
}
|
|
142
|
+
function Z(o) {
|
|
143
|
+
I.value = o.id;
|
|
144
|
+
let m = {
|
|
145
|
+
title: o.describe
|
|
146
|
+
};
|
|
147
|
+
o.record && o.record.id && (m.record = o.record, m.isUpdate = !0), Q(!0, m);
|
|
148
|
+
}
|
|
149
|
+
return Re(Z), (o, m) => {
|
|
150
|
+
const ee = w("a-button"), oe = w("a-modal");
|
|
151
|
+
return i(), _(le, null, [
|
|
152
|
+
e(P) ? ae("", !0) : (i(), C(e(ue), {
|
|
153
|
+
key: 0,
|
|
154
|
+
ref: "onlineTable",
|
|
155
|
+
rowKey: "jeecg_row_key",
|
|
156
|
+
canResize: !0,
|
|
157
|
+
bordered: !0,
|
|
158
|
+
showIndexColumn: !1,
|
|
159
|
+
loading: e(u),
|
|
160
|
+
columns: e(J),
|
|
161
|
+
dataSource: e(g),
|
|
162
|
+
pagination: !1,
|
|
163
|
+
showActionColumn: !1,
|
|
164
|
+
showTableSetting: !1,
|
|
165
|
+
clickToRowSelect: !1,
|
|
166
|
+
scroll: e(F),
|
|
167
|
+
onTableRedo: e(s),
|
|
168
|
+
class: ie({ "j-table-force-nowrap": e(V) }),
|
|
169
|
+
onChange: e(v)
|
|
170
|
+
}, {
|
|
171
|
+
fileSlot: r(({ text: t }) => [
|
|
172
|
+
t ? (i(), C(ee, {
|
|
173
|
+
key: 1,
|
|
174
|
+
ghost: !0,
|
|
175
|
+
type: "primary",
|
|
176
|
+
preIcon: "ant-design:download",
|
|
177
|
+
size: "small",
|
|
178
|
+
onClick: (te) => e(H)(t)
|
|
179
|
+
}, {
|
|
180
|
+
default: r(() => [
|
|
181
|
+
re(" 下载 ")
|
|
182
|
+
]),
|
|
183
|
+
_: 2
|
|
184
|
+
}, 1032, ["onClick"])) : (i(), _("span", Me, "无文件"))
|
|
185
|
+
]),
|
|
186
|
+
imgSlot: r(({ text: t }) => [
|
|
187
|
+
t ? (i(), _("img", {
|
|
188
|
+
key: 1,
|
|
189
|
+
src: e(A)(t),
|
|
190
|
+
alt: "图片不存在",
|
|
191
|
+
class: "online-cell-image",
|
|
192
|
+
onClick: (te) => e(U)(t)
|
|
193
|
+
}, null, 8, ye)) : (i(), _("span", we, "无图片"))
|
|
194
|
+
]),
|
|
195
|
+
htmlSlot: r(({ text: t }) => [
|
|
196
|
+
T("div", { innerHTML: t }, null, 8, ke)
|
|
197
|
+
]),
|
|
198
|
+
pcaSlot: r(({ text: t }) => [
|
|
199
|
+
T("div", {
|
|
200
|
+
title: e(R)(t)
|
|
201
|
+
}, y(e(R)(t)), 9, ve)
|
|
202
|
+
]),
|
|
203
|
+
dateSlot: r(({ text: t }) => [
|
|
204
|
+
T("span", null, y(e($)(t)), 1)
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
}, 8, ["loading", "columns", "dataSource", "scroll", "onTableRedo", "class", "onChange"])),
|
|
208
|
+
c(k, {
|
|
209
|
+
id: e(d),
|
|
210
|
+
onRegister: e(z)
|
|
211
|
+
}, null, 8, ["id", "onRegister"]),
|
|
212
|
+
c(be, {
|
|
213
|
+
onRegister: e(L),
|
|
214
|
+
url: e(x)(),
|
|
215
|
+
onOk: e(s),
|
|
216
|
+
online: ""
|
|
217
|
+
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
218
|
+
c(oe, se(e(b).model, me(e(b).on)), {
|
|
219
|
+
default: r(() => [
|
|
220
|
+
(i(), C(ce(e(b).is), pe(de(e(b).params)), null, 16))
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
}, 16),
|
|
224
|
+
c(fe, {
|
|
225
|
+
onRegister: e(B),
|
|
226
|
+
onSuccess: e(s)
|
|
227
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
228
|
+
c(k, {
|
|
229
|
+
id: e(q),
|
|
230
|
+
onRegister: e(K),
|
|
231
|
+
defaultFullscreen: !1
|
|
232
|
+
}, null, 8, ["id", "onRegister"]),
|
|
233
|
+
c(Se, {
|
|
234
|
+
ref_key: "onlinePopModalRef",
|
|
235
|
+
ref: W,
|
|
236
|
+
id: e(I),
|
|
237
|
+
onRegister: e(G),
|
|
238
|
+
onSuccess: e(s),
|
|
239
|
+
request: "",
|
|
240
|
+
topTip: ""
|
|
241
|
+
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
242
|
+
], 64);
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
export {
|
|
247
|
+
Lo as default
|
|
248
|
+
};
|