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