@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
@@ -0,0 +1,495 @@
1
+ var I = (e, T, m) => new Promise((i, k) => {
2
+ var y = (s) => {
3
+ try {
4
+ r(m.next(s));
5
+ } catch (h) {
6
+ k(h);
7
+ }
8
+ }, c = (s) => {
9
+ try {
10
+ r(m.throw(s));
11
+ } catch (h) {
12
+ k(h);
13
+ }
14
+ }, r = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(y, c);
15
+ r((m = m.apply(e, T)).next());
16
+ });
17
+ import { BasicTable as $e, TableAction as Je } from "/@/components/Table";
18
+ import { useMessage as Ke } from "/@/hooks/web/useMessage";
19
+ import He from "./OnlineAutoModal-2a146238.mjs";
20
+ import Pe from "./OnlineDetailModal-f967f080.mjs";
21
+ import qe from "./OnlineCustomModal-456a85a6.mjs";
22
+ import { ref as H, watch as Ne, resolveComponent as d, openBlock as l, createElementBlock as S, createVNode as f, createBlock as p, normalizeClass as Ve, withCtx as a, createTextVNode as C, createCommentVNode as g, Fragment as P, renderList as ze, toDisplayString as E, withDirectives as je, vShow as Ue, createElementVNode as _, mergeProps as We, toHandlers as Ge, resolveDynamicComponent as Xe, normalizeProps as Ye, guardReactiveProps as Ze } from "vue";
23
+ import xe from "/@/components/Form/src/jeecg/components/JImportModal.vue";
24
+ import { u as eo, a as oo } from "./useListButton-cef1371a.mjs";
25
+ import { u as no, a as to, g as io } from "./useExtendComponent-48d37d9b.mjs";
26
+ import { defHttp as lo } from "/@/utils/http/axios";
27
+ import ao from "./OnlineQueryForm-1c5949a7.mjs";
28
+ import ro from "./SuperQuery-3821f984.mjs";
29
+ import { T as so } from "./constant-fe20103a.mjs";
30
+ import { _ as uo } from "./index-6a09a912.mjs";
31
+ import "/@/components/Modal";
32
+ import "./OnlineForm-630a22c2.mjs";
33
+ import "/@/components/Form/index";
34
+ import "lodash-es";
35
+ import "/@/utils";
36
+ import "/@/components/Loading";
37
+ import "/@/components/jeecg/JVxeTable/types";
38
+ import "/@/utils/auth";
39
+ import "@ant-design/icons-vue";
40
+ import "/@/hooks/core/useContext";
41
+ import "/@/utils/mitt";
42
+ import "/@/utils/cache";
43
+ import "/@/utils/common/compUtils";
44
+ import "/@/store/modules/user";
45
+ import "/@/components/jeecg/comment/CommentPanel.vue";
46
+ import "./OnlineFormDetail-1b216792.mjs";
47
+ import "./DetailForm-e4538e7a.mjs";
48
+ import "/@/utils/propTypes";
49
+ import "/@/utils/dict";
50
+ import "/@/utils/dict/JDictSelectUtil";
51
+ import "/@/utils/dict/index";
52
+ import "/@/api/common/api";
53
+ import "/@/components/Form/src/utils/Area";
54
+ import "/@/components/Preview/index";
55
+ import "./OnlineSubFormDetail-0aa4966c.mjs";
56
+ import "vue-router";
57
+ import "/@/router";
58
+ import "/@/hooks/core/onMountedOrActivated";
59
+ import "ant-design-vue";
60
+ import "/@/hooks/system/useMethods";
61
+ import "/@/components/Form/src/componentMap";
62
+ import "/@/components/Form/src/jeecg/components/JUpload";
63
+ import "/@/views/system/user/user.api";
64
+ import "/@/utils/desform/customExpression";
65
+ import "/@/store/modules/permission";
66
+ import "/@/hooks/system/useListPage";
67
+ import "./LinkTableListPiece-34266919.mjs";
68
+ import "./OnlineSelectCascade-c7baf52b.mjs";
69
+ import "./JModalTip-abe1515a.mjs";
70
+ import "@vueuse/core";
71
+ import "./SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs";
72
+ import "/@/utils/is";
73
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
74
+ const po = {
75
+ name: "DefaultOnlineList",
76
+ components: {
77
+ BasicTable: $e,
78
+ TableAction: Je,
79
+ OnlineAutoModal: He,
80
+ JImportModal: xe,
81
+ OnlineQueryForm: ao,
82
+ OnlineSuperQuery: ro,
83
+ OnlineCustomModal: qe,
84
+ OnlineDetailModal: Pe
85
+ },
86
+ setup() {
87
+ const { createMessage: e } = Ke(), T = H(), {
88
+ ID: m,
89
+ onlineTableContext: i,
90
+ onlineQueryFormOuter: k,
91
+ loading: y,
92
+ reload: c,
93
+ dataSource: r,
94
+ pagination: s,
95
+ handleSpecialConfig: h,
96
+ getColumnList: v,
97
+ handleChangeInTable: D,
98
+ loadData: A,
99
+ superQueryButtonRef: R,
100
+ superQueryStatus: L,
101
+ handleSuperQuery: O,
102
+ registerCustomModal: o,
103
+ getTreeDataByResult: w,
104
+ expandedRowKeys: u,
105
+ handleExpandedRowsChange: q,
106
+ tableReloading: N,
107
+ onlineExtConfigJson: Q,
108
+ handleFormConfig: V
109
+ } = eo();
110
+ if (!m.value) {
111
+ e.warning("地址错误, 配置ID不存在!");
112
+ return;
113
+ }
114
+ i.isTree(!0);
115
+ let { initCgEnhanceJs: z } = no(i);
116
+ const {
117
+ buttonSwitch: j,
118
+ cgLinkButtonList: U,
119
+ cgTopButtonList: W,
120
+ importUrl: G,
121
+ registerModal: X,
122
+ handleAdd: $,
123
+ handleEdit: Y,
124
+ handleBatchDelete: Z,
125
+ registerImportModal: x,
126
+ onImportExcel: ee,
127
+ onExportExcel: oe,
128
+ cgButtonJsHandler: ne,
129
+ cgButtonActionHandler: te,
130
+ cgButtonLinkHandler: ie,
131
+ handleSubmitFlow: le,
132
+ getDropDownActions: ae,
133
+ getActions: re,
134
+ initButtonList: se,
135
+ initButtonSwitch: ue,
136
+ registerDetailModal: de
137
+ } = oo(i, Q), {
138
+ columns: pe,
139
+ actionColumn: me,
140
+ selectedKeys: ce,
141
+ rowSelection: ge,
142
+ enableScrollBar: he,
143
+ tableScroll: fe,
144
+ downloadRowFile: Ce,
145
+ getImgView: ye,
146
+ getPcaText: we,
147
+ getFormatDate: be,
148
+ handleColumnResult: Se,
149
+ hrefComponent: Te,
150
+ viewOnlineCellImage: ke
151
+ } = to(i, Q);
152
+ Ne(
153
+ m,
154
+ () => {
155
+ Re();
156
+ },
157
+ { immediate: !0 }
158
+ );
159
+ function Re() {
160
+ return I(this, null, function* () {
161
+ y.value = !0;
162
+ let n = yield v(so);
163
+ Fe(n), yield A(), y.value = !1, i.execButtonEnhance("setup");
164
+ });
165
+ }
166
+ function Fe(n) {
167
+ let t = z(n.enhanceJs);
168
+ i.EnhanceJS = t, se(n.cgButtonList), ue(n.hideColumns), Se(n), h(n), i.hasChildrenField = n.hasChildrenField, i.pidField = n.pidField;
169
+ }
170
+ function Be(n, t) {
171
+ i.queryParam = n, t === !0 ? c() : J();
172
+ }
173
+ function Ie(n) {
174
+ return I(this, null, function* () {
175
+ yield io(R), R.value.init(n);
176
+ });
177
+ }
178
+ function Ee(n, t) {
179
+ let b = u.value;
180
+ if (n) {
181
+ if (ve(t.id), t.children.length > 0 && t.children[0].isLoading === !0) {
182
+ let F = i.hasChildrenField;
183
+ const { sortField: Me, sortType: _e } = i;
184
+ let M = Object.assign({}, { column: Me, order: _e });
185
+ M[i.pidField] = t.id, M[F] = t[F];
186
+ let Qe = `${i.onlineUrl.getTreeData}${i.ID}`;
187
+ lo.get({ url: Qe, params: M }, { isTransformResponse: !1 }).then((B) => {
188
+ console.log("handleExpand", B.result), B.success ? Number(B.result.total) > 0 ? t.children = w(B.result.records) : (t.children = "", t.hasChildrenField = "0") : e.warning(B.message);
189
+ }).catch(() => {
190
+ e.warning("加载子节点失败!");
191
+ });
192
+ }
193
+ } else {
194
+ let F = b.indexOf(t.id);
195
+ F >= 0 && (u.value = b.splice(F, 1));
196
+ }
197
+ }
198
+ function ve(n) {
199
+ let t = u.value;
200
+ t && t.indexOf(n) < 0 && t.push(n), u.value = t;
201
+ }
202
+ function J() {
203
+ return I(this, null, function* () {
204
+ i.isTree() === !0 && (u.value = [], T.value.collapseAll()), c();
205
+ });
206
+ }
207
+ function De(n) {
208
+ if (console.log("expandedRowKeys.value", u.value), K.value === !0) {
209
+ let t = n[i.pidField];
210
+ if (t) {
211
+ let b = u.value;
212
+ b.indexOf(t) < 0 && b.push(t), u.value = b;
213
+ }
214
+ }
215
+ c();
216
+ }
217
+ const Ae = (n) => ({
218
+ label: "添加下级",
219
+ onClick: Le.bind(null, n)
220
+ }), K = H(!1);
221
+ function Le(n) {
222
+ K.value = !0;
223
+ let t = {
224
+ [i.pidField]: n.id
225
+ };
226
+ $(t);
227
+ }
228
+ function Oe(n) {
229
+ let t = ae(n);
230
+ return t.unshift(Ae(n)), t;
231
+ }
232
+ return {
233
+ ID: m,
234
+ // 查询区域
235
+ onlineQueryFormOuter: k,
236
+ queryWithCondition: Be,
237
+ onQueryFormLoaded: Ie,
238
+ reload: c,
239
+ //高级查询
240
+ superQueryButtonRef: R,
241
+ superQueryStatus: L,
242
+ handleSuperQuery: O,
243
+ // table区域
244
+ loading: y,
245
+ columns: pe,
246
+ actionColumn: me,
247
+ dataSource: r,
248
+ pagination: s,
249
+ rowSelection: ge,
250
+ selectedKeys: ce,
251
+ tableScroll: fe,
252
+ enableScrollBar: he,
253
+ handleChangeInTable: D,
254
+ //按钮
255
+ buttonSwitch: j,
256
+ handleAdd: $,
257
+ handleEdit: Y,
258
+ onImportExcel: ee,
259
+ onExportExcel: oe,
260
+ cgTopButtonList: W,
261
+ cgLinkButtonList: U,
262
+ cgButtonJsHandler: ne,
263
+ cgButtonActionHandler: te,
264
+ cgButtonLinkHandler: ie,
265
+ handleBatchDelete: Z,
266
+ // table-slot
267
+ downloadRowFile: Ce,
268
+ getImgView: ye,
269
+ getPcaText: we,
270
+ getFormatDate: be,
271
+ // 操作列
272
+ getActions: re,
273
+ getTreeDropDownActions: Oe,
274
+ // 弹窗
275
+ registerModal: X,
276
+ registerCustomModal: o,
277
+ registerImportModal: x,
278
+ importUrl: G,
279
+ handleFormConfig: V,
280
+ //其他
281
+ tableReloading: N,
282
+ handleSubmitFlow: le,
283
+ hrefComponent: Te,
284
+ viewOnlineCellImage: ke,
285
+ //树特定的配置
286
+ onlineTreeTableRef: T,
287
+ handlerFormSuccess: De,
288
+ searchReset: J,
289
+ handleExpand: Ee,
290
+ expandedRowKeys: u,
291
+ handleExpandedRowsChange: q,
292
+ registerDetailModal: de
293
+ };
294
+ }
295
+ // 1引入了loadsh console.log(that.simpleDateFormat(new Date().getTime(),'yyyy-MM-dd'));
296
+ // 2. value的问题
297
+ // 3. 变量位置改变后需要 重写api
298
+ // 1添加按钮的时候 预留出样式对象 然后js增强中设置样式对象
299
+ // 2直接设置css字符串 然后通过js document 往head里面增加css片段 全局生效
300
+ // TODO 清空高级查询
301
+ // TODO 积木报表打印地址
302
+ // const reportPrintUrl = ref('')
303
+ };
304
+ const mo = { class: "p-2" }, co = {
305
+ key: 0,
306
+ style: { "font-size": "12px", "font-style": "italic" }
307
+ }, go = {
308
+ key: 0,
309
+ style: { "font-size": "12px", "font-style": "italic" }
310
+ }, ho = ["src", "onClick"], fo = ["innerHTML"], Co = ["title"];
311
+ function yo(e, T, m, i, k, y) {
312
+ const c = d("online-query-form"), r = d("a-button"), s = d("online-super-query"), h = d("TableAction"), v = d("BasicTable"), D = d("OnlineAutoModal"), A = d("JImportModal"), R = d("a-modal"), L = d("online-custom-modal"), O = d("online-detail-modal");
313
+ return l(), S("div", mo, [
314
+ f(c, {
315
+ ref: "onlineQueryFormOuter",
316
+ id: e.ID,
317
+ onSearch: e.queryWithCondition,
318
+ onLoaded: e.onQueryFormLoaded
319
+ }, null, 8, ["id", "onSearch", "onLoaded"]),
320
+ e.tableReloading ? g("", !0) : (l(), p(v, {
321
+ key: 0,
322
+ ref: "onlineTreeTableRef",
323
+ isTreeTable: !0,
324
+ expandedRowKeys: e.expandedRowKeys,
325
+ onExpandedRowsChange: e.handleExpandedRowsChange,
326
+ onExpand: e.handleExpand,
327
+ rowKey: "jeecg_row_key",
328
+ canResize: !0,
329
+ bordered: !0,
330
+ showIndexColumn: !1,
331
+ loading: e.loading,
332
+ columns: e.columns,
333
+ dataSource: e.dataSource,
334
+ pagination: e.pagination,
335
+ rowSelection: e.rowSelection,
336
+ actionColumn: e.actionColumn,
337
+ showTableSetting: !0,
338
+ clickToRowSelect: !1,
339
+ scroll: e.tableScroll,
340
+ onTableRedo: e.reload,
341
+ class: Ve({ "j-table-force-nowrap": e.enableScrollBar }),
342
+ onChange: e.handleChangeInTable
343
+ }, {
344
+ tableTitle: a(() => [
345
+ e.buttonSwitch.add ? (l(), p(r, {
346
+ key: 0,
347
+ preIcon: "ant-design:plus-outlined",
348
+ type: "primary",
349
+ onClick: e.handleAdd
350
+ }, {
351
+ default: a(() => [
352
+ C("新增")
353
+ ]),
354
+ _: 1
355
+ }, 8, ["onClick"])) : g("", !0),
356
+ e.buttonSwitch.import ? (l(), p(r, {
357
+ key: 1,
358
+ preIcon: "ant-design:import-outlined",
359
+ type: "primary",
360
+ onClick: e.onImportExcel
361
+ }, {
362
+ default: a(() => [
363
+ C("导入")
364
+ ]),
365
+ _: 1
366
+ }, 8, ["onClick"])) : g("", !0),
367
+ e.buttonSwitch.export ? (l(), p(r, {
368
+ key: 2,
369
+ preIcon: "ant-design:export-outlined",
370
+ type: "primary",
371
+ onClick: e.onExportExcel
372
+ }, {
373
+ default: a(() => [
374
+ C(" 导出")
375
+ ]),
376
+ _: 1
377
+ }, 8, ["onClick"])) : g("", !0),
378
+ e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (l(!0), S(P, { key: 3 }, ze(e.cgTopButtonList, (o, w) => (l(), S(P, null, [
379
+ o.optType == "js" ? (l(), p(r, {
380
+ key: "cgbtn" + w,
381
+ onClick: (u) => e.cgButtonJsHandler(o.buttonCode),
382
+ type: "primary",
383
+ preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
384
+ }, {
385
+ default: a(() => [
386
+ C(E(o.buttonName), 1)
387
+ ]),
388
+ _: 2
389
+ }, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (l(), p(r, {
390
+ key: "cgbtn" + w,
391
+ onClick: (u) => e.cgButtonActionHandler(o.buttonCode),
392
+ type: "primary",
393
+ preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
394
+ }, {
395
+ default: a(() => [
396
+ C(E(o.buttonName), 1)
397
+ ]),
398
+ _: 2
399
+ }, 1032, ["onClick", "preIcon"])) : g("", !0)
400
+ ], 64))), 256)) : g("", !0),
401
+ e.buttonSwitch.batch_delete ? je((l(), p(r, {
402
+ key: 4,
403
+ preIcon: "ant-design:delete-outlined",
404
+ onClick: e.handleBatchDelete
405
+ }, {
406
+ default: a(() => [
407
+ C(" 批量删除")
408
+ ]),
409
+ _: 1
410
+ }, 8, ["onClick"])), [
411
+ [Ue, e.selectedKeys.length > 0]
412
+ ]) : g("", !0),
413
+ e.buttonSwitch.super_query ? (l(), p(s, {
414
+ key: 5,
415
+ ref: "superQueryButtonRef",
416
+ online: "",
417
+ status: e.superQueryStatus,
418
+ onSearch: e.handleSuperQuery
419
+ }, null, 8, ["status", "onSearch"])) : g("", !0)
420
+ ]),
421
+ fileSlot: a(({ text: o }) => [
422
+ o ? (l(), p(r, {
423
+ key: 1,
424
+ ghost: !0,
425
+ type: "primary",
426
+ preIcon: "ant-design:download",
427
+ size: "small",
428
+ onClick: (w) => e.downloadRowFile(o)
429
+ }, {
430
+ default: a(() => [
431
+ C(" 下载 ")
432
+ ]),
433
+ _: 2
434
+ }, 1032, ["onClick"])) : (l(), S("span", co, "无文件"))
435
+ ]),
436
+ imgSlot: a(({ text: o }) => [
437
+ o ? (l(), S("img", {
438
+ key: 1,
439
+ src: e.getImgView(o),
440
+ alt: "图片不存在",
441
+ class: "online-cell-image",
442
+ onClick: (w) => e.viewOnlineCellImage(o)
443
+ }, null, 8, ho)) : (l(), S("span", go, "无图片"))
444
+ ]),
445
+ htmlSlot: a(({ text: o }) => [
446
+ _("div", { innerHTML: o }, null, 8, fo)
447
+ ]),
448
+ pcaSlot: a(({ text: o }) => [
449
+ _("div", {
450
+ title: e.getPcaText(o)
451
+ }, E(e.getPcaText(o)), 9, Co)
452
+ ]),
453
+ dateSlot: a(({ text: o }) => [
454
+ _("span", null, E(e.getFormatDate(o)), 1)
455
+ ]),
456
+ action: a(({ record: o }) => [
457
+ f(h, {
458
+ actions: e.getActions(o),
459
+ dropDownActions: e.getTreeDropDownActions(o)
460
+ }, null, 8, ["actions", "dropDownActions"])
461
+ ]),
462
+ _: 1
463
+ }, 8, ["expandedRowKeys", "onExpandedRowsChange", "onExpand", "loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
464
+ f(D, {
465
+ id: e.ID,
466
+ onRegister: e.registerModal,
467
+ onSuccess: e.handlerFormSuccess,
468
+ onFormConfig: e.handleFormConfig
469
+ }, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
470
+ f(A, {
471
+ onRegister: e.registerImportModal,
472
+ url: e.importUrl(),
473
+ onOk: e.reload,
474
+ online: ""
475
+ }, null, 8, ["onRegister", "url", "onOk"]),
476
+ f(R, We(e.hrefComponent.model, Ge(e.hrefComponent.on)), {
477
+ default: a(() => [
478
+ (l(), p(Xe(e.hrefComponent.is), Ye(Ze(e.hrefComponent.params)), null, 16))
479
+ ]),
480
+ _: 1
481
+ }, 16),
482
+ f(L, {
483
+ onRegister: e.registerCustomModal,
484
+ onSuccess: e.reload
485
+ }, null, 8, ["onRegister", "onSuccess"]),
486
+ f(O, {
487
+ id: e.ID,
488
+ onRegister: e.registerDetailModal
489
+ }, null, 8, ["id", "onRegister"])
490
+ ]);
491
+ }
492
+ const Fn = /* @__PURE__ */ uo(po, [["render", yo]]);
493
+ export {
494
+ Fn as default
495
+ };