@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,472 @@
|
|
|
1
|
+
var T = (e, f, r) => new Promise((I, m) => {
|
|
2
|
+
var b = (a) => {
|
|
3
|
+
try {
|
|
4
|
+
l(r.next(a));
|
|
5
|
+
} catch (c) {
|
|
6
|
+
m(c);
|
|
7
|
+
}
|
|
8
|
+
}, S = (a) => {
|
|
9
|
+
try {
|
|
10
|
+
l(r.throw(a));
|
|
11
|
+
} catch (c) {
|
|
12
|
+
m(c);
|
|
13
|
+
}
|
|
14
|
+
}, l = (a) => a.done ? I(a.value) : Promise.resolve(a.value).then(b, S);
|
|
15
|
+
l((r = r.apply(e, f)).next());
|
|
16
|
+
});
|
|
17
|
+
import { ref as Re, watch as Le, resolveComponent as s, openBlock as t, createElementBlock as C, createVNode as d, createBlock as u, normalizeClass as Oe, withCtx as i, createTextVNode as g, createCommentVNode as p, Fragment as _, renderList as ve, toDisplayString as M, withDirectives as Ee, vShow as Fe, createElementVNode as D, mergeProps as De, toHandlers as Ae, resolveDynamicComponent as Pe, normalizeProps as _e, guardReactiveProps as Qe } from "vue";
|
|
18
|
+
import { BasicTable as He, TableAction as Je } from "/@/components/Table";
|
|
19
|
+
import { useMessage as qe } from "/@/hooks/web/useMessage";
|
|
20
|
+
import $e from "./OnlineAutoModal-2a146238.mjs";
|
|
21
|
+
import Ne from "./OnlineCustomModal-456a85a6.mjs";
|
|
22
|
+
import ze from "./OnlineDetailModal-f967f080.mjs";
|
|
23
|
+
import Ve from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
24
|
+
import { u as Ke, a as Ue } from "./useListButton-cef1371a.mjs";
|
|
25
|
+
import { O as je, u as We, a as Ge, g as Xe } from "./useExtendComponent-48d37d9b.mjs";
|
|
26
|
+
import Ye from "./OnlineQueryForm-1c5949a7.mjs";
|
|
27
|
+
import Ze from "./SuperQuery-3821f984.mjs";
|
|
28
|
+
import { u as xe } from "./useOnlinePopEvent-e9a042f8.mjs";
|
|
29
|
+
import { N as eo } from "./constant-fe20103a.mjs";
|
|
30
|
+
import { _ as oo } from "./index-6a09a912.mjs";
|
|
31
|
+
import "/@/components/Modal";
|
|
32
|
+
import "./OnlineForm-630a22c2.mjs";
|
|
33
|
+
import "/@/components/Form/index";
|
|
34
|
+
import "/@/utils/http/axios";
|
|
35
|
+
import "lodash-es";
|
|
36
|
+
import "/@/utils";
|
|
37
|
+
import "/@/components/Loading";
|
|
38
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
39
|
+
import "/@/utils/auth";
|
|
40
|
+
import "@ant-design/icons-vue";
|
|
41
|
+
import "/@/hooks/core/useContext";
|
|
42
|
+
import "/@/utils/mitt";
|
|
43
|
+
import "/@/utils/cache";
|
|
44
|
+
import "/@/utils/common/compUtils";
|
|
45
|
+
import "/@/store/modules/user";
|
|
46
|
+
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
47
|
+
import "./OnlineFormDetail-1b216792.mjs";
|
|
48
|
+
import "./DetailForm-e4538e7a.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 "./OnlineSubFormDetail-0aa4966c.mjs";
|
|
57
|
+
import "vue-router";
|
|
58
|
+
import "/@/router";
|
|
59
|
+
import "/@/hooks/core/onMountedOrActivated";
|
|
60
|
+
import "ant-design-vue";
|
|
61
|
+
import "/@/hooks/system/useMethods";
|
|
62
|
+
import "/@/components/Form/src/componentMap";
|
|
63
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
64
|
+
import "/@/views/system/user/user.api";
|
|
65
|
+
import "/@/utils/desform/customExpression";
|
|
66
|
+
import "/@/store/modules/permission";
|
|
67
|
+
import "/@/hooks/system/useListPage";
|
|
68
|
+
import "./LinkTableListPiece-34266919.mjs";
|
|
69
|
+
import "./OnlineSelectCascade-c7baf52b.mjs";
|
|
70
|
+
import "./JModalTip-abe1515a.mjs";
|
|
71
|
+
import "@vueuse/core";
|
|
72
|
+
import "./SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs";
|
|
73
|
+
import "/@/utils/is";
|
|
74
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
75
|
+
const no = {
|
|
76
|
+
name: "OnlineAutoList",
|
|
77
|
+
components: {
|
|
78
|
+
BasicTable: He,
|
|
79
|
+
TableAction: Je,
|
|
80
|
+
OnlineAutoModal: $e,
|
|
81
|
+
JImportModal: Ve,
|
|
82
|
+
OnlineQueryForm: Ye,
|
|
83
|
+
OnlineSuperQuery: Ze,
|
|
84
|
+
OnlineCustomModal: Ne,
|
|
85
|
+
OnlineDetailModal: ze,
|
|
86
|
+
OnlinePopModal: je
|
|
87
|
+
},
|
|
88
|
+
setup() {
|
|
89
|
+
const { createMessage: e } = qe(), {
|
|
90
|
+
ID: f,
|
|
91
|
+
onlineTableContext: r,
|
|
92
|
+
onlineQueryFormOuter: I,
|
|
93
|
+
loading: m,
|
|
94
|
+
reload: b,
|
|
95
|
+
dataSource: S,
|
|
96
|
+
pagination: l,
|
|
97
|
+
handleSpecialConfig: a,
|
|
98
|
+
getColumnList: c,
|
|
99
|
+
handleChangeInTable: B,
|
|
100
|
+
loadData: R,
|
|
101
|
+
superQueryButtonRef: h,
|
|
102
|
+
superQueryStatus: L,
|
|
103
|
+
handleSuperQuery: O,
|
|
104
|
+
onlineExtConfigJson: w,
|
|
105
|
+
handleFormConfig: v,
|
|
106
|
+
registerCustomModal: o,
|
|
107
|
+
tableReloading: y
|
|
108
|
+
} = Ke();
|
|
109
|
+
if (!f.value) {
|
|
110
|
+
e.warning("地址错误, 配置ID不存在!");
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
let { initCgEnhanceJs: E } = We(r);
|
|
114
|
+
const {
|
|
115
|
+
buttonSwitch: Q,
|
|
116
|
+
cgLinkButtonList: H,
|
|
117
|
+
cgTopButtonList: J,
|
|
118
|
+
importUrl: q,
|
|
119
|
+
registerModal: $,
|
|
120
|
+
handleAdd: N,
|
|
121
|
+
handleEdit: z,
|
|
122
|
+
handleBatchDelete: V,
|
|
123
|
+
registerImportModal: K,
|
|
124
|
+
onImportExcel: U,
|
|
125
|
+
onExportExcel: A,
|
|
126
|
+
cgButtonJsHandler: j,
|
|
127
|
+
cgButtonActionHandler: W,
|
|
128
|
+
cgButtonLinkHandler: G,
|
|
129
|
+
handleSubmitFlow: X,
|
|
130
|
+
getDropDownActions: Y,
|
|
131
|
+
getActions: Z,
|
|
132
|
+
initButtonList: x,
|
|
133
|
+
initButtonSwitch: ee,
|
|
134
|
+
registerDetailModal: oe,
|
|
135
|
+
registerBpmModal: ne
|
|
136
|
+
} = Ue(r, w), F = Re(!1);
|
|
137
|
+
function te() {
|
|
138
|
+
return T(this, null, function* () {
|
|
139
|
+
try {
|
|
140
|
+
F.value = !0, yield A();
|
|
141
|
+
} finally {
|
|
142
|
+
setTimeout(() => F.value = !1, 1500);
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
const {
|
|
147
|
+
columns: ie,
|
|
148
|
+
actionColumn: le,
|
|
149
|
+
selectedKeys: re,
|
|
150
|
+
rowSelection: ae,
|
|
151
|
+
enableScrollBar: se,
|
|
152
|
+
tableScroll: ue,
|
|
153
|
+
downloadRowFile: de,
|
|
154
|
+
getImgView: pe,
|
|
155
|
+
getPcaText: me,
|
|
156
|
+
getFormatDate: ce,
|
|
157
|
+
handleColumnResult: ge,
|
|
158
|
+
hrefComponent: fe,
|
|
159
|
+
viewOnlineCellImage: he,
|
|
160
|
+
hrefMainTableId: ye,
|
|
161
|
+
registerOnlineHrefModal: Ce,
|
|
162
|
+
registerPopModal: be,
|
|
163
|
+
openPopModal: Se,
|
|
164
|
+
onlinePopModalRef: we,
|
|
165
|
+
popTableId: P
|
|
166
|
+
} = Ge(r, w);
|
|
167
|
+
Le(
|
|
168
|
+
f,
|
|
169
|
+
() => {
|
|
170
|
+
console.log("watched id is change..."), ke();
|
|
171
|
+
},
|
|
172
|
+
{ immediate: !0 }
|
|
173
|
+
);
|
|
174
|
+
function ke() {
|
|
175
|
+
return T(this, null, function* () {
|
|
176
|
+
m.value = !0;
|
|
177
|
+
let n = yield c(eo);
|
|
178
|
+
Ie(n), yield R(), m.value = !1, r.execButtonEnhance("setup");
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
function Ie(n) {
|
|
182
|
+
let k = E(n.enhanceJs);
|
|
183
|
+
r.EnhanceJS = k, x(n.cgButtonList), ee(n.hideColumns), ge(n), a(n);
|
|
184
|
+
}
|
|
185
|
+
function Te(n) {
|
|
186
|
+
r.queryParam = n, b();
|
|
187
|
+
}
|
|
188
|
+
function Me(n) {
|
|
189
|
+
return T(this, null, function* () {
|
|
190
|
+
console.log("onQueryFormLoaded", n), yield Xe(h), h.value.init(n);
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
function Be(n) {
|
|
194
|
+
console.log("openOnlinePopModal", n), P.value = n.id;
|
|
195
|
+
let k = {
|
|
196
|
+
title: n.describe
|
|
197
|
+
};
|
|
198
|
+
n.record && n.record.id && (k.record = n.record, k.isUpdate = !0), Se(!0, k);
|
|
199
|
+
}
|
|
200
|
+
return xe(Be), {
|
|
201
|
+
ID: f,
|
|
202
|
+
// 查询区域
|
|
203
|
+
onlineQueryFormOuter: I,
|
|
204
|
+
queryWithCondition: Te,
|
|
205
|
+
onQueryFormLoaded: Me,
|
|
206
|
+
reload: b,
|
|
207
|
+
//高级查询
|
|
208
|
+
superQueryButtonRef: h,
|
|
209
|
+
superQueryStatus: L,
|
|
210
|
+
handleSuperQuery: O,
|
|
211
|
+
// table区域
|
|
212
|
+
loading: m,
|
|
213
|
+
columns: ie,
|
|
214
|
+
dataSource: S,
|
|
215
|
+
pagination: l,
|
|
216
|
+
actionColumn: le,
|
|
217
|
+
rowSelection: ae,
|
|
218
|
+
selectedKeys: re,
|
|
219
|
+
tableScroll: ue,
|
|
220
|
+
enableScrollBar: se,
|
|
221
|
+
handleChangeInTable: B,
|
|
222
|
+
//按钮
|
|
223
|
+
buttonSwitch: Q,
|
|
224
|
+
handleAdd: N,
|
|
225
|
+
handleEdit: z,
|
|
226
|
+
onImportExcel: U,
|
|
227
|
+
onExportExcel: A,
|
|
228
|
+
exportLoading: F,
|
|
229
|
+
onExportExcelOverride: te,
|
|
230
|
+
cgTopButtonList: J,
|
|
231
|
+
cgLinkButtonList: H,
|
|
232
|
+
cgButtonJsHandler: j,
|
|
233
|
+
cgButtonActionHandler: W,
|
|
234
|
+
cgButtonLinkHandler: G,
|
|
235
|
+
handleBatchDelete: V,
|
|
236
|
+
// table-slot
|
|
237
|
+
downloadRowFile: de,
|
|
238
|
+
getImgView: pe,
|
|
239
|
+
getPcaText: me,
|
|
240
|
+
getFormatDate: ce,
|
|
241
|
+
// 操作列
|
|
242
|
+
getActions: Z,
|
|
243
|
+
getDropDownActions: Y,
|
|
244
|
+
// 弹窗
|
|
245
|
+
registerModal: $,
|
|
246
|
+
registerCustomModal: o,
|
|
247
|
+
registerImportModal: K,
|
|
248
|
+
registerDetailModal: oe,
|
|
249
|
+
importUrl: q,
|
|
250
|
+
handleFormConfig: v,
|
|
251
|
+
onlinePopModalRef: we,
|
|
252
|
+
//其他
|
|
253
|
+
tableReloading: y,
|
|
254
|
+
handleSubmitFlow: X,
|
|
255
|
+
hrefComponent: fe,
|
|
256
|
+
viewOnlineCellImage: he,
|
|
257
|
+
hrefMainTableId: ye,
|
|
258
|
+
onlineExtConfigJson: w,
|
|
259
|
+
registerOnlineHrefModal: Ce,
|
|
260
|
+
registerPopModal: be,
|
|
261
|
+
popTableId: P,
|
|
262
|
+
registerBpmModal: ne
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
// 1引入了loadsh console.log(that.simpleDateFormat(new Date().getTime(),'yyyy-MM-dd'));
|
|
266
|
+
// 2. value的问题
|
|
267
|
+
// 3. 变量位置改变后需要 重写api
|
|
268
|
+
// 1添加按钮的时候 预留出样式对象 然后js增强中设置样式对象
|
|
269
|
+
// 2直接设置css字符串 然后通过js document 往head里面增加css片段 全局生效
|
|
270
|
+
};
|
|
271
|
+
const to = { class: "p-2" }, io = {
|
|
272
|
+
key: 0,
|
|
273
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
274
|
+
}, lo = {
|
|
275
|
+
key: 0,
|
|
276
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
277
|
+
}, ro = ["src", "onClick"], ao = ["innerHTML"], so = ["title"];
|
|
278
|
+
function uo(e, f, r, I, m, b) {
|
|
279
|
+
const S = s("online-query-form"), l = s("a-button"), a = s("online-super-query"), c = s("TableAction"), B = s("BasicTable"), R = s("OnlineAutoModal"), h = s("online-detail-modal"), L = s("JImportModal"), O = s("a-modal"), w = s("online-custom-modal"), v = s("online-pop-modal");
|
|
280
|
+
return t(), C("div", to, [
|
|
281
|
+
d(S, {
|
|
282
|
+
ref: "onlineQueryFormOuter",
|
|
283
|
+
id: e.ID,
|
|
284
|
+
onSearch: e.queryWithCondition,
|
|
285
|
+
onLoaded: e.onQueryFormLoaded
|
|
286
|
+
}, null, 8, ["id", "onSearch", "onLoaded"]),
|
|
287
|
+
e.tableReloading ? p("", !0) : (t(), u(B, {
|
|
288
|
+
key: 0,
|
|
289
|
+
ref: "onlineTable",
|
|
290
|
+
rowKey: "jeecg_row_key",
|
|
291
|
+
canResize: !0,
|
|
292
|
+
bordered: !0,
|
|
293
|
+
showIndexColumn: !1,
|
|
294
|
+
loading: e.loading,
|
|
295
|
+
columns: e.columns,
|
|
296
|
+
dataSource: e.dataSource,
|
|
297
|
+
pagination: e.pagination,
|
|
298
|
+
rowSelection: e.rowSelection,
|
|
299
|
+
actionColumn: e.actionColumn,
|
|
300
|
+
showTableSetting: !0,
|
|
301
|
+
clickToRowSelect: !1,
|
|
302
|
+
scroll: e.tableScroll,
|
|
303
|
+
onTableRedo: e.reload,
|
|
304
|
+
class: Oe({ "j-table-force-nowrap": e.enableScrollBar }),
|
|
305
|
+
onChange: e.handleChangeInTable
|
|
306
|
+
}, {
|
|
307
|
+
tableTitle: i(() => [
|
|
308
|
+
e.buttonSwitch.add ? (t(), u(l, {
|
|
309
|
+
key: 0,
|
|
310
|
+
preIcon: "ant-design:plus-outlined",
|
|
311
|
+
type: "primary",
|
|
312
|
+
onClick: e.handleAdd
|
|
313
|
+
}, {
|
|
314
|
+
default: i(() => [
|
|
315
|
+
g("新增")
|
|
316
|
+
]),
|
|
317
|
+
_: 1
|
|
318
|
+
}, 8, ["onClick"])) : p("", !0),
|
|
319
|
+
e.buttonSwitch.import ? (t(), u(l, {
|
|
320
|
+
key: 1,
|
|
321
|
+
preIcon: "ant-design:import-outlined",
|
|
322
|
+
type: "primary",
|
|
323
|
+
onClick: e.onImportExcel
|
|
324
|
+
}, {
|
|
325
|
+
default: i(() => [
|
|
326
|
+
g("导入")
|
|
327
|
+
]),
|
|
328
|
+
_: 1
|
|
329
|
+
}, 8, ["onClick"])) : p("", !0),
|
|
330
|
+
e.buttonSwitch.export ? (t(), u(l, {
|
|
331
|
+
key: 2,
|
|
332
|
+
preIcon: "ant-design:export-outlined",
|
|
333
|
+
type: "primary",
|
|
334
|
+
loading: e.exportLoading,
|
|
335
|
+
onClick: e.onExportExcelOverride
|
|
336
|
+
}, {
|
|
337
|
+
default: i(() => [
|
|
338
|
+
g(" 导出")
|
|
339
|
+
]),
|
|
340
|
+
_: 1
|
|
341
|
+
}, 8, ["loading", "onClick"])) : p("", !0),
|
|
342
|
+
e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (t(!0), C(_, { key: 3 }, ve(e.cgTopButtonList, (o, y) => (t(), C(_, null, [
|
|
343
|
+
o.optType == "js" ? (t(), u(l, {
|
|
344
|
+
key: "cgbtn" + y,
|
|
345
|
+
onClick: (E) => e.cgButtonJsHandler(o.buttonCode),
|
|
346
|
+
type: "primary",
|
|
347
|
+
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
348
|
+
}, {
|
|
349
|
+
default: i(() => [
|
|
350
|
+
g(M(o.buttonName), 1)
|
|
351
|
+
]),
|
|
352
|
+
_: 2
|
|
353
|
+
}, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (t(), u(l, {
|
|
354
|
+
key: "cgbtn" + y,
|
|
355
|
+
onClick: (E) => e.cgButtonActionHandler(o.buttonCode),
|
|
356
|
+
type: "primary",
|
|
357
|
+
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
358
|
+
}, {
|
|
359
|
+
default: i(() => [
|
|
360
|
+
g(M(o.buttonName), 1)
|
|
361
|
+
]),
|
|
362
|
+
_: 2
|
|
363
|
+
}, 1032, ["onClick", "preIcon"])) : p("", !0)
|
|
364
|
+
], 64))), 256)) : p("", !0),
|
|
365
|
+
e.buttonSwitch.batch_delete ? Ee((t(), u(l, {
|
|
366
|
+
key: 4,
|
|
367
|
+
preIcon: "ant-design:delete-outlined",
|
|
368
|
+
onClick: e.handleBatchDelete
|
|
369
|
+
}, {
|
|
370
|
+
default: i(() => [
|
|
371
|
+
g(" 批量删除")
|
|
372
|
+
]),
|
|
373
|
+
_: 1
|
|
374
|
+
}, 8, ["onClick"])), [
|
|
375
|
+
[Fe, e.selectedKeys.length > 0]
|
|
376
|
+
]) : p("", !0),
|
|
377
|
+
e.buttonSwitch.super_query ? (t(), u(a, {
|
|
378
|
+
key: 5,
|
|
379
|
+
ref: "superQueryButtonRef",
|
|
380
|
+
online: "",
|
|
381
|
+
status: e.superQueryStatus,
|
|
382
|
+
onSearch: e.handleSuperQuery
|
|
383
|
+
}, null, 8, ["status", "onSearch"])) : p("", !0)
|
|
384
|
+
]),
|
|
385
|
+
fileSlot: i(({ text: o }) => [
|
|
386
|
+
o ? (t(), u(l, {
|
|
387
|
+
key: 1,
|
|
388
|
+
ghost: !0,
|
|
389
|
+
type: "primary",
|
|
390
|
+
preIcon: "ant-design:download",
|
|
391
|
+
size: "small",
|
|
392
|
+
onClick: (y) => e.downloadRowFile(o)
|
|
393
|
+
}, {
|
|
394
|
+
default: i(() => [
|
|
395
|
+
g(" 下载 ")
|
|
396
|
+
]),
|
|
397
|
+
_: 2
|
|
398
|
+
}, 1032, ["onClick"])) : (t(), C("span", io, "无文件"))
|
|
399
|
+
]),
|
|
400
|
+
imgSlot: i(({ text: o }) => [
|
|
401
|
+
o ? (t(), C("img", {
|
|
402
|
+
key: 1,
|
|
403
|
+
src: e.getImgView(o),
|
|
404
|
+
alt: "图片不存在",
|
|
405
|
+
class: "online-cell-image",
|
|
406
|
+
onClick: (y) => e.viewOnlineCellImage(o)
|
|
407
|
+
}, null, 8, ro)) : (t(), C("span", lo, "无图片"))
|
|
408
|
+
]),
|
|
409
|
+
htmlSlot: i(({ text: o }) => [
|
|
410
|
+
D("div", { innerHTML: o }, null, 8, ao)
|
|
411
|
+
]),
|
|
412
|
+
pcaSlot: i(({ text: o }) => [
|
|
413
|
+
D("div", {
|
|
414
|
+
title: e.getPcaText(o)
|
|
415
|
+
}, M(e.getPcaText(o)), 9, so)
|
|
416
|
+
]),
|
|
417
|
+
dateSlot: i(({ text: o }) => [
|
|
418
|
+
D("span", null, M(e.getFormatDate(o)), 1)
|
|
419
|
+
]),
|
|
420
|
+
action: i(({ record: o }) => [
|
|
421
|
+
d(c, {
|
|
422
|
+
actions: e.getActions(o),
|
|
423
|
+
dropDownActions: e.getDropDownActions(o)
|
|
424
|
+
}, null, 8, ["actions", "dropDownActions"])
|
|
425
|
+
]),
|
|
426
|
+
_: 1
|
|
427
|
+
}, 8, ["loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
|
|
428
|
+
d(R, {
|
|
429
|
+
id: e.ID,
|
|
430
|
+
onRegister: e.registerModal,
|
|
431
|
+
onSuccess: e.reload,
|
|
432
|
+
onFormConfig: e.handleFormConfig
|
|
433
|
+
}, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
|
|
434
|
+
d(h, {
|
|
435
|
+
id: e.ID,
|
|
436
|
+
onRegister: e.registerDetailModal
|
|
437
|
+
}, null, 8, ["id", "onRegister"]),
|
|
438
|
+
d(L, {
|
|
439
|
+
onRegister: e.registerImportModal,
|
|
440
|
+
url: e.importUrl(),
|
|
441
|
+
onOk: e.reload,
|
|
442
|
+
online: ""
|
|
443
|
+
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
444
|
+
d(O, De(e.hrefComponent.model, Ae(e.hrefComponent.on)), {
|
|
445
|
+
default: i(() => [
|
|
446
|
+
(t(), u(Pe(e.hrefComponent.is), _e(Qe(e.hrefComponent.params)), null, 16))
|
|
447
|
+
]),
|
|
448
|
+
_: 1
|
|
449
|
+
}, 16),
|
|
450
|
+
d(w, {
|
|
451
|
+
onRegister: e.registerCustomModal,
|
|
452
|
+
onSuccess: e.reload
|
|
453
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
454
|
+
d(h, {
|
|
455
|
+
id: e.hrefMainTableId,
|
|
456
|
+
onRegister: e.registerOnlineHrefModal,
|
|
457
|
+
defaultFullscreen: !1
|
|
458
|
+
}, null, 8, ["id", "onRegister"]),
|
|
459
|
+
d(v, {
|
|
460
|
+
ref: "onlinePopModalRef",
|
|
461
|
+
id: e.popTableId,
|
|
462
|
+
onRegister: e.registerPopModal,
|
|
463
|
+
onSuccess: e.reload,
|
|
464
|
+
request: "",
|
|
465
|
+
topTip: ""
|
|
466
|
+
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
467
|
+
]);
|
|
468
|
+
}
|
|
469
|
+
const Cn = /* @__PURE__ */ oo(no, [["render", uo]]);
|
|
470
|
+
export {
|
|
471
|
+
Cn as default
|
|
472
|
+
};
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
var k = (e, l, t) => new Promise((p, d) => {
|
|
2
|
+
var s = (o) => {
|
|
3
|
+
try {
|
|
4
|
+
i(t.next(o));
|
|
5
|
+
} catch (r) {
|
|
6
|
+
d(r);
|
|
7
|
+
}
|
|
8
|
+
}, m = (o) => {
|
|
9
|
+
try {
|
|
10
|
+
i(t.throw(o));
|
|
11
|
+
} catch (r) {
|
|
12
|
+
d(r);
|
|
13
|
+
}
|
|
14
|
+
}, i = (o) => o.done ? p(o.value) : Promise.resolve(o.value).then(s, m);
|
|
15
|
+
i((t = t.apply(e, l)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as D, ref as P, watch as V, resolveComponent as u, openBlock as c, createBlock as f, mergeProps as W, withCtx as a, createElementBlock as j, Fragment as _, renderList as q, createTextVNode as C, toDisplayString as z, createCommentVNode as G, createVNode as h } from "vue";
|
|
18
|
+
import { BasicModal as H } from "/@/components/Modal";
|
|
19
|
+
import { O as J } from "./OnlineForm-630a22c2.mjs";
|
|
20
|
+
import { e as K } from "./useExtendComponent-48d37d9b.mjs";
|
|
21
|
+
import Q from "/@/components/jeecg/comment/CommentPanel.vue";
|
|
22
|
+
import { _ as U } from "./index-6a09a912.mjs";
|
|
23
|
+
import "/@/hooks/web/useMessage";
|
|
24
|
+
import "/@/components/Form/index";
|
|
25
|
+
import "/@/utils/http/axios";
|
|
26
|
+
import "lodash-es";
|
|
27
|
+
import "/@/utils";
|
|
28
|
+
import "/@/components/Loading";
|
|
29
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
30
|
+
import "/@/utils/auth";
|
|
31
|
+
import "@ant-design/icons-vue";
|
|
32
|
+
import "/@/hooks/core/useContext";
|
|
33
|
+
import "/@/utils/mitt";
|
|
34
|
+
import "/@/utils/cache";
|
|
35
|
+
import "/@/utils/common/compUtils";
|
|
36
|
+
import "/@/store/modules/user";
|
|
37
|
+
import "./constant-fe20103a.mjs";
|
|
38
|
+
import "/@/components/Form/src/componentMap";
|
|
39
|
+
import "/@/utils/propTypes";
|
|
40
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
41
|
+
import "/@/views/system/user/user.api";
|
|
42
|
+
import "/@/utils/desform/customExpression";
|
|
43
|
+
import "/@/store/modules/permission";
|
|
44
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
45
|
+
import "/@/components/Table";
|
|
46
|
+
import "/@/hooks/system/useListPage";
|
|
47
|
+
import "vue-router";
|
|
48
|
+
import "/@/components/Form/src/utils/Area";
|
|
49
|
+
import "/@/components/Preview/index";
|
|
50
|
+
import "./LinkTableListPiece-34266919.mjs";
|
|
51
|
+
import "./OnlineSelectCascade-c7baf52b.mjs";
|
|
52
|
+
import "./JModalTip-abe1515a.mjs";
|
|
53
|
+
import "ant-design-vue";
|
|
54
|
+
import "@vueuse/core";
|
|
55
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
56
|
+
const X = D({
|
|
57
|
+
name: "OnlineAutoModal",
|
|
58
|
+
props: {
|
|
59
|
+
id: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: ""
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
components: {
|
|
65
|
+
BasicModal: H,
|
|
66
|
+
OnlineForm: J,
|
|
67
|
+
CommentPanel: Q
|
|
68
|
+
},
|
|
69
|
+
emits: ["success", "register", "formConfig"],
|
|
70
|
+
setup(e, { emit: l }) {
|
|
71
|
+
console.log("进入表单弹框》》》》modal");
|
|
72
|
+
const t = P();
|
|
73
|
+
function p() {
|
|
74
|
+
t.value && t.value.reload();
|
|
75
|
+
}
|
|
76
|
+
const {
|
|
77
|
+
title: d,
|
|
78
|
+
modalWidth: s,
|
|
79
|
+
registerModal: m,
|
|
80
|
+
closeModal: i,
|
|
81
|
+
cgButtonList: o,
|
|
82
|
+
handleCgButtonClick: r,
|
|
83
|
+
disableSubmit: n,
|
|
84
|
+
handleSubmit: b,
|
|
85
|
+
submitLoading: S,
|
|
86
|
+
handleCancel: F,
|
|
87
|
+
handleFormConfig: T,
|
|
88
|
+
onlineFormCompRef: y,
|
|
89
|
+
formTemplate: B,
|
|
90
|
+
isTreeForm: N,
|
|
91
|
+
pidFieldName: I,
|
|
92
|
+
renderSuccess: M,
|
|
93
|
+
formRendered: R,
|
|
94
|
+
tableName: v,
|
|
95
|
+
formDataId: w,
|
|
96
|
+
enableComment: O,
|
|
97
|
+
onCloseEvent: g,
|
|
98
|
+
themeTemplate: $
|
|
99
|
+
} = K(!1, { emit: l }, p);
|
|
100
|
+
function E(A) {
|
|
101
|
+
l("success", A), i(), g();
|
|
102
|
+
}
|
|
103
|
+
V(() => e.id, L, { immediate: !0 });
|
|
104
|
+
function L() {
|
|
105
|
+
return k(this, null, function* () {
|
|
106
|
+
R.value = !1, e.id && (console.log("重新渲染表单》》》》modal"), yield T(e.id, {}));
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
title: d,
|
|
111
|
+
onlineFormCompRef: y,
|
|
112
|
+
renderSuccess: M,
|
|
113
|
+
registerModal: m,
|
|
114
|
+
handleSubmit: b,
|
|
115
|
+
handleSuccess: E,
|
|
116
|
+
handleCancel: F,
|
|
117
|
+
modalWidth: s,
|
|
118
|
+
formTemplate: B,
|
|
119
|
+
disableSubmit: n,
|
|
120
|
+
cgButtonList: o,
|
|
121
|
+
handleCgButtonClick: r,
|
|
122
|
+
isTreeForm: N,
|
|
123
|
+
pidFieldName: I,
|
|
124
|
+
submitLoading: S,
|
|
125
|
+
tableName: v,
|
|
126
|
+
formDataId: w,
|
|
127
|
+
enableComment: O,
|
|
128
|
+
commentPanelRef: t,
|
|
129
|
+
onCloseEvent: g,
|
|
130
|
+
themeTemplate: $
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
function Y(e, l, t, p, d, s) {
|
|
135
|
+
const m = u("a-button"), i = u("online-form"), o = u("comment-panel"), r = u("BasicModal");
|
|
136
|
+
return c(), f(r, W({
|
|
137
|
+
title: e.title,
|
|
138
|
+
onCancel: e.onCloseEvent,
|
|
139
|
+
enableComment: e.enableComment,
|
|
140
|
+
width: e.modalWidth
|
|
141
|
+
}, e.$attrs, {
|
|
142
|
+
height: 600,
|
|
143
|
+
onRegister: e.registerModal,
|
|
144
|
+
wrapClassName: "jeecg-online-modal",
|
|
145
|
+
onOk: e.handleSubmit
|
|
146
|
+
}), {
|
|
147
|
+
footer: a(() => [
|
|
148
|
+
(c(!0), j(_, null, q(e.cgButtonList, (n) => (c(), f(m, {
|
|
149
|
+
key: n.id,
|
|
150
|
+
type: "primary",
|
|
151
|
+
onClick: (b) => e.handleCgButtonClick(n.optType, n.buttonCode),
|
|
152
|
+
preIcon: n.buttonIcon ? "ant-design:" + n.buttonIcon : ""
|
|
153
|
+
}, {
|
|
154
|
+
default: a(() => [
|
|
155
|
+
C(z(n.buttonName), 1)
|
|
156
|
+
]),
|
|
157
|
+
_: 2
|
|
158
|
+
}, 1032, ["onClick", "preIcon"]))), 128)),
|
|
159
|
+
e.disableSubmit ? G("", !0) : (c(), f(m, {
|
|
160
|
+
key: "submit",
|
|
161
|
+
type: "primary",
|
|
162
|
+
onClick: e.handleSubmit,
|
|
163
|
+
loading: e.submitLoading
|
|
164
|
+
}, {
|
|
165
|
+
default: a(() => [
|
|
166
|
+
C("确定")
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
}, 8, ["onClick", "loading"])),
|
|
170
|
+
h(m, {
|
|
171
|
+
key: "back",
|
|
172
|
+
onClick: e.handleCancel
|
|
173
|
+
}, {
|
|
174
|
+
default: a(() => [
|
|
175
|
+
C("关闭")
|
|
176
|
+
]),
|
|
177
|
+
_: 1
|
|
178
|
+
}, 8, ["onClick"])
|
|
179
|
+
]),
|
|
180
|
+
comment: a(() => [
|
|
181
|
+
h(o, {
|
|
182
|
+
ref: "commentPanelRef",
|
|
183
|
+
tableName: e.tableName,
|
|
184
|
+
dataId: e.formDataId
|
|
185
|
+
}, null, 8, ["tableName", "dataId"])
|
|
186
|
+
]),
|
|
187
|
+
default: a(() => [
|
|
188
|
+
h(i, {
|
|
189
|
+
ref: "onlineFormCompRef",
|
|
190
|
+
id: e.id,
|
|
191
|
+
disabled: e.disableSubmit,
|
|
192
|
+
"form-template": e.formTemplate,
|
|
193
|
+
isTree: e.isTreeForm,
|
|
194
|
+
pidField: e.pidFieldName,
|
|
195
|
+
themeTemplate: e.themeTemplate,
|
|
196
|
+
onRendered: e.renderSuccess,
|
|
197
|
+
onSuccess: e.handleSuccess
|
|
198
|
+
}, null, 8, ["id", "disabled", "form-template", "isTree", "pidField", "themeTemplate", "onRendered", "onSuccess"])
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
}, 16, ["title", "onCancel", "enableComment", "width", "onRegister", "onOk"]);
|
|
202
|
+
}
|
|
203
|
+
const We = /* @__PURE__ */ U(X, [["render", Y]]);
|
|
204
|
+
export {
|
|
205
|
+
We as default
|
|
206
|
+
};
|