@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,523 @@
|
|
|
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
|
+
};
|