@jeecg/online 3.5.3-beta3 → 3.6.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/AuthButtonConfig-b6a674fa.mjs +125 -0
- package/AuthButtonTree-09e57bc4.mjs +156 -0
- package/AuthDataConfig-6e7e61ec.mjs +212 -0
- package/AuthDataTree-e83286c5.mjs +139 -0
- package/AuthFieldConfig-f1ec2708.mjs +139 -0
- package/AuthFieldTree-bb72e21f.mjs +232 -0
- package/AuthManagerDrawer-28a2d108.mjs +114 -0
- package/AuthSetterModal-2990d553.mjs +261 -0
- package/CgformCopyList-36a4cbf0.mjs +246 -0
- package/CgformModal-7399a5ac.mjs +611 -0
- package/CgreportModal-2eb9c9e1.mjs +13 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs +566 -0
- package/CheckDictTable-3a8a54b3.mjs +211 -0
- package/CodeFileListModal-72f0d3bb.mjs +158 -0
- package/CodeFileViewModal-9eb88c47.mjs +244 -0
- package/CodeGeneratorModal-a89958f5.mjs +233 -0
- package/CustomButtonList-c44aec5a.mjs +363 -0
- package/DBAttributeTable-7d285e8d.mjs +473 -0
- package/DbToOnlineModal-d23cbeb1.mjs +160 -0
- package/DetailForm-2901d215.mjs +461 -0
- package/EnhanceJavaModal-153899a9.mjs +264 -0
- package/EnhanceJsHistory-7f5db3b1.mjs +184 -0
- package/EnhanceJsModal-c2fb75b8.mjs +311 -0
- package/EnhanceSqlModal-965e9b0a.mjs +268 -0
- package/ExtendConfigModal-8f08466f.mjs +111 -0
- package/FieldExtendJsonModal-adfcf5a7.mjs +219 -0
- package/FileSelectModal-432d4521.mjs +103 -0
- package/ForeignKeyTable-faab7ccf.mjs +69 -0
- package/IndexTable-0a2d3718.mjs +89 -0
- package/JModalTip-e1938b49.mjs +46 -0
- package/JOnlineSearchSelect-7e908492.mjs +95 -0
- package/LeftDepart-54f245b3.mjs +82 -0
- package/LeftRole-c138f892.mjs +86 -0
- package/LeftUser-9c812f8a.mjs +105 -0
- package/LinkTableConfigModal-c2c5c7e6.mjs +230 -0
- package/LinkTableFieldConfigModal-a3553b1f.mjs +176 -0
- package/LinkTableListPiece-7f793b08.mjs +34 -0
- package/ModalFormDemo-65685b0e.mjs +78 -0
- package/OnlCgformErpList-52c87ed3.mjs +449 -0
- package/OnlCgformErpSubTable-6e7fb17b.mjs +398 -0
- package/OnlCgformInnerSubTable-f0727b8f.mjs +248 -0
- package/OnlCgformInnerTableList-9f89c173.mjs +430 -0
- package/OnlCgformTabList-15516315.mjs +390 -0
- package/OnlineAutoList-63a0224f.mjs +474 -0
- package/OnlineAutoModal-ffe19c3f.mjs +206 -0
- package/OnlineAutoTreeList-317c7105.mjs +495 -0
- package/OnlineCustomModal-3939ce78.mjs +227 -0
- package/OnlineDetailModal-bfb1375f.mjs +177 -0
- package/OnlineForm-069f6092.mjs +749 -0
- package/OnlineFormDetail-ad5735fb.mjs +296 -0
- package/OnlineQueryForm-0771c80f.mjs +385 -0
- package/OnlineSearchFormItem-0db5834f.mjs +348 -0
- package/OnlineSelectCascade-a05c30f4.mjs +159 -0
- package/OnlineSubFormDetail-583d01eb.mjs +142 -0
- package/OnlineTabAutoModal-747e071d.mjs +253 -0
- package/OnlineTabDetailModal-887f0174.mjs +222 -0
- package/OnlineTabForm-b1dcd4b4.mjs +765 -0
- package/OnlineTabFormDetail-8e494a96.mjs +323 -0
- package/PageAttributeTable-5966b201.mjs +404 -0
- package/ProcessOnlineForm-4382bea7.mjs +177 -0
- package/QueryTable-6e8053ad.mjs +115 -0
- package/README.md +2 -1
- package/SuperQuery-78db6998.mjs +841 -0
- package/SuperQueryValComponent-471110b5.mjs +8 -0
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
- package/auth.api-d3a6c4b3.mjs +39 -0
- package/auth.data-8be5c9e3.mjs +141 -0
- package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
- package/constant-754f1a9d.mjs +9 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-0a93652b.mjs +237 -0
- package/index-7e9a23f2.mjs +1494 -0
- package/index-b70302f2.mjs +56 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-0c603af1.mjs +424 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-aa1cdfc8.mjs +3917 -0
- package/useListButton-0f18bf6a.mjs +671 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/useSchemas-43429d80.mjs +685 -0
- package/useTableSync-774c3774.mjs +87 -0
- package/AuthButtonConfig.js +0 -147
- package/AuthButtonTree.js +0 -183
- package/AuthDataConfig.js +0 -246
- package/AuthDataTree.js +0 -160
- package/AuthFieldConfig.js +0 -170
- package/AuthFieldTree.js +0 -281
- package/AuthManagerDrawer.js +0 -125
- package/AuthSetterModal.js +0 -316
- package/CgformCopyList.js +0 -266
- package/CgformModal.js +0 -780
- package/CgreportModal.js +0 -667
- package/CheckDictTable.js +0 -242
- package/CodeFileListModal.js +0 -175
- package/CodeFileViewModal.js +0 -325
- package/CodeGeneratorModal.js +0 -297
- package/CustomButtonList.js +0 -410
- package/DBAttributeTable.js +0 -526
- package/DbToOnlineModal.js +0 -192
- package/DetailForm.js +0 -608
- package/EnhanceJavaModal.js +0 -298
- package/EnhanceJsHistory.js +0 -229
- package/EnhanceJsModal.js +0 -293
- package/EnhanceSqlModal.js +0 -299
- package/ExtendConfigModal.js +0 -151
- package/FieldExtendJsonModal.js +0 -283
- package/FileSelectModal.js +0 -102
- package/ForeignKeyTable.js +0 -79
- package/IndexTable.js +0 -97
- package/JModalTip.js +0 -54
- package/JOnlineSearchSelect.js +0 -115
- package/LICENSE +0 -9
- package/LeftDepart.js +0 -96
- package/LeftRole.js +0 -98
- package/LeftUser.js +0 -117
- package/LinkTableConfigModal.js +0 -289
- package/LinkTableFieldConfigModal.js +0 -218
- package/LinkTableListPiece.js +0 -36
- package/ModalFormDemo.js +0 -85
- package/OnlineAutoList.js +0 -523
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -552
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1016
- package/OnlineFormDetail.js +0 -347
- package/OnlineQueryForm.js +0 -484
- package/OnlineSearchFormItem.js +0 -436
- package/OnlineSelectCascade.js +0 -228
- package/OnlineSubFormDetail.js +0 -166
- package/PageAttributeTable.js +0 -486
- package/ProcessOnlineForm.js +0 -208
- package/QueryTable.js +0 -129
- package/SuperQuery.js +0 -1020
- package/SuperQueryValComponent.js +0 -8
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -168
- package/_arrayPush.js +0 -278
- package/_baseClone.js +0 -471
- package/_baseSlice.js +0 -18
- package/_commonjsHelpers.js +0 -5
- package/_flatRest.js +0 -174
- package/auth.api.js +0 -43
- package/auth.data.js +0 -142
- package/clipboard.js +0 -565
- package/enhance.api.js +0 -129
- package/enhance.data.js +0 -196
- package/index.js +0 -87
- package/index2.js +0 -340
- package/index3.js +0 -264
- package/isArray.js +0 -47
- package/omit.js +0 -60
- package/pick.js +0 -68
- package/toString.js +0 -31
- package/useCgformList.js +0 -470
- package/useExtendComponent.js +0 -5205
- package/useListButton.js +0 -923
- package/useOnlineTest.js +0 -44
- package/useSchemas.js +0 -653
- package/useTableSync.js +0 -117
package/OnlineAutoTreeList.js
DELETED
|
@@ -1,552 +0,0 @@
|
|
|
1
|
-
var __async = (__this, __arguments, generator) => {
|
|
2
|
-
return new Promise((resolve, reject) => {
|
|
3
|
-
var fulfilled = (value) => {
|
|
4
|
-
try {
|
|
5
|
-
step(generator.next(value));
|
|
6
|
-
} catch (e) {
|
|
7
|
-
reject(e);
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
var rejected = (value) => {
|
|
11
|
-
try {
|
|
12
|
-
step(generator.throw(value));
|
|
13
|
-
} catch (e) {
|
|
14
|
-
reject(e);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
import { BasicTable, TableAction } from "/@/components/Table";
|
|
22
|
-
import { useMessage } from "/@/hooks/web/useMessage";
|
|
23
|
-
import OnlineAutoModal from "./OnlineAutoModal.js";
|
|
24
|
-
import OnlineDetailModal from "./OnlineDetailModal.js";
|
|
25
|
-
import OnlineCustomModal from "./OnlineCustomModal.js";
|
|
26
|
-
import { ref, watch, resolveComponent, openBlock, createElementBlock, createVNode, createBlock, normalizeClass, withCtx, createTextVNode, createCommentVNode, Fragment, renderList, toDisplayString, withDirectives, vShow, createElementVNode, mergeProps, toHandlers, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
27
|
-
import JImportModal from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
28
|
-
import { u as useOnlineTableContext, a as useListButton } from "./useListButton.js";
|
|
29
|
-
import { d as useEnhance, o as useTableColumns, g as getRefPromise } from "./useExtendComponent.js";
|
|
30
|
-
import { defHttp } from "/@/utils/http/axios";
|
|
31
|
-
import OnlineQueryForm from "./OnlineQueryForm.js";
|
|
32
|
-
import OnlineSuperQuery from "./SuperQuery.js";
|
|
33
|
-
import { _ as _export_sfc } from "./index.js";
|
|
34
|
-
import "/@/components/Modal";
|
|
35
|
-
import "./OnlineForm.js";
|
|
36
|
-
import "/@/components/Form/index";
|
|
37
|
-
import "/@/utils";
|
|
38
|
-
import "/@/components/Loading";
|
|
39
|
-
import "/@/components/jeecg/JVxeTable/types";
|
|
40
|
-
import "/@/utils/auth";
|
|
41
|
-
import "@ant-design/icons-vue";
|
|
42
|
-
import "/@/hooks/core/useContext";
|
|
43
|
-
import "/@/utils/mitt";
|
|
44
|
-
import "/@/utils/cache";
|
|
45
|
-
import "/@/utils/common/compUtils";
|
|
46
|
-
import "/@/store/modules/user";
|
|
47
|
-
import "./pick.js";
|
|
48
|
-
import "./_flatRest.js";
|
|
49
|
-
import "./isArray.js";
|
|
50
|
-
import "./toString.js";
|
|
51
|
-
import "./_arrayPush.js";
|
|
52
|
-
import "./omit.js";
|
|
53
|
-
import "./_baseClone.js";
|
|
54
|
-
import "./_baseSlice.js";
|
|
55
|
-
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
56
|
-
import "/@/components/Form/src/componentMap";
|
|
57
|
-
import "/@/utils/propTypes";
|
|
58
|
-
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
59
|
-
import "/@/views/system/user/user.api";
|
|
60
|
-
import "./_commonjsHelpers.js";
|
|
61
|
-
import "/@/utils/desform/customExpression";
|
|
62
|
-
import "/@/store/modules/permission";
|
|
63
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
64
|
-
import "/@/hooks/system/useListPage";
|
|
65
|
-
import "vue-router";
|
|
66
|
-
import "/@/components/Form/src/utils/Area";
|
|
67
|
-
import "/@/components/Preview/index";
|
|
68
|
-
import "./LinkTableListPiece.js";
|
|
69
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
70
|
-
import "./OnlineSelectCascade.js";
|
|
71
|
-
import "./JModalTip.js";
|
|
72
|
-
import "ant-design-vue";
|
|
73
|
-
import "@vueuse/core";
|
|
74
|
-
import "./OnlineFormDetail.js";
|
|
75
|
-
import "./DetailForm.js";
|
|
76
|
-
import "/@/utils/dict";
|
|
77
|
-
import "/@/utils/dict/index";
|
|
78
|
-
import "/@/api/common/api";
|
|
79
|
-
import "./OnlineSubFormDetail.js";
|
|
80
|
-
import "/@/router";
|
|
81
|
-
import "/@/hooks/core/onMountedOrActivated";
|
|
82
|
-
import "/@/hooks/system/useMethods";
|
|
83
|
-
import "./SuperQueryValComponent.vue_vue_type_script_lang.js";
|
|
84
|
-
import "/@/utils/is";
|
|
85
|
-
var OnlineAutoTreeList_vue_vue_type_style_index_0_lang = "";
|
|
86
|
-
const _sfc_main = {
|
|
87
|
-
name: "DefaultOnlineList",
|
|
88
|
-
components: {
|
|
89
|
-
BasicTable,
|
|
90
|
-
TableAction,
|
|
91
|
-
OnlineAutoModal,
|
|
92
|
-
JImportModal,
|
|
93
|
-
OnlineQueryForm,
|
|
94
|
-
OnlineSuperQuery,
|
|
95
|
-
OnlineCustomModal,
|
|
96
|
-
OnlineDetailModal
|
|
97
|
-
},
|
|
98
|
-
setup() {
|
|
99
|
-
const { createMessage: $message } = useMessage();
|
|
100
|
-
const onlineTreeTableRef = ref();
|
|
101
|
-
const {
|
|
102
|
-
ID,
|
|
103
|
-
onlineTableContext,
|
|
104
|
-
onlineQueryFormOuter,
|
|
105
|
-
loading,
|
|
106
|
-
reload,
|
|
107
|
-
dataSource,
|
|
108
|
-
pagination,
|
|
109
|
-
handleSpecialConfig,
|
|
110
|
-
getColumnList,
|
|
111
|
-
handleChangeInTable,
|
|
112
|
-
loadData,
|
|
113
|
-
superQueryButtonRef,
|
|
114
|
-
superQueryStatus,
|
|
115
|
-
handleSuperQuery,
|
|
116
|
-
registerCustomModal,
|
|
117
|
-
getTreeDataByResult,
|
|
118
|
-
expandedRowKeys,
|
|
119
|
-
handleExpandedRowsChange,
|
|
120
|
-
tableReloading,
|
|
121
|
-
onlineExtConfigJson,
|
|
122
|
-
handleFormConfig
|
|
123
|
-
} = useOnlineTableContext();
|
|
124
|
-
if (!ID.value) {
|
|
125
|
-
$message.warning("\u5730\u5740\u9519\u8BEF, \u914D\u7F6EID\u4E0D\u5B58\u5728!");
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
onlineTableContext.isTree(true);
|
|
129
|
-
let { initCgEnhanceJs } = useEnhance(onlineTableContext);
|
|
130
|
-
const {
|
|
131
|
-
buttonSwitch,
|
|
132
|
-
cgLinkButtonList,
|
|
133
|
-
cgTopButtonList,
|
|
134
|
-
importUrl,
|
|
135
|
-
registerModal,
|
|
136
|
-
handleAdd,
|
|
137
|
-
handleEdit,
|
|
138
|
-
handleBatchDelete,
|
|
139
|
-
registerImportModal,
|
|
140
|
-
onImportExcel,
|
|
141
|
-
onExportExcel,
|
|
142
|
-
cgButtonJsHandler,
|
|
143
|
-
cgButtonActionHandler,
|
|
144
|
-
cgButtonLinkHandler,
|
|
145
|
-
handleSubmitFlow,
|
|
146
|
-
getDropDownActions,
|
|
147
|
-
getActions,
|
|
148
|
-
initButtonList,
|
|
149
|
-
initButtonSwitch,
|
|
150
|
-
registerDetailModal
|
|
151
|
-
} = useListButton(onlineTableContext, onlineExtConfigJson);
|
|
152
|
-
const {
|
|
153
|
-
columns,
|
|
154
|
-
actionColumn,
|
|
155
|
-
selectedKeys,
|
|
156
|
-
rowSelection,
|
|
157
|
-
enableScrollBar,
|
|
158
|
-
tableScroll,
|
|
159
|
-
downloadRowFile,
|
|
160
|
-
getImgView,
|
|
161
|
-
getPcaText,
|
|
162
|
-
getFormatDate,
|
|
163
|
-
handleColumnResult,
|
|
164
|
-
hrefComponent,
|
|
165
|
-
viewOnlineCellImage
|
|
166
|
-
} = useTableColumns(onlineTableContext, onlineExtConfigJson);
|
|
167
|
-
watch(
|
|
168
|
-
ID,
|
|
169
|
-
() => {
|
|
170
|
-
initAutoList();
|
|
171
|
-
},
|
|
172
|
-
{ immediate: true }
|
|
173
|
-
);
|
|
174
|
-
function initAutoList() {
|
|
175
|
-
return __async(this, null, function* () {
|
|
176
|
-
loading.value = true;
|
|
177
|
-
let columnResult = yield getColumnList();
|
|
178
|
-
handleTableConfig(columnResult);
|
|
179
|
-
yield loadData();
|
|
180
|
-
loading.value = false;
|
|
181
|
-
onlineTableContext.execButtonEnhance("setup");
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
function handleTableConfig(result) {
|
|
185
|
-
let EnhanceJS = initCgEnhanceJs(result.enhanceJs);
|
|
186
|
-
onlineTableContext["EnhanceJS"] = EnhanceJS;
|
|
187
|
-
initButtonList(result.cgButtonList);
|
|
188
|
-
initButtonSwitch(result.hideColumns);
|
|
189
|
-
handleColumnResult(result);
|
|
190
|
-
handleSpecialConfig(result);
|
|
191
|
-
onlineTableContext["hasChildrenField"] = result.hasChildrenField;
|
|
192
|
-
onlineTableContext["pidField"] = result.pidField;
|
|
193
|
-
}
|
|
194
|
-
function queryWithCondition(data, status) {
|
|
195
|
-
onlineTableContext["queryParam"] = data;
|
|
196
|
-
if (status === true) {
|
|
197
|
-
reload();
|
|
198
|
-
} else {
|
|
199
|
-
searchReset();
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
function onQueryFormLoaded(json) {
|
|
203
|
-
return __async(this, null, function* () {
|
|
204
|
-
yield getRefPromise(superQueryButtonRef);
|
|
205
|
-
superQueryButtonRef.value.init(json);
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
function handleExpand(expanded, record) {
|
|
209
|
-
let expandedRowKeysValue = expandedRowKeys.value;
|
|
210
|
-
if (expanded) {
|
|
211
|
-
addExpandedRowKey(record.id);
|
|
212
|
-
if (record.children.length > 0 && record.children[0].isLoading === true) {
|
|
213
|
-
let hasChildrenField = onlineTableContext.hasChildrenField;
|
|
214
|
-
const { sortField, sortType } = onlineTableContext;
|
|
215
|
-
let params = Object.assign({}, { column: sortField, order: sortType });
|
|
216
|
-
params[onlineTableContext["pidField"]] = record.id;
|
|
217
|
-
params[hasChildrenField] = record[hasChildrenField];
|
|
218
|
-
let url = `${onlineTableContext.onlineUrl.getTreeData}${onlineTableContext.ID}`;
|
|
219
|
-
defHttp.get({ url, params }, { isTransformResponse: false }).then((res) => {
|
|
220
|
-
console.log("handleExpand", res.result);
|
|
221
|
-
if (res.success) {
|
|
222
|
-
if (Number(res.result.total) > 0) {
|
|
223
|
-
record.children = getTreeDataByResult(res.result.records);
|
|
224
|
-
} else {
|
|
225
|
-
record.children = "";
|
|
226
|
-
record.hasChildrenField = "0";
|
|
227
|
-
}
|
|
228
|
-
} else {
|
|
229
|
-
$message.warning(res.message);
|
|
230
|
-
}
|
|
231
|
-
}).catch(() => {
|
|
232
|
-
$message.warning("\u52A0\u8F7D\u5B50\u8282\u70B9\u5931\u8D25!");
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
} else {
|
|
236
|
-
let keyIndex = expandedRowKeysValue.indexOf(record.id);
|
|
237
|
-
if (keyIndex >= 0) {
|
|
238
|
-
expandedRowKeys.value = expandedRowKeysValue.splice(keyIndex, 1);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
function addExpandedRowKey(key) {
|
|
243
|
-
let arr = expandedRowKeys.value;
|
|
244
|
-
if (arr && arr.indexOf(key) < 0) {
|
|
245
|
-
arr.push(key);
|
|
246
|
-
}
|
|
247
|
-
expandedRowKeys.value = arr;
|
|
248
|
-
}
|
|
249
|
-
function searchReset() {
|
|
250
|
-
return __async(this, null, function* () {
|
|
251
|
-
if (onlineTableContext.isTree() === true) {
|
|
252
|
-
expandedRowKeys.value = [];
|
|
253
|
-
onlineTreeTableRef.value.collapseAll();
|
|
254
|
-
}
|
|
255
|
-
reload();
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
function handlerFormSuccess(formData) {
|
|
259
|
-
console.log("expandedRowKeys.value", expandedRowKeys.value);
|
|
260
|
-
if (loadParent.value === true) {
|
|
261
|
-
let pid = formData[onlineTableContext.pidField];
|
|
262
|
-
if (pid) {
|
|
263
|
-
let arr = expandedRowKeys.value;
|
|
264
|
-
if (arr.indexOf(pid) < 0) {
|
|
265
|
-
arr.push(pid);
|
|
266
|
-
}
|
|
267
|
-
expandedRowKeys.value = arr;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
reload();
|
|
271
|
-
}
|
|
272
|
-
const addChildButton = (record) => {
|
|
273
|
-
return {
|
|
274
|
-
label: "\u6DFB\u52A0\u4E0B\u7EA7",
|
|
275
|
-
onClick: handleAddChild.bind(null, record)
|
|
276
|
-
};
|
|
277
|
-
};
|
|
278
|
-
const loadParent = ref(false);
|
|
279
|
-
function handleAddChild(record) {
|
|
280
|
-
loadParent.value = true;
|
|
281
|
-
let param = {
|
|
282
|
-
[onlineTableContext.pidField]: record["id"]
|
|
283
|
-
};
|
|
284
|
-
handleAdd(param);
|
|
285
|
-
}
|
|
286
|
-
function getTreeDropDownActions(record) {
|
|
287
|
-
let arr = getDropDownActions(record);
|
|
288
|
-
arr.unshift(addChildButton(record));
|
|
289
|
-
return arr;
|
|
290
|
-
}
|
|
291
|
-
const that = {
|
|
292
|
-
ID,
|
|
293
|
-
onlineQueryFormOuter,
|
|
294
|
-
queryWithCondition,
|
|
295
|
-
onQueryFormLoaded,
|
|
296
|
-
reload,
|
|
297
|
-
superQueryButtonRef,
|
|
298
|
-
superQueryStatus,
|
|
299
|
-
handleSuperQuery,
|
|
300
|
-
loading,
|
|
301
|
-
columns,
|
|
302
|
-
actionColumn,
|
|
303
|
-
dataSource,
|
|
304
|
-
pagination,
|
|
305
|
-
rowSelection,
|
|
306
|
-
selectedKeys,
|
|
307
|
-
tableScroll,
|
|
308
|
-
enableScrollBar,
|
|
309
|
-
handleChangeInTable,
|
|
310
|
-
buttonSwitch,
|
|
311
|
-
handleAdd,
|
|
312
|
-
handleEdit,
|
|
313
|
-
onImportExcel,
|
|
314
|
-
onExportExcel,
|
|
315
|
-
cgTopButtonList,
|
|
316
|
-
cgLinkButtonList,
|
|
317
|
-
cgButtonJsHandler,
|
|
318
|
-
cgButtonActionHandler,
|
|
319
|
-
cgButtonLinkHandler,
|
|
320
|
-
handleBatchDelete,
|
|
321
|
-
downloadRowFile,
|
|
322
|
-
getImgView,
|
|
323
|
-
getPcaText,
|
|
324
|
-
getFormatDate,
|
|
325
|
-
getActions,
|
|
326
|
-
getTreeDropDownActions,
|
|
327
|
-
registerModal,
|
|
328
|
-
registerCustomModal,
|
|
329
|
-
registerImportModal,
|
|
330
|
-
importUrl,
|
|
331
|
-
handleFormConfig,
|
|
332
|
-
tableReloading,
|
|
333
|
-
handleSubmitFlow,
|
|
334
|
-
hrefComponent,
|
|
335
|
-
viewOnlineCellImage,
|
|
336
|
-
onlineTreeTableRef,
|
|
337
|
-
handlerFormSuccess,
|
|
338
|
-
searchReset,
|
|
339
|
-
handleExpand,
|
|
340
|
-
expandedRowKeys,
|
|
341
|
-
handleExpandedRowsChange,
|
|
342
|
-
registerDetailModal
|
|
343
|
-
};
|
|
344
|
-
return that;
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
const _hoisted_1 = { class: "p-2" };
|
|
348
|
-
const _hoisted_2 = {
|
|
349
|
-
key: 0,
|
|
350
|
-
style: { "font-size": "12px", "font-style": "italic" }
|
|
351
|
-
};
|
|
352
|
-
const _hoisted_3 = {
|
|
353
|
-
key: 0,
|
|
354
|
-
style: { "font-size": "12px", "font-style": "italic" }
|
|
355
|
-
};
|
|
356
|
-
const _hoisted_4 = ["src", "onClick"];
|
|
357
|
-
const _hoisted_5 = ["innerHTML"];
|
|
358
|
-
const _hoisted_6 = ["title"];
|
|
359
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
360
|
-
const _component_online_query_form = resolveComponent("online-query-form");
|
|
361
|
-
const _component_a_button = resolveComponent("a-button");
|
|
362
|
-
const _component_online_super_query = resolveComponent("online-super-query");
|
|
363
|
-
const _component_TableAction = resolveComponent("TableAction");
|
|
364
|
-
const _component_BasicTable = resolveComponent("BasicTable");
|
|
365
|
-
const _component_OnlineAutoModal = resolveComponent("OnlineAutoModal");
|
|
366
|
-
const _component_JImportModal = resolveComponent("JImportModal");
|
|
367
|
-
const _component_a_modal = resolveComponent("a-modal");
|
|
368
|
-
const _component_online_custom_modal = resolveComponent("online-custom-modal");
|
|
369
|
-
const _component_online_detail_modal = resolveComponent("online-detail-modal");
|
|
370
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
371
|
-
createVNode(_component_online_query_form, {
|
|
372
|
-
ref: "onlineQueryFormOuter",
|
|
373
|
-
id: _ctx.ID,
|
|
374
|
-
onSearch: _ctx.queryWithCondition,
|
|
375
|
-
onLoaded: _ctx.onQueryFormLoaded
|
|
376
|
-
}, null, 8, ["id", "onSearch", "onLoaded"]),
|
|
377
|
-
!_ctx.tableReloading ? (openBlock(), createBlock(_component_BasicTable, {
|
|
378
|
-
key: 0,
|
|
379
|
-
ref: "onlineTreeTableRef",
|
|
380
|
-
isTreeTable: true,
|
|
381
|
-
expandedRowKeys: _ctx.expandedRowKeys,
|
|
382
|
-
onExpandedRowsChange: _ctx.handleExpandedRowsChange,
|
|
383
|
-
onExpand: _ctx.handleExpand,
|
|
384
|
-
rowKey: "jeecg_row_key",
|
|
385
|
-
canResize: true,
|
|
386
|
-
bordered: true,
|
|
387
|
-
showIndexColumn: false,
|
|
388
|
-
loading: _ctx.loading,
|
|
389
|
-
columns: _ctx.columns,
|
|
390
|
-
dataSource: _ctx.dataSource,
|
|
391
|
-
pagination: _ctx.pagination,
|
|
392
|
-
rowSelection: _ctx.rowSelection,
|
|
393
|
-
actionColumn: _ctx.actionColumn,
|
|
394
|
-
showTableSetting: true,
|
|
395
|
-
clickToRowSelect: false,
|
|
396
|
-
scroll: _ctx.tableScroll,
|
|
397
|
-
onTableRedo: _ctx.reload,
|
|
398
|
-
class: normalizeClass({ "j-table-force-nowrap": _ctx.enableScrollBar }),
|
|
399
|
-
onChange: _ctx.handleChangeInTable
|
|
400
|
-
}, {
|
|
401
|
-
tableTitle: withCtx(() => [
|
|
402
|
-
_ctx.buttonSwitch.add ? (openBlock(), createBlock(_component_a_button, {
|
|
403
|
-
key: 0,
|
|
404
|
-
preIcon: "ant-design:plus-outlined",
|
|
405
|
-
type: "primary",
|
|
406
|
-
onClick: _ctx.handleAdd
|
|
407
|
-
}, {
|
|
408
|
-
default: withCtx(() => [
|
|
409
|
-
createTextVNode("\u65B0\u589E")
|
|
410
|
-
]),
|
|
411
|
-
_: 1
|
|
412
|
-
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
413
|
-
_ctx.buttonSwitch.import ? (openBlock(), createBlock(_component_a_button, {
|
|
414
|
-
key: 1,
|
|
415
|
-
preIcon: "ant-design:import-outlined",
|
|
416
|
-
type: "primary",
|
|
417
|
-
onClick: _ctx.onImportExcel
|
|
418
|
-
}, {
|
|
419
|
-
default: withCtx(() => [
|
|
420
|
-
createTextVNode("\u5BFC\u5165")
|
|
421
|
-
]),
|
|
422
|
-
_: 1
|
|
423
|
-
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
424
|
-
_ctx.buttonSwitch.export ? (openBlock(), createBlock(_component_a_button, {
|
|
425
|
-
key: 2,
|
|
426
|
-
preIcon: "ant-design:export-outlined",
|
|
427
|
-
type: "primary",
|
|
428
|
-
onClick: _ctx.onExportExcel
|
|
429
|
-
}, {
|
|
430
|
-
default: withCtx(() => [
|
|
431
|
-
createTextVNode(" \u5BFC\u51FA")
|
|
432
|
-
]),
|
|
433
|
-
_: 1
|
|
434
|
-
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
435
|
-
_ctx.cgTopButtonList && _ctx.cgTopButtonList.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 3 }, renderList(_ctx.cgTopButtonList, (item, index) => {
|
|
436
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
437
|
-
item.optType == "js" ? (openBlock(), createBlock(_component_a_button, {
|
|
438
|
-
key: "cgbtn" + index,
|
|
439
|
-
onClick: ($event) => _ctx.cgButtonJsHandler(item.buttonCode),
|
|
440
|
-
type: "primary",
|
|
441
|
-
preIcon: item.buttonIcon ? "ant-design:" + item.buttonIcon : ""
|
|
442
|
-
}, {
|
|
443
|
-
default: withCtx(() => [
|
|
444
|
-
createTextVNode(toDisplayString(item.buttonName), 1)
|
|
445
|
-
]),
|
|
446
|
-
_: 2
|
|
447
|
-
}, 1032, ["onClick", "preIcon"])) : item.optType == "action" ? (openBlock(), createBlock(_component_a_button, {
|
|
448
|
-
key: "cgbtn" + index,
|
|
449
|
-
onClick: ($event) => _ctx.cgButtonActionHandler(item.buttonCode),
|
|
450
|
-
type: "primary",
|
|
451
|
-
preIcon: item.buttonIcon ? "ant-design:" + item.buttonIcon : ""
|
|
452
|
-
}, {
|
|
453
|
-
default: withCtx(() => [
|
|
454
|
-
createTextVNode(toDisplayString(item.buttonName), 1)
|
|
455
|
-
]),
|
|
456
|
-
_: 2
|
|
457
|
-
}, 1032, ["onClick", "preIcon"])) : createCommentVNode("", true)
|
|
458
|
-
], 64);
|
|
459
|
-
}), 256)) : createCommentVNode("", true),
|
|
460
|
-
_ctx.buttonSwitch.batch_delete ? withDirectives((openBlock(), createBlock(_component_a_button, {
|
|
461
|
-
key: 4,
|
|
462
|
-
preIcon: "ant-design:delete-outlined",
|
|
463
|
-
onClick: _ctx.handleBatchDelete
|
|
464
|
-
}, {
|
|
465
|
-
default: withCtx(() => [
|
|
466
|
-
createTextVNode(" \u6279\u91CF\u5220\u9664")
|
|
467
|
-
]),
|
|
468
|
-
_: 1
|
|
469
|
-
}, 8, ["onClick"])), [
|
|
470
|
-
[vShow, _ctx.selectedKeys.length > 0]
|
|
471
|
-
]) : createCommentVNode("", true),
|
|
472
|
-
_ctx.buttonSwitch.super_query ? (openBlock(), createBlock(_component_online_super_query, {
|
|
473
|
-
key: 5,
|
|
474
|
-
ref: "superQueryButtonRef",
|
|
475
|
-
online: "",
|
|
476
|
-
status: _ctx.superQueryStatus,
|
|
477
|
-
onSearch: _ctx.handleSuperQuery
|
|
478
|
-
}, null, 8, ["status", "onSearch"])) : createCommentVNode("", true)
|
|
479
|
-
]),
|
|
480
|
-
fileSlot: withCtx(({ text }) => [
|
|
481
|
-
!text ? (openBlock(), createElementBlock("span", _hoisted_2, "\u65E0\u6587\u4EF6")) : (openBlock(), createBlock(_component_a_button, {
|
|
482
|
-
key: 1,
|
|
483
|
-
ghost: true,
|
|
484
|
-
type: "primary",
|
|
485
|
-
preIcon: "ant-design:download",
|
|
486
|
-
size: "small",
|
|
487
|
-
onClick: ($event) => _ctx.downloadRowFile(text)
|
|
488
|
-
}, {
|
|
489
|
-
default: withCtx(() => [
|
|
490
|
-
createTextVNode(" \u4E0B\u8F7D ")
|
|
491
|
-
]),
|
|
492
|
-
_: 2
|
|
493
|
-
}, 1032, ["onClick"]))
|
|
494
|
-
]),
|
|
495
|
-
imgSlot: withCtx(({ text }) => [
|
|
496
|
-
!text ? (openBlock(), createElementBlock("span", _hoisted_3, "\u65E0\u56FE\u7247")) : (openBlock(), createElementBlock("img", {
|
|
497
|
-
key: 1,
|
|
498
|
-
src: _ctx.getImgView(text),
|
|
499
|
-
alt: "\u56FE\u7247\u4E0D\u5B58\u5728",
|
|
500
|
-
class: "online-cell-image",
|
|
501
|
-
onClick: ($event) => _ctx.viewOnlineCellImage(text)
|
|
502
|
-
}, null, 8, _hoisted_4))
|
|
503
|
-
]),
|
|
504
|
-
htmlSlot: withCtx(({ text }) => [
|
|
505
|
-
createElementVNode("div", { innerHTML: text }, null, 8, _hoisted_5)
|
|
506
|
-
]),
|
|
507
|
-
pcaSlot: withCtx(({ text }) => [
|
|
508
|
-
createElementVNode("div", {
|
|
509
|
-
title: _ctx.getPcaText(text)
|
|
510
|
-
}, toDisplayString(_ctx.getPcaText(text)), 9, _hoisted_6)
|
|
511
|
-
]),
|
|
512
|
-
dateSlot: withCtx(({ text }) => [
|
|
513
|
-
createElementVNode("span", null, toDisplayString(_ctx.getFormatDate(text)), 1)
|
|
514
|
-
]),
|
|
515
|
-
action: withCtx(({ record }) => [
|
|
516
|
-
createVNode(_component_TableAction, {
|
|
517
|
-
actions: _ctx.getActions(record),
|
|
518
|
-
dropDownActions: _ctx.getTreeDropDownActions(record)
|
|
519
|
-
}, null, 8, ["actions", "dropDownActions"])
|
|
520
|
-
]),
|
|
521
|
-
_: 1
|
|
522
|
-
}, 8, ["expandedRowKeys", "onExpandedRowsChange", "onExpand", "loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])) : createCommentVNode("", true),
|
|
523
|
-
createVNode(_component_OnlineAutoModal, {
|
|
524
|
-
id: _ctx.ID,
|
|
525
|
-
onRegister: _ctx.registerModal,
|
|
526
|
-
onSuccess: _ctx.handlerFormSuccess,
|
|
527
|
-
onFormConfig: _ctx.handleFormConfig
|
|
528
|
-
}, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
|
|
529
|
-
createVNode(_component_JImportModal, {
|
|
530
|
-
onRegister: _ctx.registerImportModal,
|
|
531
|
-
url: _ctx.importUrl(),
|
|
532
|
-
onOk: _ctx.reload,
|
|
533
|
-
online: ""
|
|
534
|
-
}, null, 8, ["onRegister", "url", "onOk"]),
|
|
535
|
-
createVNode(_component_a_modal, mergeProps(_ctx.hrefComponent.model, toHandlers(_ctx.hrefComponent.on)), {
|
|
536
|
-
default: withCtx(() => [
|
|
537
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.hrefComponent.is), normalizeProps(guardReactiveProps(_ctx.hrefComponent.params)), null, 16))
|
|
538
|
-
]),
|
|
539
|
-
_: 1
|
|
540
|
-
}, 16),
|
|
541
|
-
createVNode(_component_online_custom_modal, {
|
|
542
|
-
onRegister: _ctx.registerCustomModal,
|
|
543
|
-
onSuccess: _ctx.reload
|
|
544
|
-
}, null, 8, ["onRegister", "onSuccess"]),
|
|
545
|
-
createVNode(_component_online_detail_modal, {
|
|
546
|
-
id: _ctx.ID,
|
|
547
|
-
onRegister: _ctx.registerDetailModal
|
|
548
|
-
}, null, 8, ["id", "onRegister"])
|
|
549
|
-
]);
|
|
550
|
-
}
|
|
551
|
-
var OnlineAutoTreeList = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
552
|
-
export { OnlineAutoTreeList as default };
|