@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
|
@@ -1,470 +0,0 @@
|
|
|
1
|
-
var I = (K, b, g) => new Promise((h, C) => {
|
|
2
|
-
var E = (a) => {
|
|
3
|
-
try {
|
|
4
|
-
k(g.next(a));
|
|
5
|
-
} catch (r) {
|
|
6
|
-
C(r);
|
|
7
|
-
}
|
|
8
|
-
}, R = (a) => {
|
|
9
|
-
try {
|
|
10
|
-
k(g.throw(a));
|
|
11
|
-
} catch (r) {
|
|
12
|
-
C(r);
|
|
13
|
-
}
|
|
14
|
-
}, k = (a) => a.done ? h(a.value) : Promise.resolve(a.value).then(E, R);
|
|
15
|
-
k((g = g.apply(K, b)).next());
|
|
16
|
-
});
|
|
17
|
-
import { ref as _, watch as j, resolveComponent as M, openBlock as n, createElementBlock as d, createElementVNode as F, createVNode as p, unref as e, createBlock as u, normalizeClass as Ve, withCtx as l, createTextVNode as f, createCommentVNode as m, Fragment as H, renderList as V, toDisplayString as L, withDirectives as qe, vShow as Ue, mergeProps as Ge, toHandlers as We, resolveDynamicComponent as Xe, normalizeProps as Ye, guardReactiveProps as Ze } from "vue";
|
|
18
|
-
import { BasicTable as eo, TableAction as oo } from "/@/components/Table";
|
|
19
|
-
import { useMessage as to } from "/@/hooks/web/useMessage";
|
|
20
|
-
import no from "./OnlineAutoModal-c2928847.mjs";
|
|
21
|
-
import io from "./OnlineCustomModal-9e17b6ce.mjs";
|
|
22
|
-
import q from "./OnlineDetailModal-d5895734.mjs";
|
|
23
|
-
import lo from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
24
|
-
import { u as ro, a as ao } from "./useListButton-bfac4ecf.mjs";
|
|
25
|
-
import { u as so, a as co, O as uo, g as po } from "./useExtendComponent-dcae5c78.mjs";
|
|
26
|
-
import mo from "./OnlineQueryForm-eedb9a60.mjs";
|
|
27
|
-
import go from "./SuperQuery-a8592995.mjs";
|
|
28
|
-
import { u as fo } from "./useOnlinePopEvent-687070b7.mjs";
|
|
29
|
-
import yo from "./OnlCgformErpSubTable-9b1e1938.mjs";
|
|
30
|
-
import { E as U } from "./constant-fa63bd66.mjs";
|
|
31
|
-
import { cloneDeep as _o } from "lodash-es";
|
|
32
|
-
import "/@/components/Modal";
|
|
33
|
-
import "./OnlineForm-9f1153ba.mjs";
|
|
34
|
-
import "/@/components/Form/index";
|
|
35
|
-
import "/@/utils/http/axios";
|
|
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 "./index-1d1a6e56.mjs";
|
|
52
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
53
|
-
import "vue-router";
|
|
54
|
-
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
55
|
-
import "./OnlineFormDetail-022ca117.mjs";
|
|
56
|
-
import "./DetailForm-deecbf3d.mjs";
|
|
57
|
-
import "/@/utils/propTypes";
|
|
58
|
-
import "/@/utils/dict";
|
|
59
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
60
|
-
import "/@/utils/dict/index";
|
|
61
|
-
import "/@/api/common/api";
|
|
62
|
-
import "/@/components/Form/src/utils/Area";
|
|
63
|
-
import "/@/components/Preview/index";
|
|
64
|
-
import "/@/components/Markdown";
|
|
65
|
-
import "./OnlineSubFormDetail-58e896ce.mjs";
|
|
66
|
-
import "/@/router";
|
|
67
|
-
import "/@/hooks/core/onMountedOrActivated";
|
|
68
|
-
import "/@/store/modules/multipleTab";
|
|
69
|
-
import "./cgformState-d9f8ec42.mjs";
|
|
70
|
-
import "pinia";
|
|
71
|
-
import "/@/store";
|
|
72
|
-
import "ant-design-vue";
|
|
73
|
-
import "/@/hooks/system/useMethods";
|
|
74
|
-
import "/@/components/Form/src/componentMap";
|
|
75
|
-
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
76
|
-
import "/@/views/system/user/user.api";
|
|
77
|
-
import "/@/utils/desform/customExpression";
|
|
78
|
-
import "/@/hooks/system/useListPage";
|
|
79
|
-
import "./LinkTableListPiece-f3a8e0d7.mjs";
|
|
80
|
-
import "/@/assets/images/placeholderImage.png";
|
|
81
|
-
import "./OnlineSelectCascade-05c40fef.mjs";
|
|
82
|
-
import "./JModalTip-b055ab60.mjs";
|
|
83
|
-
import "@vueuse/core";
|
|
84
|
-
import "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
|
|
85
|
-
import "./SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs";
|
|
86
|
-
import "/@/utils/index";
|
|
87
|
-
import "/@/hooks/web/useDesign";
|
|
88
|
-
const bo = { class: "p-2 cgformErpList" }, ho = { class: "content" }, Co = {
|
|
89
|
-
key: 0,
|
|
90
|
-
style: { "font-size": "12px", "font-style": "italic" }
|
|
91
|
-
}, ko = {
|
|
92
|
-
key: 0,
|
|
93
|
-
style: { "font-size": "12px", "font-style": "italic" }
|
|
94
|
-
}, vo = ["src", "onClick"], So = ["innerHTML", "onClick"], wo = ["innerHTML"], Ro = ["title"], Gt = {
|
|
95
|
-
__name: "OnlCgformErpList",
|
|
96
|
-
setup(K) {
|
|
97
|
-
const b = _([]), g = _(0), h = _(null), C = _({}), { createMessage: E } = to(), R = _({}), k = (t, i) => {
|
|
98
|
-
R.value[t] = i;
|
|
99
|
-
}, {
|
|
100
|
-
ID: a,
|
|
101
|
-
onlineTableContext: r,
|
|
102
|
-
onlineQueryFormOuter: G,
|
|
103
|
-
loading: O,
|
|
104
|
-
reload: y,
|
|
105
|
-
dataSource: Q,
|
|
106
|
-
pagination: W,
|
|
107
|
-
handleSpecialConfig: X,
|
|
108
|
-
getColumnList: Y,
|
|
109
|
-
handleChangeInTable: Z,
|
|
110
|
-
loadData: ee,
|
|
111
|
-
superQueryButtonRef: B,
|
|
112
|
-
superQueryStatus: oe,
|
|
113
|
-
handleSuperQuery: te,
|
|
114
|
-
onlineExtConfigJson: J,
|
|
115
|
-
handleFormConfig: ne,
|
|
116
|
-
registerCustomModal: ie,
|
|
117
|
-
tableReloading: le
|
|
118
|
-
} = ro({ themeTemplate: U });
|
|
119
|
-
if (!a.value)
|
|
120
|
-
throw E.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
|
|
121
|
-
let { initCgEnhanceJs: re } = so(r);
|
|
122
|
-
const {
|
|
123
|
-
buttonSwitch: v,
|
|
124
|
-
cgLinkButtonList: To,
|
|
125
|
-
cgTopButtonList: x,
|
|
126
|
-
importUrl: ae,
|
|
127
|
-
registerModal: se,
|
|
128
|
-
handleAdd: ce,
|
|
129
|
-
handleEdit: Io,
|
|
130
|
-
handleBatchDelete: ue,
|
|
131
|
-
registerImportModal: pe,
|
|
132
|
-
onImportExcel: de,
|
|
133
|
-
onExportExcel: me,
|
|
134
|
-
cgButtonJsHandler: ge,
|
|
135
|
-
cgButtonActionHandler: fe,
|
|
136
|
-
cgButtonLinkHandler: Mo,
|
|
137
|
-
handleSubmitFlow: Lo,
|
|
138
|
-
getDropDownActions: ye,
|
|
139
|
-
getActions: _e,
|
|
140
|
-
initButtonList: be,
|
|
141
|
-
initButtonSwitch: he,
|
|
142
|
-
registerDetailModal: Ce,
|
|
143
|
-
registerBpmModal: Eo
|
|
144
|
-
} = ao(r, J, {
|
|
145
|
-
singleDelCallback: (t) => {
|
|
146
|
-
Array.isArray(r.selectedRowKeys) && r.selectedRowKeys.includes(t) && r.clearSelectedRow();
|
|
147
|
-
},
|
|
148
|
-
editClickCallback: (t, i) => {
|
|
149
|
-
Array.isArray(r.selectedRowKeys) && r.selectedRowKeys.includes(t) && i.stopPropagation();
|
|
150
|
-
}
|
|
151
|
-
}), D = _(!1);
|
|
152
|
-
function ke() {
|
|
153
|
-
return I(this, null, function* () {
|
|
154
|
-
try {
|
|
155
|
-
D.value = !0, yield me();
|
|
156
|
-
} finally {
|
|
157
|
-
setTimeout(() => D.value = !1, 1500);
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
const {
|
|
162
|
-
columns: ve,
|
|
163
|
-
actionColumn: Se,
|
|
164
|
-
selectedKeys: S,
|
|
165
|
-
rowSelection: we,
|
|
166
|
-
enableScrollBar: Re,
|
|
167
|
-
tableScroll: Te,
|
|
168
|
-
downloadRowFile: Ie,
|
|
169
|
-
getImgView: Me,
|
|
170
|
-
getPcaText: $,
|
|
171
|
-
getFormatDate: Le,
|
|
172
|
-
handleColumnResult: Ee,
|
|
173
|
-
hrefComponent: T,
|
|
174
|
-
viewOnlineCellImage: Oe,
|
|
175
|
-
hrefMainTableId: Be,
|
|
176
|
-
registerOnlineHrefModal: xe,
|
|
177
|
-
registerPopModal: De,
|
|
178
|
-
openPopModal: Pe,
|
|
179
|
-
onlinePopModalRef: Ae,
|
|
180
|
-
popTableId: N,
|
|
181
|
-
handleClickFieldHref: Fe
|
|
182
|
-
} = co(r, J);
|
|
183
|
-
j(
|
|
184
|
-
S,
|
|
185
|
-
(t) => {
|
|
186
|
-
var i;
|
|
187
|
-
(i = S.value) != null && i.length ? h.value = Q.value.find((s) => s.id === S.value[0]) : h.value = null;
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
immediate: !0
|
|
191
|
-
}
|
|
192
|
-
), j(
|
|
193
|
-
a,
|
|
194
|
-
() => {
|
|
195
|
-
He();
|
|
196
|
-
},
|
|
197
|
-
{ immediate: !0 }
|
|
198
|
-
);
|
|
199
|
-
function He() {
|
|
200
|
-
return I(this, null, function* () {
|
|
201
|
-
O.value = !0;
|
|
202
|
-
let t = yield Y(U);
|
|
203
|
-
Ke(t.main), b.value = t.subList, yield ee(), O.value = !1, r.execButtonEnhance("setup");
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
function Ke(t) {
|
|
207
|
-
let i = re(t.enhanceJs);
|
|
208
|
-
r.EnhanceJS = i, be(t.cgButtonList), he(t.hideColumns), Ee(t, "radio"), X(t), C.value = {
|
|
209
|
-
cacheKey: `online_erp_mainTable_${t.currentTableName}`
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
function Qe(t) {
|
|
213
|
-
r.queryParam = t, y({ mode: "search" });
|
|
214
|
-
}
|
|
215
|
-
function Je() {
|
|
216
|
-
return I(this, arguments, function* (t = {}) {
|
|
217
|
-
yield po(B);
|
|
218
|
-
const i = _o(t), { properties: s = {} } = i;
|
|
219
|
-
Object.entries(s).forEach(([P, A]) => {
|
|
220
|
-
A.view == "table" && delete s[P];
|
|
221
|
-
}), B.value.init(i);
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
function $e(t) {
|
|
225
|
-
N.value = t.id;
|
|
226
|
-
let i = {
|
|
227
|
-
title: t.describe
|
|
228
|
-
};
|
|
229
|
-
t.record && t.record.id && (i.record = t.record, i.isUpdate = !0), Pe(!0, i);
|
|
230
|
-
}
|
|
231
|
-
fo($e);
|
|
232
|
-
const Ne = (t, i) => {
|
|
233
|
-
te(t, i), S.value = [];
|
|
234
|
-
};
|
|
235
|
-
return (t, i) => {
|
|
236
|
-
var z;
|
|
237
|
-
const s = M("a-button"), P = M("a-tab-pane"), A = M("a-tabs"), ze = M("a-modal");
|
|
238
|
-
return n(), d("div", bo, [
|
|
239
|
-
F("div", ho, [
|
|
240
|
-
p(mo, {
|
|
241
|
-
ref_key: "onlineQueryFormOuter",
|
|
242
|
-
ref: G,
|
|
243
|
-
id: e(a),
|
|
244
|
-
onSearch: Qe,
|
|
245
|
-
onLoaded: Je
|
|
246
|
-
}, null, 8, ["id"]),
|
|
247
|
-
e(le) ? m("", !0) : (n(), u(e(eo), {
|
|
248
|
-
key: 0,
|
|
249
|
-
ref: "onlineTable",
|
|
250
|
-
rowKey: "jeecg_row_key",
|
|
251
|
-
canResize: !0,
|
|
252
|
-
bordered: !0,
|
|
253
|
-
showIndexColumn: !1,
|
|
254
|
-
loading: e(O),
|
|
255
|
-
columns: e(ve),
|
|
256
|
-
dataSource: e(Q),
|
|
257
|
-
pagination: e(W),
|
|
258
|
-
rowSelection: e(we),
|
|
259
|
-
actionColumn: e(Se),
|
|
260
|
-
showTableSetting: !0,
|
|
261
|
-
clickToRowSelect: !0,
|
|
262
|
-
scroll: e(Te),
|
|
263
|
-
onTableRedo: e(y),
|
|
264
|
-
tableSetting: C.value,
|
|
265
|
-
class: Ve({ "j-table-force-nowrap": e(Re) }),
|
|
266
|
-
onChange: e(Z)
|
|
267
|
-
}, {
|
|
268
|
-
tableTitle: l(() => [
|
|
269
|
-
e(v).add ? (n(), u(s, {
|
|
270
|
-
key: 0,
|
|
271
|
-
preIcon: "ant-design:plus-outlined",
|
|
272
|
-
type: "primary",
|
|
273
|
-
onClick: e(ce)
|
|
274
|
-
}, {
|
|
275
|
-
default: l(() => [
|
|
276
|
-
f("新增")
|
|
277
|
-
]),
|
|
278
|
-
_: 1
|
|
279
|
-
}, 8, ["onClick"])) : m("", !0),
|
|
280
|
-
e(v).import ? (n(), u(s, {
|
|
281
|
-
key: 1,
|
|
282
|
-
preIcon: "ant-design:import-outlined",
|
|
283
|
-
type: "primary",
|
|
284
|
-
onClick: e(de)
|
|
285
|
-
}, {
|
|
286
|
-
default: l(() => [
|
|
287
|
-
f("导入")
|
|
288
|
-
]),
|
|
289
|
-
_: 1
|
|
290
|
-
}, 8, ["onClick"])) : m("", !0),
|
|
291
|
-
e(v).export ? (n(), u(s, {
|
|
292
|
-
key: 2,
|
|
293
|
-
preIcon: "ant-design:export-outlined",
|
|
294
|
-
type: "primary",
|
|
295
|
-
loading: D.value,
|
|
296
|
-
onClick: ke
|
|
297
|
-
}, {
|
|
298
|
-
default: l(() => [
|
|
299
|
-
f(" 导出")
|
|
300
|
-
]),
|
|
301
|
-
_: 1
|
|
302
|
-
}, 8, ["loading"])) : m("", !0),
|
|
303
|
-
e(x) && e(x).length > 0 ? (n(!0), d(H, { key: 3 }, V(e(x), (o, c) => (n(), d(H, null, [
|
|
304
|
-
o.optType == "js" ? (n(), u(s, {
|
|
305
|
-
key: "cgbtn" + c,
|
|
306
|
-
onClick: (w) => e(ge)(o.buttonCode),
|
|
307
|
-
type: "primary",
|
|
308
|
-
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
309
|
-
}, {
|
|
310
|
-
default: l(() => [
|
|
311
|
-
f(L(o.buttonName), 1)
|
|
312
|
-
]),
|
|
313
|
-
_: 2
|
|
314
|
-
}, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (n(), u(s, {
|
|
315
|
-
key: "cgbtn" + c,
|
|
316
|
-
onClick: (w) => e(fe)(o.buttonCode),
|
|
317
|
-
type: "primary",
|
|
318
|
-
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
319
|
-
}, {
|
|
320
|
-
default: l(() => [
|
|
321
|
-
f(L(o.buttonName), 1)
|
|
322
|
-
]),
|
|
323
|
-
_: 2
|
|
324
|
-
}, 1032, ["onClick", "preIcon"])) : m("", !0)
|
|
325
|
-
], 64))), 256)) : m("", !0),
|
|
326
|
-
e(v).batch_delete ? qe((n(), u(s, {
|
|
327
|
-
key: 4,
|
|
328
|
-
preIcon: "ant-design:delete-outlined",
|
|
329
|
-
onClick: e(ue)
|
|
330
|
-
}, {
|
|
331
|
-
default: l(() => [
|
|
332
|
-
f(" 批量删除")
|
|
333
|
-
]),
|
|
334
|
-
_: 1
|
|
335
|
-
}, 8, ["onClick"])), [
|
|
336
|
-
[Ue, e(S).length > 0]
|
|
337
|
-
]) : m("", !0),
|
|
338
|
-
e(v).super_query ? (n(), u(go, {
|
|
339
|
-
key: 5,
|
|
340
|
-
ref_key: "superQueryButtonRef",
|
|
341
|
-
ref: B,
|
|
342
|
-
online: "",
|
|
343
|
-
status: e(oe),
|
|
344
|
-
onSearch: Ne
|
|
345
|
-
}, null, 8, ["status"])) : m("", !0)
|
|
346
|
-
]),
|
|
347
|
-
fileSlot: l(({ text: o, record: c, column: w }) => [
|
|
348
|
-
o ? (n(), u(s, {
|
|
349
|
-
key: 1,
|
|
350
|
-
ghost: !0,
|
|
351
|
-
type: "primary",
|
|
352
|
-
preIcon: "ant-design:download",
|
|
353
|
-
size: "small",
|
|
354
|
-
onClick: (je) => e(Ie)(o, c, w, e(a))
|
|
355
|
-
}, {
|
|
356
|
-
default: l(() => [
|
|
357
|
-
f(" 下载 ")
|
|
358
|
-
]),
|
|
359
|
-
_: 2
|
|
360
|
-
}, 1032, ["onClick"])) : (n(), d("span", Co, "无文件"))
|
|
361
|
-
]),
|
|
362
|
-
imgSlot: l(({ text: o }) => [
|
|
363
|
-
o ? (n(), d("img", {
|
|
364
|
-
key: 1,
|
|
365
|
-
src: e(Me)(o),
|
|
366
|
-
alt: "图片不存在",
|
|
367
|
-
class: "online-cell-image",
|
|
368
|
-
onClick: (c) => e(Oe)(o)
|
|
369
|
-
}, null, 8, vo)) : (n(), d("span", ko, "无图片"))
|
|
370
|
-
]),
|
|
371
|
-
htmlSlot: l(({ text: o, column: c, record: w }) => [
|
|
372
|
-
c.fieldHref ? (n(), d("a", {
|
|
373
|
-
key: 0,
|
|
374
|
-
innerHTML: o,
|
|
375
|
-
onClick: (je) => e(Fe)(c.fieldHref, w)
|
|
376
|
-
}, null, 8, So)) : (n(), d("div", {
|
|
377
|
-
key: 1,
|
|
378
|
-
innerHTML: o
|
|
379
|
-
}, null, 8, wo))
|
|
380
|
-
]),
|
|
381
|
-
pcaSlot: l(({ text: o }) => [
|
|
382
|
-
F("div", {
|
|
383
|
-
title: e($)(o)
|
|
384
|
-
}, L(e($)(o)), 9, Ro)
|
|
385
|
-
]),
|
|
386
|
-
dateSlot: l(({ text: o, column: c }) => [
|
|
387
|
-
F("span", null, L(e(Le)(o, c)), 1)
|
|
388
|
-
]),
|
|
389
|
-
action: l(({ record: o }) => [
|
|
390
|
-
p(e(oo), {
|
|
391
|
-
actions: e(_e)(o),
|
|
392
|
-
dropDownActions: e(ye)(o)
|
|
393
|
-
}, null, 8, ["actions", "dropDownActions"])
|
|
394
|
-
]),
|
|
395
|
-
_: 1
|
|
396
|
-
}, 8, ["loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "tableSetting", "class", "onChange"])),
|
|
397
|
-
(z = b.value) != null && z.length ? (n(), u(A, {
|
|
398
|
-
key: 1,
|
|
399
|
-
animated: "",
|
|
400
|
-
activeKey: g.value,
|
|
401
|
-
"onUpdate:activeKey": i[0] || (i[0] = (o) => g.value = o),
|
|
402
|
-
style: { margin: "10px" }
|
|
403
|
-
}, {
|
|
404
|
-
default: l(() => [
|
|
405
|
-
(n(!0), d(H, null, V(b.value, (o, c) => (n(), u(P, {
|
|
406
|
-
tab: o.description,
|
|
407
|
-
key: c,
|
|
408
|
-
forceRender: ""
|
|
409
|
-
}, {
|
|
410
|
-
default: l(() => [
|
|
411
|
-
p(yo, {
|
|
412
|
-
data: o,
|
|
413
|
-
mainTableSelectedRowRcord: h.value,
|
|
414
|
-
onGetSource: k
|
|
415
|
-
}, null, 8, ["data", "mainTableSelectedRowRcord"])
|
|
416
|
-
]),
|
|
417
|
-
_: 2
|
|
418
|
-
}, 1032, ["tab"]))), 128))
|
|
419
|
-
]),
|
|
420
|
-
_: 1
|
|
421
|
-
}, 8, ["activeKey"])) : m("", !0),
|
|
422
|
-
p(no, {
|
|
423
|
-
id: e(a),
|
|
424
|
-
subTableSource: R.value,
|
|
425
|
-
onRegister: e(se),
|
|
426
|
-
onSuccess: e(y),
|
|
427
|
-
onFormConfig: e(ne)
|
|
428
|
-
}, null, 8, ["id", "subTableSource", "onRegister", "onSuccess", "onFormConfig"]),
|
|
429
|
-
p(q, {
|
|
430
|
-
id: e(a),
|
|
431
|
-
onRegister: e(Ce)
|
|
432
|
-
}, null, 8, ["id", "onRegister"]),
|
|
433
|
-
p(lo, {
|
|
434
|
-
onRegister: e(pe),
|
|
435
|
-
url: e(ae)(),
|
|
436
|
-
onOk: e(y),
|
|
437
|
-
online: ""
|
|
438
|
-
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
439
|
-
p(ze, Ge(e(T).model, We(e(T).on)), {
|
|
440
|
-
default: l(() => [
|
|
441
|
-
(n(), u(Xe(e(T).is), Ye(Ze(e(T).params)), null, 16))
|
|
442
|
-
]),
|
|
443
|
-
_: 1
|
|
444
|
-
}, 16),
|
|
445
|
-
p(io, {
|
|
446
|
-
onRegister: e(ie),
|
|
447
|
-
onSuccess: e(y)
|
|
448
|
-
}, null, 8, ["onRegister", "onSuccess"]),
|
|
449
|
-
p(q, {
|
|
450
|
-
id: e(Be),
|
|
451
|
-
onRegister: e(xe),
|
|
452
|
-
defaultFullscreen: !1
|
|
453
|
-
}, null, 8, ["id", "onRegister"]),
|
|
454
|
-
p(uo, {
|
|
455
|
-
ref_key: "onlinePopModalRef",
|
|
456
|
-
ref: Ae,
|
|
457
|
-
id: e(N),
|
|
458
|
-
onRegister: e(De),
|
|
459
|
-
onSuccess: e(y),
|
|
460
|
-
request: "",
|
|
461
|
-
topTip: ""
|
|
462
|
-
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
463
|
-
])
|
|
464
|
-
]);
|
|
465
|
-
};
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
|
-
export {
|
|
469
|
-
Gt as default
|
|
470
|
-
};
|