@jeecg/online 3.7.4 → 3.8.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/{AccountLoginForm-d2fed52f.mjs → AccountLoginForm-79fa7b01.mjs} +1 -1
- package/{AiModal-fbe4b68a.mjs → AiModal-942b59ec.mjs} +1 -1
- package/{AppForgetPassword-3b3bec82.mjs → AppForgetPassword-d762e5b3.mjs} +2 -2
- package/{AppLogin-cd2e2a87.mjs → AppLogin-41372985.mjs} +9 -9
- package/{AppLoginHeader-9b5be678.mjs → AppLoginHeader-3b6fa33d.mjs} +1 -1
- package/{AppNameEmail-b4e32ae8.mjs → AppNameEmail-8dfbad62.mjs} +2 -2
- package/{AppRegister-7117b66a.mjs → AppRegister-433c54db.mjs} +3 -3
- package/{AppTenant-5817729b.mjs → AppTenant-e49dfa9b.mjs} +2 -2
- package/{AppThirdForm-d14fb5e5.mjs → AppThirdForm-7b75b4fc.mjs} +1 -1
- package/{AuthButtonConfig-5e3b6d72.mjs → AuthButtonConfig-a0f59cb5.mjs} +50 -46
- package/{AuthButtonTree-7b4ec967.mjs → AuthButtonTree-f0a5cc0b.mjs} +2 -2
- package/{AuthDataConfig-48ee9228.mjs → AuthDataConfig-647c4a27.mjs} +2 -2
- package/{AuthDataTree-02b3ba05.mjs → AuthDataTree-b80a3ea5.mjs} +1 -1
- package/{AuthFieldConfig-562cc6b6.mjs → AuthFieldConfig-d36a1b2d.mjs} +2 -2
- package/{AuthFieldTree-2d458c0c.mjs → AuthFieldTree-dba6af79.mjs} +1 -1
- package/{AuthManagerDrawer-38299230.mjs → AuthManagerDrawer-5acbd451.mjs} +5 -5
- package/{AuthSetterModal-78b06703.mjs → AuthSetterModal-95b5f616.mjs} +8 -8
- package/CgformAddressModal-5d889870.mjs +263 -0
- package/CgformCopyList-cc5f76cd.mjs +259 -0
- package/{CgformModal-12951453.mjs → CgformModal-cebc698b.mjs} +73 -70
- package/CgreportAigcModal-d1e62385.mjs +211 -0
- package/{CgreportModal-bfeb93ed.mjs → CgreportModal-2e4421e6.mjs} +103 -103
- package/{CheckDictTable-3c1e59e0.mjs → CheckDictTable-8fb7299c.mjs} +2 -2
- package/{CodeFileListModal-71752603.mjs → CodeFileListModal-25fad54f.mjs} +2 -2
- package/{CodeFileViewModal-eb803769.mjs → CodeFileViewModal-12299ab5.mjs} +1 -1
- package/{CodeGeneratorModal-2fe1e920.mjs → CodeGeneratorModal-791b1695.mjs} +5 -5
- package/{CustomButtonList-22b5cdb3.mjs → CustomButtonList-26490688.mjs} +1 -1
- package/DBAttributeTable-dea8ab11.mjs +546 -0
- package/{DbToOnlineModal-049b4bbd.mjs → DbToOnlineModal-60317a16.mjs} +1 -1
- package/{DetailForm-c127c27f.mjs → DetailForm-b92a5e9d.mjs} +6 -6
- package/{DropMenuItem-b1a8f47d.mjs → DropMenuItem-82213be6.mjs} +1 -1
- package/{EnhanceJavaModal-1a4d696b.mjs → EnhanceJavaModal-6ebefc8b.mjs} +1 -1
- package/{EnhanceJsHistory-48cf43ad.mjs → EnhanceJsHistory-8d9b86ca.mjs} +2 -2
- package/{EnhanceJsModal-0e1f15f8.mjs → EnhanceJsModal-9439e6f8.mjs} +17 -16
- package/{EnhanceSqlModal-6a1aa471.mjs → EnhanceSqlModal-ea4592bf.mjs} +1 -1
- package/{ExtendConfigModal-37af21a5.mjs → ExtendConfigModal-f509db46.mjs} +2 -2
- package/{FieldExtendJsonModal-9441e08e.mjs → FieldExtendJsonModal-73bab5b5.mjs} +2 -2
- package/{FileSelectModal-04490919.mjs → FileSelectModal-49d6dade.mjs} +1 -1
- package/{ForeignKeyTable-06300a47.mjs → ForeignKeyTable-330963c1.mjs} +2 -2
- package/{IndexTable-79bddd5c.mjs → IndexTable-c0478faa.mjs} +2 -2
- package/{JModalTip-192fafa1.mjs → JModalTip-b1d19eaa.mjs} +1 -1
- package/{JOnlineSearchSelect-9abcf657.mjs → JOnlineSearchSelect-97662e1b.mjs} +1 -1
- package/{LeftDepart-35d78655.mjs → LeftDepart-4b1003f0.mjs} +1 -1
- package/{LeftRole-9d88976d.mjs → LeftRole-8486ba4f.mjs} +1 -1
- package/{LeftUser-04c89aea.mjs → LeftUser-09894a2f.mjs} +1 -1
- package/{LinkTableConfigModal-5f94ef13.mjs → LinkTableConfigModal-cd0980e9.mjs} +1 -1
- package/{LinkTableFieldConfigModal-40753de5.mjs → LinkTableFieldConfigModal-f4106ab7.mjs} +1 -1
- package/{LinkTableListPiece-179035c7.mjs → LinkTableListPiece-4187ad7d.mjs} +1 -1
- package/{ModalFormDemo-3a85920c.mjs → ModalFormDemo-4ec79769.mjs} +1 -1
- package/OnlCgformErpList-63089149.mjs +498 -0
- package/{OnlCgformErpSubTable-3515150b.mjs → OnlCgformErpSubTable-421e2051.mjs} +18 -17
- package/{OnlCgformInnerSubTable-13e888c6.mjs → OnlCgformInnerSubTable-9616ebf2.mjs} +16 -15
- package/{OnlCgformInnerTableList-2e8f853c.mjs → OnlCgformInnerTableList-5ed887e4.mjs} +160 -154
- package/{OnlCgformTabList-583ac15f.mjs → OnlCgformTabList-c03a1d0a.mjs} +160 -154
- package/OnlineAutoList-e5a61211.mjs +557 -0
- package/{OnlineAutoModal-c0743caf.mjs → OnlineAutoModal-38f2d522.mjs} +7 -7
- package/OnlineAutoTreeList-16fa962f.mjs +531 -0
- package/{OnlineCustomModal-661ee850.mjs → OnlineCustomModal-7e31297e.mjs} +7 -7
- package/{OnlineDetailModal-785e848e.mjs → OnlineDetailModal-79085ba8.mjs} +8 -8
- package/{OnlineForm-c1fb38eb.mjs → OnlineForm-0438f4bf.mjs} +6 -6
- package/{OnlineFormDetail-50186870.mjs → OnlineFormDetail-76d243ed.mjs} +89 -83
- package/{OnlineFormUrlAdd-905bf251.mjs → OnlineFormUrlAdd-2e05ba0f.mjs} +12 -11
- package/{OnlineFormUrlDetail-a9dd2bfa.mjs → OnlineFormUrlDetail-06b2d9e6.mjs} +19 -18
- package/{OnlineFormUrlEdit-b8941f05.mjs → OnlineFormUrlEdit-77ac4bba.mjs} +12 -11
- package/{OnlineFormUrlSuccess-ecaf6a21.mjs → OnlineFormUrlSuccess-cb3f7be4.mjs} +1 -1
- package/{OnlineQueryForm-ca6186a3.mjs → OnlineQueryForm-528af6ed.mjs} +5 -5
- package/{OnlineSearchFormItem-5c503a51.mjs → OnlineSearchFormItem-51eefaf4.mjs} +2 -2
- package/{OnlineSelectCascade-a3e686b3.mjs → OnlineSelectCascade-b218691c.mjs} +1 -1
- package/{OnlineSubFormDetail-be1ad3b9.mjs → OnlineSubFormDetail-a1b7f33f.mjs} +6 -6
- package/{OnlineTabAutoModal-fb59b573.mjs → OnlineTabAutoModal-1c7c4ed2.mjs} +7 -7
- package/{OnlineTabDetailModal-4b9c4838.mjs → OnlineTabDetailModal-7c45e727.mjs} +8 -8
- package/{OnlineTabForm-89389384.mjs → OnlineTabForm-9682158f.mjs} +7 -7
- package/{OnlineTabFormDetail-72173ae4.mjs → OnlineTabFormDetail-b8650175.mjs} +7 -7
- package/{PageAttributeTable-345b97fe.mjs → PageAttributeTable-21314341.mjs} +6 -6
- package/{PhoneLoginForm-8ca7e2d4.mjs → PhoneLoginForm-c3c16f16.mjs} +62 -62
- package/{ProcessOnlineForm-485b5679.mjs → ProcessOnlineForm-d6113dec.mjs} +7 -7
- package/{QueryTable-f0a88d78.mjs → QueryTable-413d1366.mjs} +2 -2
- package/{SetSwitchOptions-cdcb22a1.mjs → SetSwitchOptions-82fd6265.mjs} +1 -1
- package/{ShareAddView-f713c0a5.mjs → ShareAddView-a2dba2ef.mjs} +22 -21
- package/{ShareEditView-691764ad.mjs → ShareEditView-ecd590dc.mjs} +22 -21
- package/{ShareView-df344a8d.mjs → ShareView-84f333e7.mjs} +20 -19
- package/{ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs → ShareView.vue_vue_type_script_setup_true_lang-9a3a259e.mjs} +2 -2
- package/{SingleView-ad0287d6.mjs → SingleView-d4f29169.mjs} +15 -14
- package/{SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs → SingleView.vue_vue_type_style_index_0_lang-40ea7e64.mjs} +4 -4
- package/{SuperQuery-2b293e3b.mjs → SuperQuery-290f5080.mjs} +39 -38
- package/aiModal-6e338c79.mjs +175 -0
- package/{auth.data-626c5083.mjs → auth.data-e44c7975.mjs} +10 -9
- package/button.data-fe45d43b.mjs +12 -0
- package/{index-3c7392a4.mjs → index-254a82b7.mjs} +50 -49
- package/index-30c0a14f.mjs +57 -0
- package/{index-bef7fe2d.mjs → index-7890e2b4.mjs} +1 -1
- package/{index-181f8344.mjs → index-7bab525f.mjs} +3 -3
- package/{index-d6f9ada7.mjs → index-9bebbfe5.mjs} +2 -2
- package/{index-93341e02.mjs → index-bc0d747e.mjs} +2 -2
- package/index-c5737cbb.mjs +268 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{useCgformList-13c8aab7.mjs → useCgformList-52631580.mjs} +105 -88
- package/{useCustomHook-acb00837.mjs → useCustomHook-3a17a690.mjs} +11 -9
- package/{useExtendComponent-3f5734ca.mjs → useExtendComponent-d1db211d.mjs} +252 -251
- package/useListButton-7f9674a0.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/DBAttributeTable-eb25565c.mjs +0 -502
- package/OnlCgformErpList-8fd15fc1.mjs +0 -488
- package/OnlineAutoList-36ec0957.mjs +0 -513
- package/OnlineAutoTreeList-1cd718be.mjs +0 -523
- package/index-3ccda826.mjs +0 -239
- package/index-f3683351.mjs +0 -57
- package/useListButton-ee23874a.mjs +0 -719
|
@@ -1,523 +0,0 @@
|
|
|
1
|
-
var F = (e, f, p) => new Promise((i, S) => {
|
|
2
|
-
var w = (r) => {
|
|
3
|
-
try {
|
|
4
|
-
h(p.next(r));
|
|
5
|
-
} catch (C) {
|
|
6
|
-
S(C);
|
|
7
|
-
}
|
|
8
|
-
}, m = (r) => {
|
|
9
|
-
try {
|
|
10
|
-
h(p.throw(r));
|
|
11
|
-
} catch (C) {
|
|
12
|
-
S(C);
|
|
13
|
-
}
|
|
14
|
-
}, h = (r) => r.done ? i(r.value) : Promise.resolve(r.value).then(w, m);
|
|
15
|
-
h((p = p.apply(e, f)).next());
|
|
16
|
-
});
|
|
17
|
-
import { BasicTable as je, TableAction as Ue } from "/@/components/Table";
|
|
18
|
-
import { useMessage as _e } from "/@/hooks/web/useMessage";
|
|
19
|
-
import We from "./OnlineAutoModal-c0743caf.mjs";
|
|
20
|
-
import Ge from "./OnlineDetailModal-785e848e.mjs";
|
|
21
|
-
import Xe from "./OnlineCustomModal-661ee850.mjs";
|
|
22
|
-
import { ref as P, watch as Ye, resolveComponent as u, openBlock as a, createElementBlock as c, createBlock as d, createCommentVNode as g, withDirectives as V, createVNode as B, vShow as z, normalizeClass as Ze, withCtx as s, createElementVNode as R, toDisplayString as b, Fragment as j, renderList as xe, createTextVNode as Q, mergeProps as en, toHandlers as nn, resolveDynamicComponent as on, normalizeProps as tn, guardReactiveProps as ln } from "vue";
|
|
23
|
-
import an from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
24
|
-
import { u as rn, a as sn } from "./useListButton-ee23874a.mjs";
|
|
25
|
-
import { u as un, a as dn, g as pn } from "./useExtendComponent-3f5734ca.mjs";
|
|
26
|
-
import { defHttp as mn } from "/@/utils/http/axios";
|
|
27
|
-
import cn from "./OnlineQueryForm-ca6186a3.mjs";
|
|
28
|
-
import gn from "./SuperQuery-2b293e3b.mjs";
|
|
29
|
-
import { b as U } from "./constant-fa63bd66.mjs";
|
|
30
|
-
import { _ as fn } from "./index-f3683351.mjs";
|
|
31
|
-
import "/@/components/Modal";
|
|
32
|
-
import "./OnlineForm-c1fb38eb.mjs";
|
|
33
|
-
import "/@/components/Form/index";
|
|
34
|
-
import "lodash-es";
|
|
35
|
-
import "/@/utils";
|
|
36
|
-
import "/@/components/Loading";
|
|
37
|
-
import "/@/components/jeecg/JVxeTable/types";
|
|
38
|
-
import "/@/utils/auth";
|
|
39
|
-
import "@ant-design/icons-vue";
|
|
40
|
-
import "/@/hooks/core/useContext";
|
|
41
|
-
import "/@/utils/mitt";
|
|
42
|
-
import "./useCustomHook-acb00837.mjs";
|
|
43
|
-
import "/@/utils/cache";
|
|
44
|
-
import "/@/utils/common/compUtils";
|
|
45
|
-
import "/@/store/modules/user";
|
|
46
|
-
import "/@/hooks/web/useAppInject";
|
|
47
|
-
import "/@/utils/is";
|
|
48
|
-
import "/@/store/modules/permission";
|
|
49
|
-
import "./OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs";
|
|
50
|
-
import "/@/components/Form/src/componentMap";
|
|
51
|
-
import "/@/utils/propTypes";
|
|
52
|
-
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
53
|
-
import "/@/views/system/user/user.api";
|
|
54
|
-
import "/@/utils/desform/customExpression";
|
|
55
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
56
|
-
import "/@/hooks/system/useListPage";
|
|
57
|
-
import "vue-router";
|
|
58
|
-
import "/@/components/Form/src/utils/Area";
|
|
59
|
-
import "/@/components/Preview/index";
|
|
60
|
-
import "./LinkTableListPiece-179035c7.mjs";
|
|
61
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
62
|
-
import "/@/api/common/api";
|
|
63
|
-
import "/@/assets/images/placeholderImage.png";
|
|
64
|
-
import "./OnlineSelectCascade-a3e686b3.mjs";
|
|
65
|
-
import "./JModalTip-192fafa1.mjs";
|
|
66
|
-
import "ant-design-vue";
|
|
67
|
-
import "@vueuse/core";
|
|
68
|
-
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
69
|
-
import "./OnlineFormDetail-50186870.mjs";
|
|
70
|
-
import "./DetailForm-c127c27f.mjs";
|
|
71
|
-
import "/@/utils/dict";
|
|
72
|
-
import "/@/utils/dict/index";
|
|
73
|
-
import "/@/components/Markdown";
|
|
74
|
-
import "./OnlineSubFormDetail-be1ad3b9.mjs";
|
|
75
|
-
import "/@/router";
|
|
76
|
-
import "/@/hooks/core/onMountedOrActivated";
|
|
77
|
-
import "/@/store/modules/multipleTab";
|
|
78
|
-
import "./cgformState-d9f8ec42.mjs";
|
|
79
|
-
import "pinia";
|
|
80
|
-
import "/@/store";
|
|
81
|
-
import "/@/hooks/system/useMethods";
|
|
82
|
-
import "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
|
|
83
|
-
import "./SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs";
|
|
84
|
-
import "/@/utils/index";
|
|
85
|
-
import "/@/hooks/web/useDesign";
|
|
86
|
-
const hn = {
|
|
87
|
-
name: "DefaultOnlineList",
|
|
88
|
-
components: {
|
|
89
|
-
BasicTable: je,
|
|
90
|
-
TableAction: Ue,
|
|
91
|
-
OnlineAutoModal: We,
|
|
92
|
-
JImportModal: an,
|
|
93
|
-
OnlineQueryForm: cn,
|
|
94
|
-
OnlineSuperQuery: gn,
|
|
95
|
-
OnlineCustomModal: Xe,
|
|
96
|
-
OnlineDetailModal: Ge
|
|
97
|
-
},
|
|
98
|
-
setup() {
|
|
99
|
-
const { createMessage: e } = _e(), f = P(), {
|
|
100
|
-
ID: p,
|
|
101
|
-
onlineTableContext: i,
|
|
102
|
-
onlineQueryFormOuter: S,
|
|
103
|
-
loading: w,
|
|
104
|
-
reload: m,
|
|
105
|
-
dataSource: h,
|
|
106
|
-
pagination: r,
|
|
107
|
-
handleSpecialConfig: C,
|
|
108
|
-
getColumnList: v,
|
|
109
|
-
handleChangeInTable: D,
|
|
110
|
-
loadData: E,
|
|
111
|
-
superQueryButtonRef: T,
|
|
112
|
-
superQueryStatus: L,
|
|
113
|
-
handleSuperQuery: A,
|
|
114
|
-
registerCustomModal: O,
|
|
115
|
-
getTreeDataByResult: n,
|
|
116
|
-
expandedRowKeys: l,
|
|
117
|
-
handleExpandedRowsChange: y,
|
|
118
|
-
tableReloading: H,
|
|
119
|
-
onlineExtConfigJson: $,
|
|
120
|
-
handleFormConfig: _
|
|
121
|
-
} = rn();
|
|
122
|
-
if (!p.value)
|
|
123
|
-
throw e.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
|
|
124
|
-
i.isTree(!0);
|
|
125
|
-
let { initCgEnhanceJs: W } = un(i);
|
|
126
|
-
const {
|
|
127
|
-
buttonSwitch: G,
|
|
128
|
-
cgLinkButtonList: X,
|
|
129
|
-
cgBIBtnMap: Y,
|
|
130
|
-
getQueryButtonCfg: Z,
|
|
131
|
-
getResetButtonCfg: x,
|
|
132
|
-
getFormConfirmButtonCfg: ee,
|
|
133
|
-
cgTopButtonList: ne,
|
|
134
|
-
importUrl: oe,
|
|
135
|
-
registerModal: te,
|
|
136
|
-
handleAdd: J,
|
|
137
|
-
handleEdit: ie,
|
|
138
|
-
handleBatchDelete: le,
|
|
139
|
-
registerImportModal: ae,
|
|
140
|
-
onImportExcel: re,
|
|
141
|
-
onExportExcel: se,
|
|
142
|
-
cgButtonJsHandler: ue,
|
|
143
|
-
cgButtonActionHandler: de,
|
|
144
|
-
cgButtonLinkHandler: pe,
|
|
145
|
-
handleSubmitFlow: me,
|
|
146
|
-
getDropDownActions: ce,
|
|
147
|
-
getActions: ge,
|
|
148
|
-
initButtonList: fe,
|
|
149
|
-
initButtonSwitch: he,
|
|
150
|
-
registerDetailModal: Ce
|
|
151
|
-
} = sn(i, $), {
|
|
152
|
-
columns: ye,
|
|
153
|
-
actionColumn: Be,
|
|
154
|
-
selectedKeys: be,
|
|
155
|
-
rowSelection: we,
|
|
156
|
-
enableScrollBar: Ie,
|
|
157
|
-
tableScroll: Se,
|
|
158
|
-
downloadRowFile: Te,
|
|
159
|
-
getImgView: ke,
|
|
160
|
-
getPcaText: Re,
|
|
161
|
-
getFormatDate: Me,
|
|
162
|
-
handleColumnResult: Fe,
|
|
163
|
-
hrefComponent: ve,
|
|
164
|
-
viewOnlineCellImage: De,
|
|
165
|
-
handleClickFieldHref: Ee
|
|
166
|
-
} = dn(i, $);
|
|
167
|
-
Ye(
|
|
168
|
-
p,
|
|
169
|
-
() => {
|
|
170
|
-
Le();
|
|
171
|
-
},
|
|
172
|
-
{ immediate: !0 }
|
|
173
|
-
);
|
|
174
|
-
function Le() {
|
|
175
|
-
return F(this, null, function* () {
|
|
176
|
-
w.value = !0;
|
|
177
|
-
let o = yield v(U);
|
|
178
|
-
Ae(o), yield E(), w.value = !1, i.execButtonEnhance("setup");
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
function Ae(o) {
|
|
182
|
-
let t = W(o.enhanceJs);
|
|
183
|
-
i.EnhanceJS = t, fe(o.cgButtonList), he(o.hideColumns), Fe(o), C(o), i.hasChildrenField = o.hasChildrenField, i.pidField = o.pidField;
|
|
184
|
-
}
|
|
185
|
-
function Oe(o, t) {
|
|
186
|
-
i.queryParam = o, t === !0 ? m({ mode: "search" }) : N();
|
|
187
|
-
}
|
|
188
|
-
function He(o) {
|
|
189
|
-
return F(this, null, function* () {
|
|
190
|
-
yield pn(T), T.value.init(o);
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
function qe(o, t) {
|
|
194
|
-
let I = l.value;
|
|
195
|
-
if (o) {
|
|
196
|
-
if (Qe(t.id), t.children.length > 0 && t.children[0].isLoading === !0) {
|
|
197
|
-
let k = i.hasChildrenField;
|
|
198
|
-
const { sortField: Pe, sortType: Ve } = i;
|
|
199
|
-
let q = Object.assign({}, { column: Pe, order: Ve });
|
|
200
|
-
q[i.pidField] = t.id, q[k] = t[k];
|
|
201
|
-
let ze = `${i.onlineUrl.getTreeData}${i.ID}`;
|
|
202
|
-
mn.get({ url: ze, params: q }, { isTransformResponse: !1 }).then((M) => {
|
|
203
|
-
M.success ? Number(M.result.total) > 0 ? t.children = n(M.result.records) : (t.children = "", t.hasChildrenField = "0") : e.warning(M.message);
|
|
204
|
-
}).catch(() => {
|
|
205
|
-
e.warning("加载子节点失败!");
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
} else {
|
|
209
|
-
let k = I.indexOf(t.id);
|
|
210
|
-
k >= 0 && (l.value = I.splice(k, 1));
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
function Qe(o) {
|
|
214
|
-
let t = l.value;
|
|
215
|
-
t && t.indexOf(o) < 0 && t.push(o), l.value = t;
|
|
216
|
-
}
|
|
217
|
-
function N() {
|
|
218
|
-
return F(this, null, function* () {
|
|
219
|
-
i.isTree() === !0 && (l.value = [], f.value.collapseAll()), m();
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
function $e(o) {
|
|
223
|
-
if (K.value === !0) {
|
|
224
|
-
let t = o[i.pidField];
|
|
225
|
-
if (t) {
|
|
226
|
-
let I = l.value;
|
|
227
|
-
I.indexOf(t) < 0 && I.push(t), l.value = I;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
m();
|
|
231
|
-
}
|
|
232
|
-
const Je = (o) => ({
|
|
233
|
-
label: "添加下级",
|
|
234
|
-
onClick: Ne.bind(null, o)
|
|
235
|
-
}), K = P(!1);
|
|
236
|
-
function Ne(o) {
|
|
237
|
-
K.value = !0;
|
|
238
|
-
let t = {
|
|
239
|
-
[i.pidField]: o.id
|
|
240
|
-
};
|
|
241
|
-
J(t);
|
|
242
|
-
}
|
|
243
|
-
function Ke(o) {
|
|
244
|
-
let t = ce(o, { themeTemplate: U });
|
|
245
|
-
return t.unshift(Je(o)), t;
|
|
246
|
-
}
|
|
247
|
-
return {
|
|
248
|
-
ID: p,
|
|
249
|
-
// 查询区域
|
|
250
|
-
onlineQueryFormOuter: S,
|
|
251
|
-
queryWithCondition: Oe,
|
|
252
|
-
onQueryFormLoaded: He,
|
|
253
|
-
reload: m,
|
|
254
|
-
//高级查询
|
|
255
|
-
superQueryButtonRef: T,
|
|
256
|
-
superQueryStatus: L,
|
|
257
|
-
handleSuperQuery: A,
|
|
258
|
-
// table区域
|
|
259
|
-
loading: w,
|
|
260
|
-
columns: ye,
|
|
261
|
-
actionColumn: Be,
|
|
262
|
-
dataSource: h,
|
|
263
|
-
pagination: r,
|
|
264
|
-
rowSelection: we,
|
|
265
|
-
selectedKeys: be,
|
|
266
|
-
tableScroll: Se,
|
|
267
|
-
enableScrollBar: Ie,
|
|
268
|
-
handleChangeInTable: D,
|
|
269
|
-
//按钮
|
|
270
|
-
buttonSwitch: G,
|
|
271
|
-
handleAdd: J,
|
|
272
|
-
handleEdit: ie,
|
|
273
|
-
onImportExcel: re,
|
|
274
|
-
onExportExcel: se,
|
|
275
|
-
cgBIBtnMap: Y,
|
|
276
|
-
getQueryButtonCfg: Z,
|
|
277
|
-
getResetButtonCfg: x,
|
|
278
|
-
getFormConfirmButtonCfg: ee,
|
|
279
|
-
cgTopButtonList: ne,
|
|
280
|
-
cgLinkButtonList: X,
|
|
281
|
-
cgButtonJsHandler: ue,
|
|
282
|
-
cgButtonActionHandler: de,
|
|
283
|
-
cgButtonLinkHandler: pe,
|
|
284
|
-
handleBatchDelete: le,
|
|
285
|
-
// table-slot
|
|
286
|
-
downloadRowFile: Te,
|
|
287
|
-
getImgView: ke,
|
|
288
|
-
getPcaText: Re,
|
|
289
|
-
getFormatDate: Me,
|
|
290
|
-
// 操作列
|
|
291
|
-
getActions: ge,
|
|
292
|
-
getTreeDropDownActions: Ke,
|
|
293
|
-
// 弹窗
|
|
294
|
-
registerModal: te,
|
|
295
|
-
registerCustomModal: O,
|
|
296
|
-
registerImportModal: ae,
|
|
297
|
-
importUrl: oe,
|
|
298
|
-
handleFormConfig: _,
|
|
299
|
-
//其他
|
|
300
|
-
tableReloading: H,
|
|
301
|
-
handleSubmitFlow: me,
|
|
302
|
-
hrefComponent: ve,
|
|
303
|
-
viewOnlineCellImage: De,
|
|
304
|
-
//树特定的配置
|
|
305
|
-
onlineTreeTableRef: f,
|
|
306
|
-
handlerFormSuccess: $e,
|
|
307
|
-
searchReset: N,
|
|
308
|
-
handleExpand: qe,
|
|
309
|
-
expandedRowKeys: l,
|
|
310
|
-
handleExpandedRowsChange: y,
|
|
311
|
-
registerDetailModal: Ce,
|
|
312
|
-
handleClickFieldHref: Ee
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
// 1引入了loadsh console.log(that.simpleDateFormat(new Date().getTime(),'yyyy-MM-dd'));
|
|
316
|
-
// 2. value的问题
|
|
317
|
-
// 3. 变量位置改变后需要 重写api
|
|
318
|
-
// 1添加按钮的时候 预留出样式对象 然后js增强中设置样式对象
|
|
319
|
-
// 2直接设置css字符串 然后通过js document 往head里面增加css片段 全局生效
|
|
320
|
-
// TODO 清空高级查询
|
|
321
|
-
// TODO 积木报表打印地址
|
|
322
|
-
// const reportPrintUrl = ref('')
|
|
323
|
-
};
|
|
324
|
-
const Cn = { class: "p-2" }, yn = {
|
|
325
|
-
key: 0,
|
|
326
|
-
style: { "font-size": "12px", "font-style": "italic" }
|
|
327
|
-
}, Bn = {
|
|
328
|
-
key: 0,
|
|
329
|
-
style: { "font-size": "12px", "font-style": "italic" }
|
|
330
|
-
}, bn = ["src", "onClick"], wn = ["innerHTML", "onClick"], In = ["innerHTML"], Sn = ["title"];
|
|
331
|
-
function Tn(e, f, p, i, S, w) {
|
|
332
|
-
const m = u("a-skeleton"), h = u("online-query-form"), r = u("a-button"), C = u("online-super-query"), v = u("TableAction"), D = u("BasicTable"), E = u("OnlineAutoModal"), T = u("JImportModal"), L = u("a-modal"), A = u("online-custom-modal"), O = u("online-detail-modal");
|
|
333
|
-
return a(), c("div", Cn, [
|
|
334
|
-
e.tableReloading ? (a(), d(m, {
|
|
335
|
-
key: 0,
|
|
336
|
-
active: ""
|
|
337
|
-
})) : g("", !0),
|
|
338
|
-
V(B(h, {
|
|
339
|
-
ref: "onlineQueryFormOuter",
|
|
340
|
-
id: e.ID,
|
|
341
|
-
queryBtnCfg: e.getQueryButtonCfg,
|
|
342
|
-
resetBtnCfg: e.getResetButtonCfg,
|
|
343
|
-
onSearch: e.queryWithCondition,
|
|
344
|
-
onLoaded: e.onQueryFormLoaded
|
|
345
|
-
}, null, 8, ["id", "queryBtnCfg", "resetBtnCfg", "onSearch", "onLoaded"]), [
|
|
346
|
-
[z, !e.tableReloading]
|
|
347
|
-
]),
|
|
348
|
-
e.tableReloading ? g("", !0) : (a(), d(D, {
|
|
349
|
-
key: 1,
|
|
350
|
-
ref: "onlineTreeTableRef",
|
|
351
|
-
isTreeTable: !0,
|
|
352
|
-
expandedRowKeys: e.expandedRowKeys,
|
|
353
|
-
onExpandedRowsChange: e.handleExpandedRowsChange,
|
|
354
|
-
onExpand: e.handleExpand,
|
|
355
|
-
rowKey: "jeecg_row_key",
|
|
356
|
-
canResize: !0,
|
|
357
|
-
bordered: !0,
|
|
358
|
-
showIndexColumn: !1,
|
|
359
|
-
loading: e.loading,
|
|
360
|
-
columns: e.columns,
|
|
361
|
-
dataSource: e.dataSource,
|
|
362
|
-
pagination: e.pagination,
|
|
363
|
-
rowSelection: e.rowSelection,
|
|
364
|
-
actionColumn: e.actionColumn,
|
|
365
|
-
showTableSetting: !0,
|
|
366
|
-
clickToRowSelect: !1,
|
|
367
|
-
scroll: e.tableScroll,
|
|
368
|
-
onTableRedo: e.reload,
|
|
369
|
-
class: Ze({ "j-table-force-nowrap": e.enableScrollBar }),
|
|
370
|
-
onChange: e.handleChangeInTable
|
|
371
|
-
}, {
|
|
372
|
-
tableTitle: s(() => [
|
|
373
|
-
e.buttonSwitch.add && e.cgBIBtnMap.add.enabled ? (a(), d(r, {
|
|
374
|
-
key: 0,
|
|
375
|
-
type: "primary",
|
|
376
|
-
preIcon: e.cgBIBtnMap.add.buttonIcon,
|
|
377
|
-
onClick: e.handleAdd
|
|
378
|
-
}, {
|
|
379
|
-
default: s(() => [
|
|
380
|
-
R("span", null, b(e.cgBIBtnMap.add.buttonName), 1)
|
|
381
|
-
]),
|
|
382
|
-
_: 1
|
|
383
|
-
}, 8, ["preIcon", "onClick"])) : g("", !0),
|
|
384
|
-
e.buttonSwitch.export && e.cgBIBtnMap.export.enabled ? (a(), d(r, {
|
|
385
|
-
key: 1,
|
|
386
|
-
type: "primary",
|
|
387
|
-
preIcon: e.cgBIBtnMap.export.buttonIcon,
|
|
388
|
-
onClick: e.onExportExcel
|
|
389
|
-
}, {
|
|
390
|
-
default: s(() => [
|
|
391
|
-
R("span", null, b(e.cgBIBtnMap.export.buttonName), 1)
|
|
392
|
-
]),
|
|
393
|
-
_: 1
|
|
394
|
-
}, 8, ["preIcon", "onClick"])) : g("", !0),
|
|
395
|
-
e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (a(!0), c(j, { key: 2 }, xe(e.cgTopButtonList, (n, l) => (a(), c(j, null, [
|
|
396
|
-
n.optType == "js" ? (a(), d(r, {
|
|
397
|
-
key: "cgbtn" + l,
|
|
398
|
-
onClick: (y) => e.cgButtonJsHandler(n.buttonCode),
|
|
399
|
-
type: "primary",
|
|
400
|
-
preIcon: n.buttonIcon ? "ant-design:" + n.buttonIcon : ""
|
|
401
|
-
}, {
|
|
402
|
-
default: s(() => [
|
|
403
|
-
Q(b(n.buttonName), 1)
|
|
404
|
-
]),
|
|
405
|
-
_: 2
|
|
406
|
-
}, 1032, ["onClick", "preIcon"])) : n.optType == "action" ? (a(), d(r, {
|
|
407
|
-
key: "cgbtn" + l,
|
|
408
|
-
onClick: (y) => e.cgButtonActionHandler(n.buttonCode),
|
|
409
|
-
type: "primary",
|
|
410
|
-
preIcon: n.buttonIcon ? "ant-design:" + n.buttonIcon : ""
|
|
411
|
-
}, {
|
|
412
|
-
default: s(() => [
|
|
413
|
-
Q(b(n.buttonName), 1)
|
|
414
|
-
]),
|
|
415
|
-
_: 2
|
|
416
|
-
}, 1032, ["onClick", "preIcon"])) : g("", !0)
|
|
417
|
-
], 64))), 256)) : g("", !0),
|
|
418
|
-
e.buttonSwitch.batch_delete && e.cgBIBtnMap.batch_delete.enabled ? V((a(), d(r, {
|
|
419
|
-
key: 3,
|
|
420
|
-
preIcon: e.cgBIBtnMap.batch_delete.buttonIcon,
|
|
421
|
-
onClick: e.handleBatchDelete
|
|
422
|
-
}, {
|
|
423
|
-
default: s(() => [
|
|
424
|
-
R("span", null, b(e.cgBIBtnMap.batch_delete.buttonName), 1)
|
|
425
|
-
]),
|
|
426
|
-
_: 1
|
|
427
|
-
}, 8, ["preIcon", "onClick"])), [
|
|
428
|
-
[z, e.selectedKeys.length > 0]
|
|
429
|
-
]) : g("", !0),
|
|
430
|
-
e.buttonSwitch.super_query && e.cgBIBtnMap.super_query.enabled ? (a(), d(C, {
|
|
431
|
-
key: 4,
|
|
432
|
-
ref: "superQueryButtonRef",
|
|
433
|
-
online: "",
|
|
434
|
-
status: e.superQueryStatus,
|
|
435
|
-
queryBtnCfg: e.cgBIBtnMap.super_query,
|
|
436
|
-
onSearch: e.handleSuperQuery
|
|
437
|
-
}, null, 8, ["status", "queryBtnCfg", "onSearch"])) : g("", !0)
|
|
438
|
-
]),
|
|
439
|
-
fileSlot: s(({ text: n, record: l, column: y }) => [
|
|
440
|
-
n ? (a(), d(r, {
|
|
441
|
-
key: 1,
|
|
442
|
-
ghost: !0,
|
|
443
|
-
type: "primary",
|
|
444
|
-
preIcon: "ant-design:download",
|
|
445
|
-
size: "small",
|
|
446
|
-
onClick: (H) => e.downloadRowFile(n, l, y, e.ID)
|
|
447
|
-
}, {
|
|
448
|
-
default: s(() => f[0] || (f[0] = [
|
|
449
|
-
Q(" 下载 ")
|
|
450
|
-
])),
|
|
451
|
-
_: 2
|
|
452
|
-
}, 1032, ["onClick"])) : (a(), c("span", yn, "无文件"))
|
|
453
|
-
]),
|
|
454
|
-
imgSlot: s(({ text: n }) => [
|
|
455
|
-
n ? (a(), c("img", {
|
|
456
|
-
key: 1,
|
|
457
|
-
src: e.getImgView(n),
|
|
458
|
-
alt: "图片不存在",
|
|
459
|
-
class: "online-cell-image",
|
|
460
|
-
onClick: (l) => e.viewOnlineCellImage(n)
|
|
461
|
-
}, null, 8, bn)) : (a(), c("span", Bn, "无图片"))
|
|
462
|
-
]),
|
|
463
|
-
htmlSlot: s(({ text: n, column: l, record: y }) => [
|
|
464
|
-
l.fieldHref ? (a(), c("a", {
|
|
465
|
-
key: 0,
|
|
466
|
-
innerHTML: n,
|
|
467
|
-
onClick: (H) => e.handleClickFieldHref(l.fieldHref, y)
|
|
468
|
-
}, null, 8, wn)) : (a(), c("div", {
|
|
469
|
-
key: 1,
|
|
470
|
-
innerHTML: n
|
|
471
|
-
}, null, 8, In))
|
|
472
|
-
]),
|
|
473
|
-
pcaSlot: s(({ text: n }) => [
|
|
474
|
-
R("div", {
|
|
475
|
-
title: e.getPcaText(n)
|
|
476
|
-
}, b(e.getPcaText(n)), 9, Sn)
|
|
477
|
-
]),
|
|
478
|
-
dateSlot: s(({ text: n, column: l }) => [
|
|
479
|
-
R("span", null, b(e.getFormatDate(n, l)), 1)
|
|
480
|
-
]),
|
|
481
|
-
action: s(({ record: n }) => [
|
|
482
|
-
B(v, {
|
|
483
|
-
actions: e.getActions(n),
|
|
484
|
-
dropDownActions: e.getTreeDropDownActions(n)
|
|
485
|
-
}, null, 8, ["actions", "dropDownActions"])
|
|
486
|
-
]),
|
|
487
|
-
_: 1
|
|
488
|
-
}, 8, ["expandedRowKeys", "onExpandedRowsChange", "onExpand", "loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
|
|
489
|
-
B(E, {
|
|
490
|
-
onRegister: e.registerModal,
|
|
491
|
-
id: e.ID,
|
|
492
|
-
cgBIBtnMap: e.cgBIBtnMap,
|
|
493
|
-
buttonSwitch: e.buttonSwitch,
|
|
494
|
-
confirmBtnCfg: e.getFormConfirmButtonCfg,
|
|
495
|
-
onSuccess: e.handlerFormSuccess,
|
|
496
|
-
onFormConfig: e.handleFormConfig
|
|
497
|
-
}, null, 8, ["onRegister", "id", "cgBIBtnMap", "buttonSwitch", "confirmBtnCfg", "onSuccess", "onFormConfig"]),
|
|
498
|
-
B(T, {
|
|
499
|
-
onRegister: e.registerImportModal,
|
|
500
|
-
url: e.importUrl(),
|
|
501
|
-
onOk: e.reload,
|
|
502
|
-
online: ""
|
|
503
|
-
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
504
|
-
B(L, en(e.hrefComponent.model, nn(e.hrefComponent.on)), {
|
|
505
|
-
default: s(() => [
|
|
506
|
-
(a(), d(on(e.hrefComponent.is), tn(ln(e.hrefComponent.params)), null, 16))
|
|
507
|
-
]),
|
|
508
|
-
_: 1
|
|
509
|
-
}, 16),
|
|
510
|
-
B(A, {
|
|
511
|
-
onRegister: e.registerCustomModal,
|
|
512
|
-
onSuccess: e.reload
|
|
513
|
-
}, null, 8, ["onRegister", "onSuccess"]),
|
|
514
|
-
B(O, {
|
|
515
|
-
id: e.ID,
|
|
516
|
-
onRegister: e.registerDetailModal
|
|
517
|
-
}, null, 8, ["id", "onRegister"])
|
|
518
|
-
]);
|
|
519
|
-
}
|
|
520
|
-
const Vo = /* @__PURE__ */ fn(hn, [["render", Tn]]);
|
|
521
|
-
export {
|
|
522
|
-
Vo as default
|
|
523
|
-
};
|