@jeecg/online 3.7.1-RC → 3.7.4
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/AccountLoginForm-d2fed52f.mjs +254 -0
- package/AiModal-fbe4b68a.mjs +84 -0
- package/AppForgetPassword-3b3bec82.mjs +310 -0
- package/AppLogin-cd2e2a87.mjs +287 -0
- package/AppLoginHeader-9b5be678.mjs +27 -0
- package/AppNameEmail-b4e32ae8.mjs +180 -0
- package/AppRegister-7117b66a.mjs +303 -0
- package/AppTenant-5817729b.mjs +373 -0
- package/AppThirdForm-d14fb5e5.mjs +189 -0
- package/AuthButtonConfig-5e3b6d72.mjs +156 -0
- package/AuthButtonTree-7b4ec967.mjs +165 -0
- package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-48ee9228.mjs} +23 -23
- package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-02b3ba05.mjs} +43 -43
- package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-562cc6b6.mjs} +71 -71
- package/AuthFieldTree-2d458c0c.mjs +232 -0
- package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-38299230.mjs} +6 -6
- package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-78b06703.mjs} +9 -9
- package/BuiltInButtonList-bb6cf95c.mjs +10 -0
- package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
- package/CgformAddressModal-1b9cbe19.mjs +260 -0
- package/CgformCopyList-580bba0f.mjs +252 -0
- package/{CgformModal-21c5c387.mjs → CgformModal-12951453.mjs} +190 -194
- package/{CgreportModal-edefa8e3.mjs → CgreportModal-bfeb93ed.mjs} +181 -168
- package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-3c1e59e0.mjs} +3 -3
- package/CodeFileListModal-71752603.mjs +159 -0
- package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-eb803769.mjs} +66 -66
- package/CodeGeneratorModal-2fe1e920.mjs +281 -0
- package/CustomButtonList-22b5cdb3.mjs +274 -0
- package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-eb25565c.mjs} +3 -3
- package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-049b4bbd.mjs} +53 -54
- package/{DetailForm-deecbf3d.mjs → DetailForm-c127c27f.mjs} +5 -5
- package/DropMenuItem-b1a8f47d.mjs +44 -0
- package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-1a4d696b.mjs} +62 -62
- package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-48cf43ad.mjs} +35 -35
- package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-0e1f15f8.mjs} +102 -102
- package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-6a1aa471.mjs} +67 -67
- package/ErrorTip-bb616e32.mjs +7 -0
- package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
- package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-37af21a5.mjs} +2 -2
- package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-9441e08e.mjs} +2 -2
- package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-04490919.mjs} +23 -23
- package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-06300a47.mjs} +3 -3
- package/{IndexTable-cdcc2b48.mjs → IndexTable-79bddd5c.mjs} +3 -3
- package/JModalTip-192fafa1.mjs +49 -0
- package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-9abcf657.mjs} +1 -1
- package/{LeftDepart-d5615ed9.mjs → LeftDepart-35d78655.mjs} +1 -1
- package/LeftRole-9d88976d.mjs +86 -0
- package/{LeftUser-22baa378.mjs → LeftUser-04c89aea.mjs} +30 -30
- package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-5f94ef13.mjs} +43 -31
- package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-40753de5.mjs} +1 -1
- package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-179035c7.mjs} +1 -1
- package/{ModalFormDemo-711418db.mjs → ModalFormDemo-3a85920c.mjs} +1 -1
- package/OnlCgformErpList-8fd15fc1.mjs +488 -0
- package/OnlCgformErpSubTable-3515150b.mjs +441 -0
- package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-13e888c6.mjs} +38 -38
- package/OnlCgformInnerTableList-2e8f853c.mjs +474 -0
- package/OnlCgformTabList-583ac15f.mjs +424 -0
- package/OnlineAutoList-36ec0957.mjs +513 -0
- package/OnlineAutoModal-c0743caf.mjs +260 -0
- package/OnlineAutoTreeList-1cd718be.mjs +523 -0
- package/OnlineCustomModal-661ee850.mjs +232 -0
- package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-785e848e.mjs} +74 -65
- package/OnlineForm-c1fb38eb.mjs +1012 -0
- package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-50186870.mjs} +7 -7
- package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-905bf251.mjs} +9 -9
- package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-a9dd2bfa.mjs} +11 -11
- package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-b8941f05.mjs} +9 -9
- package/OnlineFormUrlSuccess-ecaf6a21.mjs +59 -0
- package/OnlineQueryForm-ca6186a3.mjs +484 -0
- package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-5c503a51.mjs} +82 -82
- package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-a3e686b3.mjs} +1 -1
- package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-be1ad3b9.mjs} +52 -53
- package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-fb59b573.mjs} +108 -95
- package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-4b9c4838.mjs} +36 -36
- package/OnlineTabForm-89389384.mjs +814 -0
- package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-72173ae4.mjs} +17 -17
- package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-345b97fe.mjs} +108 -108
- package/PhoneLoginForm-8ca7e2d4.mjs +214 -0
- package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-485b5679.mjs} +32 -32
- package/{QueryTable-f7bfca7f.mjs → QueryTable-f0a88d78.mjs} +3 -3
- package/SetSwitchOptions-cdcb22a1.mjs +62 -0
- package/ShareAddView-f713c0a5.mjs +86 -0
- package/ShareEditView-691764ad.mjs +92 -0
- package/ShareView-df344a8d.mjs +80 -0
- package/ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs +162 -0
- package/SingleView-ad0287d6.mjs +68 -0
- package/SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs +131 -0
- package/SuperQuery-2b293e3b.mjs +974 -0
- package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
- package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
- package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
- package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
- package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
- package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
- package/index-181f8344.mjs +219 -0
- package/index-19eaef11.mjs +11 -0
- package/{index-30e0e923.mjs → index-3c7392a4.mjs} +272 -262
- package/{index-f30613d1.mjs → index-3ccda826.mjs} +59 -59
- package/index-5e89258d.mjs +8 -0
- package/index-93341e02.mjs +110 -0
- package/index-bef7fe2d.mjs +74 -0
- package/index-d6f9ada7.mjs +135 -0
- package/index-f3683351.mjs +57 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/shareStore-7de6c7a6.mjs +67 -0
- package/style.css +1 -1
- package/useCgformList-13c8aab7.mjs +378 -0
- package/useExtendComponent-3f5734ca.mjs +4459 -0
- package/useListButton-ee23874a.mjs +719 -0
- package/{useSchemas-a9c75b0f.mjs → useSchemas-f1819e54.mjs} +72 -39
- package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
- package/utils-9fce7606.mjs +16 -0
- package/AiModal-6de335e3.mjs +0 -84
- package/AuthButtonConfig-89763932.mjs +0 -154
- package/AuthButtonTree-2d87d0b3.mjs +0 -157
- package/AuthFieldTree-e326fc38.mjs +0 -232
- package/CgformCopyList-365b3e8f.mjs +0 -251
- package/CodeFileListModal-24601898.mjs +0 -159
- package/CodeGeneratorModal-f09fe903.mjs +0 -282
- package/CustomButtonList-f07bc695.mjs +0 -397
- package/JModalTip-b055ab60.mjs +0 -49
- package/LeftRole-2ed8a2bf.mjs +0 -86
- package/OnlCgformErpList-58acdfa0.mjs +0 -470
- package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
- package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
- package/OnlCgformTabList-019ad753.mjs +0 -408
- package/OnlineAutoList-48589d09.mjs +0 -493
- package/OnlineAutoModal-c2928847.mjs +0 -239
- package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
- package/OnlineCustomModal-9e17b6ce.mjs +0 -232
- package/OnlineForm-9f1153ba.mjs +0 -985
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
- package/OnlineQueryForm-eedb9a60.mjs +0 -466
- package/OnlineTabForm-27655c83.mjs +0 -817
- package/SetSwitchOptions-b2af757f.mjs +0 -62
- package/SuperQuery-a8592995.mjs +0 -967
- package/index-1d1a6e56.mjs +0 -57
- package/useCgformList-f41d4dc1.mjs +0 -426
- package/useExtendComponent-dcae5c78.mjs +0 -4399
- package/useListButton-bfac4ecf.mjs +0 -697
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
var R = (e, m, l) => new Promise((w, f) => {
|
|
2
|
+
var b = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
B(l.next(t));
|
|
5
|
+
} catch (C) {
|
|
6
|
+
f(C);
|
|
7
|
+
}
|
|
8
|
+
}, I = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
B(l.throw(t));
|
|
11
|
+
} catch (C) {
|
|
12
|
+
f(C);
|
|
13
|
+
}
|
|
14
|
+
}, B = (t) => t.done ? w(t.value) : Promise.resolve(t.value).then(b, I);
|
|
15
|
+
B((l = l.apply(e, m)).next());
|
|
16
|
+
});
|
|
17
|
+
import { ref as He, watch as Pe, resolveComponent as p, openBlock as n, createElementBlock as c, normalizeClass as Q, createBlock as u, createCommentVNode as s, withDirectives as N, createVNode as d, vShow as $, withCtx as i, createElementVNode as y, toDisplayString as g, Fragment as J, renderList as qe, createTextVNode as H, mergeProps as Qe, toHandlers as Ne, resolveDynamicComponent as $e, normalizeProps as Je, guardReactiveProps as ze } from "vue";
|
|
18
|
+
import { BasicTable as Ve, TableAction as je } from "/@/components/Table";
|
|
19
|
+
import { useMessage as Ke } from "/@/hooks/web/useMessage";
|
|
20
|
+
import Ue from "./OnlineAutoModal-c0743caf.mjs";
|
|
21
|
+
import We from "./OnlineCustomModal-661ee850.mjs";
|
|
22
|
+
import Ge from "./OnlineDetailModal-785e848e.mjs";
|
|
23
|
+
import Xe from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
24
|
+
import { u as Ye, a as Ze } from "./useListButton-ee23874a.mjs";
|
|
25
|
+
import { O as _e, u as xe, a as eo, g as oo } from "./useExtendComponent-3f5734ca.mjs";
|
|
26
|
+
import no from "./OnlineQueryForm-ca6186a3.mjs";
|
|
27
|
+
import to from "./SuperQuery-2b293e3b.mjs";
|
|
28
|
+
import { u as ro } from "./useOnlinePopEvent-687070b7.mjs";
|
|
29
|
+
import { N as io } from "./constant-fa63bd66.mjs";
|
|
30
|
+
import { _ as lo } from "./index-f3683351.mjs";
|
|
31
|
+
import "/@/components/Modal";
|
|
32
|
+
import "./OnlineForm-c1fb38eb.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_3f26e7bd_lang-4ed993c7.mjs";
|
|
51
|
+
import "/@/components/Form/src/componentMap";
|
|
52
|
+
import "/@/utils/propTypes";
|
|
53
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
54
|
+
import "/@/views/system/user/user.api";
|
|
55
|
+
import "/@/utils/desform/customExpression";
|
|
56
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
57
|
+
import "/@/hooks/system/useListPage";
|
|
58
|
+
import "vue-router";
|
|
59
|
+
import "/@/components/Form/src/utils/Area";
|
|
60
|
+
import "/@/components/Preview/index";
|
|
61
|
+
import "./LinkTableListPiece-179035c7.mjs";
|
|
62
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
63
|
+
import "/@/api/common/api";
|
|
64
|
+
import "/@/assets/images/placeholderImage.png";
|
|
65
|
+
import "./OnlineSelectCascade-a3e686b3.mjs";
|
|
66
|
+
import "./JModalTip-192fafa1.mjs";
|
|
67
|
+
import "ant-design-vue";
|
|
68
|
+
import "@vueuse/core";
|
|
69
|
+
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
70
|
+
import "./OnlineFormDetail-50186870.mjs";
|
|
71
|
+
import "./DetailForm-c127c27f.mjs";
|
|
72
|
+
import "/@/utils/dict";
|
|
73
|
+
import "/@/utils/dict/index";
|
|
74
|
+
import "/@/components/Markdown";
|
|
75
|
+
import "./OnlineSubFormDetail-be1ad3b9.mjs";
|
|
76
|
+
import "/@/router";
|
|
77
|
+
import "/@/hooks/core/onMountedOrActivated";
|
|
78
|
+
import "/@/store/modules/multipleTab";
|
|
79
|
+
import "./cgformState-d9f8ec42.mjs";
|
|
80
|
+
import "pinia";
|
|
81
|
+
import "/@/store";
|
|
82
|
+
import "/@/hooks/system/useMethods";
|
|
83
|
+
import "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
|
|
84
|
+
import "./SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs";
|
|
85
|
+
import "/@/utils/index";
|
|
86
|
+
import "/@/hooks/web/useDesign";
|
|
87
|
+
const ao = {
|
|
88
|
+
name: "OnlineAutoList",
|
|
89
|
+
components: {
|
|
90
|
+
BasicTable: Ve,
|
|
91
|
+
TableAction: je,
|
|
92
|
+
OnlineAutoModal: Ue,
|
|
93
|
+
JImportModal: Xe,
|
|
94
|
+
OnlineQueryForm: no,
|
|
95
|
+
OnlineSuperQuery: to,
|
|
96
|
+
OnlineCustomModal: We,
|
|
97
|
+
OnlineDetailModal: Ge,
|
|
98
|
+
OnlinePopModal: _e
|
|
99
|
+
},
|
|
100
|
+
setup() {
|
|
101
|
+
const { createMessage: e } = Ke(), {
|
|
102
|
+
ID: m,
|
|
103
|
+
onlineTableContext: l,
|
|
104
|
+
onlineQueryFormOuter: w,
|
|
105
|
+
loading: f,
|
|
106
|
+
reload: b,
|
|
107
|
+
dataSource: I,
|
|
108
|
+
pagination: B,
|
|
109
|
+
handleSpecialConfig: t,
|
|
110
|
+
getColumnList: C,
|
|
111
|
+
handleChangeInTable: v,
|
|
112
|
+
loadData: L,
|
|
113
|
+
superQueryButtonRef: M,
|
|
114
|
+
superQueryStatus: T,
|
|
115
|
+
handleSuperQuery: D,
|
|
116
|
+
onlineExtConfigJson: S,
|
|
117
|
+
handleFormConfig: E,
|
|
118
|
+
registerCustomModal: O,
|
|
119
|
+
tableReloading: o
|
|
120
|
+
} = Ye();
|
|
121
|
+
if (!m.value)
|
|
122
|
+
throw e.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
|
|
123
|
+
let { initCgEnhanceJs: a } = xe(l);
|
|
124
|
+
const {
|
|
125
|
+
buttonSwitch: h,
|
|
126
|
+
cgLinkButtonList: F,
|
|
127
|
+
cgBIBtnMap: z,
|
|
128
|
+
getQueryButtonCfg: V,
|
|
129
|
+
getResetButtonCfg: j,
|
|
130
|
+
getFormConfirmButtonCfg: K,
|
|
131
|
+
cgTopButtonList: U,
|
|
132
|
+
importUrl: W,
|
|
133
|
+
registerModal: G,
|
|
134
|
+
handleAdd: X,
|
|
135
|
+
handleEdit: Y,
|
|
136
|
+
handleBatchDelete: Z,
|
|
137
|
+
registerImportModal: _,
|
|
138
|
+
onImportExcel: x,
|
|
139
|
+
onExportExcel: P,
|
|
140
|
+
cgButtonJsHandler: ee,
|
|
141
|
+
cgButtonActionHandler: oe,
|
|
142
|
+
cgButtonLinkHandler: ne,
|
|
143
|
+
handleSubmitFlow: te,
|
|
144
|
+
getDropDownActions: re,
|
|
145
|
+
getActions: ie,
|
|
146
|
+
initButtonList: le,
|
|
147
|
+
initButtonSwitch: ae,
|
|
148
|
+
registerDetailModal: pe,
|
|
149
|
+
registerBpmModal: ue
|
|
150
|
+
} = Ze(l, S), A = He(!1);
|
|
151
|
+
function se() {
|
|
152
|
+
return R(this, null, function* () {
|
|
153
|
+
try {
|
|
154
|
+
A.value = !0, yield P();
|
|
155
|
+
} finally {
|
|
156
|
+
setTimeout(() => A.value = !1, 1500);
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
const {
|
|
161
|
+
columns: de,
|
|
162
|
+
actionColumn: me,
|
|
163
|
+
selectedKeys: ce,
|
|
164
|
+
rowSelection: ge,
|
|
165
|
+
enableScrollBar: fe,
|
|
166
|
+
tableScroll: Be,
|
|
167
|
+
downloadRowFile: Ce,
|
|
168
|
+
getImgView: he,
|
|
169
|
+
getPcaText: ye,
|
|
170
|
+
getFormatDate: be,
|
|
171
|
+
handleColumnResult: Ie,
|
|
172
|
+
hrefComponent: Me,
|
|
173
|
+
viewOnlineCellImage: Se,
|
|
174
|
+
hrefMainTableId: ke,
|
|
175
|
+
registerOnlineHrefModal: we,
|
|
176
|
+
registerPopModal: Te,
|
|
177
|
+
openPopModal: Re,
|
|
178
|
+
onlinePopModalRef: ve,
|
|
179
|
+
popTableId: q,
|
|
180
|
+
handleClickFieldHref: Le
|
|
181
|
+
} = eo(l, S);
|
|
182
|
+
Pe(
|
|
183
|
+
m,
|
|
184
|
+
() => {
|
|
185
|
+
De();
|
|
186
|
+
},
|
|
187
|
+
{ immediate: !0 }
|
|
188
|
+
);
|
|
189
|
+
function De() {
|
|
190
|
+
return R(this, null, function* () {
|
|
191
|
+
f.value = !0;
|
|
192
|
+
let r = yield C(io);
|
|
193
|
+
Ee(r), yield L(), f.value = !1, l.execButtonEnhance("setup");
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
function Ee(r) {
|
|
197
|
+
let k = a(r.enhanceJs);
|
|
198
|
+
l.EnhanceJS = k, le(r.cgButtonList), ae(r.hideColumns), Ie(r), t(r);
|
|
199
|
+
}
|
|
200
|
+
function Oe(r) {
|
|
201
|
+
l.queryParam = r, b({ mode: "search" });
|
|
202
|
+
}
|
|
203
|
+
function Fe(r) {
|
|
204
|
+
return R(this, null, function* () {
|
|
205
|
+
yield oo(M), M.value.init(r);
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
function Ae(r) {
|
|
209
|
+
q.value = r.id;
|
|
210
|
+
let k = {
|
|
211
|
+
title: r.describe
|
|
212
|
+
};
|
|
213
|
+
r.record && r.record.id && (k.record = r.record, k.isUpdate = !0), Re(!0, k);
|
|
214
|
+
}
|
|
215
|
+
return ro(Ae), {
|
|
216
|
+
ID: m,
|
|
217
|
+
// 查询区域
|
|
218
|
+
onlineQueryFormOuter: w,
|
|
219
|
+
queryWithCondition: Oe,
|
|
220
|
+
onQueryFormLoaded: Fe,
|
|
221
|
+
reload: b,
|
|
222
|
+
//高级查询
|
|
223
|
+
superQueryButtonRef: M,
|
|
224
|
+
superQueryStatus: T,
|
|
225
|
+
handleSuperQuery: D,
|
|
226
|
+
// table区域
|
|
227
|
+
loading: f,
|
|
228
|
+
columns: de,
|
|
229
|
+
dataSource: I,
|
|
230
|
+
pagination: B,
|
|
231
|
+
actionColumn: me,
|
|
232
|
+
rowSelection: ge,
|
|
233
|
+
selectedKeys: ce,
|
|
234
|
+
tableScroll: Be,
|
|
235
|
+
enableScrollBar: fe,
|
|
236
|
+
handleChangeInTable: v,
|
|
237
|
+
//按钮
|
|
238
|
+
buttonSwitch: h,
|
|
239
|
+
handleAdd: X,
|
|
240
|
+
handleEdit: Y,
|
|
241
|
+
onImportExcel: x,
|
|
242
|
+
onExportExcel: P,
|
|
243
|
+
exportLoading: A,
|
|
244
|
+
onExportExcelOverride: se,
|
|
245
|
+
cgBIBtnMap: z,
|
|
246
|
+
getQueryButtonCfg: V,
|
|
247
|
+
getResetButtonCfg: j,
|
|
248
|
+
getFormConfirmButtonCfg: K,
|
|
249
|
+
cgTopButtonList: U,
|
|
250
|
+
cgLinkButtonList: F,
|
|
251
|
+
cgButtonJsHandler: ee,
|
|
252
|
+
cgButtonActionHandler: oe,
|
|
253
|
+
cgButtonLinkHandler: ne,
|
|
254
|
+
handleBatchDelete: Z,
|
|
255
|
+
// table-slot
|
|
256
|
+
downloadRowFile: Ce,
|
|
257
|
+
getImgView: he,
|
|
258
|
+
getPcaText: ye,
|
|
259
|
+
getFormatDate: be,
|
|
260
|
+
// 操作列
|
|
261
|
+
getActions: ie,
|
|
262
|
+
getDropDownActions: re,
|
|
263
|
+
// 弹窗
|
|
264
|
+
registerModal: G,
|
|
265
|
+
registerCustomModal: O,
|
|
266
|
+
registerImportModal: _,
|
|
267
|
+
registerDetailModal: pe,
|
|
268
|
+
importUrl: W,
|
|
269
|
+
handleFormConfig: E,
|
|
270
|
+
onlinePopModalRef: ve,
|
|
271
|
+
//其他
|
|
272
|
+
tableReloading: o,
|
|
273
|
+
handleSubmitFlow: te,
|
|
274
|
+
hrefComponent: Me,
|
|
275
|
+
viewOnlineCellImage: Se,
|
|
276
|
+
hrefMainTableId: ke,
|
|
277
|
+
onlineExtConfigJson: S,
|
|
278
|
+
registerOnlineHrefModal: we,
|
|
279
|
+
registerPopModal: Te,
|
|
280
|
+
popTableId: q,
|
|
281
|
+
registerBpmModal: ue,
|
|
282
|
+
handleClickFieldHref: Le
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
// 1引入了loadsh console.log(that.simpleDateFormat(new Date().getTime(),'yyyy-MM-dd'));
|
|
286
|
+
// 2. value的问题
|
|
287
|
+
// 3. 变量位置改变后需要 重写api
|
|
288
|
+
// 1添加按钮的时候 预留出样式对象 然后js增强中设置样式对象
|
|
289
|
+
// 2直接设置css字符串 然后通过js document 往head里面增加css片段 全局生效
|
|
290
|
+
};
|
|
291
|
+
const po = {
|
|
292
|
+
key: 0,
|
|
293
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
294
|
+
}, uo = {
|
|
295
|
+
key: 0,
|
|
296
|
+
style: { "font-size": "12px", "font-style": "italic" }
|
|
297
|
+
}, so = ["src", "onClick"], mo = ["innerHTML", "onClick"], co = ["innerHTML"], go = ["title"];
|
|
298
|
+
function fo(e, m, l, w, f, b) {
|
|
299
|
+
const I = p("a-skeleton"), B = p("online-query-form"), t = p("a-button"), C = p("online-super-query"), v = p("TableAction"), L = p("BasicTable"), M = p("OnlineAutoModal"), T = p("online-detail-modal"), D = p("JImportModal"), S = p("a-modal"), E = p("online-custom-modal"), O = p("online-pop-modal");
|
|
300
|
+
return n(), c("div", {
|
|
301
|
+
class: Q(["p-2", `online-list-${e.ID}`])
|
|
302
|
+
}, [
|
|
303
|
+
e.tableReloading ? (n(), u(I, {
|
|
304
|
+
key: 0,
|
|
305
|
+
active: ""
|
|
306
|
+
})) : s("", !0),
|
|
307
|
+
N(d(B, {
|
|
308
|
+
ref: "onlineQueryFormOuter",
|
|
309
|
+
id: e.ID,
|
|
310
|
+
queryBtnCfg: e.getQueryButtonCfg,
|
|
311
|
+
resetBtnCfg: e.getResetButtonCfg,
|
|
312
|
+
onSearch: e.queryWithCondition,
|
|
313
|
+
onLoaded: e.onQueryFormLoaded
|
|
314
|
+
}, null, 8, ["id", "queryBtnCfg", "resetBtnCfg", "onSearch", "onLoaded"]), [
|
|
315
|
+
[$, !e.tableReloading]
|
|
316
|
+
]),
|
|
317
|
+
e.tableReloading ? s("", !0) : (n(), u(L, {
|
|
318
|
+
key: 1,
|
|
319
|
+
ref: "onlineTable",
|
|
320
|
+
rowKey: "jeecg_row_key",
|
|
321
|
+
canResize: !0,
|
|
322
|
+
bordered: !0,
|
|
323
|
+
showIndexColumn: !1,
|
|
324
|
+
loading: e.loading,
|
|
325
|
+
columns: e.columns,
|
|
326
|
+
dataSource: e.dataSource,
|
|
327
|
+
pagination: e.pagination,
|
|
328
|
+
rowSelection: e.rowSelection,
|
|
329
|
+
actionColumn: e.actionColumn,
|
|
330
|
+
showTableSetting: !0,
|
|
331
|
+
clickToRowSelect: !1,
|
|
332
|
+
scroll: e.tableScroll,
|
|
333
|
+
onTableRedo: e.reload,
|
|
334
|
+
class: Q({ "j-table-force-nowrap": e.enableScrollBar }),
|
|
335
|
+
onChange: e.handleChangeInTable
|
|
336
|
+
}, {
|
|
337
|
+
tableTitle: i(() => [
|
|
338
|
+
e.buttonSwitch.add && e.cgBIBtnMap.add.enabled ? (n(), u(t, {
|
|
339
|
+
key: 0,
|
|
340
|
+
type: "primary",
|
|
341
|
+
preIcon: e.cgBIBtnMap.add.buttonIcon,
|
|
342
|
+
onClick: e.handleAdd
|
|
343
|
+
}, {
|
|
344
|
+
default: i(() => [
|
|
345
|
+
y("span", null, g(e.cgBIBtnMap.add.buttonName), 1)
|
|
346
|
+
]),
|
|
347
|
+
_: 1
|
|
348
|
+
}, 8, ["preIcon", "onClick"])) : s("", !0),
|
|
349
|
+
e.buttonSwitch.import && e.cgBIBtnMap.import.enabled ? (n(), u(t, {
|
|
350
|
+
key: 1,
|
|
351
|
+
type: "primary",
|
|
352
|
+
preIcon: e.cgBIBtnMap.import.buttonIcon,
|
|
353
|
+
onClick: e.onImportExcel
|
|
354
|
+
}, {
|
|
355
|
+
default: i(() => [
|
|
356
|
+
y("span", null, g(e.cgBIBtnMap.import.buttonName), 1)
|
|
357
|
+
]),
|
|
358
|
+
_: 1
|
|
359
|
+
}, 8, ["preIcon", "onClick"])) : s("", !0),
|
|
360
|
+
e.buttonSwitch.export && e.cgBIBtnMap.export.enabled ? (n(), u(t, {
|
|
361
|
+
key: 2,
|
|
362
|
+
type: "primary",
|
|
363
|
+
preIcon: e.cgBIBtnMap.export.buttonIcon,
|
|
364
|
+
loading: e.exportLoading,
|
|
365
|
+
onClick: e.onExportExcelOverride
|
|
366
|
+
}, {
|
|
367
|
+
default: i(() => [
|
|
368
|
+
y("span", null, g(e.cgBIBtnMap.export.buttonName), 1)
|
|
369
|
+
]),
|
|
370
|
+
_: 1
|
|
371
|
+
}, 8, ["preIcon", "loading", "onClick"])) : s("", !0),
|
|
372
|
+
e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (n(!0), c(J, { key: 3 }, qe(e.cgTopButtonList, (o, a) => (n(), c(J, null, [
|
|
373
|
+
o.optType == "js" ? (n(), u(t, {
|
|
374
|
+
key: "cgbtn" + a,
|
|
375
|
+
onClick: (h) => e.cgButtonJsHandler(o.buttonCode),
|
|
376
|
+
type: "primary",
|
|
377
|
+
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
378
|
+
}, {
|
|
379
|
+
default: i(() => [
|
|
380
|
+
H(g(o.buttonName), 1)
|
|
381
|
+
]),
|
|
382
|
+
_: 2
|
|
383
|
+
}, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (n(), u(t, {
|
|
384
|
+
key: "cgbtn" + a,
|
|
385
|
+
onClick: (h) => e.cgButtonActionHandler(o.buttonCode),
|
|
386
|
+
type: "primary",
|
|
387
|
+
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
388
|
+
}, {
|
|
389
|
+
default: i(() => [
|
|
390
|
+
H(g(o.buttonName), 1)
|
|
391
|
+
]),
|
|
392
|
+
_: 2
|
|
393
|
+
}, 1032, ["onClick", "preIcon"])) : s("", !0)
|
|
394
|
+
], 64))), 256)) : s("", !0),
|
|
395
|
+
e.buttonSwitch.batch_delete && e.cgBIBtnMap.batch_delete.enabled ? N((n(), u(t, {
|
|
396
|
+
key: 4,
|
|
397
|
+
preIcon: e.cgBIBtnMap.batch_delete.buttonIcon,
|
|
398
|
+
onClick: e.handleBatchDelete
|
|
399
|
+
}, {
|
|
400
|
+
default: i(() => [
|
|
401
|
+
y("span", null, g(e.cgBIBtnMap.batch_delete.buttonName), 1)
|
|
402
|
+
]),
|
|
403
|
+
_: 1
|
|
404
|
+
}, 8, ["preIcon", "onClick"])), [
|
|
405
|
+
[$, e.selectedKeys.length > 0]
|
|
406
|
+
]) : s("", !0),
|
|
407
|
+
e.buttonSwitch.super_query && e.cgBIBtnMap.super_query.enabled ? (n(), u(C, {
|
|
408
|
+
key: 5,
|
|
409
|
+
ref: "superQueryButtonRef",
|
|
410
|
+
online: "",
|
|
411
|
+
status: e.superQueryStatus,
|
|
412
|
+
queryBtnCfg: e.cgBIBtnMap.super_query,
|
|
413
|
+
onSearch: e.handleSuperQuery
|
|
414
|
+
}, null, 8, ["status", "queryBtnCfg", "onSearch"])) : s("", !0)
|
|
415
|
+
]),
|
|
416
|
+
fileSlot: i(({ text: o, record: a, column: h }) => [
|
|
417
|
+
o ? (n(), u(t, {
|
|
418
|
+
key: 1,
|
|
419
|
+
ghost: !0,
|
|
420
|
+
type: "primary",
|
|
421
|
+
preIcon: "ant-design:download",
|
|
422
|
+
size: "small",
|
|
423
|
+
onClick: (F) => e.downloadRowFile(o, a, h, e.ID)
|
|
424
|
+
}, {
|
|
425
|
+
default: i(() => m[0] || (m[0] = [
|
|
426
|
+
H(" 下载 ")
|
|
427
|
+
])),
|
|
428
|
+
_: 2
|
|
429
|
+
}, 1032, ["onClick"])) : (n(), c("span", po, "无文件"))
|
|
430
|
+
]),
|
|
431
|
+
imgSlot: i(({ text: o }) => [
|
|
432
|
+
o ? (n(), c("img", {
|
|
433
|
+
key: 1,
|
|
434
|
+
src: e.getImgView(o),
|
|
435
|
+
alt: "图片不存在",
|
|
436
|
+
class: "online-cell-image",
|
|
437
|
+
onClick: (a) => e.viewOnlineCellImage(o)
|
|
438
|
+
}, null, 8, so)) : (n(), c("span", uo, "无图片"))
|
|
439
|
+
]),
|
|
440
|
+
htmlSlot: i(({ text: o, column: a, record: h }) => [
|
|
441
|
+
a.fieldHref ? (n(), c("a", {
|
|
442
|
+
key: 0,
|
|
443
|
+
innerHTML: o,
|
|
444
|
+
onClick: (F) => e.handleClickFieldHref(a.fieldHref, h)
|
|
445
|
+
}, null, 8, mo)) : (n(), c("div", {
|
|
446
|
+
key: 1,
|
|
447
|
+
innerHTML: o
|
|
448
|
+
}, null, 8, co))
|
|
449
|
+
]),
|
|
450
|
+
pcaSlot: i(({ text: o }) => [
|
|
451
|
+
y("div", {
|
|
452
|
+
title: e.getPcaText(o)
|
|
453
|
+
}, g(e.getPcaText(o)), 9, go)
|
|
454
|
+
]),
|
|
455
|
+
dateSlot: i(({ text: o, column: a }) => [
|
|
456
|
+
y("span", null, g(e.getFormatDate(o, a)), 1)
|
|
457
|
+
]),
|
|
458
|
+
action: i(({ record: o }) => [
|
|
459
|
+
d(v, {
|
|
460
|
+
actions: e.getActions(o),
|
|
461
|
+
dropDownActions: e.getDropDownActions(o)
|
|
462
|
+
}, null, 8, ["actions", "dropDownActions"])
|
|
463
|
+
]),
|
|
464
|
+
_: 1
|
|
465
|
+
}, 8, ["loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
|
|
466
|
+
d(M, {
|
|
467
|
+
onRegister: e.registerModal,
|
|
468
|
+
id: e.ID,
|
|
469
|
+
cgBIBtnMap: e.cgBIBtnMap,
|
|
470
|
+
buttonSwitch: e.buttonSwitch,
|
|
471
|
+
confirmBtnCfg: e.getFormConfirmButtonCfg,
|
|
472
|
+
onSuccess: e.reload,
|
|
473
|
+
onFormConfig: e.handleFormConfig
|
|
474
|
+
}, null, 8, ["onRegister", "id", "cgBIBtnMap", "buttonSwitch", "confirmBtnCfg", "onSuccess", "onFormConfig"]),
|
|
475
|
+
d(T, {
|
|
476
|
+
id: e.ID,
|
|
477
|
+
onRegister: e.registerDetailModal
|
|
478
|
+
}, null, 8, ["id", "onRegister"]),
|
|
479
|
+
d(D, {
|
|
480
|
+
onRegister: e.registerImportModal,
|
|
481
|
+
url: e.importUrl(),
|
|
482
|
+
onOk: e.reload,
|
|
483
|
+
online: ""
|
|
484
|
+
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
485
|
+
d(S, Qe(e.hrefComponent.model, Ne(e.hrefComponent.on)), {
|
|
486
|
+
default: i(() => [
|
|
487
|
+
(n(), u($e(e.hrefComponent.is), Je(ze(e.hrefComponent.params)), null, 16))
|
|
488
|
+
]),
|
|
489
|
+
_: 1
|
|
490
|
+
}, 16),
|
|
491
|
+
d(E, {
|
|
492
|
+
onRegister: e.registerCustomModal,
|
|
493
|
+
onSuccess: e.reload
|
|
494
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
495
|
+
d(T, {
|
|
496
|
+
id: e.hrefMainTableId,
|
|
497
|
+
onRegister: e.registerOnlineHrefModal,
|
|
498
|
+
defaultFullscreen: !1
|
|
499
|
+
}, null, 8, ["id", "onRegister"]),
|
|
500
|
+
d(O, {
|
|
501
|
+
ref: "onlinePopModalRef",
|
|
502
|
+
id: e.popTableId,
|
|
503
|
+
onRegister: e.registerPopModal,
|
|
504
|
+
onSuccess: e.reload,
|
|
505
|
+
request: "",
|
|
506
|
+
topTip: ""
|
|
507
|
+
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
508
|
+
], 2);
|
|
509
|
+
}
|
|
510
|
+
const Hn = /* @__PURE__ */ lo(ao, [["render", fo]]);
|
|
511
|
+
export {
|
|
512
|
+
Hn as default
|
|
513
|
+
};
|