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