@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
@@ -0,0 +1,495 @@
1
+ var B = (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 Je, TableAction as He } from "/@/components/Table";
18
+ import { useMessage as Ke } from "/@/hooks/web/useMessage";
19
+ import Pe from "./OnlineAutoModal-ffe19c3f.mjs";
20
+ import qe from "./OnlineDetailModal-bfb1375f.mjs";
21
+ import Ne from "./OnlineCustomModal-3939ce78.mjs";
22
+ import { ref as K, watch as Ve, resolveComponent as d, openBlock as l, createElementBlock as S, createVNode as f, createBlock as p, normalizeClass as ze, withCtx as a, createTextVNode as C, createCommentVNode as g, Fragment as P, renderList as je, toDisplayString as E, withDirectives as Ue, vShow as We, createElementVNode as _, mergeProps as Ge, toHandlers as Xe, resolveDynamicComponent as Ye, normalizeProps as Ze, guardReactiveProps as xe } from "vue";
23
+ import eo from "/@/components/Form/src/jeecg/components/JImportModal.vue";
24
+ import { u as oo, a as no } from "./useListButton-0f18bf6a.mjs";
25
+ import { u as to, a as io, g as lo } from "./useExtendComponent-aa1cdfc8.mjs";
26
+ import { defHttp as ao } from "/@/utils/http/axios";
27
+ import ro from "./OnlineQueryForm-0771c80f.mjs";
28
+ import so from "./SuperQuery-78db6998.mjs";
29
+ import { a as q } from "./constant-754f1a9d.mjs";
30
+ import { _ as uo } from "./index-b70302f2.mjs";
31
+ import "/@/components/Modal";
32
+ import "./OnlineForm-069f6092.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 "./useCustomHook-acb00837.mjs";
43
+ import "/@/utils/cache";
44
+ import "/@/utils/common/compUtils";
45
+ import "/@/store/modules/user";
46
+ import "/@/components/jeecg/comment/CommentPanel.vue";
47
+ import "./OnlineFormDetail-ad5735fb.mjs";
48
+ import "./DetailForm-2901d215.mjs";
49
+ import "/@/utils/propTypes";
50
+ import "/@/utils/dict";
51
+ import "/@/utils/dict/JDictSelectUtil";
52
+ import "/@/utils/dict/index";
53
+ import "/@/api/common/api";
54
+ import "/@/components/Form/src/utils/Area";
55
+ import "/@/components/Preview/index";
56
+ import "/@/components/Markdown";
57
+ import "./OnlineSubFormDetail-583d01eb.mjs";
58
+ import "vue-router";
59
+ import "/@/router";
60
+ import "/@/hooks/core/onMountedOrActivated";
61
+ import "ant-design-vue";
62
+ import "/@/hooks/system/useMethods";
63
+ import "/@/components/Form/src/componentMap";
64
+ import "/@/components/Form/src/jeecg/components/JUpload";
65
+ import "/@/views/system/user/user.api";
66
+ import "/@/utils/desform/customExpression";
67
+ import "/@/store/modules/permission";
68
+ import "/@/hooks/system/useListPage";
69
+ import "./LinkTableListPiece-7f793b08.mjs";
70
+ import "./OnlineSelectCascade-a05c30f4.mjs";
71
+ import "./JModalTip-e1938b49.mjs";
72
+ import "@vueuse/core";
73
+ import "./SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs";
74
+ import "/@/utils/is";
75
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
76
+ const po = {
77
+ name: "DefaultOnlineList",
78
+ components: {
79
+ BasicTable: Je,
80
+ TableAction: He,
81
+ OnlineAutoModal: Pe,
82
+ JImportModal: eo,
83
+ OnlineQueryForm: ro,
84
+ OnlineSuperQuery: so,
85
+ OnlineCustomModal: Ne,
86
+ OnlineDetailModal: qe
87
+ },
88
+ setup() {
89
+ const { createMessage: e } = Ke(), T = K(), {
90
+ ID: m,
91
+ onlineTableContext: i,
92
+ onlineQueryFormOuter: k,
93
+ loading: y,
94
+ reload: c,
95
+ dataSource: r,
96
+ pagination: s,
97
+ handleSpecialConfig: h,
98
+ getColumnList: D,
99
+ handleChangeInTable: v,
100
+ loadData: A,
101
+ superQueryButtonRef: R,
102
+ superQueryStatus: L,
103
+ handleSuperQuery: O,
104
+ registerCustomModal: o,
105
+ getTreeDataByResult: w,
106
+ expandedRowKeys: u,
107
+ handleExpandedRowsChange: N,
108
+ tableReloading: V,
109
+ onlineExtConfigJson: Q,
110
+ handleFormConfig: z
111
+ } = oo();
112
+ if (!m.value)
113
+ throw e.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
114
+ i.isTree(!0);
115
+ let { initCgEnhanceJs: j } = to(i);
116
+ const {
117
+ buttonSwitch: U,
118
+ cgLinkButtonList: W,
119
+ cgTopButtonList: G,
120
+ importUrl: X,
121
+ registerModal: Y,
122
+ handleAdd: $,
123
+ handleEdit: Z,
124
+ handleBatchDelete: x,
125
+ registerImportModal: ee,
126
+ onImportExcel: oe,
127
+ onExportExcel: ne,
128
+ cgButtonJsHandler: te,
129
+ cgButtonActionHandler: ie,
130
+ cgButtonLinkHandler: le,
131
+ handleSubmitFlow: ae,
132
+ getDropDownActions: re,
133
+ getActions: se,
134
+ initButtonList: ue,
135
+ initButtonSwitch: de,
136
+ registerDetailModal: pe
137
+ } = no(i, Q), {
138
+ columns: me,
139
+ actionColumn: ce,
140
+ selectedKeys: ge,
141
+ rowSelection: he,
142
+ enableScrollBar: fe,
143
+ tableScroll: Ce,
144
+ downloadRowFile: ye,
145
+ getImgView: we,
146
+ getPcaText: be,
147
+ getFormatDate: Se,
148
+ handleColumnResult: Te,
149
+ hrefComponent: ke,
150
+ viewOnlineCellImage: Re
151
+ } = io(i, Q);
152
+ Ve(
153
+ m,
154
+ () => {
155
+ Fe();
156
+ },
157
+ { immediate: !0 }
158
+ );
159
+ function Fe() {
160
+ return B(this, null, function* () {
161
+ y.value = !0;
162
+ let n = yield D(q);
163
+ Ie(n), yield A(), y.value = !1, i.execButtonEnhance("setup");
164
+ });
165
+ }
166
+ function Ie(n) {
167
+ let t = j(n.enhanceJs);
168
+ i.EnhanceJS = t, ue(n.cgButtonList), de(n.hideColumns), Te(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 Ee(n) {
174
+ return B(this, null, function* () {
175
+ yield lo(R), R.value.init(n);
176
+ });
177
+ }
178
+ function De(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: _e, sortType: Qe } = i;
184
+ let M = Object.assign({}, { column: _e, order: Qe });
185
+ M[i.pidField] = t.id, M[F] = t[F];
186
+ let $e = `${i.onlineUrl.getTreeData}${i.ID}`;
187
+ ao.get({ url: $e, params: M }, { isTransformResponse: !1 }).then((I) => {
188
+ I.success ? Number(I.result.total) > 0 ? t.children = w(I.result.records) : (t.children = "", t.hasChildrenField = "0") : e.warning(I.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 B(this, null, function* () {
204
+ i.isTree() === !0 && (u.value = [], T.value.collapseAll()), c();
205
+ });
206
+ }
207
+ function Ae(n) {
208
+ if (H.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 Le = (n) => ({
218
+ label: "添加下级",
219
+ onClick: Oe.bind(null, n)
220
+ }), H = K(!1);
221
+ function Oe(n) {
222
+ H.value = !0;
223
+ let t = {
224
+ [i.pidField]: n.id
225
+ };
226
+ $(t);
227
+ }
228
+ function Me(n) {
229
+ let t = re(n, { themeTemplate: q });
230
+ return t.unshift(Le(n)), t;
231
+ }
232
+ return {
233
+ ID: m,
234
+ // 查询区域
235
+ onlineQueryFormOuter: k,
236
+ queryWithCondition: Be,
237
+ onQueryFormLoaded: Ee,
238
+ reload: c,
239
+ //高级查询
240
+ superQueryButtonRef: R,
241
+ superQueryStatus: L,
242
+ handleSuperQuery: O,
243
+ // table区域
244
+ loading: y,
245
+ columns: me,
246
+ actionColumn: ce,
247
+ dataSource: r,
248
+ pagination: s,
249
+ rowSelection: he,
250
+ selectedKeys: ge,
251
+ tableScroll: Ce,
252
+ enableScrollBar: fe,
253
+ handleChangeInTable: v,
254
+ //按钮
255
+ buttonSwitch: U,
256
+ handleAdd: $,
257
+ handleEdit: Z,
258
+ onImportExcel: oe,
259
+ onExportExcel: ne,
260
+ cgTopButtonList: G,
261
+ cgLinkButtonList: W,
262
+ cgButtonJsHandler: te,
263
+ cgButtonActionHandler: ie,
264
+ cgButtonLinkHandler: le,
265
+ handleBatchDelete: x,
266
+ // table-slot
267
+ downloadRowFile: ye,
268
+ getImgView: we,
269
+ getPcaText: be,
270
+ getFormatDate: Se,
271
+ // 操作列
272
+ getActions: se,
273
+ getTreeDropDownActions: Me,
274
+ // 弹窗
275
+ registerModal: Y,
276
+ registerCustomModal: o,
277
+ registerImportModal: ee,
278
+ importUrl: X,
279
+ handleFormConfig: z,
280
+ //其他
281
+ tableReloading: V,
282
+ handleSubmitFlow: ae,
283
+ hrefComponent: ke,
284
+ viewOnlineCellImage: Re,
285
+ //树特定的配置
286
+ onlineTreeTableRef: T,
287
+ handlerFormSuccess: Ae,
288
+ searchReset: J,
289
+ handleExpand: De,
290
+ expandedRowKeys: u,
291
+ handleExpandedRowsChange: N,
292
+ registerDetailModal: pe
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"), D = d("BasicTable"), v = 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(D, {
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: ze({ "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 }, je(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 ? Ue((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
+ [We, 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(v, {
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, Ge(e.hrefComponent.model, Xe(e.hrefComponent.on)), {
477
+ default: a(() => [
478
+ (l(), p(Ye(e.hrefComponent.is), Ze(xe(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 Bn = /* @__PURE__ */ uo(po, [["render", yo]]);
493
+ export {
494
+ Bn as default
495
+ };