@jeecg/online 3.6.2-beta → 3.7.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/AiModal-fe3988fb.mjs +84 -0
- package/AuthButtonConfig-d50a0a65.mjs +134 -0
- package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-589395ed.mjs} +2 -2
- package/AuthDataConfig-7bb0cd85.mjs +237 -0
- package/{AuthDataTree-94e026e3.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
- package/AuthFieldConfig-490fc0ab.mjs +139 -0
- package/{AuthFieldTree-69864163.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
- package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
- package/AuthSetterModal-6f74449c.mjs +273 -0
- package/{CgformCopyList-14b76108.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
- package/{CgformModal-eccfc38e.mjs → CgformModal-36faf29a.mjs} +256 -246
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-5a23d089.mjs} +154 -131
- package/CheckDictTable-b5cb0e2b.mjs +226 -0
- package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
- package/{CodeFileViewModal-373e8058.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
- package/CodeGeneratorModal-b722d976.mjs +238 -0
- package/{CustomButtonList-02e3d897.mjs → CustomButtonList-37639061.mjs} +118 -100
- package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
- package/{DbToOnlineModal-9f13956f.mjs → DbToOnlineModal-f49b9530.mjs} +57 -51
- package/DetailForm-4aa2570b.mjs +485 -0
- package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
- package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
- package/EnhanceJsModal-247f640d.mjs +532 -0
- package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
- package/ExtendConfigModal-00f2fb55.mjs +117 -0
- package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
- package/{FileSelectModal-9a02560b.mjs → FileSelectModal-38660e3c.mjs} +1 -1
- package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
- package/{IndexTable-f8af9d44.mjs → IndexTable-1b496559.mjs} +10 -10
- package/{JModalTip-33c7dc44.mjs → JModalTip-4a83aaed.mjs} +1 -1
- package/{JOnlineSearchSelect-c287af12.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
- package/{LeftDepart-fa85523d.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
- package/{LeftRole-8b8dfe21.mjs → LeftRole-7d8c5acc.mjs} +1 -1
- package/{LeftUser-dc24ef2f.mjs → LeftUser-b4d1372a.mjs} +3 -3
- package/LinkTableConfigModal-a138c85e.mjs +240 -0
- package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
- package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
- package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-0544737d.mjs} +1 -1
- package/OnlCgformErpList-30e416c8.mjs +470 -0
- package/OnlCgformErpSubTable-9a876058.mjs +427 -0
- package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
- package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
- package/OnlCgformTabList-7a2f2c03.mjs +408 -0
- package/OnlineAutoList-46c6c8b9.mjs +493 -0
- package/OnlineAutoModal-971bef13.mjs +236 -0
- package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
- package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
- package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
- package/OnlineForm-018981b2.mjs +924 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-e036cd11.mjs +342 -0
- package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
- package/OnlineFormUrlDetail-b2292137.mjs +119 -0
- package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
- package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
- package/OnlineQueryForm-998c12a4.mjs +444 -0
- package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
- package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
- package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
- package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
- package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
- package/OnlineTabForm-9ad7d29a.mjs +805 -0
- package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
- package/PageAttributeTable-6c23547b.mjs +446 -0
- package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
- package/QueryTable-96b3dbd0.mjs +144 -0
- package/SetSwitchOptions-a452fa0f.mjs +62 -0
- package/SuperQuery-cbfba908.mjs +975 -0
- package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
- package/index-173949bb.mjs +57 -0
- package/{index-49508cad.mjs → index-581bef24.mjs} +29 -27
- package/{index-b7a05eef.mjs → index-d2abb8a0.mjs} +394 -361
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-8755a94e.mjs +426 -0
- package/useExtendComponent-bb7cca20.mjs +4295 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-7ddb9a46.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
- package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
- package/AuthButtonConfig-244ec09f.mjs +0 -125
- package/AuthDataConfig-83891eea.mjs +0 -212
- package/AuthFieldConfig-6b21915c.mjs +0 -139
- package/AuthManagerDrawer-300dd4e4.mjs +0 -114
- package/AuthSetterModal-a414fb35.mjs +0 -267
- package/CgreportModal-2065f5a9.mjs +0 -13
- package/CheckDictTable-134cbb83.mjs +0 -211
- package/CodeGeneratorModal-f08a89cd.mjs +0 -233
- package/DetailForm-424638eb.mjs +0 -462
- package/EnhanceJsModal-05c73a59.mjs +0 -311
- package/ExtendConfigModal-1dde390a.mjs +0 -111
- package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
- package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
- package/OnlCgformErpList-db45e22b.mjs +0 -454
- package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
- package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
- package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
- package/OnlCgformTabList-a9e1e36a.mjs +0 -395
- package/OnlineAutoList-0583a910.mjs +0 -479
- package/OnlineAutoModal-510991eb.mjs +0 -207
- package/OnlineForm-1fa2d893.mjs +0 -750
- package/OnlineFormDetail-0e7294ca.mjs +0 -297
- package/OnlineQueryForm-1bfc8320.mjs +0 -386
- package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
- package/OnlineTabForm-512d3951.mjs +0 -766
- package/OnlineTabFormDetail-5a70219d.mjs +0 -324
- package/PageAttributeTable-965dc58e.mjs +0 -404
- package/QueryTable-eb9a5b21.mjs +0 -115
- package/SuperQuery-5d1ca957.mjs +0 -843
- package/constant-754f1a9d.mjs +0 -9
- package/index-0e3ab3af.mjs +0 -56
- package/useCgformList-423282b7.mjs +0 -400
- package/useExtendComponent-325fe3f1.mjs +0 -3926
- package/useListButton-cdbab702.mjs +0 -676
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
var T = (e, C, l) => new Promise((M, g) => {
|
|
2
|
+
var S = (u) => {
|
|
3
|
+
try {
|
|
4
|
+
r(l.next(u));
|
|
5
|
+
} catch (f) {
|
|
6
|
+
g(f);
|
|
7
|
+
}
|
|
8
|
+
}, k = (u) => {
|
|
9
|
+
try {
|
|
10
|
+
r(l.throw(u));
|
|
11
|
+
} catch (f) {
|
|
12
|
+
g(f);
|
|
13
|
+
}
|
|
14
|
+
}, r = (u) => u.done ? M(u.value) : Promise.resolve(u.value).then(S, k);
|
|
15
|
+
r((l = l.apply(e, C)).next());
|
|
16
|
+
});
|
|
17
|
+
import { ref as ve, watch as De, resolveComponent as s, openBlock as n, createElementBlock as m, normalizeClass as _, createVNode as p, createBlock as d, withCtx as i, createTextVNode as y, createCommentVNode as c, Fragment as Q, renderList as Ee, toDisplayString as B, withDirectives as Fe, vShow as Oe, createElementVNode as $, mergeProps as Ae, toHandlers as He, resolveDynamicComponent as Pe, normalizeProps as _e, guardReactiveProps as Qe } from "vue";
|
|
18
|
+
import { BasicTable as $e, TableAction as Je } from "/@/components/Table";
|
|
19
|
+
import { useMessage as qe } from "/@/hooks/web/useMessage";
|
|
20
|
+
import Ne from "./OnlineAutoModal-971bef13.mjs";
|
|
21
|
+
import ze from "./OnlineCustomModal-594244f3.mjs";
|
|
22
|
+
import Ve from "./OnlineDetailModal-2a271e0b.mjs";
|
|
23
|
+
import je from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
24
|
+
import { u as Ke, a as Ue } from "./useListButton-7ddb9a46.mjs";
|
|
25
|
+
import { O as Ge, u as We, a as Xe, g as Ye } from "./useExtendComponent-bb7cca20.mjs";
|
|
26
|
+
import Ze from "./OnlineQueryForm-998c12a4.mjs";
|
|
27
|
+
import xe from "./SuperQuery-cbfba908.mjs";
|
|
28
|
+
import { u as eo } from "./useOnlinePopEvent-687070b7.mjs";
|
|
29
|
+
import { N as oo } from "./constant-fa63bd66.mjs";
|
|
30
|
+
import { _ as no } from "./index-173949bb.mjs";
|
|
31
|
+
import "/@/components/Modal";
|
|
32
|
+
import "./OnlineForm-018981b2.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 "/@/hooks/web/useAppInject";
|
|
48
|
+
import "/@/utils/is";
|
|
49
|
+
import "./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs";
|
|
50
|
+
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
51
|
+
import "./OnlineFormDetail-e036cd11.mjs";
|
|
52
|
+
import "./DetailForm-4aa2570b.mjs";
|
|
53
|
+
import "/@/utils/propTypes";
|
|
54
|
+
import "/@/utils/dict";
|
|
55
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
56
|
+
import "/@/utils/dict/index";
|
|
57
|
+
import "/@/api/common/api";
|
|
58
|
+
import "/@/components/Form/src/utils/Area";
|
|
59
|
+
import "/@/components/Preview/index";
|
|
60
|
+
import "/@/components/Markdown";
|
|
61
|
+
import "./OnlineSubFormDetail-03f8ee5c.mjs";
|
|
62
|
+
import "vue-router";
|
|
63
|
+
import "/@/router";
|
|
64
|
+
import "/@/hooks/core/onMountedOrActivated";
|
|
65
|
+
import "/@/store/modules/multipleTab";
|
|
66
|
+
import "./cgformState-d9f8ec42.mjs";
|
|
67
|
+
import "pinia";
|
|
68
|
+
import "/@/store";
|
|
69
|
+
import "ant-design-vue";
|
|
70
|
+
import "/@/hooks/system/useMethods";
|
|
71
|
+
import "/@/components/Form/src/componentMap";
|
|
72
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
73
|
+
import "/@/views/system/user/user.api";
|
|
74
|
+
import "/@/utils/desform/customExpression";
|
|
75
|
+
import "/@/store/modules/permission";
|
|
76
|
+
import "/@/hooks/system/useListPage";
|
|
77
|
+
import "./LinkTableListPiece-2660d709.mjs";
|
|
78
|
+
import "/@/assets/images/placeholderImage.png";
|
|
79
|
+
import "./OnlineSelectCascade-471fcc76.mjs";
|
|
80
|
+
import "./JModalTip-4a83aaed.mjs";
|
|
81
|
+
import "@vueuse/core";
|
|
82
|
+
import "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
|
|
83
|
+
import "./SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs";
|
|
84
|
+
import "/@/hooks/web/useDesign";
|
|
85
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
86
|
+
const to = {
|
|
87
|
+
name: "OnlineAutoList",
|
|
88
|
+
components: {
|
|
89
|
+
BasicTable: $e,
|
|
90
|
+
TableAction: Je,
|
|
91
|
+
OnlineAutoModal: Ne,
|
|
92
|
+
JImportModal: je,
|
|
93
|
+
OnlineQueryForm: Ze,
|
|
94
|
+
OnlineSuperQuery: xe,
|
|
95
|
+
OnlineCustomModal: ze,
|
|
96
|
+
OnlineDetailModal: Ve,
|
|
97
|
+
OnlinePopModal: Ge
|
|
98
|
+
},
|
|
99
|
+
setup() {
|
|
100
|
+
const { createMessage: e } = qe(), {
|
|
101
|
+
ID: C,
|
|
102
|
+
onlineTableContext: l,
|
|
103
|
+
onlineQueryFormOuter: M,
|
|
104
|
+
loading: g,
|
|
105
|
+
reload: S,
|
|
106
|
+
dataSource: k,
|
|
107
|
+
pagination: r,
|
|
108
|
+
handleSpecialConfig: u,
|
|
109
|
+
getColumnList: f,
|
|
110
|
+
handleChangeInTable: R,
|
|
111
|
+
loadData: L,
|
|
112
|
+
superQueryButtonRef: b,
|
|
113
|
+
superQueryStatus: v,
|
|
114
|
+
handleSuperQuery: D,
|
|
115
|
+
onlineExtConfigJson: w,
|
|
116
|
+
handleFormConfig: E,
|
|
117
|
+
registerCustomModal: F,
|
|
118
|
+
tableReloading: o
|
|
119
|
+
} = Ke();
|
|
120
|
+
if (!C.value)
|
|
121
|
+
throw e.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
|
|
122
|
+
let { initCgEnhanceJs: a } = We(l);
|
|
123
|
+
const {
|
|
124
|
+
buttonSwitch: h,
|
|
125
|
+
cgLinkButtonList: O,
|
|
126
|
+
cgTopButtonList: J,
|
|
127
|
+
importUrl: q,
|
|
128
|
+
registerModal: N,
|
|
129
|
+
handleAdd: z,
|
|
130
|
+
handleEdit: V,
|
|
131
|
+
handleBatchDelete: j,
|
|
132
|
+
registerImportModal: K,
|
|
133
|
+
onImportExcel: U,
|
|
134
|
+
onExportExcel: H,
|
|
135
|
+
cgButtonJsHandler: G,
|
|
136
|
+
cgButtonActionHandler: W,
|
|
137
|
+
cgButtonLinkHandler: X,
|
|
138
|
+
handleSubmitFlow: Y,
|
|
139
|
+
getDropDownActions: Z,
|
|
140
|
+
getActions: x,
|
|
141
|
+
initButtonList: ee,
|
|
142
|
+
initButtonSwitch: oe,
|
|
143
|
+
registerDetailModal: ne,
|
|
144
|
+
registerBpmModal: te
|
|
145
|
+
} = Ue(l, w), A = ve(!1);
|
|
146
|
+
function ie() {
|
|
147
|
+
return T(this, null, function* () {
|
|
148
|
+
try {
|
|
149
|
+
A.value = !0, yield H();
|
|
150
|
+
} finally {
|
|
151
|
+
setTimeout(() => A.value = !1, 1500);
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
const {
|
|
156
|
+
columns: re,
|
|
157
|
+
actionColumn: le,
|
|
158
|
+
selectedKeys: ae,
|
|
159
|
+
rowSelection: se,
|
|
160
|
+
enableScrollBar: ue,
|
|
161
|
+
tableScroll: pe,
|
|
162
|
+
downloadRowFile: de,
|
|
163
|
+
getImgView: me,
|
|
164
|
+
getPcaText: ce,
|
|
165
|
+
getFormatDate: ge,
|
|
166
|
+
handleColumnResult: fe,
|
|
167
|
+
hrefComponent: he,
|
|
168
|
+
viewOnlineCellImage: ye,
|
|
169
|
+
hrefMainTableId: Ce,
|
|
170
|
+
registerOnlineHrefModal: be,
|
|
171
|
+
registerPopModal: Se,
|
|
172
|
+
openPopModal: ke,
|
|
173
|
+
onlinePopModalRef: we,
|
|
174
|
+
popTableId: P,
|
|
175
|
+
handleClickFieldHref: Ie
|
|
176
|
+
} = Xe(l, w);
|
|
177
|
+
De(
|
|
178
|
+
C,
|
|
179
|
+
() => {
|
|
180
|
+
Me();
|
|
181
|
+
},
|
|
182
|
+
{ immediate: !0 }
|
|
183
|
+
);
|
|
184
|
+
function Me() {
|
|
185
|
+
return T(this, null, function* () {
|
|
186
|
+
g.value = !0;
|
|
187
|
+
let t = yield f(oo);
|
|
188
|
+
Te(t), yield L(), g.value = !1, l.execButtonEnhance("setup");
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
function Te(t) {
|
|
192
|
+
let I = a(t.enhanceJs);
|
|
193
|
+
l.EnhanceJS = I, ee(t.cgButtonList), oe(t.hideColumns), fe(t), u(t);
|
|
194
|
+
}
|
|
195
|
+
function Be(t) {
|
|
196
|
+
l.queryParam = t, S({ mode: "search" });
|
|
197
|
+
}
|
|
198
|
+
function Re(t) {
|
|
199
|
+
return T(this, null, function* () {
|
|
200
|
+
yield Ye(b), b.value.init(t);
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
function Le(t) {
|
|
204
|
+
P.value = t.id;
|
|
205
|
+
let I = {
|
|
206
|
+
title: t.describe
|
|
207
|
+
};
|
|
208
|
+
t.record && t.record.id && (I.record = t.record, I.isUpdate = !0), ke(!0, I);
|
|
209
|
+
}
|
|
210
|
+
return eo(Le), {
|
|
211
|
+
ID: C,
|
|
212
|
+
// 查询区域
|
|
213
|
+
onlineQueryFormOuter: M,
|
|
214
|
+
queryWithCondition: Be,
|
|
215
|
+
onQueryFormLoaded: Re,
|
|
216
|
+
reload: S,
|
|
217
|
+
//高级查询
|
|
218
|
+
superQueryButtonRef: b,
|
|
219
|
+
superQueryStatus: v,
|
|
220
|
+
handleSuperQuery: D,
|
|
221
|
+
// table区域
|
|
222
|
+
loading: g,
|
|
223
|
+
columns: re,
|
|
224
|
+
dataSource: k,
|
|
225
|
+
pagination: r,
|
|
226
|
+
actionColumn: le,
|
|
227
|
+
rowSelection: se,
|
|
228
|
+
selectedKeys: ae,
|
|
229
|
+
tableScroll: pe,
|
|
230
|
+
enableScrollBar: ue,
|
|
231
|
+
handleChangeInTable: R,
|
|
232
|
+
//按钮
|
|
233
|
+
buttonSwitch: h,
|
|
234
|
+
handleAdd: z,
|
|
235
|
+
handleEdit: V,
|
|
236
|
+
onImportExcel: U,
|
|
237
|
+
onExportExcel: H,
|
|
238
|
+
exportLoading: A,
|
|
239
|
+
onExportExcelOverride: ie,
|
|
240
|
+
cgTopButtonList: J,
|
|
241
|
+
cgLinkButtonList: O,
|
|
242
|
+
cgButtonJsHandler: G,
|
|
243
|
+
cgButtonActionHandler: W,
|
|
244
|
+
cgButtonLinkHandler: X,
|
|
245
|
+
handleBatchDelete: j,
|
|
246
|
+
// table-slot
|
|
247
|
+
downloadRowFile: de,
|
|
248
|
+
getImgView: me,
|
|
249
|
+
getPcaText: ce,
|
|
250
|
+
getFormatDate: ge,
|
|
251
|
+
// 操作列
|
|
252
|
+
getActions: x,
|
|
253
|
+
getDropDownActions: Z,
|
|
254
|
+
// 弹窗
|
|
255
|
+
registerModal: N,
|
|
256
|
+
registerCustomModal: F,
|
|
257
|
+
registerImportModal: K,
|
|
258
|
+
registerDetailModal: ne,
|
|
259
|
+
importUrl: q,
|
|
260
|
+
handleFormConfig: E,
|
|
261
|
+
onlinePopModalRef: we,
|
|
262
|
+
//其他
|
|
263
|
+
tableReloading: o,
|
|
264
|
+
handleSubmitFlow: Y,
|
|
265
|
+
hrefComponent: he,
|
|
266
|
+
viewOnlineCellImage: ye,
|
|
267
|
+
hrefMainTableId: Ce,
|
|
268
|
+
onlineExtConfigJson: w,
|
|
269
|
+
registerOnlineHrefModal: be,
|
|
270
|
+
registerPopModal: Se,
|
|
271
|
+
popTableId: P,
|
|
272
|
+
registerBpmModal: te,
|
|
273
|
+
handleClickFieldHref: Ie
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
// 1引入了loadsh console.log(that.simpleDateFormat(new Date().getTime(),'yyyy-MM-dd'));
|
|
277
|
+
// 2. value的问题
|
|
278
|
+
// 3. 变量位置改变后需要 重写api
|
|
279
|
+
// 1添加按钮的时候 预留出样式对象 然后js增强中设置样式对象
|
|
280
|
+
// 2直接设置css字符串 然后通过js document 往head里面增加css片段 全局生效
|
|
281
|
+
};
|
|
282
|
+
const io = {
|
|
283
|
+
key: 0,
|
|
284
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
285
|
+
}, ro = {
|
|
286
|
+
key: 0,
|
|
287
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
288
|
+
}, lo = ["src", "onClick"], ao = ["innerHTML", "onClick"], so = ["innerHTML"], uo = ["title"];
|
|
289
|
+
function po(e, C, l, M, g, S) {
|
|
290
|
+
const k = s("online-query-form"), r = s("a-button"), u = s("online-super-query"), f = s("TableAction"), R = s("BasicTable"), L = s("OnlineAutoModal"), b = s("online-detail-modal"), v = s("JImportModal"), D = s("a-modal"), w = s("online-custom-modal"), E = s("online-pop-modal"), F = s("BpmGraphicModal");
|
|
291
|
+
return n(), m("div", {
|
|
292
|
+
class: _(["p-2", `online-list-${e.ID}`])
|
|
293
|
+
}, [
|
|
294
|
+
p(k, {
|
|
295
|
+
ref: "onlineQueryFormOuter",
|
|
296
|
+
id: e.ID,
|
|
297
|
+
onSearch: e.queryWithCondition,
|
|
298
|
+
onLoaded: e.onQueryFormLoaded
|
|
299
|
+
}, null, 8, ["id", "onSearch", "onLoaded"]),
|
|
300
|
+
e.tableReloading ? c("", !0) : (n(), d(R, {
|
|
301
|
+
key: 0,
|
|
302
|
+
ref: "onlineTable",
|
|
303
|
+
rowKey: "jeecg_row_key",
|
|
304
|
+
canResize: !0,
|
|
305
|
+
bordered: !0,
|
|
306
|
+
showIndexColumn: !1,
|
|
307
|
+
loading: e.loading,
|
|
308
|
+
columns: e.columns,
|
|
309
|
+
dataSource: e.dataSource,
|
|
310
|
+
pagination: e.pagination,
|
|
311
|
+
rowSelection: e.rowSelection,
|
|
312
|
+
actionColumn: e.actionColumn,
|
|
313
|
+
showTableSetting: !0,
|
|
314
|
+
clickToRowSelect: !1,
|
|
315
|
+
scroll: e.tableScroll,
|
|
316
|
+
onTableRedo: e.reload,
|
|
317
|
+
class: _({ "j-table-force-nowrap": e.enableScrollBar }),
|
|
318
|
+
onChange: e.handleChangeInTable
|
|
319
|
+
}, {
|
|
320
|
+
tableTitle: i(() => [
|
|
321
|
+
e.buttonSwitch.add ? (n(), d(r, {
|
|
322
|
+
key: 0,
|
|
323
|
+
preIcon: "ant-design:plus-outlined",
|
|
324
|
+
type: "primary",
|
|
325
|
+
onClick: e.handleAdd
|
|
326
|
+
}, {
|
|
327
|
+
default: i(() => [
|
|
328
|
+
y("新增")
|
|
329
|
+
]),
|
|
330
|
+
_: 1
|
|
331
|
+
}, 8, ["onClick"])) : c("", !0),
|
|
332
|
+
e.buttonSwitch.import ? (n(), d(r, {
|
|
333
|
+
key: 1,
|
|
334
|
+
preIcon: "ant-design:import-outlined",
|
|
335
|
+
type: "primary",
|
|
336
|
+
onClick: e.onImportExcel
|
|
337
|
+
}, {
|
|
338
|
+
default: i(() => [
|
|
339
|
+
y("导入")
|
|
340
|
+
]),
|
|
341
|
+
_: 1
|
|
342
|
+
}, 8, ["onClick"])) : c("", !0),
|
|
343
|
+
e.buttonSwitch.export ? (n(), d(r, {
|
|
344
|
+
key: 2,
|
|
345
|
+
preIcon: "ant-design:export-outlined",
|
|
346
|
+
type: "primary",
|
|
347
|
+
loading: e.exportLoading,
|
|
348
|
+
onClick: e.onExportExcelOverride
|
|
349
|
+
}, {
|
|
350
|
+
default: i(() => [
|
|
351
|
+
y(" 导出")
|
|
352
|
+
]),
|
|
353
|
+
_: 1
|
|
354
|
+
}, 8, ["loading", "onClick"])) : c("", !0),
|
|
355
|
+
e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (n(!0), m(Q, { key: 3 }, Ee(e.cgTopButtonList, (o, a) => (n(), m(Q, null, [
|
|
356
|
+
o.optType == "js" ? (n(), d(r, {
|
|
357
|
+
key: "cgbtn" + a,
|
|
358
|
+
onClick: (h) => e.cgButtonJsHandler(o.buttonCode),
|
|
359
|
+
type: "primary",
|
|
360
|
+
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
361
|
+
}, {
|
|
362
|
+
default: i(() => [
|
|
363
|
+
y(B(o.buttonName), 1)
|
|
364
|
+
]),
|
|
365
|
+
_: 2
|
|
366
|
+
}, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (n(), d(r, {
|
|
367
|
+
key: "cgbtn" + a,
|
|
368
|
+
onClick: (h) => e.cgButtonActionHandler(o.buttonCode),
|
|
369
|
+
type: "primary",
|
|
370
|
+
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
371
|
+
}, {
|
|
372
|
+
default: i(() => [
|
|
373
|
+
y(B(o.buttonName), 1)
|
|
374
|
+
]),
|
|
375
|
+
_: 2
|
|
376
|
+
}, 1032, ["onClick", "preIcon"])) : c("", !0)
|
|
377
|
+
], 64))), 256)) : c("", !0),
|
|
378
|
+
e.buttonSwitch.batch_delete ? Fe((n(), d(r, {
|
|
379
|
+
key: 4,
|
|
380
|
+
preIcon: "ant-design:delete-outlined",
|
|
381
|
+
onClick: e.handleBatchDelete
|
|
382
|
+
}, {
|
|
383
|
+
default: i(() => [
|
|
384
|
+
y(" 批量删除")
|
|
385
|
+
]),
|
|
386
|
+
_: 1
|
|
387
|
+
}, 8, ["onClick"])), [
|
|
388
|
+
[Oe, e.selectedKeys.length > 0]
|
|
389
|
+
]) : c("", !0),
|
|
390
|
+
e.buttonSwitch.super_query ? (n(), d(u, {
|
|
391
|
+
key: 5,
|
|
392
|
+
ref: "superQueryButtonRef",
|
|
393
|
+
online: "",
|
|
394
|
+
status: e.superQueryStatus,
|
|
395
|
+
onSearch: e.handleSuperQuery
|
|
396
|
+
}, null, 8, ["status", "onSearch"])) : c("", !0)
|
|
397
|
+
]),
|
|
398
|
+
fileSlot: i(({ text: o, record: a, column: h }) => [
|
|
399
|
+
o ? (n(), d(r, {
|
|
400
|
+
key: 1,
|
|
401
|
+
ghost: !0,
|
|
402
|
+
type: "primary",
|
|
403
|
+
preIcon: "ant-design:download",
|
|
404
|
+
size: "small",
|
|
405
|
+
onClick: (O) => e.downloadRowFile(o, a, h, e.ID)
|
|
406
|
+
}, {
|
|
407
|
+
default: i(() => [
|
|
408
|
+
y(" 下载 ")
|
|
409
|
+
]),
|
|
410
|
+
_: 2
|
|
411
|
+
}, 1032, ["onClick"])) : (n(), m("span", io, "无文件"))
|
|
412
|
+
]),
|
|
413
|
+
imgSlot: i(({ text: o }) => [
|
|
414
|
+
o ? (n(), m("img", {
|
|
415
|
+
key: 1,
|
|
416
|
+
src: e.getImgView(o),
|
|
417
|
+
alt: "图片不存在",
|
|
418
|
+
class: "online-cell-image",
|
|
419
|
+
onClick: (a) => e.viewOnlineCellImage(o)
|
|
420
|
+
}, null, 8, lo)) : (n(), m("span", ro, "无图片"))
|
|
421
|
+
]),
|
|
422
|
+
htmlSlot: i(({ text: o, column: a, record: h }) => [
|
|
423
|
+
a.fieldHref ? (n(), m("a", {
|
|
424
|
+
key: 0,
|
|
425
|
+
innerHTML: o,
|
|
426
|
+
onClick: (O) => e.handleClickFieldHref(a.fieldHref, h)
|
|
427
|
+
}, null, 8, ao)) : (n(), m("div", {
|
|
428
|
+
key: 1,
|
|
429
|
+
innerHTML: o
|
|
430
|
+
}, null, 8, so))
|
|
431
|
+
]),
|
|
432
|
+
pcaSlot: i(({ text: o }) => [
|
|
433
|
+
$("div", {
|
|
434
|
+
title: e.getPcaText(o)
|
|
435
|
+
}, B(e.getPcaText(o)), 9, uo)
|
|
436
|
+
]),
|
|
437
|
+
dateSlot: i(({ text: o, column: a }) => [
|
|
438
|
+
$("span", null, B(e.getFormatDate(o, a)), 1)
|
|
439
|
+
]),
|
|
440
|
+
action: i(({ record: o }) => [
|
|
441
|
+
p(f, {
|
|
442
|
+
actions: e.getActions(o),
|
|
443
|
+
dropDownActions: e.getDropDownActions(o)
|
|
444
|
+
}, null, 8, ["actions", "dropDownActions"])
|
|
445
|
+
]),
|
|
446
|
+
_: 1
|
|
447
|
+
}, 8, ["loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
|
|
448
|
+
p(L, {
|
|
449
|
+
id: e.ID,
|
|
450
|
+
onRegister: e.registerModal,
|
|
451
|
+
onSuccess: e.reload,
|
|
452
|
+
onFormConfig: e.handleFormConfig
|
|
453
|
+
}, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
|
|
454
|
+
p(b, {
|
|
455
|
+
id: e.ID,
|
|
456
|
+
onRegister: e.registerDetailModal
|
|
457
|
+
}, null, 8, ["id", "onRegister"]),
|
|
458
|
+
p(v, {
|
|
459
|
+
onRegister: e.registerImportModal,
|
|
460
|
+
url: e.importUrl(),
|
|
461
|
+
onOk: e.reload,
|
|
462
|
+
online: ""
|
|
463
|
+
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
464
|
+
p(D, Ae(e.hrefComponent.model, He(e.hrefComponent.on)), {
|
|
465
|
+
default: i(() => [
|
|
466
|
+
(n(), d(Pe(e.hrefComponent.is), _e(Qe(e.hrefComponent.params)), null, 16))
|
|
467
|
+
]),
|
|
468
|
+
_: 1
|
|
469
|
+
}, 16),
|
|
470
|
+
p(w, {
|
|
471
|
+
onRegister: e.registerCustomModal,
|
|
472
|
+
onSuccess: e.reload
|
|
473
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
474
|
+
p(b, {
|
|
475
|
+
id: e.hrefMainTableId,
|
|
476
|
+
onRegister: e.registerOnlineHrefModal,
|
|
477
|
+
defaultFullscreen: !1
|
|
478
|
+
}, null, 8, ["id", "onRegister"]),
|
|
479
|
+
p(E, {
|
|
480
|
+
ref: "onlinePopModalRef",
|
|
481
|
+
id: e.popTableId,
|
|
482
|
+
onRegister: e.registerPopModal,
|
|
483
|
+
onSuccess: e.reload,
|
|
484
|
+
request: "",
|
|
485
|
+
topTip: ""
|
|
486
|
+
}, null, 8, ["id", "onRegister", "onSuccess"]),
|
|
487
|
+
p(F, { onRegister: e.registerBpmModal }, null, 8, ["onRegister"])
|
|
488
|
+
], 2);
|
|
489
|
+
}
|
|
490
|
+
const Dn = /* @__PURE__ */ no(to, [["render", po]]);
|
|
491
|
+
export {
|
|
492
|
+
Dn as default
|
|
493
|
+
};
|