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