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