@jeecg/online 3.7.4 → 3.9.0-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/{AccountLoginForm-d2fed52f.mjs → AccountLoginForm-cbc75a49.mjs} +1 -1
- package/{AiModal-fbe4b68a.mjs → AiModal-5bec5218.mjs} +1 -1
- package/{AppForgetPassword-3b3bec82.mjs → AppForgetPassword-dbc8377e.mjs} +2 -2
- package/{AppLogin-cd2e2a87.mjs → AppLogin-786949d3.mjs} +9 -9
- package/{AppLoginHeader-9b5be678.mjs → AppLoginHeader-37034b2f.mjs} +1 -1
- package/{AppNameEmail-b4e32ae8.mjs → AppNameEmail-7c6a1406.mjs} +2 -2
- package/{AppRegister-7117b66a.mjs → AppRegister-29a00a9d.mjs} +3 -3
- package/{AppTenant-5817729b.mjs → AppTenant-92890383.mjs} +2 -2
- package/{AppThirdForm-d14fb5e5.mjs → AppThirdForm-760064e5.mjs} +1 -1
- package/{AuthButtonConfig-5e3b6d72.mjs → AuthButtonConfig-78180aec.mjs} +50 -46
- package/{AuthButtonTree-7b4ec967.mjs → AuthButtonTree-62c8e70c.mjs} +2 -2
- package/{AuthDataConfig-48ee9228.mjs → AuthDataConfig-c978c469.mjs} +2 -2
- package/{AuthDataTree-02b3ba05.mjs → AuthDataTree-0647a06c.mjs} +1 -1
- package/{AuthFieldConfig-562cc6b6.mjs → AuthFieldConfig-558283bc.mjs} +2 -2
- package/{AuthFieldTree-2d458c0c.mjs → AuthFieldTree-106db4e2.mjs} +1 -1
- package/{AuthManagerDrawer-38299230.mjs → AuthManagerDrawer-ec5190d2.mjs} +5 -5
- package/{AuthSetterModal-78b06703.mjs → AuthSetterModal-90a76886.mjs} +8 -8
- package/CgformAddressModal-690b8940.mjs +263 -0
- package/CgformCopyList-af9c99a4.mjs +260 -0
- package/{CgformModal-12951453.mjs → CgformModal-b04a492a.mjs} +73 -70
- package/CgreportAigcModal-8fdcbd31.mjs +211 -0
- package/{CgreportModal-bfeb93ed.mjs → CgreportModal-da62724c.mjs} +123 -119
- package/{CheckDictTable-3c1e59e0.mjs → CheckDictTable-7320189b.mjs} +2 -2
- package/{CodeFileListModal-71752603.mjs → CodeFileListModal-e5ec210d.mjs} +2 -2
- package/CodeFileViewModal-09053f3a.mjs +269 -0
- package/CodeGeneratorModal-aba790e3.mjs +298 -0
- package/{CustomButtonList-22b5cdb3.mjs → CustomButtonList-704e6d1c.mjs} +1 -1
- package/{DBAttributeTable-eb25565c.mjs → DBAttributeTable-4a65c897.mjs} +176 -131
- package/{DbToOnlineModal-049b4bbd.mjs → DbToOnlineModal-cc398c70.mjs} +1 -1
- package/{DetailForm-c127c27f.mjs → DetailForm-a2bf8c33.mjs} +165 -153
- package/{DropMenuItem-b1a8f47d.mjs → DropMenuItem-884f9464.mjs} +1 -1
- package/{EnhanceJavaModal-1a4d696b.mjs → EnhanceJavaModal-fe8d475d.mjs} +1 -1
- package/{EnhanceJsHistory-48cf43ad.mjs → EnhanceJsHistory-95ca545c.mjs} +2 -2
- package/{EnhanceJsModal-0e1f15f8.mjs → EnhanceJsModal-742b0ee2.mjs} +17 -16
- package/{EnhanceSqlModal-6a1aa471.mjs → EnhanceSqlModal-6e36bc4f.mjs} +1 -1
- package/{ExtendConfigModal-37af21a5.mjs → ExtendConfigModal-74d657c7.mjs} +2 -2
- package/{FieldExtendJsonModal-9441e08e.mjs → FieldExtendJsonModal-fe7f7902.mjs} +2 -2
- package/{FileSelectModal-04490919.mjs → FileSelectModal-cf41604b.mjs} +1 -1
- package/{ForeignKeyTable-06300a47.mjs → ForeignKeyTable-4a59ded1.mjs} +2 -2
- package/{IndexTable-79bddd5c.mjs → IndexTable-87d67830.mjs} +2 -2
- package/{JModalTip-192fafa1.mjs → JModalTip-5401f43d.mjs} +1 -1
- package/{JOnlineSearchSelect-9abcf657.mjs → JOnlineSearchSelect-d8c57973.mjs} +1 -1
- package/{LeftDepart-35d78655.mjs → LeftDepart-463bf432.mjs} +1 -1
- package/{LeftRole-9d88976d.mjs → LeftRole-1631d3d4.mjs} +1 -1
- package/{LeftUser-04c89aea.mjs → LeftUser-5774a5db.mjs} +1 -1
- package/{LinkTableConfigModal-5f94ef13.mjs → LinkTableConfigModal-1bab1423.mjs} +1 -1
- package/{LinkTableFieldConfigModal-40753de5.mjs → LinkTableFieldConfigModal-49470140.mjs} +1 -1
- package/{LinkTableListPiece-179035c7.mjs → LinkTableListPiece-47f4286c.mjs} +1 -1
- package/{ModalFormDemo-3a85920c.mjs → ModalFormDemo-dbd0aa28.mjs} +1 -1
- package/OnlCgformErpList-35ad1d6e.mjs +528 -0
- package/{OnlCgformErpSubTable-3515150b.mjs → OnlCgformErpSubTable-5093d438.mjs} +45 -42
- package/{OnlCgformInnerSubTable-13e888c6.mjs → OnlCgformInnerSubTable-f1dc90db.mjs} +108 -103
- package/{OnlCgformInnerTableList-2e8f853c.mjs → OnlCgformInnerTableList-1b82a7da.mjs} +163 -155
- package/{OnlCgformTabList-583ac15f.mjs → OnlCgformTabList-d66d1261.mjs} +163 -155
- package/OnlineAutoList-fbba2a52.mjs +559 -0
- package/{OnlineAutoModal-c0743caf.mjs → OnlineAutoModal-68909692.mjs} +11 -10
- package/OnlineAutoTreeList-5153f09d.mjs +533 -0
- package/OnlineCustomModal-b5f8c799.mjs +247 -0
- package/{OnlineDetailModal-785e848e.mjs → OnlineDetailModal-ac078a9a.mjs} +45 -43
- package/OnlineForm-20604e4f.mjs +1080 -0
- package/OnlineFormDetail-719118b6.mjs +350 -0
- package/{OnlineFormUrlAdd-905bf251.mjs → OnlineFormUrlAdd-5b675f48.mjs} +14 -12
- package/{OnlineFormUrlDetail-a9dd2bfa.mjs → OnlineFormUrlDetail-91156bf2.mjs} +22 -19
- package/{OnlineFormUrlEdit-b8941f05.mjs → OnlineFormUrlEdit-fb810de6.mjs} +14 -12
- package/{OnlineFormUrlSuccess-ecaf6a21.mjs → OnlineFormUrlSuccess-302ecb21.mjs} +1 -1
- package/{OnlineQueryForm-ca6186a3.mjs → OnlineQueryForm-5eeceb51.mjs} +120 -120
- package/{OnlineSearchFormItem-5c503a51.mjs → OnlineSearchFormItem-5536a1a6.mjs} +2 -2
- package/{OnlineSelectCascade-a3e686b3.mjs → OnlineSelectCascade-180e8c9a.mjs} +61 -55
- package/{OnlineSubFormDetail-be1ad3b9.mjs → OnlineSubFormDetail-4d64e7be.mjs} +48 -44
- package/{OnlineTabAutoModal-fb59b573.mjs → OnlineTabAutoModal-c127ed50.mjs} +10 -9
- package/{OnlineTabDetailModal-4b9c4838.mjs → OnlineTabDetailModal-e4e9f7e3.mjs} +39 -37
- package/{OnlineTabForm-89389384.mjs → OnlineTabForm-827e7089.mjs} +26 -25
- package/OnlineTabFormDetail-0f96377e.mjs +329 -0
- package/{PageAttributeTable-345b97fe.mjs → PageAttributeTable-5703e2f1.mjs} +6 -6
- package/{PhoneLoginForm-8ca7e2d4.mjs → PhoneLoginForm-15dc68ed.mjs} +52 -52
- package/ProcessOnlineForm-1fcbe0af.mjs +219 -0
- package/{QueryTable-f0a88d78.mjs → QueryTable-26c9ee22.mjs} +2 -2
- package/{SetSwitchOptions-cdcb22a1.mjs → SetSwitchOptions-a3428177.mjs} +1 -1
- package/{ShareAddView-f713c0a5.mjs → ShareAddView-0512e884.mjs} +25 -22
- package/{ShareEditView-691764ad.mjs → ShareEditView-b89dfbd3.mjs} +25 -22
- package/{ShareView-df344a8d.mjs → ShareView-faf1a0ab.mjs} +23 -20
- package/{ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs → ShareView.vue_vue_type_script_setup_true_lang-d1597c0d.mjs} +2 -2
- package/{SingleView-ad0287d6.mjs → SingleView-21d3a558.mjs} +18 -15
- package/{SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs → SingleView.vue_vue_type_style_index_0_lang-914483d0.mjs} +4 -4
- package/{SuperQuery-2b293e3b.mjs → SuperQuery-c95f86ee.mjs} +69 -67
- package/TaskOpinionList-73ecb3c8.mjs +101 -0
- package/aiModal-b44fa135.mjs +175 -0
- package/{auth.data-626c5083.mjs → auth.data-e44c7975.mjs} +10 -9
- package/button.data-fe45d43b.mjs +12 -0
- package/dayjs.min-eea532a3.mjs +301 -0
- package/{index-d6f9ada7.mjs → index-02f6dc7d.mjs} +2 -2
- package/{index-bef7fe2d.mjs → index-22a99f2e.mjs} +1 -1
- package/{index-181f8344.mjs → index-26940246.mjs} +3 -3
- package/{index-3c7392a4.mjs → index-30da2fc0.mjs} +136 -128
- package/index-391aec04.mjs +268 -0
- package/index-94b6319e.mjs +57 -0
- package/{index-93341e02.mjs → index-abbfd327.mjs} +2 -2
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-aaa30c8c.mjs +410 -0
- package/{useCustomHook-acb00837.mjs → useCustomHook-3a17a690.mjs} +11 -9
- package/useExtendComponent-ad499dff.mjs +4164 -0
- package/useListButton-308458cd.mjs +765 -0
- package/{useSchemas-f1819e54.mjs → useSchemas-b074f3a1.mjs} +72 -72
- package/{useTableSync-075826a1.mjs → useTableSync-dbfba20e.mjs} +31 -31
- package/CgformAddressModal-1b9cbe19.mjs +0 -260
- package/CgformCopyList-580bba0f.mjs +0 -252
- package/CodeFileViewModal-eb803769.mjs +0 -253
- package/CodeGeneratorModal-2fe1e920.mjs +0 -281
- package/OnlCgformErpList-8fd15fc1.mjs +0 -488
- package/OnlineAutoList-36ec0957.mjs +0 -513
- package/OnlineAutoTreeList-1cd718be.mjs +0 -523
- package/OnlineCustomModal-661ee850.mjs +0 -232
- package/OnlineForm-c1fb38eb.mjs +0 -1012
- package/OnlineFormDetail-50186870.mjs +0 -342
- package/OnlineTabFormDetail-72173ae4.mjs +0 -327
- package/ProcessOnlineForm-485b5679.mjs +0 -188
- package/README.md +0 -26
- package/index-3ccda826.mjs +0 -239
- package/index-f3683351.mjs +0 -57
- package/useCgformList-13c8aab7.mjs +0 -378
- package/useExtendComponent-3f5734ca.mjs +0 -4459
- package/useListButton-ee23874a.mjs +0 -719
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs} +0 -0
|
@@ -1,488 +0,0 @@
|
|
|
1
|
-
var E = (J, S, _) => new Promise((w, R) => {
|
|
2
|
-
var O = (c) => {
|
|
3
|
-
try {
|
|
4
|
-
T(_.next(c));
|
|
5
|
-
} catch (i) {
|
|
6
|
-
R(i);
|
|
7
|
-
}
|
|
8
|
-
}, M = (c) => {
|
|
9
|
-
try {
|
|
10
|
-
T(_.throw(c));
|
|
11
|
-
} catch (i) {
|
|
12
|
-
R(i);
|
|
13
|
-
}
|
|
14
|
-
}, T = (c) => c.done ? w(c.value) : Promise.resolve(c.value).then(O, M);
|
|
15
|
-
T((_ = _.apply(J, S)).next());
|
|
16
|
-
});
|
|
17
|
-
import { ref as v, watch as N, resolveComponent as I, openBlock as r, createElementBlock as g, createElementVNode as C, unref as e, createBlock as s, createCommentVNode as p, withDirectives as U, createVNode as d, vShow as G, normalizeClass as Ze, withCtx as l, toDisplayString as b, Fragment as Q, renderList as W, createTextVNode as q, mergeProps as eo, toHandlers as oo, resolveDynamicComponent as to, normalizeProps as no, guardReactiveProps as ro } from "vue";
|
|
18
|
-
import { BasicTable as lo, TableAction as io } from "/@/components/Table";
|
|
19
|
-
import { useMessage as ao } from "/@/hooks/web/useMessage";
|
|
20
|
-
import co from "./OnlineAutoModal-c0743caf.mjs";
|
|
21
|
-
import so from "./OnlineCustomModal-661ee850.mjs";
|
|
22
|
-
import X from "./OnlineDetailModal-785e848e.mjs";
|
|
23
|
-
import uo from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
24
|
-
import { u as po, a as mo } from "./useListButton-ee23874a.mjs";
|
|
25
|
-
import { u as go, a as fo, O as yo, g as bo } from "./useExtendComponent-3f5734ca.mjs";
|
|
26
|
-
import _o from "./OnlineQueryForm-ca6186a3.mjs";
|
|
27
|
-
import Co from "./SuperQuery-2b293e3b.mjs";
|
|
28
|
-
import { u as ho } from "./useOnlinePopEvent-687070b7.mjs";
|
|
29
|
-
import ko from "./OnlCgformErpSubTable-3515150b.mjs";
|
|
30
|
-
import { E as Y } from "./constant-fa63bd66.mjs";
|
|
31
|
-
import { cloneDeep as vo } from "lodash-es";
|
|
32
|
-
import "/@/components/Modal";
|
|
33
|
-
import "./OnlineForm-c1fb38eb.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_3f26e7bd_lang-4ed993c7.mjs";
|
|
51
|
-
import "./index-f3683351.mjs";
|
|
52
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
53
|
-
import "vue-router";
|
|
54
|
-
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
55
|
-
import "./OnlineFormDetail-50186870.mjs";
|
|
56
|
-
import "./DetailForm-c127c27f.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-be1ad3b9.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-179035c7.mjs";
|
|
80
|
-
import "/@/assets/images/placeholderImage.png";
|
|
81
|
-
import "./OnlineSelectCascade-a3e686b3.mjs";
|
|
82
|
-
import "./JModalTip-192fafa1.mjs";
|
|
83
|
-
import "@vueuse/core";
|
|
84
|
-
import "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
|
|
85
|
-
import "./SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs";
|
|
86
|
-
import "/@/utils/index";
|
|
87
|
-
import "/@/hooks/web/useDesign";
|
|
88
|
-
const So = { class: "p-2 cgformErpList" }, wo = { class: "content" }, Ro = {
|
|
89
|
-
key: 0,
|
|
90
|
-
style: { "font-size": "12px", "font-style": "italic" }
|
|
91
|
-
}, To = {
|
|
92
|
-
key: 0,
|
|
93
|
-
style: { "font-size": "12px", "font-style": "italic" }
|
|
94
|
-
}, Bo = ["src", "onClick"], Io = ["innerHTML", "onClick"], Mo = ["innerHTML"], Lo = ["title"], en = {
|
|
95
|
-
__name: "OnlCgformErpList",
|
|
96
|
-
setup(J) {
|
|
97
|
-
const S = v([]), _ = v(0), w = v(null), R = v({}), { createMessage: O } = ao(), M = v({}), T = (t, n) => {
|
|
98
|
-
M.value[t] = n;
|
|
99
|
-
}, {
|
|
100
|
-
ID: c,
|
|
101
|
-
onlineTableContext: i,
|
|
102
|
-
onlineQueryFormOuter: Z,
|
|
103
|
-
loading: x,
|
|
104
|
-
reload: h,
|
|
105
|
-
dataSource: D,
|
|
106
|
-
pagination: ee,
|
|
107
|
-
handleSpecialConfig: oe,
|
|
108
|
-
getColumnList: te,
|
|
109
|
-
handleChangeInTable: ne,
|
|
110
|
-
loadData: re,
|
|
111
|
-
superQueryButtonRef: P,
|
|
112
|
-
superQueryStatus: le,
|
|
113
|
-
handleSuperQuery: ie,
|
|
114
|
-
onlineExtConfigJson: $,
|
|
115
|
-
handleFormConfig: ae,
|
|
116
|
-
registerCustomModal: ce,
|
|
117
|
-
tableReloading: A
|
|
118
|
-
} = po({ themeTemplate: Y });
|
|
119
|
-
if (N(D, (t) => {
|
|
120
|
-
f.value.length > 0 && (f.value = f.value.filter((n) => t.some((y) => y.jeecg_row_key === n)));
|
|
121
|
-
}), !c.value)
|
|
122
|
-
throw O.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
|
|
123
|
-
let { initCgEnhanceJs: se } = go(i);
|
|
124
|
-
const {
|
|
125
|
-
buttonSwitch: k,
|
|
126
|
-
cgLinkButtonList: Eo,
|
|
127
|
-
cgBIBtnMap: a,
|
|
128
|
-
getQueryButtonCfg: ue,
|
|
129
|
-
getResetButtonCfg: pe,
|
|
130
|
-
getFormConfirmButtonCfg: de,
|
|
131
|
-
cgTopButtonList: F,
|
|
132
|
-
importUrl: me,
|
|
133
|
-
registerModal: ge,
|
|
134
|
-
handleAdd: fe,
|
|
135
|
-
handleEdit: Oo,
|
|
136
|
-
handleBatchDelete: ye,
|
|
137
|
-
registerImportModal: be,
|
|
138
|
-
onImportExcel: _e,
|
|
139
|
-
onExportExcel: Ce,
|
|
140
|
-
cgButtonJsHandler: he,
|
|
141
|
-
cgButtonActionHandler: ke,
|
|
142
|
-
cgButtonLinkHandler: xo,
|
|
143
|
-
handleSubmitFlow: Do,
|
|
144
|
-
getDropDownActions: ve,
|
|
145
|
-
getActions: Se,
|
|
146
|
-
initButtonList: we,
|
|
147
|
-
initButtonSwitch: Re,
|
|
148
|
-
registerDetailModal: Te,
|
|
149
|
-
registerBpmModal: Po
|
|
150
|
-
} = mo(i, $, {
|
|
151
|
-
singleDelCallback: (t) => {
|
|
152
|
-
Array.isArray(i.selectedRowKeys) && i.selectedRowKeys.includes(t) && i.clearSelectedRow();
|
|
153
|
-
},
|
|
154
|
-
editClickCallback: (t, n) => {
|
|
155
|
-
Array.isArray(i.selectedRowKeys) && i.selectedRowKeys.includes(t) && n.stopPropagation();
|
|
156
|
-
}
|
|
157
|
-
}), H = v(!1);
|
|
158
|
-
function Be() {
|
|
159
|
-
return E(this, null, function* () {
|
|
160
|
-
try {
|
|
161
|
-
H.value = !0, yield Ce();
|
|
162
|
-
} finally {
|
|
163
|
-
setTimeout(() => H.value = !1, 1500);
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
const {
|
|
168
|
-
columns: Ie,
|
|
169
|
-
actionColumn: Me,
|
|
170
|
-
selectedKeys: f,
|
|
171
|
-
rowSelection: Le,
|
|
172
|
-
enableScrollBar: Ee,
|
|
173
|
-
tableScroll: Oe,
|
|
174
|
-
downloadRowFile: xe,
|
|
175
|
-
getImgView: De,
|
|
176
|
-
getPcaText: j,
|
|
177
|
-
getFormatDate: Pe,
|
|
178
|
-
handleColumnResult: Ae,
|
|
179
|
-
hrefComponent: L,
|
|
180
|
-
viewOnlineCellImage: Fe,
|
|
181
|
-
hrefMainTableId: He,
|
|
182
|
-
registerOnlineHrefModal: Ke,
|
|
183
|
-
registerPopModal: Ne,
|
|
184
|
-
openPopModal: Qe,
|
|
185
|
-
onlinePopModalRef: qe,
|
|
186
|
-
popTableId: z,
|
|
187
|
-
handleClickFieldHref: Je
|
|
188
|
-
} = fo(i, $);
|
|
189
|
-
N(
|
|
190
|
-
f,
|
|
191
|
-
(t) => {
|
|
192
|
-
var n;
|
|
193
|
-
(n = f.value) != null && n.length ? w.value = D.value.find((y) => y.id === f.value[0]) : w.value = null;
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
immediate: !0
|
|
197
|
-
}
|
|
198
|
-
), N(
|
|
199
|
-
c,
|
|
200
|
-
() => {
|
|
201
|
-
$e();
|
|
202
|
-
},
|
|
203
|
-
{ immediate: !0 }
|
|
204
|
-
);
|
|
205
|
-
function $e() {
|
|
206
|
-
return E(this, null, function* () {
|
|
207
|
-
x.value = !0;
|
|
208
|
-
let t = yield te(Y);
|
|
209
|
-
je(t.main), S.value = t.subList, yield re(), x.value = !1, i.execButtonEnhance("setup");
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
function je(t) {
|
|
213
|
-
let n = se(t.enhanceJs);
|
|
214
|
-
i.EnhanceJS = n, we(t.cgButtonList), Re(t.hideColumns), Ae(t, "radio"), oe(t), R.value = {
|
|
215
|
-
cacheKey: `online_erp_mainTable_${t.currentTableName}`
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
function ze(t) {
|
|
219
|
-
i.queryParam = t, h({ mode: "search" });
|
|
220
|
-
}
|
|
221
|
-
function Ve() {
|
|
222
|
-
return E(this, arguments, function* (t = {}) {
|
|
223
|
-
yield bo(P);
|
|
224
|
-
const n = vo(t), { properties: y = {} } = n;
|
|
225
|
-
Object.entries(y).forEach(([m, K]) => {
|
|
226
|
-
K.view == "table" && delete y[m];
|
|
227
|
-
}), P.value.init(n);
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
function Ue(t) {
|
|
231
|
-
z.value = t.id;
|
|
232
|
-
let n = {
|
|
233
|
-
title: t.describe
|
|
234
|
-
};
|
|
235
|
-
t.record && t.record.id && (n.record = t.record, n.isUpdate = !0), Qe(!0, n);
|
|
236
|
-
}
|
|
237
|
-
ho(Ue);
|
|
238
|
-
const Ge = (t, n) => {
|
|
239
|
-
ie(t, n), f.value = [];
|
|
240
|
-
};
|
|
241
|
-
return (t, n) => {
|
|
242
|
-
var V;
|
|
243
|
-
const y = I("a-skeleton"), m = I("a-button"), K = I("a-tab-pane"), We = I("a-tabs"), Xe = I("a-modal");
|
|
244
|
-
return r(), g("div", So, [
|
|
245
|
-
C("div", wo, [
|
|
246
|
-
e(A) ? (r(), s(y, {
|
|
247
|
-
key: 0,
|
|
248
|
-
active: ""
|
|
249
|
-
})) : p("", !0),
|
|
250
|
-
U(d(_o, {
|
|
251
|
-
ref_key: "onlineQueryFormOuter",
|
|
252
|
-
ref: Z,
|
|
253
|
-
id: e(c),
|
|
254
|
-
queryBtnCfg: e(ue),
|
|
255
|
-
resetBtnCfg: e(pe),
|
|
256
|
-
onSearch: ze,
|
|
257
|
-
onLoaded: Ve
|
|
258
|
-
}, null, 8, ["id", "queryBtnCfg", "resetBtnCfg"]), [
|
|
259
|
-
[G, !e(A)]
|
|
260
|
-
]),
|
|
261
|
-
e(A) ? p("", !0) : (r(), s(e(lo), {
|
|
262
|
-
key: 1,
|
|
263
|
-
ref: "onlineTable",
|
|
264
|
-
rowKey: "jeecg_row_key",
|
|
265
|
-
canResize: !1,
|
|
266
|
-
bordered: !0,
|
|
267
|
-
showIndexColumn: !1,
|
|
268
|
-
loading: e(x),
|
|
269
|
-
columns: e(Ie),
|
|
270
|
-
dataSource: e(D),
|
|
271
|
-
pagination: e(ee),
|
|
272
|
-
rowSelection: e(Le),
|
|
273
|
-
actionColumn: e(Me),
|
|
274
|
-
showTableSetting: !0,
|
|
275
|
-
clickToRowSelect: !0,
|
|
276
|
-
scroll: e(Oe),
|
|
277
|
-
onTableRedo: e(h),
|
|
278
|
-
tableSetting: R.value,
|
|
279
|
-
class: Ze({ "j-table-force-nowrap": e(Ee) }),
|
|
280
|
-
onChange: e(ne)
|
|
281
|
-
}, {
|
|
282
|
-
tableTitle: l(() => [
|
|
283
|
-
e(k).add && e(a).add.enabled ? (r(), s(m, {
|
|
284
|
-
key: 0,
|
|
285
|
-
type: "primary",
|
|
286
|
-
preIcon: e(a).add.buttonIcon,
|
|
287
|
-
onClick: e(fe)
|
|
288
|
-
}, {
|
|
289
|
-
default: l(() => [
|
|
290
|
-
C("span", null, b(e(a).add.buttonName), 1)
|
|
291
|
-
]),
|
|
292
|
-
_: 1
|
|
293
|
-
}, 8, ["preIcon", "onClick"])) : p("", !0),
|
|
294
|
-
e(k).import && e(a).import.enabled ? (r(), s(m, {
|
|
295
|
-
key: 1,
|
|
296
|
-
type: "primary",
|
|
297
|
-
preIcon: e(a).import.buttonIcon,
|
|
298
|
-
onClick: e(_e)
|
|
299
|
-
}, {
|
|
300
|
-
default: l(() => [
|
|
301
|
-
C("span", null, b(e(a).import.buttonName), 1)
|
|
302
|
-
]),
|
|
303
|
-
_: 1
|
|
304
|
-
}, 8, ["preIcon", "onClick"])) : p("", !0),
|
|
305
|
-
e(k).export && e(a).export.enabled ? (r(), s(m, {
|
|
306
|
-
key: 2,
|
|
307
|
-
type: "primary",
|
|
308
|
-
preIcon: e(a).export.buttonIcon,
|
|
309
|
-
loading: H.value,
|
|
310
|
-
onClick: Be
|
|
311
|
-
}, {
|
|
312
|
-
default: l(() => [
|
|
313
|
-
C("span", null, b(e(a).export.buttonName), 1)
|
|
314
|
-
]),
|
|
315
|
-
_: 1
|
|
316
|
-
}, 8, ["preIcon", "loading"])) : p("", !0),
|
|
317
|
-
e(F) && e(F).length > 0 ? (r(!0), g(Q, { key: 3 }, W(e(F), (o, u) => (r(), g(Q, null, [
|
|
318
|
-
o.optType == "js" ? (r(), s(m, {
|
|
319
|
-
key: "cgbtn" + u,
|
|
320
|
-
onClick: (B) => e(he)(o.buttonCode),
|
|
321
|
-
type: "primary",
|
|
322
|
-
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
323
|
-
}, {
|
|
324
|
-
default: l(() => [
|
|
325
|
-
q(b(o.buttonName), 1)
|
|
326
|
-
]),
|
|
327
|
-
_: 2
|
|
328
|
-
}, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (r(), s(m, {
|
|
329
|
-
key: "cgbtn" + u,
|
|
330
|
-
onClick: (B) => e(ke)(o.buttonCode),
|
|
331
|
-
type: "primary",
|
|
332
|
-
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
333
|
-
}, {
|
|
334
|
-
default: l(() => [
|
|
335
|
-
q(b(o.buttonName), 1)
|
|
336
|
-
]),
|
|
337
|
-
_: 2
|
|
338
|
-
}, 1032, ["onClick", "preIcon"])) : p("", !0)
|
|
339
|
-
], 64))), 256)) : p("", !0),
|
|
340
|
-
e(k).batch_delete && e(a).batch_delete.enabled ? U((r(), s(m, {
|
|
341
|
-
key: 4,
|
|
342
|
-
preIcon: e(a).batch_delete.buttonIcon,
|
|
343
|
-
onClick: e(ye)
|
|
344
|
-
}, {
|
|
345
|
-
default: l(() => [
|
|
346
|
-
C("span", null, b(e(a).batch_delete.buttonName), 1)
|
|
347
|
-
]),
|
|
348
|
-
_: 1
|
|
349
|
-
}, 8, ["preIcon", "onClick"])), [
|
|
350
|
-
[G, e(f).length > 0]
|
|
351
|
-
]) : p("", !0),
|
|
352
|
-
e(k).super_query && e(a).super_query.enabled ? (r(), s(Co, {
|
|
353
|
-
key: 5,
|
|
354
|
-
ref_key: "superQueryButtonRef",
|
|
355
|
-
ref: P,
|
|
356
|
-
online: "",
|
|
357
|
-
status: e(le),
|
|
358
|
-
queryBtnCfg: e(a).super_query,
|
|
359
|
-
onSearch: Ge
|
|
360
|
-
}, null, 8, ["status", "queryBtnCfg"])) : p("", !0)
|
|
361
|
-
]),
|
|
362
|
-
fileSlot: l(({ text: o, record: u, column: B }) => [
|
|
363
|
-
o ? (r(), s(m, {
|
|
364
|
-
key: 1,
|
|
365
|
-
ghost: !0,
|
|
366
|
-
type: "primary",
|
|
367
|
-
preIcon: "ant-design:download",
|
|
368
|
-
size: "small",
|
|
369
|
-
onClick: (Ye) => e(xe)(o, u, B, e(c))
|
|
370
|
-
}, {
|
|
371
|
-
default: l(() => n[1] || (n[1] = [
|
|
372
|
-
q(" 下载 ")
|
|
373
|
-
])),
|
|
374
|
-
_: 2
|
|
375
|
-
}, 1032, ["onClick"])) : (r(), g("span", Ro, "无文件"))
|
|
376
|
-
]),
|
|
377
|
-
imgSlot: l(({ text: o }) => [
|
|
378
|
-
o ? (r(), g("img", {
|
|
379
|
-
key: 1,
|
|
380
|
-
src: e(De)(o),
|
|
381
|
-
alt: "图片不存在",
|
|
382
|
-
class: "online-cell-image",
|
|
383
|
-
onClick: (u) => e(Fe)(o)
|
|
384
|
-
}, null, 8, Bo)) : (r(), g("span", To, "无图片"))
|
|
385
|
-
]),
|
|
386
|
-
htmlSlot: l(({ text: o, column: u, record: B }) => [
|
|
387
|
-
u.fieldHref ? (r(), g("a", {
|
|
388
|
-
key: 0,
|
|
389
|
-
innerHTML: o,
|
|
390
|
-
onClick: (Ye) => e(Je)(u.fieldHref, B)
|
|
391
|
-
}, null, 8, Io)) : (r(), g("div", {
|
|
392
|
-
key: 1,
|
|
393
|
-
innerHTML: o
|
|
394
|
-
}, null, 8, Mo))
|
|
395
|
-
]),
|
|
396
|
-
pcaSlot: l(({ text: o }) => [
|
|
397
|
-
C("div", {
|
|
398
|
-
title: e(j)(o)
|
|
399
|
-
}, b(e(j)(o)), 9, Lo)
|
|
400
|
-
]),
|
|
401
|
-
dateSlot: l(({ text: o, column: u }) => [
|
|
402
|
-
C("span", null, b(e(Pe)(o, u)), 1)
|
|
403
|
-
]),
|
|
404
|
-
action: l(({ record: o }) => [
|
|
405
|
-
d(e(io), {
|
|
406
|
-
actions: e(Se)(o),
|
|
407
|
-
dropDownActions: e(ve)(o)
|
|
408
|
-
}, null, 8, ["actions", "dropDownActions"])
|
|
409
|
-
]),
|
|
410
|
-
_: 1
|
|
411
|
-
}, 8, ["loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "tableSetting", "class", "onChange"])),
|
|
412
|
-
(V = S.value) != null && V.length ? (r(), s(We, {
|
|
413
|
-
key: 2,
|
|
414
|
-
animated: "",
|
|
415
|
-
activeKey: _.value,
|
|
416
|
-
"onUpdate:activeKey": n[0] || (n[0] = (o) => _.value = o),
|
|
417
|
-
style: { margin: "10px" }
|
|
418
|
-
}, {
|
|
419
|
-
default: l(() => [
|
|
420
|
-
(r(!0), g(Q, null, W(S.value, (o, u) => (r(), s(K, {
|
|
421
|
-
tab: o.description,
|
|
422
|
-
key: u,
|
|
423
|
-
forceRender: ""
|
|
424
|
-
}, {
|
|
425
|
-
default: l(() => [
|
|
426
|
-
d(ko, {
|
|
427
|
-
data: o,
|
|
428
|
-
mainTableSelectedRowRcord: w.value,
|
|
429
|
-
onGetSource: T
|
|
430
|
-
}, null, 8, ["data", "mainTableSelectedRowRcord"])
|
|
431
|
-
]),
|
|
432
|
-
_: 2
|
|
433
|
-
}, 1032, ["tab"]))), 128))
|
|
434
|
-
]),
|
|
435
|
-
_: 1
|
|
436
|
-
}, 8, ["activeKey"])) : p("", !0),
|
|
437
|
-
d(co, {
|
|
438
|
-
onRegister: e(ge),
|
|
439
|
-
id: e(c),
|
|
440
|
-
subTableSource: M.value,
|
|
441
|
-
cgBIBtnMap: e(a),
|
|
442
|
-
buttonSwitch: e(k),
|
|
443
|
-
confirmBtnCfg: e(de),
|
|
444
|
-
onSuccess: e(h),
|
|
445
|
-
onFormConfig: e(ae)
|
|
446
|
-
}, null, 8, ["onRegister", "id", "subTableSource", "cgBIBtnMap", "buttonSwitch", "confirmBtnCfg", "onSuccess", "onFormConfig"]),
|
|
447
|
-
d(X, {
|
|
448
|
-
id: e(c),
|
|
449
|
-
onRegister: e(Te)
|
|
450
|
-
}, null, 8, ["id", "onRegister"]),
|
|
451
|
-
d(uo, {
|
|
452
|
-
onRegister: e(be),
|
|
453
|
-
url: e(me)(),
|
|
454
|
-
onOk: e(h),
|
|
455
|
-
online: ""
|
|
456
|
-
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
457
|
-
d(Xe, eo(e(L).model, oo(e(L).on)), {
|
|
458
|
-
default: l(() => [
|
|
459
|
-
(r(), s(to(e(L).is), no(ro(e(L).params)), null, 16))
|
|
460
|
-
]),
|
|
461
|
-
_: 1
|
|
462
|
-
}, 16),
|
|
463
|
-
d(so, {
|
|
464
|
-
onRegister: e(ce),
|
|
465
|
-
onSuccess: e(h)
|
|
466
|
-
}, null, 8, ["onRegister", "onSuccess"]),
|
|
467
|
-
d(X, {
|
|
468
|
-
id: e(He),
|
|
469
|
-
onRegister: e(Ke),
|
|
470
|
-
defaultFullscreen: !1
|
|
471
|
-
}, null, 8, ["id", "onRegister"]),
|
|
472
|
-
d(yo, {
|
|
473
|
-
ref_key: "onlinePopModalRef",
|
|
474
|
-
ref: qe,
|
|
475
|
-
id: e(z),
|
|
476
|
-
onRegister: e(Ne),
|
|
477
|
-
onSuccess: e(h),
|
|
478
|
-
request: "",
|
|
479
|
-
topTip: ""
|
|
480
|
-
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
481
|
-
])
|
|
482
|
-
]);
|
|
483
|
-
};
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
export {
|
|
487
|
-
en as default
|
|
488
|
-
};
|