@jeecg/online 3.5.3-beta2 → 3.5.3-vite4

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.
Files changed (154) hide show
  1. package/AuthButtonConfig-2f71787c.mjs +125 -0
  2. package/AuthButtonTree-d73bccf5.mjs +156 -0
  3. package/AuthDataConfig-32cf23d2.mjs +212 -0
  4. package/AuthDataTree-03d62d3f.mjs +139 -0
  5. package/AuthFieldConfig-b1217a0c.mjs +139 -0
  6. package/AuthFieldTree-888e04a9.mjs +232 -0
  7. package/AuthManagerDrawer-f127b8a2.mjs +114 -0
  8. package/AuthSetterModal-37da78ed.mjs +261 -0
  9. package/CgformCopyList-3adab58f.mjs +245 -0
  10. package/CgformModal-6938d8c2.mjs +613 -0
  11. package/CgreportModal-77ec8c17.mjs +12 -0
  12. package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
  13. package/CheckDictTable-414313f2.mjs +211 -0
  14. package/CodeFileListModal-4831ce3d.mjs +158 -0
  15. package/CodeFileViewModal-5990dac4.mjs +244 -0
  16. package/CodeGeneratorModal-7df9e25d.mjs +234 -0
  17. package/CustomButtonList-1c9bd859.mjs +363 -0
  18. package/DBAttributeTable-cd1c41e5.mjs +473 -0
  19. package/DbToOnlineModal-dc5d2030.mjs +160 -0
  20. package/DetailForm-e4538e7a.mjs +446 -0
  21. package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
  22. package/EnhanceJsHistory-c30805ce.mjs +184 -0
  23. package/EnhanceJsModal-0b133341.mjs +233 -0
  24. package/EnhanceSqlModal-33a94c83.mjs +259 -0
  25. package/ExtendConfigModal-60f2cf86.mjs +111 -0
  26. package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
  27. package/FileSelectModal-64aaf623.mjs +91 -0
  28. package/ForeignKeyTable-cb1abd1d.mjs +69 -0
  29. package/IndexTable-4e94cd1f.mjs +89 -0
  30. package/JModalTip-abe1515a.mjs +46 -0
  31. package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
  32. package/LeftDepart-ca7a7375.mjs +82 -0
  33. package/LeftRole-d0fa8398.mjs +86 -0
  34. package/LeftUser-0c88c240.mjs +105 -0
  35. package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
  36. package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
  37. package/LinkTableListPiece-34266919.mjs +34 -0
  38. package/ModalFormDemo-0eeea994.mjs +78 -0
  39. package/OnlCgformErpList-7a0388d8.mjs +425 -0
  40. package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
  41. package/OnlineAutoList-85e6a30d.mjs +472 -0
  42. package/OnlineAutoModal-2a146238.mjs +206 -0
  43. package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
  44. package/OnlineCustomModal-456a85a6.mjs +227 -0
  45. package/OnlineDetailModal-f967f080.mjs +177 -0
  46. package/OnlineForm-630a22c2.mjs +778 -0
  47. package/OnlineFormDetail-1b216792.mjs +296 -0
  48. package/OnlineQueryForm-1c5949a7.mjs +378 -0
  49. package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
  50. package/OnlineSelectCascade-c7baf52b.mjs +160 -0
  51. package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
  52. package/PageAttributeTable-811185fd.mjs +404 -0
  53. package/ProcessOnlineForm-27be6f6f.mjs +177 -0
  54. package/QueryTable-4ba771ef.mjs +115 -0
  55. package/SuperQuery-3821f984.mjs +845 -0
  56. package/SuperQueryValComponent-471110b5.mjs +8 -0
  57. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
  58. package/auth.api-d3a6c4b3.mjs +39 -0
  59. package/auth.data-8be5c9e3.mjs +141 -0
  60. package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
  61. package/constant-fe20103a.mjs +6 -0
  62. package/enhance.api-138e6826.mjs +104 -0
  63. package/enhance.data-efc7e155.mjs +175 -0
  64. package/index-074b92e5.mjs +236 -0
  65. package/index-6a09a912.mjs +58 -0
  66. package/index-9d32ae88.mjs +313 -0
  67. package/main.index.js +7 -1
  68. package/package.json +1 -1
  69. package/style.css +1 -1
  70. package/useCgformList-2d6a5955.mjs +388 -0
  71. package/useExtendComponent-48d37d9b.mjs +3919 -0
  72. package/useListButton-cef1371a.mjs +656 -0
  73. package/useOnlinePopEvent-e9a042f8.mjs +19 -0
  74. package/useOnlineTest-0df0ae86.mjs +43 -0
  75. package/useSchemas-fc8d97ce.mjs +669 -0
  76. package/useTableSync-dc333087.mjs +83 -0
  77. package/AuthButtonConfig.js +0 -147
  78. package/AuthButtonTree.js +0 -183
  79. package/AuthDataConfig.js +0 -246
  80. package/AuthDataTree.js +0 -160
  81. package/AuthFieldConfig.js +0 -170
  82. package/AuthFieldTree.js +0 -281
  83. package/AuthManagerDrawer.js +0 -125
  84. package/AuthSetterModal.js +0 -316
  85. package/CgformCopyList.js +0 -266
  86. package/CgformModal.js +0 -780
  87. package/CgreportModal.js +0 -667
  88. package/CheckDictTable.js +0 -242
  89. package/CodeFileListModal.js +0 -175
  90. package/CodeFileViewModal.js +0 -325
  91. package/CodeGeneratorModal.js +0 -297
  92. package/CustomButtonList.js +0 -410
  93. package/DBAttributeTable.js +0 -526
  94. package/DbToOnlineModal.js +0 -192
  95. package/DetailForm.js +0 -608
  96. package/EnhanceJavaModal.js +0 -298
  97. package/EnhanceJsHistory.js +0 -229
  98. package/EnhanceJsModal.js +0 -293
  99. package/EnhanceSqlModal.js +0 -299
  100. package/ExtendConfigModal.js +0 -151
  101. package/FieldExtendJsonModal.js +0 -283
  102. package/FileSelectModal.js +0 -102
  103. package/ForeignKeyTable.js +0 -79
  104. package/IndexTable.js +0 -97
  105. package/JModalTip.js +0 -54
  106. package/JOnlineSearchSelect.js +0 -115
  107. package/LICENSE +0 -9
  108. package/LeftDepart.js +0 -96
  109. package/LeftRole.js +0 -98
  110. package/LeftUser.js +0 -117
  111. package/LinkTableConfigModal.js +0 -289
  112. package/LinkTableFieldConfigModal.js +0 -218
  113. package/LinkTableListPiece.js +0 -36
  114. package/ModalFormDemo.js +0 -85
  115. package/OnlineAutoList.js +0 -524
  116. package/OnlineAutoModal.js +0 -226
  117. package/OnlineAutoTreeList.js +0 -553
  118. package/OnlineCustomModal.js +0 -286
  119. package/OnlineDetailModal.js +0 -190
  120. package/OnlineForm.js +0 -1018
  121. package/OnlineFormDetail.js +0 -347
  122. package/OnlineQueryForm.js +0 -484
  123. package/OnlineSearchFormItem.js +0 -436
  124. package/OnlineSelectCascade.js +0 -228
  125. package/OnlineSubFormDetail.js +0 -166
  126. package/PageAttributeTable.js +0 -486
  127. package/ProcessOnlineForm.js +0 -208
  128. package/QueryTable.js +0 -129
  129. package/SuperQuery.js +0 -1021
  130. package/SuperQueryValComponent.js +0 -9
  131. package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
  132. package/_arrayPush.js +0 -278
  133. package/_baseClone.js +0 -471
  134. package/_baseSlice.js +0 -18
  135. package/_commonjsHelpers.js +0 -5
  136. package/_flatRest.js +0 -174
  137. package/auth.api.js +0 -43
  138. package/auth.data.js +0 -142
  139. package/clipboard.js +0 -565
  140. package/enhance.api.js +0 -129
  141. package/enhance.data.js +0 -196
  142. package/index.js +0 -87
  143. package/index2.js +0 -340
  144. package/index3.js +0 -264
  145. package/isArray.js +0 -47
  146. package/omit.js +0 -60
  147. package/pick.js +0 -68
  148. package/toString.js +0 -31
  149. package/useCgformList.js +0 -470
  150. package/useExtendComponent.js +0 -5205
  151. package/useListButton.js +0 -923
  152. package/useOnlineTest.js +0 -44
  153. package/useSchemas.js +0 -653
  154. package/useTableSync.js +0 -117
@@ -1,553 +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 "/@/components/Form/src/helper";
85
- import "/@/utils/is";
86
- var OnlineAutoTreeList_vue_vue_type_style_index_0_lang = "";
87
- const _sfc_main = {
88
- name: "DefaultOnlineList",
89
- components: {
90
- BasicTable,
91
- TableAction,
92
- OnlineAutoModal,
93
- JImportModal,
94
- OnlineQueryForm,
95
- OnlineSuperQuery,
96
- OnlineCustomModal,
97
- OnlineDetailModal
98
- },
99
- setup() {
100
- const { createMessage: $message } = useMessage();
101
- const onlineTreeTableRef = ref();
102
- const {
103
- ID,
104
- onlineTableContext,
105
- onlineQueryFormOuter,
106
- loading,
107
- reload,
108
- dataSource,
109
- pagination,
110
- handleSpecialConfig,
111
- getColumnList,
112
- handleChangeInTable,
113
- loadData,
114
- superQueryButtonRef,
115
- superQueryStatus,
116
- handleSuperQuery,
117
- registerCustomModal,
118
- getTreeDataByResult,
119
- expandedRowKeys,
120
- handleExpandedRowsChange,
121
- tableReloading,
122
- onlineExtConfigJson,
123
- handleFormConfig
124
- } = useOnlineTableContext();
125
- if (!ID.value) {
126
- $message.warning("\u5730\u5740\u9519\u8BEF, \u914D\u7F6EID\u4E0D\u5B58\u5728!");
127
- return;
128
- }
129
- onlineTableContext.isTree(true);
130
- let { initCgEnhanceJs } = useEnhance(onlineTableContext);
131
- const {
132
- buttonSwitch,
133
- cgLinkButtonList,
134
- cgTopButtonList,
135
- importUrl,
136
- registerModal,
137
- handleAdd,
138
- handleEdit,
139
- handleBatchDelete,
140
- registerImportModal,
141
- onImportExcel,
142
- onExportExcel,
143
- cgButtonJsHandler,
144
- cgButtonActionHandler,
145
- cgButtonLinkHandler,
146
- handleSubmitFlow,
147
- getDropDownActions,
148
- getActions,
149
- initButtonList,
150
- initButtonSwitch,
151
- registerDetailModal
152
- } = useListButton(onlineTableContext, onlineExtConfigJson);
153
- const {
154
- columns,
155
- actionColumn,
156
- selectedKeys,
157
- rowSelection,
158
- enableScrollBar,
159
- tableScroll,
160
- downloadRowFile,
161
- getImgView,
162
- getPcaText,
163
- getFormatDate,
164
- handleColumnResult,
165
- hrefComponent,
166
- viewOnlineCellImage
167
- } = useTableColumns(onlineTableContext, onlineExtConfigJson);
168
- watch(
169
- ID,
170
- () => {
171
- initAutoList();
172
- },
173
- { immediate: true }
174
- );
175
- function initAutoList() {
176
- return __async(this, null, function* () {
177
- loading.value = true;
178
- let columnResult = yield getColumnList();
179
- handleTableConfig(columnResult);
180
- yield loadData();
181
- loading.value = false;
182
- onlineTableContext.execButtonEnhance("setup");
183
- });
184
- }
185
- function handleTableConfig(result) {
186
- let EnhanceJS = initCgEnhanceJs(result.enhanceJs);
187
- onlineTableContext["EnhanceJS"] = EnhanceJS;
188
- initButtonList(result.cgButtonList);
189
- initButtonSwitch(result.hideColumns);
190
- handleColumnResult(result);
191
- handleSpecialConfig(result);
192
- onlineTableContext["hasChildrenField"] = result.hasChildrenField;
193
- onlineTableContext["pidField"] = result.pidField;
194
- }
195
- function queryWithCondition(data, status) {
196
- onlineTableContext["queryParam"] = data;
197
- if (status === true) {
198
- reload();
199
- } else {
200
- searchReset();
201
- }
202
- }
203
- function onQueryFormLoaded(json) {
204
- return __async(this, null, function* () {
205
- yield getRefPromise(superQueryButtonRef);
206
- superQueryButtonRef.value.init(json);
207
- });
208
- }
209
- function handleExpand(expanded, record) {
210
- let expandedRowKeysValue = expandedRowKeys.value;
211
- if (expanded) {
212
- addExpandedRowKey(record.id);
213
- if (record.children.length > 0 && record.children[0].isLoading === true) {
214
- let hasChildrenField = onlineTableContext.hasChildrenField;
215
- const { sortField, sortType } = onlineTableContext;
216
- let params = Object.assign({}, { column: sortField, order: sortType });
217
- params[onlineTableContext["pidField"]] = record.id;
218
- params[hasChildrenField] = record[hasChildrenField];
219
- let url = `${onlineTableContext.onlineUrl.getTreeData}${onlineTableContext.ID}`;
220
- defHttp.get({ url, params }, { isTransformResponse: false }).then((res) => {
221
- console.log("handleExpand", res.result);
222
- if (res.success) {
223
- if (Number(res.result.total) > 0) {
224
- record.children = getTreeDataByResult(res.result.records);
225
- } else {
226
- record.children = "";
227
- record.hasChildrenField = "0";
228
- }
229
- } else {
230
- $message.warning(res.message);
231
- }
232
- }).catch(() => {
233
- $message.warning("\u52A0\u8F7D\u5B50\u8282\u70B9\u5931\u8D25!");
234
- });
235
- }
236
- } else {
237
- let keyIndex = expandedRowKeysValue.indexOf(record.id);
238
- if (keyIndex >= 0) {
239
- expandedRowKeys.value = expandedRowKeysValue.splice(keyIndex, 1);
240
- }
241
- }
242
- }
243
- function addExpandedRowKey(key) {
244
- let arr = expandedRowKeys.value;
245
- if (arr && arr.indexOf(key) < 0) {
246
- arr.push(key);
247
- }
248
- expandedRowKeys.value = arr;
249
- }
250
- function searchReset() {
251
- return __async(this, null, function* () {
252
- if (onlineTableContext.isTree() === true) {
253
- expandedRowKeys.value = [];
254
- onlineTreeTableRef.value.collapseAll();
255
- }
256
- reload();
257
- });
258
- }
259
- function handlerFormSuccess(formData) {
260
- console.log("expandedRowKeys.value", expandedRowKeys.value);
261
- if (loadParent.value === true) {
262
- let pid = formData[onlineTableContext.pidField];
263
- if (pid) {
264
- let arr = expandedRowKeys.value;
265
- if (arr.indexOf(pid) < 0) {
266
- arr.push(pid);
267
- }
268
- expandedRowKeys.value = arr;
269
- }
270
- }
271
- reload();
272
- }
273
- const addChildButton = (record) => {
274
- return {
275
- label: "\u6DFB\u52A0\u4E0B\u7EA7",
276
- onClick: handleAddChild.bind(null, record)
277
- };
278
- };
279
- const loadParent = ref(false);
280
- function handleAddChild(record) {
281
- loadParent.value = true;
282
- let param = {
283
- [onlineTableContext.pidField]: record["id"]
284
- };
285
- handleAdd(param);
286
- }
287
- function getTreeDropDownActions(record) {
288
- let arr = getDropDownActions(record);
289
- arr.unshift(addChildButton(record));
290
- return arr;
291
- }
292
- const that = {
293
- ID,
294
- onlineQueryFormOuter,
295
- queryWithCondition,
296
- onQueryFormLoaded,
297
- reload,
298
- superQueryButtonRef,
299
- superQueryStatus,
300
- handleSuperQuery,
301
- loading,
302
- columns,
303
- actionColumn,
304
- dataSource,
305
- pagination,
306
- rowSelection,
307
- selectedKeys,
308
- tableScroll,
309
- enableScrollBar,
310
- handleChangeInTable,
311
- buttonSwitch,
312
- handleAdd,
313
- handleEdit,
314
- onImportExcel,
315
- onExportExcel,
316
- cgTopButtonList,
317
- cgLinkButtonList,
318
- cgButtonJsHandler,
319
- cgButtonActionHandler,
320
- cgButtonLinkHandler,
321
- handleBatchDelete,
322
- downloadRowFile,
323
- getImgView,
324
- getPcaText,
325
- getFormatDate,
326
- getActions,
327
- getTreeDropDownActions,
328
- registerModal,
329
- registerCustomModal,
330
- registerImportModal,
331
- importUrl,
332
- handleFormConfig,
333
- tableReloading,
334
- handleSubmitFlow,
335
- hrefComponent,
336
- viewOnlineCellImage,
337
- onlineTreeTableRef,
338
- handlerFormSuccess,
339
- searchReset,
340
- handleExpand,
341
- expandedRowKeys,
342
- handleExpandedRowsChange,
343
- registerDetailModal
344
- };
345
- return that;
346
- }
347
- };
348
- const _hoisted_1 = { class: "p-2" };
349
- const _hoisted_2 = {
350
- key: 0,
351
- style: { "font-size": "12px", "font-style": "italic" }
352
- };
353
- const _hoisted_3 = {
354
- key: 0,
355
- style: { "font-size": "12px", "font-style": "italic" }
356
- };
357
- const _hoisted_4 = ["src", "onClick"];
358
- const _hoisted_5 = ["innerHTML"];
359
- const _hoisted_6 = ["title"];
360
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
361
- const _component_online_query_form = resolveComponent("online-query-form");
362
- const _component_a_button = resolveComponent("a-button");
363
- const _component_online_super_query = resolveComponent("online-super-query");
364
- const _component_TableAction = resolveComponent("TableAction");
365
- const _component_BasicTable = resolveComponent("BasicTable");
366
- const _component_OnlineAutoModal = resolveComponent("OnlineAutoModal");
367
- const _component_JImportModal = resolveComponent("JImportModal");
368
- const _component_a_modal = resolveComponent("a-modal");
369
- const _component_online_custom_modal = resolveComponent("online-custom-modal");
370
- const _component_online_detail_modal = resolveComponent("online-detail-modal");
371
- return openBlock(), createElementBlock("div", _hoisted_1, [
372
- createVNode(_component_online_query_form, {
373
- ref: "onlineQueryFormOuter",
374
- id: _ctx.ID,
375
- onSearch: _ctx.queryWithCondition,
376
- onLoaded: _ctx.onQueryFormLoaded
377
- }, null, 8, ["id", "onSearch", "onLoaded"]),
378
- !_ctx.tableReloading ? (openBlock(), createBlock(_component_BasicTable, {
379
- key: 0,
380
- ref: "onlineTreeTableRef",
381
- isTreeTable: true,
382
- expandedRowKeys: _ctx.expandedRowKeys,
383
- onExpandedRowsChange: _ctx.handleExpandedRowsChange,
384
- onExpand: _ctx.handleExpand,
385
- rowKey: "jeecg_row_key",
386
- canResize: true,
387
- bordered: true,
388
- showIndexColumn: false,
389
- loading: _ctx.loading,
390
- columns: _ctx.columns,
391
- dataSource: _ctx.dataSource,
392
- pagination: _ctx.pagination,
393
- rowSelection: _ctx.rowSelection,
394
- actionColumn: _ctx.actionColumn,
395
- showTableSetting: true,
396
- clickToRowSelect: false,
397
- scroll: _ctx.tableScroll,
398
- onTableRedo: _ctx.reload,
399
- class: normalizeClass({ "j-table-force-nowrap": _ctx.enableScrollBar }),
400
- onChange: _ctx.handleChangeInTable
401
- }, {
402
- tableTitle: withCtx(() => [
403
- _ctx.buttonSwitch.add ? (openBlock(), createBlock(_component_a_button, {
404
- key: 0,
405
- preIcon: "ant-design:plus-outlined",
406
- type: "primary",
407
- onClick: _ctx.handleAdd
408
- }, {
409
- default: withCtx(() => [
410
- createTextVNode("\u65B0\u589E")
411
- ]),
412
- _: 1
413
- }, 8, ["onClick"])) : createCommentVNode("", true),
414
- _ctx.buttonSwitch.import ? (openBlock(), createBlock(_component_a_button, {
415
- key: 1,
416
- preIcon: "ant-design:import-outlined",
417
- type: "primary",
418
- onClick: _ctx.onImportExcel
419
- }, {
420
- default: withCtx(() => [
421
- createTextVNode("\u5BFC\u5165")
422
- ]),
423
- _: 1
424
- }, 8, ["onClick"])) : createCommentVNode("", true),
425
- _ctx.buttonSwitch.export ? (openBlock(), createBlock(_component_a_button, {
426
- key: 2,
427
- preIcon: "ant-design:export-outlined",
428
- type: "primary",
429
- onClick: _ctx.onExportExcel
430
- }, {
431
- default: withCtx(() => [
432
- createTextVNode(" \u5BFC\u51FA")
433
- ]),
434
- _: 1
435
- }, 8, ["onClick"])) : createCommentVNode("", true),
436
- _ctx.cgTopButtonList && _ctx.cgTopButtonList.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 3 }, renderList(_ctx.cgTopButtonList, (item, index) => {
437
- return openBlock(), createElementBlock(Fragment, null, [
438
- item.optType == "js" ? (openBlock(), createBlock(_component_a_button, {
439
- key: "cgbtn" + index,
440
- onClick: ($event) => _ctx.cgButtonJsHandler(item.buttonCode),
441
- type: "primary",
442
- preIcon: item.buttonIcon ? "ant-design:" + item.buttonIcon : ""
443
- }, {
444
- default: withCtx(() => [
445
- createTextVNode(toDisplayString(item.buttonName), 1)
446
- ]),
447
- _: 2
448
- }, 1032, ["onClick", "preIcon"])) : item.optType == "action" ? (openBlock(), createBlock(_component_a_button, {
449
- key: "cgbtn" + index,
450
- onClick: ($event) => _ctx.cgButtonActionHandler(item.buttonCode),
451
- type: "primary",
452
- preIcon: item.buttonIcon ? "ant-design:" + item.buttonIcon : ""
453
- }, {
454
- default: withCtx(() => [
455
- createTextVNode(toDisplayString(item.buttonName), 1)
456
- ]),
457
- _: 2
458
- }, 1032, ["onClick", "preIcon"])) : createCommentVNode("", true)
459
- ], 64);
460
- }), 256)) : createCommentVNode("", true),
461
- _ctx.buttonSwitch.batch_delete ? withDirectives((openBlock(), createBlock(_component_a_button, {
462
- key: 4,
463
- preIcon: "ant-design:delete-outlined",
464
- onClick: _ctx.handleBatchDelete
465
- }, {
466
- default: withCtx(() => [
467
- createTextVNode(" \u6279\u91CF\u5220\u9664")
468
- ]),
469
- _: 1
470
- }, 8, ["onClick"])), [
471
- [vShow, _ctx.selectedKeys.length > 0]
472
- ]) : createCommentVNode("", true),
473
- _ctx.buttonSwitch.super_query ? (openBlock(), createBlock(_component_online_super_query, {
474
- key: 5,
475
- ref: "superQueryButtonRef",
476
- online: "",
477
- status: _ctx.superQueryStatus,
478
- onSearch: _ctx.handleSuperQuery
479
- }, null, 8, ["status", "onSearch"])) : createCommentVNode("", true)
480
- ]),
481
- fileSlot: withCtx(({ text }) => [
482
- !text ? (openBlock(), createElementBlock("span", _hoisted_2, "\u65E0\u6587\u4EF6")) : (openBlock(), createBlock(_component_a_button, {
483
- key: 1,
484
- ghost: true,
485
- type: "primary",
486
- preIcon: "ant-design:download",
487
- size: "small",
488
- onClick: ($event) => _ctx.downloadRowFile(text)
489
- }, {
490
- default: withCtx(() => [
491
- createTextVNode(" \u4E0B\u8F7D ")
492
- ]),
493
- _: 2
494
- }, 1032, ["onClick"]))
495
- ]),
496
- imgSlot: withCtx(({ text }) => [
497
- !text ? (openBlock(), createElementBlock("span", _hoisted_3, "\u65E0\u56FE\u7247")) : (openBlock(), createElementBlock("img", {
498
- key: 1,
499
- src: _ctx.getImgView(text),
500
- alt: "\u56FE\u7247\u4E0D\u5B58\u5728",
501
- class: "online-cell-image",
502
- onClick: ($event) => _ctx.viewOnlineCellImage(text)
503
- }, null, 8, _hoisted_4))
504
- ]),
505
- htmlSlot: withCtx(({ text }) => [
506
- createElementVNode("div", { innerHTML: text }, null, 8, _hoisted_5)
507
- ]),
508
- pcaSlot: withCtx(({ text }) => [
509
- createElementVNode("div", {
510
- title: _ctx.getPcaText(text)
511
- }, toDisplayString(_ctx.getPcaText(text)), 9, _hoisted_6)
512
- ]),
513
- dateSlot: withCtx(({ text }) => [
514
- createElementVNode("span", null, toDisplayString(_ctx.getFormatDate(text)), 1)
515
- ]),
516
- action: withCtx(({ record }) => [
517
- createVNode(_component_TableAction, {
518
- actions: _ctx.getActions(record),
519
- dropDownActions: _ctx.getTreeDropDownActions(record)
520
- }, null, 8, ["actions", "dropDownActions"])
521
- ]),
522
- _: 1
523
- }, 8, ["expandedRowKeys", "onExpandedRowsChange", "onExpand", "loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])) : createCommentVNode("", true),
524
- createVNode(_component_OnlineAutoModal, {
525
- id: _ctx.ID,
526
- onRegister: _ctx.registerModal,
527
- onSuccess: _ctx.handlerFormSuccess,
528
- onFormConfig: _ctx.handleFormConfig
529
- }, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
530
- createVNode(_component_JImportModal, {
531
- onRegister: _ctx.registerImportModal,
532
- url: _ctx.importUrl(),
533
- onOk: _ctx.reload,
534
- online: ""
535
- }, null, 8, ["onRegister", "url", "onOk"]),
536
- createVNode(_component_a_modal, mergeProps(_ctx.hrefComponent.model, toHandlers(_ctx.hrefComponent.on)), {
537
- default: withCtx(() => [
538
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.hrefComponent.is), normalizeProps(guardReactiveProps(_ctx.hrefComponent.params)), null, 16))
539
- ]),
540
- _: 1
541
- }, 16),
542
- createVNode(_component_online_custom_modal, {
543
- onRegister: _ctx.registerCustomModal,
544
- onSuccess: _ctx.reload
545
- }, null, 8, ["onRegister", "onSuccess"]),
546
- createVNode(_component_online_detail_modal, {
547
- id: _ctx.ID,
548
- onRegister: _ctx.registerDetailModal
549
- }, null, 8, ["id", "onRegister"])
550
- ]);
551
- }
552
- var OnlineAutoTreeList = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
553
- export { OnlineAutoTreeList as default };