@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,403 @@
|
|
|
1
|
+
var O = (R, w, c) => new Promise((I, u) => {
|
|
2
|
+
var h = (r) => {
|
|
3
|
+
try {
|
|
4
|
+
C(c.next(r));
|
|
5
|
+
} catch (s) {
|
|
6
|
+
u(s);
|
|
7
|
+
}
|
|
8
|
+
}, n = (r) => {
|
|
9
|
+
try {
|
|
10
|
+
C(c.throw(r));
|
|
11
|
+
} catch (s) {
|
|
12
|
+
u(s);
|
|
13
|
+
}
|
|
14
|
+
}, C = (r) => r.done ? I(r.value) : Promise.resolve(r.value).then(h, n);
|
|
15
|
+
C((c = c.apply(R, w)).next());
|
|
16
|
+
});
|
|
17
|
+
import { ref as B, provide as Fe, watch as K, resolveComponent as J, openBlock as i, createElementBlock as y, Fragment as x, createVNode as p, unref as e, createBlock as d, normalizeClass as De, withCtx as l, createTextVNode as g, createCommentVNode as f, renderList as Le, toDisplayString as T, withDirectives as Pe, vShow as Ae, createElementVNode as F, mergeProps as He, toHandlers as Ke, resolveDynamicComponent as Je, normalizeProps as Ne, guardReactiveProps as ze } from "vue";
|
|
18
|
+
import { BasicTable as Ve, TableAction as $e } from "/@/components/Table";
|
|
19
|
+
import "/@/hooks/web/useMessage";
|
|
20
|
+
import je from "./OnlineAutoModal-510991eb.mjs";
|
|
21
|
+
import qe from "./OnlineCustomModal-518ad33c.mjs";
|
|
22
|
+
import N from "./OnlineDetailModal-9675390d.mjs";
|
|
23
|
+
import Qe from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
24
|
+
import { u as Ue, a as We } from "./useListButton-cdbab702.mjs";
|
|
25
|
+
import { u as Ge, a as Xe, O as Ye } from "./useExtendComponent-325fe3f1.mjs";
|
|
26
|
+
import Ze from "./OnlineQueryForm-1bfc8320.mjs";
|
|
27
|
+
import { u as eo } from "./useOnlinePopEvent-687070b7.mjs";
|
|
28
|
+
import { E as oo } from "./constant-754f1a9d.mjs";
|
|
29
|
+
import { cloneDeep as to } from "lodash-es";
|
|
30
|
+
import "/@/components/Modal";
|
|
31
|
+
import "./OnlineForm-1fa2d893.mjs";
|
|
32
|
+
import "/@/components/Form/index";
|
|
33
|
+
import "/@/utils/http/axios";
|
|
34
|
+
import "/@/utils";
|
|
35
|
+
import "/@/components/Loading";
|
|
36
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
37
|
+
import "/@/utils/auth";
|
|
38
|
+
import "@ant-design/icons-vue";
|
|
39
|
+
import "/@/hooks/core/useContext";
|
|
40
|
+
import "/@/utils/mitt";
|
|
41
|
+
import "./useCustomHook-acb00837.mjs";
|
|
42
|
+
import "/@/utils/cache";
|
|
43
|
+
import "/@/utils/common/compUtils";
|
|
44
|
+
import "/@/store/modules/user";
|
|
45
|
+
import "./index-0e3ab3af.mjs";
|
|
46
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
47
|
+
import "vue-router";
|
|
48
|
+
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
49
|
+
import "./OnlineFormDetail-0e7294ca.mjs";
|
|
50
|
+
import "./DetailForm-424638eb.mjs";
|
|
51
|
+
import "/@/utils/propTypes";
|
|
52
|
+
import "/@/utils/dict";
|
|
53
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
54
|
+
import "/@/utils/dict/index";
|
|
55
|
+
import "/@/api/common/api";
|
|
56
|
+
import "/@/components/Form/src/utils/Area";
|
|
57
|
+
import "/@/components/Preview/index";
|
|
58
|
+
import "/@/components/Markdown";
|
|
59
|
+
import "./OnlineSubFormDetail-f0d2c016.mjs";
|
|
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
|
+
const no = {
|
|
80
|
+
key: 0,
|
|
81
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
82
|
+
}, io = {
|
|
83
|
+
key: 0,
|
|
84
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
85
|
+
}, lo = ["src", "onClick"], ro = ["innerHTML"], ao = ["title"], Tt = {
|
|
86
|
+
__name: "OnlCgformErpSubTable",
|
|
87
|
+
props: ["data", "mainTableSelectedRowRcord"],
|
|
88
|
+
emits: ["getSource"],
|
|
89
|
+
setup(R, { emit: w }) {
|
|
90
|
+
const c = R, I = w, u = B(!1), {
|
|
91
|
+
ID: h,
|
|
92
|
+
onlineTableContext: n,
|
|
93
|
+
onlineQueryFormOuter: C,
|
|
94
|
+
loading: r,
|
|
95
|
+
reload: s,
|
|
96
|
+
dataSource: b,
|
|
97
|
+
pagination: z,
|
|
98
|
+
handleSpecialConfig: V,
|
|
99
|
+
getColumnList: co,
|
|
100
|
+
handleChangeInTable: $,
|
|
101
|
+
loadData: j,
|
|
102
|
+
onlineExtConfigJson: D,
|
|
103
|
+
handleFormConfig: q,
|
|
104
|
+
registerCustomModal: Q,
|
|
105
|
+
tableReloading: U
|
|
106
|
+
} = Ue({ code: c.data.code, themeTemplate: oo });
|
|
107
|
+
n.isErpSubTable = !0;
|
|
108
|
+
let { initCgEnhanceJs: W } = Ge(n);
|
|
109
|
+
const {
|
|
110
|
+
buttonSwitch: k,
|
|
111
|
+
cgLinkButtonList: so,
|
|
112
|
+
cgTopButtonList: M,
|
|
113
|
+
importUrl: G,
|
|
114
|
+
registerModal: X,
|
|
115
|
+
handleAdd: Y,
|
|
116
|
+
handleEdit: uo,
|
|
117
|
+
handleBatchDelete: Z,
|
|
118
|
+
registerImportModal: ee,
|
|
119
|
+
onImportExcel: oe,
|
|
120
|
+
onExportExcel: te,
|
|
121
|
+
cgButtonJsHandler: ne,
|
|
122
|
+
cgButtonActionHandler: ie,
|
|
123
|
+
cgButtonLinkHandler: po,
|
|
124
|
+
handleSubmitFlow: mo,
|
|
125
|
+
getDropDownActions: le,
|
|
126
|
+
getActions: re,
|
|
127
|
+
initButtonList: ae,
|
|
128
|
+
initButtonSwitch: ce,
|
|
129
|
+
registerDetailModal: se,
|
|
130
|
+
registerBpmModal: go
|
|
131
|
+
} = We(n, D), E = B(!1);
|
|
132
|
+
function ue() {
|
|
133
|
+
return O(this, null, function* () {
|
|
134
|
+
try {
|
|
135
|
+
E.value = !0, yield te();
|
|
136
|
+
} finally {
|
|
137
|
+
setTimeout(() => E.value = !1, 1500);
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
const {
|
|
142
|
+
columns: pe,
|
|
143
|
+
actionColumn: de,
|
|
144
|
+
selectedKeys: me,
|
|
145
|
+
rowSelection: ge,
|
|
146
|
+
enableScrollBar: fe,
|
|
147
|
+
tableScroll: ye,
|
|
148
|
+
downloadRowFile: he,
|
|
149
|
+
getImgView: Ce,
|
|
150
|
+
getPcaText: L,
|
|
151
|
+
getFormatDate: be,
|
|
152
|
+
handleColumnResult: ke,
|
|
153
|
+
hrefComponent: S,
|
|
154
|
+
viewOnlineCellImage: Se,
|
|
155
|
+
hrefMainTableId: _e,
|
|
156
|
+
registerOnlineHrefModal: ve,
|
|
157
|
+
registerPopModal: Te,
|
|
158
|
+
openPopModal: Re,
|
|
159
|
+
onlinePopModalRef: we,
|
|
160
|
+
popTableId: P
|
|
161
|
+
} = Xe(n, D);
|
|
162
|
+
Ie(to(c.data));
|
|
163
|
+
const A = B(null), _ = c.data.foreignKeys;
|
|
164
|
+
let H;
|
|
165
|
+
if (_ != null && _.length) {
|
|
166
|
+
const t = _[0], a = t.field;
|
|
167
|
+
H = t.key, n.foreignKeyField = a;
|
|
168
|
+
} else
|
|
169
|
+
n.foreignKeyField = null, n.foreignKeyValue = null;
|
|
170
|
+
Fe("foreignkey", A), K(
|
|
171
|
+
() => c.mainTableSelectedRowRcord,
|
|
172
|
+
(t) => {
|
|
173
|
+
if (t) {
|
|
174
|
+
if (n.foreignKeyField) {
|
|
175
|
+
const a = t[H];
|
|
176
|
+
n.foreignKeyValue = a, A.value = { field: n.foreignKeyField, value: a };
|
|
177
|
+
}
|
|
178
|
+
u.value = !0, r.value = !0, j().finally(() => {
|
|
179
|
+
r.value = !1;
|
|
180
|
+
});
|
|
181
|
+
} else
|
|
182
|
+
u.value = !1, b.value = [];
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
immediate: !0
|
|
186
|
+
}
|
|
187
|
+
), K(
|
|
188
|
+
() => b.value,
|
|
189
|
+
() => {
|
|
190
|
+
I("getSource", c.data.currentTableName, b.value);
|
|
191
|
+
},
|
|
192
|
+
{ immediate: !0 }
|
|
193
|
+
);
|
|
194
|
+
function Ie(t) {
|
|
195
|
+
return O(this, null, function* () {
|
|
196
|
+
Me(t), r.value = !1, n.execButtonEnhance("setup");
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
function Me(t) {
|
|
200
|
+
let a = W(t.enhanceJs);
|
|
201
|
+
n.EnhanceJS = a, ae(t.cgButtonList), ce(t.hideColumns), ke(t), V(t);
|
|
202
|
+
}
|
|
203
|
+
function Ee(t) {
|
|
204
|
+
n.queryParam = t, s({ mode: "search" });
|
|
205
|
+
}
|
|
206
|
+
function Oe(t) {
|
|
207
|
+
P.value = t.id;
|
|
208
|
+
let a = {
|
|
209
|
+
title: t.describe
|
|
210
|
+
};
|
|
211
|
+
t.record && t.record.id && (a.record = t.record, a.isUpdate = !0), Re(!0, a);
|
|
212
|
+
}
|
|
213
|
+
return eo(Oe), (t, a) => {
|
|
214
|
+
const m = J("a-button"), Be = J("a-modal");
|
|
215
|
+
return i(), y(x, null, [
|
|
216
|
+
p(Ze, {
|
|
217
|
+
ref_key: "onlineQueryFormOuter",
|
|
218
|
+
ref: C,
|
|
219
|
+
id: e(h),
|
|
220
|
+
onSearch: Ee
|
|
221
|
+
}, null, 8, ["id"]),
|
|
222
|
+
e(U) ? f("", !0) : (i(), d(e(Ve), {
|
|
223
|
+
key: 0,
|
|
224
|
+
ref: "onlineTable",
|
|
225
|
+
rowKey: "jeecg_row_key",
|
|
226
|
+
canResize: !0,
|
|
227
|
+
bordered: !0,
|
|
228
|
+
showIndexColumn: !1,
|
|
229
|
+
loading: e(r),
|
|
230
|
+
columns: e(pe),
|
|
231
|
+
dataSource: e(b),
|
|
232
|
+
pagination: e(z),
|
|
233
|
+
rowSelection: e(ge),
|
|
234
|
+
actionColumn: e(de),
|
|
235
|
+
showTableSetting: !0,
|
|
236
|
+
clickToRowSelect: !1,
|
|
237
|
+
scroll: e(ye),
|
|
238
|
+
onTableRedo: e(s),
|
|
239
|
+
class: De({ "j-table-force-nowrap": e(fe) }),
|
|
240
|
+
onChange: e($),
|
|
241
|
+
minHeight: 300
|
|
242
|
+
}, {
|
|
243
|
+
tableTitle: l(() => [
|
|
244
|
+
u.value && e(k).add ? (i(), d(m, {
|
|
245
|
+
key: 0,
|
|
246
|
+
preIcon: "ant-design:plus-outlined",
|
|
247
|
+
type: "primary",
|
|
248
|
+
onClick: e(Y)
|
|
249
|
+
}, {
|
|
250
|
+
default: l(() => [
|
|
251
|
+
g("新增")
|
|
252
|
+
]),
|
|
253
|
+
_: 1
|
|
254
|
+
}, 8, ["onClick"])) : f("", !0),
|
|
255
|
+
u.value && e(k).import ? (i(), d(m, {
|
|
256
|
+
key: 1,
|
|
257
|
+
preIcon: "ant-design:import-outlined",
|
|
258
|
+
type: "primary",
|
|
259
|
+
onClick: e(oe)
|
|
260
|
+
}, {
|
|
261
|
+
default: l(() => [
|
|
262
|
+
g("导入")
|
|
263
|
+
]),
|
|
264
|
+
_: 1
|
|
265
|
+
}, 8, ["onClick"])) : f("", !0),
|
|
266
|
+
u.value && e(k).export ? (i(), d(m, {
|
|
267
|
+
key: 2,
|
|
268
|
+
preIcon: "ant-design:export-outlined",
|
|
269
|
+
type: "primary",
|
|
270
|
+
loading: E.value,
|
|
271
|
+
onClick: ue
|
|
272
|
+
}, {
|
|
273
|
+
default: l(() => [
|
|
274
|
+
g(" 导出")
|
|
275
|
+
]),
|
|
276
|
+
_: 1
|
|
277
|
+
}, 8, ["loading"])) : f("", !0),
|
|
278
|
+
u.value && e(M) && e(M).length > 0 ? (i(!0), y(x, { key: 3 }, Le(e(M), (o, v) => (i(), y(x, null, [
|
|
279
|
+
o.optType == "js" ? (i(), d(m, {
|
|
280
|
+
key: "cgbtn" + v,
|
|
281
|
+
onClick: (xe) => e(ne)(o.buttonCode),
|
|
282
|
+
type: "primary",
|
|
283
|
+
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
284
|
+
}, {
|
|
285
|
+
default: l(() => [
|
|
286
|
+
g(T(o.buttonName), 1)
|
|
287
|
+
]),
|
|
288
|
+
_: 2
|
|
289
|
+
}, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (i(), d(m, {
|
|
290
|
+
key: "cgbtn" + v,
|
|
291
|
+
onClick: (xe) => e(ie)(o.buttonCode),
|
|
292
|
+
type: "primary",
|
|
293
|
+
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
294
|
+
}, {
|
|
295
|
+
default: l(() => [
|
|
296
|
+
g(T(o.buttonName), 1)
|
|
297
|
+
]),
|
|
298
|
+
_: 2
|
|
299
|
+
}, 1032, ["onClick", "preIcon"])) : f("", !0)
|
|
300
|
+
], 64))), 256)) : f("", !0),
|
|
301
|
+
e(k).batch_delete ? Pe((i(), d(m, {
|
|
302
|
+
key: 4,
|
|
303
|
+
preIcon: "ant-design:delete-outlined",
|
|
304
|
+
onClick: e(Z)
|
|
305
|
+
}, {
|
|
306
|
+
default: l(() => [
|
|
307
|
+
g(" 批量删除")
|
|
308
|
+
]),
|
|
309
|
+
_: 1
|
|
310
|
+
}, 8, ["onClick"])), [
|
|
311
|
+
[Ae, e(me).length > 0]
|
|
312
|
+
]) : f("", !0)
|
|
313
|
+
]),
|
|
314
|
+
fileSlot: l(({ text: o }) => [
|
|
315
|
+
o ? (i(), d(m, {
|
|
316
|
+
key: 1,
|
|
317
|
+
ghost: !0,
|
|
318
|
+
type: "primary",
|
|
319
|
+
preIcon: "ant-design:download",
|
|
320
|
+
size: "small",
|
|
321
|
+
onClick: (v) => e(he)(o)
|
|
322
|
+
}, {
|
|
323
|
+
default: l(() => [
|
|
324
|
+
g(" 下载 ")
|
|
325
|
+
]),
|
|
326
|
+
_: 2
|
|
327
|
+
}, 1032, ["onClick"])) : (i(), y("span", no, "无文件"))
|
|
328
|
+
]),
|
|
329
|
+
imgSlot: l(({ text: o }) => [
|
|
330
|
+
o ? (i(), y("img", {
|
|
331
|
+
key: 1,
|
|
332
|
+
src: e(Ce)(o),
|
|
333
|
+
alt: "图片不存在",
|
|
334
|
+
class: "online-cell-image",
|
|
335
|
+
onClick: (v) => e(Se)(o)
|
|
336
|
+
}, null, 8, lo)) : (i(), y("span", io, "无图片"))
|
|
337
|
+
]),
|
|
338
|
+
htmlSlot: l(({ text: o }) => [
|
|
339
|
+
F("div", { innerHTML: o }, null, 8, ro)
|
|
340
|
+
]),
|
|
341
|
+
pcaSlot: l(({ text: o }) => [
|
|
342
|
+
F("div", {
|
|
343
|
+
title: e(L)(o)
|
|
344
|
+
}, T(e(L)(o)), 9, ao)
|
|
345
|
+
]),
|
|
346
|
+
dateSlot: l(({ text: o }) => [
|
|
347
|
+
F("span", null, T(e(be)(o)), 1)
|
|
348
|
+
]),
|
|
349
|
+
action: l(({ record: o }) => [
|
|
350
|
+
p(e($e), {
|
|
351
|
+
actions: e(re)(o),
|
|
352
|
+
dropDownActions: e(le)(o)
|
|
353
|
+
}, null, 8, ["actions", "dropDownActions"])
|
|
354
|
+
]),
|
|
355
|
+
_: 1
|
|
356
|
+
}, 8, ["loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
|
|
357
|
+
p(je, {
|
|
358
|
+
id: e(h),
|
|
359
|
+
onRegister: e(X),
|
|
360
|
+
onSuccess: e(s),
|
|
361
|
+
onFormConfig: e(q)
|
|
362
|
+
}, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
|
|
363
|
+
p(N, {
|
|
364
|
+
id: e(h),
|
|
365
|
+
onRegister: e(se)
|
|
366
|
+
}, null, 8, ["id", "onRegister"]),
|
|
367
|
+
p(Qe, {
|
|
368
|
+
onRegister: e(ee),
|
|
369
|
+
url: e(G)(),
|
|
370
|
+
onOk: e(s),
|
|
371
|
+
online: ""
|
|
372
|
+
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
373
|
+
p(Be, He(e(S).model, Ke(e(S).on)), {
|
|
374
|
+
default: l(() => [
|
|
375
|
+
(i(), d(Je(e(S).is), Ne(ze(e(S).params)), null, 16))
|
|
376
|
+
]),
|
|
377
|
+
_: 1
|
|
378
|
+
}, 16),
|
|
379
|
+
p(qe, {
|
|
380
|
+
onRegister: e(Q),
|
|
381
|
+
onSuccess: e(s)
|
|
382
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
383
|
+
p(N, {
|
|
384
|
+
id: e(_e),
|
|
385
|
+
onRegister: e(ve),
|
|
386
|
+
defaultFullscreen: !1
|
|
387
|
+
}, null, 8, ["id", "onRegister"]),
|
|
388
|
+
p(Ye, {
|
|
389
|
+
ref_key: "onlinePopModalRef",
|
|
390
|
+
ref: we,
|
|
391
|
+
id: e(P),
|
|
392
|
+
onRegister: e(Te),
|
|
393
|
+
onSuccess: e(s),
|
|
394
|
+
request: "",
|
|
395
|
+
topTip: ""
|
|
396
|
+
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
397
|
+
], 64);
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
export {
|
|
402
|
+
Tt as default
|
|
403
|
+
};
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
var M = (h, c, a) => new Promise((d, n) => {
|
|
2
|
+
var u = (i) => {
|
|
3
|
+
try {
|
|
4
|
+
g(a.next(i));
|
|
5
|
+
} catch (f) {
|
|
6
|
+
n(f);
|
|
7
|
+
}
|
|
8
|
+
}, s = (i) => {
|
|
9
|
+
try {
|
|
10
|
+
g(a.throw(i));
|
|
11
|
+
} catch (f) {
|
|
12
|
+
n(f);
|
|
13
|
+
}
|
|
14
|
+
}, g = (i) => i.done ? d(i.value) : Promise.resolve(i.value).then(u, s);
|
|
15
|
+
g((a = a.apply(h, c)).next());
|
|
16
|
+
});
|
|
17
|
+
import { watch as ne, resolveComponent as w, openBlock as l, createElementBlock as _, Fragment as ie, unref as e, createBlock as C, normalizeClass as le, withCtx as r, createTextVNode as re, createElementVNode as T, toDisplayString as y, createCommentVNode as ae, createVNode as p, mergeProps as se, toHandlers as me, resolveDynamicComponent as pe, normalizeProps as ce, guardReactiveProps as de } from "vue";
|
|
18
|
+
import { BasicTable as ue } from "/@/components/Table";
|
|
19
|
+
import { useMessage as ge } from "/@/hooks/web/useMessage";
|
|
20
|
+
import fe from "./OnlineCustomModal-518ad33c.mjs";
|
|
21
|
+
import k from "./OnlineDetailModal-9675390d.mjs";
|
|
22
|
+
import be from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
23
|
+
import { u as _e, a as he } from "./useListButton-cdbab702.mjs";
|
|
24
|
+
import { u as Ce, a as Te, O as Se } from "./useExtendComponent-325fe3f1.mjs";
|
|
25
|
+
import { u as Re } from "./useOnlinePopEvent-687070b7.mjs";
|
|
26
|
+
import { I as Ie } from "./constant-754f1a9d.mjs";
|
|
27
|
+
import "/@/components/Table/src/const";
|
|
28
|
+
import "/@/components/Modal";
|
|
29
|
+
import "/@/utils/http/axios";
|
|
30
|
+
import "./OnlineForm-1fa2d893.mjs";
|
|
31
|
+
import "/@/components/Form/index";
|
|
32
|
+
import "lodash-es";
|
|
33
|
+
import "/@/utils";
|
|
34
|
+
import "/@/components/Loading";
|
|
35
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
36
|
+
import "/@/utils/auth";
|
|
37
|
+
import "@ant-design/icons-vue";
|
|
38
|
+
import "/@/hooks/core/useContext";
|
|
39
|
+
import "/@/utils/mitt";
|
|
40
|
+
import "./useCustomHook-acb00837.mjs";
|
|
41
|
+
import "/@/utils/cache";
|
|
42
|
+
import "/@/utils/common/compUtils";
|
|
43
|
+
import "/@/store/modules/user";
|
|
44
|
+
import "./index-0e3ab3af.mjs";
|
|
45
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
46
|
+
import "vue-router";
|
|
47
|
+
import "./OnlineFormDetail-0e7294ca.mjs";
|
|
48
|
+
import "./DetailForm-424638eb.mjs";
|
|
49
|
+
import "/@/utils/propTypes";
|
|
50
|
+
import "/@/utils/dict";
|
|
51
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
52
|
+
import "/@/utils/dict/index";
|
|
53
|
+
import "/@/api/common/api";
|
|
54
|
+
import "/@/components/Form/src/utils/Area";
|
|
55
|
+
import "/@/components/Preview/index";
|
|
56
|
+
import "/@/components/Markdown";
|
|
57
|
+
import "./OnlineSubFormDetail-f0d2c016.mjs";
|
|
58
|
+
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
59
|
+
import "/@/router";
|
|
60
|
+
import "/@/hooks/core/onMountedOrActivated";
|
|
61
|
+
import "/@/store/modules/multipleTab";
|
|
62
|
+
import "./cgformState-d9f8ec42.mjs";
|
|
63
|
+
import "pinia";
|
|
64
|
+
import "/@/store";
|
|
65
|
+
import "ant-design-vue";
|
|
66
|
+
import "/@/hooks/system/useMethods";
|
|
67
|
+
import "/@/components/Form/src/componentMap";
|
|
68
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
69
|
+
import "/@/views/system/user/user.api";
|
|
70
|
+
import "/@/utils/desform/customExpression";
|
|
71
|
+
import "/@/store/modules/permission";
|
|
72
|
+
import "/@/hooks/system/useListPage";
|
|
73
|
+
import "./LinkTableListPiece-8499a318.mjs";
|
|
74
|
+
import "./OnlineSelectCascade-4265c95d.mjs";
|
|
75
|
+
import "./JModalTip-33c7dc44.mjs";
|
|
76
|
+
import "/@/hooks/web/useAppInject";
|
|
77
|
+
import "@vueuse/core";
|
|
78
|
+
const Me = {
|
|
79
|
+
key: 0,
|
|
80
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
81
|
+
}, we = {
|
|
82
|
+
key: 0,
|
|
83
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
84
|
+
}, ye = ["src", "onClick"], ke = ["innerHTML"], ve = ["title"], Vo = {
|
|
85
|
+
__name: "OnlCgformInnerSubTable",
|
|
86
|
+
props: ["subTableId", "subTableName", "mTableSelectedRcordId"],
|
|
87
|
+
setup(h) {
|
|
88
|
+
const c = h, { createMessage: a } = ge(), {
|
|
89
|
+
ID: d,
|
|
90
|
+
onlineTableContext: n,
|
|
91
|
+
loading: u,
|
|
92
|
+
reload: s,
|
|
93
|
+
dataSource: g,
|
|
94
|
+
handleSpecialConfig: i,
|
|
95
|
+
getColumnList: f,
|
|
96
|
+
handleChangeInTable: v,
|
|
97
|
+
loadData: O,
|
|
98
|
+
onlineExtConfigJson: S,
|
|
99
|
+
registerCustomModal: B,
|
|
100
|
+
tableReloading: P
|
|
101
|
+
} = _e({ code: c.subTableId });
|
|
102
|
+
n.isInnerSubTable = !0, n.innerSubTableName = c.subTableName, n.mTableSelectedRcordId = c.mTableSelectedRcordId, d.value || a.warning("地址错误, 配置ID不存在!");
|
|
103
|
+
let { initCgEnhanceJs: E } = Ce(n);
|
|
104
|
+
const {
|
|
105
|
+
importUrl: x,
|
|
106
|
+
registerImportModal: L,
|
|
107
|
+
initButtonList: N,
|
|
108
|
+
initButtonSwitch: D,
|
|
109
|
+
registerDetailModal: z,
|
|
110
|
+
registerBpmModal: Oe
|
|
111
|
+
} = he(n, S), {
|
|
112
|
+
columns: J,
|
|
113
|
+
enableScrollBar: V,
|
|
114
|
+
tableScroll: F,
|
|
115
|
+
downloadRowFile: H,
|
|
116
|
+
getImgView: A,
|
|
117
|
+
getPcaText: R,
|
|
118
|
+
getFormatDate: $,
|
|
119
|
+
handleColumnResult: j,
|
|
120
|
+
hrefComponent: b,
|
|
121
|
+
viewOnlineCellImage: U,
|
|
122
|
+
hrefMainTableId: q,
|
|
123
|
+
registerOnlineHrefModal: K,
|
|
124
|
+
registerPopModal: G,
|
|
125
|
+
openPopModal: Q,
|
|
126
|
+
onlinePopModalRef: W,
|
|
127
|
+
popTableId: I
|
|
128
|
+
} = Te(n, S);
|
|
129
|
+
ne(
|
|
130
|
+
d,
|
|
131
|
+
() => {
|
|
132
|
+
X();
|
|
133
|
+
},
|
|
134
|
+
{ immediate: !0 }
|
|
135
|
+
);
|
|
136
|
+
function X() {
|
|
137
|
+
return M(this, null, function* () {
|
|
138
|
+
u.value = !0;
|
|
139
|
+
let o = yield f(Ie);
|
|
140
|
+
Y(o), yield O(), u.value = !1, n.execButtonEnhance("setup");
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
function Y(o) {
|
|
144
|
+
let m = E(o.enhanceJs);
|
|
145
|
+
n.EnhanceJS = m, N(o.cgButtonList), D(o.hideColumns), j(o), i(o);
|
|
146
|
+
}
|
|
147
|
+
function Z(o) {
|
|
148
|
+
I.value = o.id;
|
|
149
|
+
let m = {
|
|
150
|
+
title: o.describe
|
|
151
|
+
};
|
|
152
|
+
o.record && o.record.id && (m.record = o.record, m.isUpdate = !0), Q(!0, m);
|
|
153
|
+
}
|
|
154
|
+
return Re(Z), (o, m) => {
|
|
155
|
+
const ee = w("a-button"), oe = w("a-modal");
|
|
156
|
+
return l(), _(ie, null, [
|
|
157
|
+
e(P) ? ae("", !0) : (l(), C(e(ue), {
|
|
158
|
+
key: 0,
|
|
159
|
+
ref: "onlineTable",
|
|
160
|
+
rowKey: "jeecg_row_key",
|
|
161
|
+
canResize: !0,
|
|
162
|
+
bordered: !0,
|
|
163
|
+
showIndexColumn: !1,
|
|
164
|
+
loading: e(u),
|
|
165
|
+
columns: e(J),
|
|
166
|
+
dataSource: e(g),
|
|
167
|
+
pagination: !1,
|
|
168
|
+
showActionColumn: !1,
|
|
169
|
+
showTableSetting: !1,
|
|
170
|
+
clickToRowSelect: !1,
|
|
171
|
+
scroll: e(F),
|
|
172
|
+
onTableRedo: e(s),
|
|
173
|
+
class: le({ "j-table-force-nowrap": e(V) }),
|
|
174
|
+
onChange: e(v)
|
|
175
|
+
}, {
|
|
176
|
+
fileSlot: r(({ text: t }) => [
|
|
177
|
+
t ? (l(), C(ee, {
|
|
178
|
+
key: 1,
|
|
179
|
+
ghost: !0,
|
|
180
|
+
type: "primary",
|
|
181
|
+
preIcon: "ant-design:download",
|
|
182
|
+
size: "small",
|
|
183
|
+
onClick: (te) => e(H)(t)
|
|
184
|
+
}, {
|
|
185
|
+
default: r(() => [
|
|
186
|
+
re(" 下载 ")
|
|
187
|
+
]),
|
|
188
|
+
_: 2
|
|
189
|
+
}, 1032, ["onClick"])) : (l(), _("span", Me, "无文件"))
|
|
190
|
+
]),
|
|
191
|
+
imgSlot: r(({ text: t }) => [
|
|
192
|
+
t ? (l(), _("img", {
|
|
193
|
+
key: 1,
|
|
194
|
+
src: e(A)(t),
|
|
195
|
+
alt: "图片不存在",
|
|
196
|
+
class: "online-cell-image",
|
|
197
|
+
onClick: (te) => e(U)(t)
|
|
198
|
+
}, null, 8, ye)) : (l(), _("span", we, "无图片"))
|
|
199
|
+
]),
|
|
200
|
+
htmlSlot: r(({ text: t }) => [
|
|
201
|
+
T("div", { innerHTML: t }, null, 8, ke)
|
|
202
|
+
]),
|
|
203
|
+
pcaSlot: r(({ text: t }) => [
|
|
204
|
+
T("div", {
|
|
205
|
+
title: e(R)(t)
|
|
206
|
+
}, y(e(R)(t)), 9, ve)
|
|
207
|
+
]),
|
|
208
|
+
dateSlot: r(({ text: t }) => [
|
|
209
|
+
T("span", null, y(e($)(t)), 1)
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
}, 8, ["loading", "columns", "dataSource", "scroll", "onTableRedo", "class", "onChange"])),
|
|
213
|
+
p(k, {
|
|
214
|
+
id: e(d),
|
|
215
|
+
onRegister: e(z)
|
|
216
|
+
}, null, 8, ["id", "onRegister"]),
|
|
217
|
+
p(be, {
|
|
218
|
+
onRegister: e(L),
|
|
219
|
+
url: e(x)(),
|
|
220
|
+
onOk: e(s),
|
|
221
|
+
online: ""
|
|
222
|
+
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
223
|
+
p(oe, se(e(b).model, me(e(b).on)), {
|
|
224
|
+
default: r(() => [
|
|
225
|
+
(l(), C(pe(e(b).is), ce(de(e(b).params)), null, 16))
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
}, 16),
|
|
229
|
+
p(fe, {
|
|
230
|
+
onRegister: e(B),
|
|
231
|
+
onSuccess: e(s)
|
|
232
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
233
|
+
p(k, {
|
|
234
|
+
id: e(q),
|
|
235
|
+
onRegister: e(K),
|
|
236
|
+
defaultFullscreen: !1
|
|
237
|
+
}, null, 8, ["id", "onRegister"]),
|
|
238
|
+
p(Se, {
|
|
239
|
+
ref_key: "onlinePopModalRef",
|
|
240
|
+
ref: W,
|
|
241
|
+
id: e(I),
|
|
242
|
+
onRegister: e(G),
|
|
243
|
+
onSuccess: e(s),
|
|
244
|
+
request: "",
|
|
245
|
+
topTip: ""
|
|
246
|
+
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
247
|
+
], 64);
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
export {
|
|
252
|
+
Vo as default
|
|
253
|
+
};
|