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