@jeecg/online 3.5.3-vite4 → 3.6.2-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-2f71787c.mjs → AuthButtonConfig-244ec09f.mjs} +1 -1
- package/{AuthButtonTree-d73bccf5.mjs → AuthButtonTree-3aa0ed49.mjs} +1 -1
- package/{AuthDataConfig-32cf23d2.mjs → AuthDataConfig-83891eea.mjs} +1 -1
- package/{AuthDataTree-03d62d3f.mjs → AuthDataTree-94e026e3.mjs} +1 -1
- package/{AuthFieldConfig-b1217a0c.mjs → AuthFieldConfig-6b21915c.mjs} +1 -1
- package/{AuthFieldTree-888e04a9.mjs → AuthFieldTree-69864163.mjs} +1 -1
- package/{AuthManagerDrawer-f127b8a2.mjs → AuthManagerDrawer-300dd4e4.mjs} +4 -4
- package/{AuthSetterModal-37da78ed.mjs → AuthSetterModal-a414fb35.mjs} +58 -52
- package/{CgformCopyList-3adab58f.mjs → CgformCopyList-14b76108.mjs} +42 -39
- package/CgformModal-eccfc38e.mjs +611 -0
- package/{CgreportModal-77ec8c17.mjs → CgreportModal-2065f5a9.mjs} +2 -1
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs → CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs} +170 -171
- package/{CheckDictTable-414313f2.mjs → CheckDictTable-134cbb83.mjs} +3 -3
- package/{CodeFileListModal-4831ce3d.mjs → CodeFileListModal-a6d3290d.mjs} +2 -2
- package/{CodeFileViewModal-5990dac4.mjs → CodeFileViewModal-373e8058.mjs} +2 -2
- package/{CodeGeneratorModal-7df9e25d.mjs → CodeGeneratorModal-f08a89cd.mjs} +5 -6
- package/{CustomButtonList-1c9bd859.mjs → CustomButtonList-02e3d897.mjs} +2 -2
- package/{DBAttributeTable-cd1c41e5.mjs → DBAttributeTable-370de07b.mjs} +2 -2
- package/{DbToOnlineModal-dc5d2030.mjs → DbToOnlineModal-9f13956f.mjs} +35 -35
- package/{DetailForm-e4538e7a.mjs → DetailForm-424638eb.mjs} +179 -163
- package/{EnhanceJavaModal-7f53d2ca.mjs → EnhanceJavaModal-f63aa2d3.mjs} +17 -13
- package/{EnhanceJsHistory-c30805ce.mjs → EnhanceJsHistory-352b46b1.mjs} +1 -1
- package/EnhanceJsModal-05c73a59.mjs +311 -0
- package/{EnhanceSqlModal-33a94c83.mjs → EnhanceSqlModal-5e4ae84f.mjs} +55 -46
- package/{ExtendConfigModal-60f2cf86.mjs → ExtendConfigModal-1dde390a.mjs} +2 -2
- package/FieldExtendJsonModal-a70a9ccd.mjs +219 -0
- package/FileSelectModal-9a02560b.mjs +103 -0
- package/{ForeignKeyTable-cb1abd1d.mjs → ForeignKeyTable-6a843c4b.mjs} +2 -2
- package/{IndexTable-4e94cd1f.mjs → IndexTable-f8af9d44.mjs} +2 -2
- package/JModalTip-33c7dc44.mjs +49 -0
- package/{JOnlineSearchSelect-5608a5cf.mjs → JOnlineSearchSelect-c287af12.mjs} +17 -16
- package/{LeftDepart-ca7a7375.mjs → LeftDepart-fa85523d.mjs} +1 -1
- package/{LeftRole-d0fa8398.mjs → LeftRole-8b8dfe21.mjs} +1 -1
- package/{LeftUser-0c88c240.mjs → LeftUser-dc24ef2f.mjs} +1 -1
- package/{LinkTableConfigModal-77d7c0b9.mjs → LinkTableConfigModal-d4fbdef2.mjs} +23 -23
- package/{LinkTableFieldConfigModal-c5689ab0.mjs → LinkTableFieldConfigModal-787bc55c.mjs} +44 -46
- package/LinkTableListPiece-8499a318.mjs +34 -0
- package/{ModalFormDemo-0eeea994.mjs → ModalFormDemo-977a49eb.mjs} +1 -1
- package/OnlCgformErpList-db45e22b.mjs +454 -0
- package/OnlCgformErpSubTable-54b50eec.mjs +403 -0
- package/OnlCgformInnerSubTable-fbca73e0.mjs +253 -0
- package/OnlCgformInnerTableList-782eaf04.mjs +444 -0
- package/OnlCgformTabList-a9e1e36a.mjs +395 -0
- package/OnlineAutoList-0583a910.mjs +479 -0
- package/{OnlineAutoModal-2a146238.mjs → OnlineAutoModal-510991eb.mjs} +59 -58
- package/{OnlineAutoTreeList-f8d0e100.mjs → OnlineAutoTreeList-89265688.mjs} +158 -153
- package/{OnlineCustomModal-456a85a6.mjs → OnlineCustomModal-518ad33c.mjs} +67 -66
- package/{OnlineDetailModal-f967f080.mjs → OnlineDetailModal-9675390d.mjs} +40 -39
- package/OnlineForm-1fa2d893.mjs +750 -0
- package/{OnlineFormDetail-1b216792.mjs → OnlineFormDetail-0e7294ca.mjs} +56 -55
- package/OnlineQueryForm-1bfc8320.mjs +386 -0
- package/{OnlineSearchFormItem-7c2ea9ed.mjs → OnlineSearchFormItem-0cc85a8a.mjs} +83 -87
- package/{OnlineSelectCascade-c7baf52b.mjs → OnlineSelectCascade-4265c95d.mjs} +31 -32
- package/{OnlineSubFormDetail-0aa4966c.mjs → OnlineSubFormDetail-f0d2c016.mjs} +53 -50
- package/OnlineTabAutoModal-6f636ee2.mjs +254 -0
- package/OnlineTabDetailModal-7356d3a8.mjs +223 -0
- package/OnlineTabForm-512d3951.mjs +766 -0
- package/OnlineTabFormDetail-5a70219d.mjs +324 -0
- package/{PageAttributeTable-811185fd.mjs → PageAttributeTable-965dc58e.mjs} +20 -20
- package/{ProcessOnlineForm-27be6f6f.mjs → ProcessOnlineForm-67558898.mjs} +39 -38
- package/{QueryTable-4ba771ef.mjs → QueryTable-eb9a5b21.mjs} +2 -2
- package/README.md +5 -2
- package/{SuperQuery-3821f984.mjs → SuperQuery-5d1ca957.mjs} +171 -173
- package/{SuperQueryValComponent-471110b5.mjs → SuperQueryValComponent-7ad86d4b.mjs} +1 -1
- package/SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs +101 -0
- package/cgformState-d9f8ec42.mjs +28 -0
- package/constant-754f1a9d.mjs +9 -0
- package/index-0e3ab3af.mjs +56 -0
- package/{index-074b92e5.mjs → index-49508cad.mjs} +4 -3
- package/index-b7a05eef.mjs +1496 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-423282b7.mjs +400 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-325fe3f1.mjs +3926 -0
- package/useListButton-cdbab702.mjs +676 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/{useSchemas-fc8d97ce.mjs → useSchemas-0433a403.mjs} +129 -109
- package/{useTableSync-dc333087.mjs → useTableSync-774c3774.mjs} +17 -13
- package/CgformModal-6938d8c2.mjs +0 -613
- package/EnhanceJsModal-0b133341.mjs +0 -233
- package/FieldExtendJsonModal-48f7d67f.mjs +0 -220
- package/FileSelectModal-64aaf623.mjs +0 -91
- package/JModalTip-abe1515a.mjs +0 -46
- package/LinkTableListPiece-34266919.mjs +0 -34
- package/OnlCgformErpList-7a0388d8.mjs +0 -425
- package/OnlCgformErpSubTable-fc6ade76.mjs +0 -388
- package/OnlineAutoList-85e6a30d.mjs +0 -472
- package/OnlineForm-630a22c2.mjs +0 -778
- package/OnlineQueryForm-1c5949a7.mjs +0 -378
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +0 -101
- package/constant-fe20103a.mjs +0 -6
- package/index-6a09a912.mjs +0 -58
- package/index-9d32ae88.mjs +0 -313
- package/useCgformList-2d6a5955.mjs +0 -388
- package/useExtendComponent-48d37d9b.mjs +0 -3919
- package/useListButton-cef1371a.mjs +0 -656
- package/useOnlinePopEvent-e9a042f8.mjs +0 -19
- package/useOnlineTest-0df0ae86.mjs +0 -43
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
var T = (o, 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(o, f)).next());
|
|
16
|
+
});
|
|
17
|
+
import { ref as vo, watch as Do, 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 Lo, toDisplayString as B, withDirectives as Oo, vShow as Fo, createElementVNode as F, mergeProps as Ao, toHandlers as Po, resolveDynamicComponent as Qo, normalizeProps as _o, guardReactiveProps as Ho } from "vue";
|
|
18
|
+
import { BasicTable as Jo, TableAction as $o } from "/@/components/Table";
|
|
19
|
+
import { useMessage as qo } from "/@/hooks/web/useMessage";
|
|
20
|
+
import No from "./OnlineAutoModal-510991eb.mjs";
|
|
21
|
+
import zo from "./OnlineCustomModal-518ad33c.mjs";
|
|
22
|
+
import Vo from "./OnlineDetailModal-9675390d.mjs";
|
|
23
|
+
import jo from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
24
|
+
import { u as Ko, a as Uo } from "./useListButton-cdbab702.mjs";
|
|
25
|
+
import { O as Wo, u as Go, a as Xo, g as Yo } from "./useExtendComponent-325fe3f1.mjs";
|
|
26
|
+
import Zo from "./OnlineQueryForm-1bfc8320.mjs";
|
|
27
|
+
import xo from "./SuperQuery-5d1ca957.mjs";
|
|
28
|
+
import { u as oe } from "./useOnlinePopEvent-687070b7.mjs";
|
|
29
|
+
import { N as ee } from "./constant-754f1a9d.mjs";
|
|
30
|
+
import { _ as ne } from "./index-0e3ab3af.mjs";
|
|
31
|
+
import "/@/components/Modal";
|
|
32
|
+
import "./OnlineForm-1fa2d893.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-0e7294ca.mjs";
|
|
49
|
+
import "./DetailForm-424638eb.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-f0d2c016.mjs";
|
|
59
|
+
import "vue-router";
|
|
60
|
+
import "/@/router";
|
|
61
|
+
import "/@/hooks/core/onMountedOrActivated";
|
|
62
|
+
import "/@/store/modules/multipleTab";
|
|
63
|
+
import "./cgformState-d9f8ec42.mjs";
|
|
64
|
+
import "pinia";
|
|
65
|
+
import "/@/store";
|
|
66
|
+
import "ant-design-vue";
|
|
67
|
+
import "/@/hooks/system/useMethods";
|
|
68
|
+
import "/@/components/Form/src/componentMap";
|
|
69
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
70
|
+
import "/@/views/system/user/user.api";
|
|
71
|
+
import "/@/utils/desform/customExpression";
|
|
72
|
+
import "/@/store/modules/permission";
|
|
73
|
+
import "/@/hooks/system/useListPage";
|
|
74
|
+
import "./LinkTableListPiece-8499a318.mjs";
|
|
75
|
+
import "./OnlineSelectCascade-4265c95d.mjs";
|
|
76
|
+
import "./JModalTip-33c7dc44.mjs";
|
|
77
|
+
import "/@/hooks/web/useAppInject";
|
|
78
|
+
import "@vueuse/core";
|
|
79
|
+
import "./SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs";
|
|
80
|
+
import "/@/utils/is";
|
|
81
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
82
|
+
const te = {
|
|
83
|
+
name: "OnlineAutoList",
|
|
84
|
+
components: {
|
|
85
|
+
BasicTable: Jo,
|
|
86
|
+
TableAction: $o,
|
|
87
|
+
OnlineAutoModal: No,
|
|
88
|
+
JImportModal: jo,
|
|
89
|
+
OnlineQueryForm: Zo,
|
|
90
|
+
OnlineSuperQuery: xo,
|
|
91
|
+
OnlineCustomModal: zo,
|
|
92
|
+
OnlineDetailModal: Vo,
|
|
93
|
+
OnlinePopModal: Wo
|
|
94
|
+
},
|
|
95
|
+
setup() {
|
|
96
|
+
const { createMessage: o } = qo(), {
|
|
97
|
+
ID: f,
|
|
98
|
+
onlineTableContext: l,
|
|
99
|
+
onlineQueryFormOuter: I,
|
|
100
|
+
loading: m,
|
|
101
|
+
reload: b,
|
|
102
|
+
dataSource: S,
|
|
103
|
+
pagination: r,
|
|
104
|
+
handleSpecialConfig: a,
|
|
105
|
+
getColumnList: c,
|
|
106
|
+
handleChangeInTable: M,
|
|
107
|
+
loadData: R,
|
|
108
|
+
superQueryButtonRef: h,
|
|
109
|
+
superQueryStatus: E,
|
|
110
|
+
handleSuperQuery: v,
|
|
111
|
+
onlineExtConfigJson: w,
|
|
112
|
+
handleFormConfig: D,
|
|
113
|
+
registerCustomModal: e,
|
|
114
|
+
tableReloading: y
|
|
115
|
+
} = Ko();
|
|
116
|
+
if (!f.value)
|
|
117
|
+
throw o.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
|
|
118
|
+
let { initCgEnhanceJs: L } = Go(l);
|
|
119
|
+
const {
|
|
120
|
+
buttonSwitch: H,
|
|
121
|
+
cgLinkButtonList: J,
|
|
122
|
+
cgTopButtonList: $,
|
|
123
|
+
importUrl: q,
|
|
124
|
+
registerModal: N,
|
|
125
|
+
handleAdd: z,
|
|
126
|
+
handleEdit: V,
|
|
127
|
+
handleBatchDelete: j,
|
|
128
|
+
registerImportModal: K,
|
|
129
|
+
onImportExcel: U,
|
|
130
|
+
onExportExcel: A,
|
|
131
|
+
cgButtonJsHandler: W,
|
|
132
|
+
cgButtonActionHandler: G,
|
|
133
|
+
cgButtonLinkHandler: X,
|
|
134
|
+
handleSubmitFlow: Y,
|
|
135
|
+
getDropDownActions: Z,
|
|
136
|
+
getActions: x,
|
|
137
|
+
initButtonList: oo,
|
|
138
|
+
initButtonSwitch: eo,
|
|
139
|
+
registerDetailModal: no,
|
|
140
|
+
registerBpmModal: to
|
|
141
|
+
} = Uo(l, w), O = vo(!1);
|
|
142
|
+
function io() {
|
|
143
|
+
return T(this, null, function* () {
|
|
144
|
+
try {
|
|
145
|
+
O.value = !0, yield A();
|
|
146
|
+
} finally {
|
|
147
|
+
setTimeout(() => O.value = !1, 1500);
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
const {
|
|
152
|
+
columns: ro,
|
|
153
|
+
actionColumn: lo,
|
|
154
|
+
selectedKeys: ao,
|
|
155
|
+
rowSelection: so,
|
|
156
|
+
enableScrollBar: uo,
|
|
157
|
+
tableScroll: po,
|
|
158
|
+
downloadRowFile: mo,
|
|
159
|
+
getImgView: co,
|
|
160
|
+
getPcaText: go,
|
|
161
|
+
getFormatDate: fo,
|
|
162
|
+
handleColumnResult: ho,
|
|
163
|
+
hrefComponent: yo,
|
|
164
|
+
viewOnlineCellImage: Co,
|
|
165
|
+
hrefMainTableId: bo,
|
|
166
|
+
registerOnlineHrefModal: So,
|
|
167
|
+
registerPopModal: wo,
|
|
168
|
+
openPopModal: ko,
|
|
169
|
+
onlinePopModalRef: Io,
|
|
170
|
+
popTableId: P
|
|
171
|
+
} = Xo(l, w);
|
|
172
|
+
Do(
|
|
173
|
+
f,
|
|
174
|
+
() => {
|
|
175
|
+
To();
|
|
176
|
+
},
|
|
177
|
+
{ immediate: !0 }
|
|
178
|
+
);
|
|
179
|
+
function To() {
|
|
180
|
+
return T(this, null, function* () {
|
|
181
|
+
m.value = !0;
|
|
182
|
+
let n = yield c(ee);
|
|
183
|
+
Bo(n), yield R(), m.value = !1, l.execButtonEnhance("setup");
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
function Bo(n) {
|
|
187
|
+
let k = L(n.enhanceJs);
|
|
188
|
+
l.EnhanceJS = k, oo(n.cgButtonList), eo(n.hideColumns), ho(n), a(n);
|
|
189
|
+
}
|
|
190
|
+
function Mo(n) {
|
|
191
|
+
l.queryParam = n, b({ mode: "search" });
|
|
192
|
+
}
|
|
193
|
+
function Ro(n) {
|
|
194
|
+
return T(this, null, function* () {
|
|
195
|
+
yield Yo(h), h.value.init(n);
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
function Eo(n) {
|
|
199
|
+
P.value = n.id;
|
|
200
|
+
let k = {
|
|
201
|
+
title: n.describe
|
|
202
|
+
};
|
|
203
|
+
n.record && n.record.id && (k.record = n.record, k.isUpdate = !0), ko(!0, k);
|
|
204
|
+
}
|
|
205
|
+
return oe(Eo), {
|
|
206
|
+
ID: f,
|
|
207
|
+
// 查询区域
|
|
208
|
+
onlineQueryFormOuter: I,
|
|
209
|
+
queryWithCondition: Mo,
|
|
210
|
+
onQueryFormLoaded: Ro,
|
|
211
|
+
reload: b,
|
|
212
|
+
//高级查询
|
|
213
|
+
superQueryButtonRef: h,
|
|
214
|
+
superQueryStatus: E,
|
|
215
|
+
handleSuperQuery: v,
|
|
216
|
+
// table区域
|
|
217
|
+
loading: m,
|
|
218
|
+
columns: ro,
|
|
219
|
+
dataSource: S,
|
|
220
|
+
pagination: r,
|
|
221
|
+
actionColumn: lo,
|
|
222
|
+
rowSelection: so,
|
|
223
|
+
selectedKeys: ao,
|
|
224
|
+
tableScroll: po,
|
|
225
|
+
enableScrollBar: uo,
|
|
226
|
+
handleChangeInTable: M,
|
|
227
|
+
//按钮
|
|
228
|
+
buttonSwitch: H,
|
|
229
|
+
handleAdd: z,
|
|
230
|
+
handleEdit: V,
|
|
231
|
+
onImportExcel: U,
|
|
232
|
+
onExportExcel: A,
|
|
233
|
+
exportLoading: O,
|
|
234
|
+
onExportExcelOverride: io,
|
|
235
|
+
cgTopButtonList: $,
|
|
236
|
+
cgLinkButtonList: J,
|
|
237
|
+
cgButtonJsHandler: W,
|
|
238
|
+
cgButtonActionHandler: G,
|
|
239
|
+
cgButtonLinkHandler: X,
|
|
240
|
+
handleBatchDelete: j,
|
|
241
|
+
// table-slot
|
|
242
|
+
downloadRowFile: mo,
|
|
243
|
+
getImgView: co,
|
|
244
|
+
getPcaText: go,
|
|
245
|
+
getFormatDate: fo,
|
|
246
|
+
// 操作列
|
|
247
|
+
getActions: x,
|
|
248
|
+
getDropDownActions: Z,
|
|
249
|
+
// 弹窗
|
|
250
|
+
registerModal: N,
|
|
251
|
+
registerCustomModal: e,
|
|
252
|
+
registerImportModal: K,
|
|
253
|
+
registerDetailModal: no,
|
|
254
|
+
importUrl: q,
|
|
255
|
+
handleFormConfig: D,
|
|
256
|
+
onlinePopModalRef: Io,
|
|
257
|
+
//其他
|
|
258
|
+
tableReloading: y,
|
|
259
|
+
handleSubmitFlow: Y,
|
|
260
|
+
hrefComponent: yo,
|
|
261
|
+
viewOnlineCellImage: Co,
|
|
262
|
+
hrefMainTableId: bo,
|
|
263
|
+
onlineExtConfigJson: w,
|
|
264
|
+
registerOnlineHrefModal: So,
|
|
265
|
+
registerPopModal: wo,
|
|
266
|
+
popTableId: P,
|
|
267
|
+
registerBpmModal: to
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
// 1引入了loadsh console.log(that.simpleDateFormat(new Date().getTime(),'yyyy-MM-dd'));
|
|
271
|
+
// 2. value的问题
|
|
272
|
+
// 3. 变量位置改变后需要 重写api
|
|
273
|
+
// 1添加按钮的时候 预留出样式对象 然后js增强中设置样式对象
|
|
274
|
+
// 2直接设置css字符串 然后通过js document 往head里面增加css片段 全局生效
|
|
275
|
+
};
|
|
276
|
+
const ie = {
|
|
277
|
+
key: 0,
|
|
278
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
279
|
+
}, re = {
|
|
280
|
+
key: 0,
|
|
281
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
282
|
+
}, le = ["src", "onClick"], ae = ["innerHTML"], se = ["title"];
|
|
283
|
+
function ue(o, f, l, I, m, b) {
|
|
284
|
+
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");
|
|
285
|
+
return t(), C("div", {
|
|
286
|
+
class: Q(["p-2", `online-list-${o.ID}`])
|
|
287
|
+
}, [
|
|
288
|
+
p(S, {
|
|
289
|
+
ref: "onlineQueryFormOuter",
|
|
290
|
+
id: o.ID,
|
|
291
|
+
onSearch: o.queryWithCondition,
|
|
292
|
+
onLoaded: o.onQueryFormLoaded
|
|
293
|
+
}, null, 8, ["id", "onSearch", "onLoaded"]),
|
|
294
|
+
o.tableReloading ? d("", !0) : (t(), u(M, {
|
|
295
|
+
key: 0,
|
|
296
|
+
ref: "onlineTable",
|
|
297
|
+
rowKey: "jeecg_row_key",
|
|
298
|
+
canResize: !0,
|
|
299
|
+
bordered: !0,
|
|
300
|
+
showIndexColumn: !1,
|
|
301
|
+
loading: o.loading,
|
|
302
|
+
columns: o.columns,
|
|
303
|
+
dataSource: o.dataSource,
|
|
304
|
+
pagination: o.pagination,
|
|
305
|
+
rowSelection: o.rowSelection,
|
|
306
|
+
actionColumn: o.actionColumn,
|
|
307
|
+
showTableSetting: !0,
|
|
308
|
+
clickToRowSelect: !1,
|
|
309
|
+
scroll: o.tableScroll,
|
|
310
|
+
onTableRedo: o.reload,
|
|
311
|
+
class: Q({ "j-table-force-nowrap": o.enableScrollBar }),
|
|
312
|
+
onChange: o.handleChangeInTable
|
|
313
|
+
}, {
|
|
314
|
+
tableTitle: i(() => [
|
|
315
|
+
o.buttonSwitch.add ? (t(), u(r, {
|
|
316
|
+
key: 0,
|
|
317
|
+
preIcon: "ant-design:plus-outlined",
|
|
318
|
+
type: "primary",
|
|
319
|
+
onClick: o.handleAdd
|
|
320
|
+
}, {
|
|
321
|
+
default: i(() => [
|
|
322
|
+
g("新增")
|
|
323
|
+
]),
|
|
324
|
+
_: 1
|
|
325
|
+
}, 8, ["onClick"])) : d("", !0),
|
|
326
|
+
o.buttonSwitch.import ? (t(), u(r, {
|
|
327
|
+
key: 1,
|
|
328
|
+
preIcon: "ant-design:import-outlined",
|
|
329
|
+
type: "primary",
|
|
330
|
+
onClick: o.onImportExcel
|
|
331
|
+
}, {
|
|
332
|
+
default: i(() => [
|
|
333
|
+
g("导入")
|
|
334
|
+
]),
|
|
335
|
+
_: 1
|
|
336
|
+
}, 8, ["onClick"])) : d("", !0),
|
|
337
|
+
o.buttonSwitch.export ? (t(), u(r, {
|
|
338
|
+
key: 2,
|
|
339
|
+
preIcon: "ant-design:export-outlined",
|
|
340
|
+
type: "primary",
|
|
341
|
+
loading: o.exportLoading,
|
|
342
|
+
onClick: o.onExportExcelOverride
|
|
343
|
+
}, {
|
|
344
|
+
default: i(() => [
|
|
345
|
+
g(" 导出")
|
|
346
|
+
]),
|
|
347
|
+
_: 1
|
|
348
|
+
}, 8, ["loading", "onClick"])) : d("", !0),
|
|
349
|
+
o.cgTopButtonList && o.cgTopButtonList.length > 0 ? (t(!0), C(_, { key: 3 }, Lo(o.cgTopButtonList, (e, y) => (t(), C(_, null, [
|
|
350
|
+
e.optType == "js" ? (t(), u(r, {
|
|
351
|
+
key: "cgbtn" + y,
|
|
352
|
+
onClick: (L) => o.cgButtonJsHandler(e.buttonCode),
|
|
353
|
+
type: "primary",
|
|
354
|
+
preIcon: e.buttonIcon ? "ant-design:" + e.buttonIcon : ""
|
|
355
|
+
}, {
|
|
356
|
+
default: i(() => [
|
|
357
|
+
g(B(e.buttonName), 1)
|
|
358
|
+
]),
|
|
359
|
+
_: 2
|
|
360
|
+
}, 1032, ["onClick", "preIcon"])) : e.optType == "action" ? (t(), u(r, {
|
|
361
|
+
key: "cgbtn" + y,
|
|
362
|
+
onClick: (L) => o.cgButtonActionHandler(e.buttonCode),
|
|
363
|
+
type: "primary",
|
|
364
|
+
preIcon: e.buttonIcon ? "ant-design:" + e.buttonIcon : ""
|
|
365
|
+
}, {
|
|
366
|
+
default: i(() => [
|
|
367
|
+
g(B(e.buttonName), 1)
|
|
368
|
+
]),
|
|
369
|
+
_: 2
|
|
370
|
+
}, 1032, ["onClick", "preIcon"])) : d("", !0)
|
|
371
|
+
], 64))), 256)) : d("", !0),
|
|
372
|
+
o.buttonSwitch.batch_delete ? Oo((t(), u(r, {
|
|
373
|
+
key: 4,
|
|
374
|
+
preIcon: "ant-design:delete-outlined",
|
|
375
|
+
onClick: o.handleBatchDelete
|
|
376
|
+
}, {
|
|
377
|
+
default: i(() => [
|
|
378
|
+
g(" 批量删除")
|
|
379
|
+
]),
|
|
380
|
+
_: 1
|
|
381
|
+
}, 8, ["onClick"])), [
|
|
382
|
+
[Fo, o.selectedKeys.length > 0]
|
|
383
|
+
]) : d("", !0),
|
|
384
|
+
o.buttonSwitch.super_query ? (t(), u(a, {
|
|
385
|
+
key: 5,
|
|
386
|
+
ref: "superQueryButtonRef",
|
|
387
|
+
online: "",
|
|
388
|
+
status: o.superQueryStatus,
|
|
389
|
+
onSearch: o.handleSuperQuery
|
|
390
|
+
}, null, 8, ["status", "onSearch"])) : d("", !0)
|
|
391
|
+
]),
|
|
392
|
+
fileSlot: i(({ text: e }) => [
|
|
393
|
+
e ? (t(), u(r, {
|
|
394
|
+
key: 1,
|
|
395
|
+
ghost: !0,
|
|
396
|
+
type: "primary",
|
|
397
|
+
preIcon: "ant-design:download",
|
|
398
|
+
size: "small",
|
|
399
|
+
onClick: (y) => o.downloadRowFile(e)
|
|
400
|
+
}, {
|
|
401
|
+
default: i(() => [
|
|
402
|
+
g(" 下载 ")
|
|
403
|
+
]),
|
|
404
|
+
_: 2
|
|
405
|
+
}, 1032, ["onClick"])) : (t(), C("span", ie, "无文件"))
|
|
406
|
+
]),
|
|
407
|
+
imgSlot: i(({ text: e }) => [
|
|
408
|
+
e ? (t(), C("img", {
|
|
409
|
+
key: 1,
|
|
410
|
+
src: o.getImgView(e),
|
|
411
|
+
alt: "图片不存在",
|
|
412
|
+
class: "online-cell-image",
|
|
413
|
+
onClick: (y) => o.viewOnlineCellImage(e)
|
|
414
|
+
}, null, 8, le)) : (t(), C("span", re, "无图片"))
|
|
415
|
+
]),
|
|
416
|
+
htmlSlot: i(({ text: e }) => [
|
|
417
|
+
F("div", { innerHTML: e }, null, 8, ae)
|
|
418
|
+
]),
|
|
419
|
+
pcaSlot: i(({ text: e }) => [
|
|
420
|
+
F("div", {
|
|
421
|
+
title: o.getPcaText(e)
|
|
422
|
+
}, B(o.getPcaText(e)), 9, se)
|
|
423
|
+
]),
|
|
424
|
+
dateSlot: i(({ text: e }) => [
|
|
425
|
+
F("span", null, B(o.getFormatDate(e)), 1)
|
|
426
|
+
]),
|
|
427
|
+
action: i(({ record: e }) => [
|
|
428
|
+
p(c, {
|
|
429
|
+
actions: o.getActions(e),
|
|
430
|
+
dropDownActions: o.getDropDownActions(e)
|
|
431
|
+
}, null, 8, ["actions", "dropDownActions"])
|
|
432
|
+
]),
|
|
433
|
+
_: 1
|
|
434
|
+
}, 8, ["loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
|
|
435
|
+
p(R, {
|
|
436
|
+
id: o.ID,
|
|
437
|
+
onRegister: o.registerModal,
|
|
438
|
+
onSuccess: o.reload,
|
|
439
|
+
onFormConfig: o.handleFormConfig
|
|
440
|
+
}, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
|
|
441
|
+
p(h, {
|
|
442
|
+
id: o.ID,
|
|
443
|
+
onRegister: o.registerDetailModal
|
|
444
|
+
}, null, 8, ["id", "onRegister"]),
|
|
445
|
+
p(E, {
|
|
446
|
+
onRegister: o.registerImportModal,
|
|
447
|
+
url: o.importUrl(),
|
|
448
|
+
onOk: o.reload,
|
|
449
|
+
online: ""
|
|
450
|
+
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
451
|
+
p(v, Ao(o.hrefComponent.model, Po(o.hrefComponent.on)), {
|
|
452
|
+
default: i(() => [
|
|
453
|
+
(t(), u(Qo(o.hrefComponent.is), _o(Ho(o.hrefComponent.params)), null, 16))
|
|
454
|
+
]),
|
|
455
|
+
_: 1
|
|
456
|
+
}, 16),
|
|
457
|
+
p(w, {
|
|
458
|
+
onRegister: o.registerCustomModal,
|
|
459
|
+
onSuccess: o.reload
|
|
460
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
461
|
+
p(h, {
|
|
462
|
+
id: o.hrefMainTableId,
|
|
463
|
+
onRegister: o.registerOnlineHrefModal,
|
|
464
|
+
defaultFullscreen: !1
|
|
465
|
+
}, null, 8, ["id", "onRegister"]),
|
|
466
|
+
p(D, {
|
|
467
|
+
ref: "onlinePopModalRef",
|
|
468
|
+
id: o.popTableId,
|
|
469
|
+
onRegister: o.registerPopModal,
|
|
470
|
+
onSuccess: o.reload,
|
|
471
|
+
request: "",
|
|
472
|
+
topTip: ""
|
|
473
|
+
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
474
|
+
], 2);
|
|
475
|
+
}
|
|
476
|
+
const Tn = /* @__PURE__ */ ne(te, [["render", ue]]);
|
|
477
|
+
export {
|
|
478
|
+
Tn as default
|
|
479
|
+
};
|
|
@@ -14,12 +14,12 @@ var k = (e, l, t) => new Promise((p, d) => {
|
|
|
14
14
|
}, i = (o) => o.done ? p(o.value) : Promise.resolve(o.value).then(s, m);
|
|
15
15
|
i((t = t.apply(e, l)).next());
|
|
16
16
|
});
|
|
17
|
-
import { defineComponent as
|
|
18
|
-
import { BasicModal as
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import { _ as
|
|
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 H, renderList as q, createTextVNode as C, toDisplayString as z, createCommentVNode as G, createVNode as b } from "vue";
|
|
18
|
+
import { BasicModal as J } from "/@/components/Modal";
|
|
19
|
+
import K from "./OnlineForm-1fa2d893.mjs";
|
|
20
|
+
import { b as Q } from "./useExtendComponent-325fe3f1.mjs";
|
|
21
|
+
import U from "/@/components/jeecg/comment/CommentPanel.vue";
|
|
22
|
+
import { _ as X } from "./index-0e3ab3af.mjs";
|
|
23
23
|
import "/@/hooks/web/useMessage";
|
|
24
24
|
import "/@/components/Form/index";
|
|
25
25
|
import "/@/utils/http/axios";
|
|
@@ -31,10 +31,11 @@ import "/@/utils/auth";
|
|
|
31
31
|
import "@ant-design/icons-vue";
|
|
32
32
|
import "/@/hooks/core/useContext";
|
|
33
33
|
import "/@/utils/mitt";
|
|
34
|
+
import "./useCustomHook-acb00837.mjs";
|
|
34
35
|
import "/@/utils/cache";
|
|
35
36
|
import "/@/utils/common/compUtils";
|
|
36
37
|
import "/@/store/modules/user";
|
|
37
|
-
import "./constant-
|
|
38
|
+
import "./constant-754f1a9d.mjs";
|
|
38
39
|
import "/@/components/Form/src/componentMap";
|
|
39
40
|
import "/@/utils/propTypes";
|
|
40
41
|
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
@@ -47,13 +48,14 @@ import "/@/hooks/system/useListPage";
|
|
|
47
48
|
import "vue-router";
|
|
48
49
|
import "/@/components/Form/src/utils/Area";
|
|
49
50
|
import "/@/components/Preview/index";
|
|
50
|
-
import "./LinkTableListPiece-
|
|
51
|
-
import "./OnlineSelectCascade-
|
|
52
|
-
import "./JModalTip-
|
|
51
|
+
import "./LinkTableListPiece-8499a318.mjs";
|
|
52
|
+
import "./OnlineSelectCascade-4265c95d.mjs";
|
|
53
|
+
import "./JModalTip-33c7dc44.mjs";
|
|
54
|
+
import "/@/hooks/web/useAppInject";
|
|
53
55
|
import "ant-design-vue";
|
|
54
56
|
import "@vueuse/core";
|
|
55
57
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
56
|
-
const
|
|
58
|
+
const Y = P({
|
|
57
59
|
name: "OnlineAutoModal",
|
|
58
60
|
props: {
|
|
59
61
|
id: {
|
|
@@ -62,14 +64,13 @@ const X = D({
|
|
|
62
64
|
}
|
|
63
65
|
},
|
|
64
66
|
components: {
|
|
65
|
-
BasicModal:
|
|
66
|
-
OnlineForm:
|
|
67
|
-
CommentPanel:
|
|
67
|
+
BasicModal: J,
|
|
68
|
+
OnlineForm: K,
|
|
69
|
+
CommentPanel: U
|
|
68
70
|
},
|
|
69
71
|
emits: ["success", "register", "formConfig"],
|
|
70
72
|
setup(e, { emit: l }) {
|
|
71
|
-
|
|
72
|
-
const t = P();
|
|
73
|
+
const t = V();
|
|
73
74
|
function p() {
|
|
74
75
|
t.value && t.value.reload();
|
|
75
76
|
}
|
|
@@ -81,74 +82,74 @@ const X = D({
|
|
|
81
82
|
cgButtonList: o,
|
|
82
83
|
handleCgButtonClick: r,
|
|
83
84
|
disableSubmit: n,
|
|
84
|
-
handleSubmit:
|
|
85
|
-
submitLoading:
|
|
86
|
-
handleCancel:
|
|
87
|
-
handleFormConfig:
|
|
88
|
-
onlineFormCompRef:
|
|
89
|
-
formTemplate:
|
|
90
|
-
isTreeForm:
|
|
91
|
-
pidFieldName:
|
|
92
|
-
renderSuccess:
|
|
93
|
-
formRendered:
|
|
94
|
-
tableName:
|
|
85
|
+
handleSubmit: h,
|
|
86
|
+
submitLoading: F,
|
|
87
|
+
handleCancel: T,
|
|
88
|
+
handleFormConfig: y,
|
|
89
|
+
onlineFormCompRef: B,
|
|
90
|
+
formTemplate: N,
|
|
91
|
+
isTreeForm: I,
|
|
92
|
+
pidFieldName: M,
|
|
93
|
+
renderSuccess: R,
|
|
94
|
+
formRendered: v,
|
|
95
|
+
tableName: $,
|
|
95
96
|
formDataId: w,
|
|
96
|
-
enableComment:
|
|
97
|
+
enableComment: E,
|
|
97
98
|
onCloseEvent: g,
|
|
98
|
-
themeTemplate:
|
|
99
|
-
} =
|
|
100
|
-
function
|
|
101
|
-
l("success",
|
|
99
|
+
themeTemplate: L
|
|
100
|
+
} = Q(!1, { emit: l }, p);
|
|
101
|
+
function O(D) {
|
|
102
|
+
l("success", D), i(), g();
|
|
102
103
|
}
|
|
103
|
-
|
|
104
|
-
function
|
|
104
|
+
W(() => e.id, A, { immediate: !0 });
|
|
105
|
+
function A() {
|
|
105
106
|
return k(this, null, function* () {
|
|
106
|
-
|
|
107
|
+
v.value = !1, e.id && (yield y(e.id, {}));
|
|
107
108
|
});
|
|
108
109
|
}
|
|
109
110
|
return {
|
|
110
111
|
title: d,
|
|
111
|
-
onlineFormCompRef:
|
|
112
|
-
renderSuccess:
|
|
112
|
+
onlineFormCompRef: B,
|
|
113
|
+
renderSuccess: R,
|
|
113
114
|
registerModal: m,
|
|
114
|
-
handleSubmit:
|
|
115
|
-
handleSuccess:
|
|
116
|
-
handleCancel:
|
|
115
|
+
handleSubmit: h,
|
|
116
|
+
handleSuccess: O,
|
|
117
|
+
handleCancel: T,
|
|
117
118
|
modalWidth: s,
|
|
118
|
-
formTemplate:
|
|
119
|
+
formTemplate: N,
|
|
119
120
|
disableSubmit: n,
|
|
120
121
|
cgButtonList: o,
|
|
121
122
|
handleCgButtonClick: r,
|
|
122
|
-
isTreeForm:
|
|
123
|
-
pidFieldName:
|
|
124
|
-
submitLoading:
|
|
125
|
-
tableName:
|
|
123
|
+
isTreeForm: I,
|
|
124
|
+
pidFieldName: M,
|
|
125
|
+
submitLoading: F,
|
|
126
|
+
tableName: $,
|
|
126
127
|
formDataId: w,
|
|
127
|
-
enableComment:
|
|
128
|
+
enableComment: E,
|
|
128
129
|
commentPanelRef: t,
|
|
129
130
|
onCloseEvent: g,
|
|
130
|
-
themeTemplate:
|
|
131
|
+
themeTemplate: L
|
|
131
132
|
};
|
|
132
133
|
}
|
|
133
134
|
});
|
|
134
|
-
function
|
|
135
|
+
function Z(e, l, t, p, d, s) {
|
|
135
136
|
const m = u("a-button"), i = u("online-form"), o = u("comment-panel"), r = u("BasicModal");
|
|
136
|
-
return c(), f(r,
|
|
137
|
+
return c(), f(r, S({
|
|
137
138
|
title: e.title,
|
|
138
139
|
onCancel: e.onCloseEvent,
|
|
139
140
|
enableComment: e.enableComment,
|
|
140
141
|
width: e.modalWidth
|
|
141
142
|
}, e.$attrs, {
|
|
142
|
-
|
|
143
|
+
maxHeight: 600,
|
|
143
144
|
onRegister: e.registerModal,
|
|
144
145
|
wrapClassName: "jeecg-online-modal",
|
|
145
146
|
onOk: e.handleSubmit
|
|
146
147
|
}), {
|
|
147
148
|
footer: a(() => [
|
|
148
|
-
(c(!0), j(
|
|
149
|
+
(c(!0), j(H, null, q(e.cgButtonList, (n) => (c(), f(m, {
|
|
149
150
|
key: n.id,
|
|
150
151
|
type: "primary",
|
|
151
|
-
onClick: (
|
|
152
|
+
onClick: (h) => e.handleCgButtonClick(n.optType, n.buttonCode),
|
|
152
153
|
preIcon: n.buttonIcon ? "ant-design:" + n.buttonIcon : ""
|
|
153
154
|
}, {
|
|
154
155
|
default: a(() => [
|
|
@@ -167,7 +168,7 @@ function Y(e, l, t, p, d, s) {
|
|
|
167
168
|
]),
|
|
168
169
|
_: 1
|
|
169
170
|
}, 8, ["onClick", "loading"])),
|
|
170
|
-
|
|
171
|
+
b(m, {
|
|
171
172
|
key: "back",
|
|
172
173
|
onClick: e.handleCancel
|
|
173
174
|
}, {
|
|
@@ -178,14 +179,14 @@ function Y(e, l, t, p, d, s) {
|
|
|
178
179
|
}, 8, ["onClick"])
|
|
179
180
|
]),
|
|
180
181
|
comment: a(() => [
|
|
181
|
-
|
|
182
|
+
b(o, {
|
|
182
183
|
ref: "commentPanelRef",
|
|
183
184
|
tableName: e.tableName,
|
|
184
185
|
dataId: e.formDataId
|
|
185
186
|
}, null, 8, ["tableName", "dataId"])
|
|
186
187
|
]),
|
|
187
188
|
default: a(() => [
|
|
188
|
-
|
|
189
|
+
b(i, S(e.$attrs, {
|
|
189
190
|
ref: "onlineFormCompRef",
|
|
190
191
|
id: e.id,
|
|
191
192
|
disabled: e.disableSubmit,
|
|
@@ -195,12 +196,12 @@ function Y(e, l, t, p, d, s) {
|
|
|
195
196
|
themeTemplate: e.themeTemplate,
|
|
196
197
|
onRendered: e.renderSuccess,
|
|
197
198
|
onSuccess: e.handleSuccess
|
|
198
|
-
}, null,
|
|
199
|
+
}), null, 16, ["id", "disabled", "form-template", "isTree", "pidField", "themeTemplate", "onRendered", "onSuccess"])
|
|
199
200
|
]),
|
|
200
201
|
_: 1
|
|
201
202
|
}, 16, ["title", "onCancel", "enableComment", "width", "onRegister", "onOk"]);
|
|
202
203
|
}
|
|
203
|
-
const
|
|
204
|
+
const He = /* @__PURE__ */ X(Y, [["render", Z]]);
|
|
204
205
|
export {
|
|
205
|
-
|
|
206
|
+
He as default
|
|
206
207
|
};
|