@jeecg/online 3.6.2-GA → 3.7.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 (118) hide show
  1. package/AiModal-fe3988fb.mjs +84 -0
  2. package/AuthButtonConfig-d50a0a65.mjs +134 -0
  3. package/{AuthButtonTree-c2602a7c.mjs → AuthButtonTree-589395ed.mjs} +2 -2
  4. package/AuthDataConfig-7bb0cd85.mjs +237 -0
  5. package/{AuthDataTree-9dc58b20.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
  6. package/AuthFieldConfig-490fc0ab.mjs +139 -0
  7. package/{AuthFieldTree-d836be59.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
  8. package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
  9. package/AuthSetterModal-6f74449c.mjs +273 -0
  10. package/{CgformCopyList-86157923.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
  11. package/{CgformModal-5cf02d51.mjs → CgformModal-36faf29a.mjs} +256 -246
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs → CgreportModal-5a23d089.mjs} +140 -117
  13. package/CheckDictTable-b5cb0e2b.mjs +226 -0
  14. package/{CodeFileListModal-f747daae.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
  15. package/{CodeFileViewModal-a9fb2900.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
  16. package/CodeGeneratorModal-b722d976.mjs +238 -0
  17. package/{CustomButtonList-b9b27a93.mjs → CustomButtonList-37639061.mjs} +118 -100
  18. package/{DBAttributeTable-6bdcb1e8.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
  19. package/{DbToOnlineModal-3705e91a.mjs → DbToOnlineModal-f49b9530.mjs} +56 -50
  20. package/DetailForm-4aa2570b.mjs +485 -0
  21. package/{EnhanceJavaModal-c13de6e0.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
  22. package/{EnhanceJsHistory-154101f0.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
  23. package/EnhanceJsModal-247f640d.mjs +532 -0
  24. package/{EnhanceSqlModal-221c22dc.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
  25. package/ExtendConfigModal-00f2fb55.mjs +117 -0
  26. package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
  27. package/{FileSelectModal-de40a706.mjs → FileSelectModal-38660e3c.mjs} +1 -1
  28. package/{ForeignKeyTable-22989042.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
  29. package/{IndexTable-833d34ff.mjs → IndexTable-1b496559.mjs} +10 -10
  30. package/{JModalTip-0413ad6a.mjs → JModalTip-4a83aaed.mjs} +1 -1
  31. package/{JOnlineSearchSelect-9ea89e13.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
  32. package/{LeftDepart-b0a535c0.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
  33. package/{LeftRole-22c90d6b.mjs → LeftRole-7d8c5acc.mjs} +1 -1
  34. package/{LeftUser-a44d63dd.mjs → LeftUser-b4d1372a.mjs} +3 -3
  35. package/LinkTableConfigModal-a138c85e.mjs +240 -0
  36. package/{LinkTableFieldConfigModal-06693eaa.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
  37. package/{LinkTableListPiece-46e8af51.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
  38. package/{ModalFormDemo-d107fa87.mjs → ModalFormDemo-0544737d.mjs} +1 -1
  39. package/OnlCgformErpList-30e416c8.mjs +470 -0
  40. package/OnlCgformErpSubTable-9a876058.mjs +427 -0
  41. package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
  42. package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
  43. package/OnlCgformTabList-7a2f2c03.mjs +408 -0
  44. package/OnlineAutoList-46c6c8b9.mjs +493 -0
  45. package/OnlineAutoModal-971bef13.mjs +236 -0
  46. package/{OnlineAutoTreeList-ec27d271.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
  47. package/{OnlineCustomModal-3e6792d3.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
  48. package/{OnlineDetailModal-f40e37e1.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
  49. package/OnlineForm-018981b2.mjs +924 -0
  50. package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
  51. package/OnlineFormDetail-e036cd11.mjs +342 -0
  52. package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
  53. package/OnlineFormUrlDetail-b2292137.mjs +119 -0
  54. package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
  55. package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
  56. package/OnlineQueryForm-998c12a4.mjs +444 -0
  57. package/{OnlineSearchFormItem-fe308194.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
  58. package/{OnlineSelectCascade-abc345f9.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
  59. package/{OnlineSubFormDetail-02326a8c.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
  60. package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
  61. package/{OnlineTabDetailModal-d23bd4c9.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
  62. package/OnlineTabForm-9ad7d29a.mjs +805 -0
  63. package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
  64. package/PageAttributeTable-6c23547b.mjs +446 -0
  65. package/{ProcessOnlineForm-84f4d02d.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
  66. package/QueryTable-96b3dbd0.mjs +144 -0
  67. package/SetSwitchOptions-a452fa0f.mjs +62 -0
  68. package/SuperQuery-cbfba908.mjs +975 -0
  69. package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
  70. package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
  71. package/constant-fa63bd66.mjs +10 -0
  72. package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
  73. package/index-173949bb.mjs +57 -0
  74. package/{index-0a93652b.mjs → index-581bef24.mjs} +29 -27
  75. package/{index-e1bda35b.mjs → index-d2abb8a0.mjs} +394 -361
  76. package/main.index.js +1 -1
  77. package/package.json +1 -1
  78. package/style.css +1 -1
  79. package/useCgformList-8755a94e.mjs +426 -0
  80. package/useExtendComponent-bb7cca20.mjs +4295 -0
  81. package/useFormUrl-2ee1a82d.mjs +24 -0
  82. package/useListButton-7ddb9a46.mjs +697 -0
  83. package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
  84. package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
  85. package/AuthButtonConfig-f142147a.mjs +0 -125
  86. package/AuthDataConfig-8e5c7b0c.mjs +0 -212
  87. package/AuthFieldConfig-e9a45f94.mjs +0 -139
  88. package/AuthManagerDrawer-5b558c23.mjs +0 -114
  89. package/AuthSetterModal-0cc557cf.mjs +0 -267
  90. package/CgreportModal-2eb9c9e1.mjs +0 -13
  91. package/CheckDictTable-27102064.mjs +0 -211
  92. package/CodeGeneratorModal-3a0e9f0e.mjs +0 -233
  93. package/DetailForm-cdeb54e3.mjs +0 -462
  94. package/EnhanceJsModal-6158804c.mjs +0 -311
  95. package/ExtendConfigModal-0564ef83.mjs +0 -111
  96. package/FieldExtendJsonModal-40d961c1.mjs +0 -219
  97. package/LinkTableConfigModal-5edaa08d.mjs +0 -230
  98. package/OnlCgformErpList-4c51cdb3.mjs +0 -454
  99. package/OnlCgformErpSubTable-d7081b9f.mjs +0 -403
  100. package/OnlCgformInnerSubTable-4c3925bb.mjs +0 -253
  101. package/OnlCgformInnerTableList-1e5014fa.mjs +0 -444
  102. package/OnlCgformTabList-c59c7cc7.mjs +0 -395
  103. package/OnlineAutoList-a7a9de5d.mjs +0 -479
  104. package/OnlineAutoModal-a33f1a63.mjs +0 -207
  105. package/OnlineForm-fb3a2379.mjs +0 -750
  106. package/OnlineFormDetail-52b1c303.mjs +0 -297
  107. package/OnlineQueryForm-7c70734e.mjs +0 -386
  108. package/OnlineTabAutoModal-6d9da8b0.mjs +0 -254
  109. package/OnlineTabForm-29ca07f7.mjs +0 -766
  110. package/OnlineTabFormDetail-aa7e1144.mjs +0 -324
  111. package/PageAttributeTable-d82946c5.mjs +0 -404
  112. package/QueryTable-d4599fca.mjs +0 -115
  113. package/SuperQuery-07162778.mjs +0 -843
  114. package/constant-754f1a9d.mjs +0 -9
  115. package/index-73993b18.mjs +0 -56
  116. package/useCgformList-b135794d.mjs +0 -400
  117. package/useExtendComponent-f4e29152.mjs +0 -3926
  118. package/useListButton-4dd33e7a.mjs +0 -676
@@ -1,479 +0,0 @@
1
- var T = (o, 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(o, f)).next());
16
- });
17
- import { ref as vo, watch as Do, 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 Lo, toDisplayString as B, withDirectives as Oo, vShow as Fo, createElementVNode as F, mergeProps as Ao, toHandlers as Po, resolveDynamicComponent as Qo, normalizeProps as _o, guardReactiveProps as Ho } from "vue";
18
- import { BasicTable as Jo, TableAction as $o } from "/@/components/Table";
19
- import { useMessage as qo } from "/@/hooks/web/useMessage";
20
- import No from "./OnlineAutoModal-a33f1a63.mjs";
21
- import zo from "./OnlineCustomModal-3e6792d3.mjs";
22
- import Vo from "./OnlineDetailModal-f40e37e1.mjs";
23
- import jo from "/@/components/Form/src/jeecg/components/JImportModal.vue";
24
- import { u as Ko, a as Uo } from "./useListButton-4dd33e7a.mjs";
25
- import { O as Wo, u as Go, a as Xo, g as Yo } from "./useExtendComponent-f4e29152.mjs";
26
- import Zo from "./OnlineQueryForm-7c70734e.mjs";
27
- import xo from "./SuperQuery-07162778.mjs";
28
- import { u as oe } from "./useOnlinePopEvent-687070b7.mjs";
29
- import { N as ee } from "./constant-754f1a9d.mjs";
30
- import { _ as ne } from "./index-73993b18.mjs";
31
- import "/@/components/Modal";
32
- import "./OnlineForm-fb3a2379.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-52b1c303.mjs";
49
- import "./DetailForm-cdeb54e3.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-02326a8c.mjs";
59
- import "vue-router";
60
- import "/@/router";
61
- import "/@/hooks/core/onMountedOrActivated";
62
- import "/@/store/modules/multipleTab";
63
- import "./cgformState-d9f8ec42.mjs";
64
- import "pinia";
65
- import "/@/store";
66
- import "ant-design-vue";
67
- import "/@/hooks/system/useMethods";
68
- import "/@/components/Form/src/componentMap";
69
- import "/@/components/Form/src/jeecg/components/JUpload";
70
- import "/@/views/system/user/user.api";
71
- import "/@/utils/desform/customExpression";
72
- import "/@/store/modules/permission";
73
- import "/@/hooks/system/useListPage";
74
- import "./LinkTableListPiece-46e8af51.mjs";
75
- import "./OnlineSelectCascade-abc345f9.mjs";
76
- import "./JModalTip-0413ad6a.mjs";
77
- import "/@/hooks/web/useAppInject";
78
- import "@vueuse/core";
79
- import "./SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs";
80
- import "/@/utils/is";
81
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
82
- const te = {
83
- name: "OnlineAutoList",
84
- components: {
85
- BasicTable: Jo,
86
- TableAction: $o,
87
- OnlineAutoModal: No,
88
- JImportModal: jo,
89
- OnlineQueryForm: Zo,
90
- OnlineSuperQuery: xo,
91
- OnlineCustomModal: zo,
92
- OnlineDetailModal: Vo,
93
- OnlinePopModal: Wo
94
- },
95
- setup() {
96
- const { createMessage: o } = qo(), {
97
- ID: f,
98
- onlineTableContext: l,
99
- onlineQueryFormOuter: I,
100
- loading: m,
101
- reload: b,
102
- dataSource: S,
103
- pagination: r,
104
- handleSpecialConfig: a,
105
- getColumnList: c,
106
- handleChangeInTable: M,
107
- loadData: R,
108
- superQueryButtonRef: h,
109
- superQueryStatus: E,
110
- handleSuperQuery: v,
111
- onlineExtConfigJson: w,
112
- handleFormConfig: D,
113
- registerCustomModal: e,
114
- tableReloading: y
115
- } = Ko();
116
- if (!f.value)
117
- throw o.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
118
- let { initCgEnhanceJs: L } = Go(l);
119
- const {
120
- buttonSwitch: H,
121
- cgLinkButtonList: J,
122
- cgTopButtonList: $,
123
- importUrl: q,
124
- registerModal: N,
125
- handleAdd: z,
126
- handleEdit: V,
127
- handleBatchDelete: j,
128
- registerImportModal: K,
129
- onImportExcel: U,
130
- onExportExcel: A,
131
- cgButtonJsHandler: W,
132
- cgButtonActionHandler: G,
133
- cgButtonLinkHandler: X,
134
- handleSubmitFlow: Y,
135
- getDropDownActions: Z,
136
- getActions: x,
137
- initButtonList: oo,
138
- initButtonSwitch: eo,
139
- registerDetailModal: no,
140
- registerBpmModal: to
141
- } = Uo(l, w), O = vo(!1);
142
- function io() {
143
- return T(this, null, function* () {
144
- try {
145
- O.value = !0, yield A();
146
- } finally {
147
- setTimeout(() => O.value = !1, 1500);
148
- }
149
- });
150
- }
151
- const {
152
- columns: ro,
153
- actionColumn: lo,
154
- selectedKeys: ao,
155
- rowSelection: so,
156
- enableScrollBar: uo,
157
- tableScroll: po,
158
- downloadRowFile: mo,
159
- getImgView: co,
160
- getPcaText: go,
161
- getFormatDate: fo,
162
- handleColumnResult: ho,
163
- hrefComponent: yo,
164
- viewOnlineCellImage: Co,
165
- hrefMainTableId: bo,
166
- registerOnlineHrefModal: So,
167
- registerPopModal: wo,
168
- openPopModal: ko,
169
- onlinePopModalRef: Io,
170
- popTableId: P
171
- } = Xo(l, w);
172
- Do(
173
- f,
174
- () => {
175
- To();
176
- },
177
- { immediate: !0 }
178
- );
179
- function To() {
180
- return T(this, null, function* () {
181
- m.value = !0;
182
- let n = yield c(ee);
183
- Bo(n), yield R(), m.value = !1, l.execButtonEnhance("setup");
184
- });
185
- }
186
- function Bo(n) {
187
- let k = L(n.enhanceJs);
188
- l.EnhanceJS = k, oo(n.cgButtonList), eo(n.hideColumns), ho(n), a(n);
189
- }
190
- function Mo(n) {
191
- l.queryParam = n, b({ mode: "search" });
192
- }
193
- function Ro(n) {
194
- return T(this, null, function* () {
195
- yield Yo(h), h.value.init(n);
196
- });
197
- }
198
- function Eo(n) {
199
- P.value = n.id;
200
- let k = {
201
- title: n.describe
202
- };
203
- n.record && n.record.id && (k.record = n.record, k.isUpdate = !0), ko(!0, k);
204
- }
205
- return oe(Eo), {
206
- ID: f,
207
- // 查询区域
208
- onlineQueryFormOuter: I,
209
- queryWithCondition: Mo,
210
- onQueryFormLoaded: Ro,
211
- reload: b,
212
- //高级查询
213
- superQueryButtonRef: h,
214
- superQueryStatus: E,
215
- handleSuperQuery: v,
216
- // table区域
217
- loading: m,
218
- columns: ro,
219
- dataSource: S,
220
- pagination: r,
221
- actionColumn: lo,
222
- rowSelection: so,
223
- selectedKeys: ao,
224
- tableScroll: po,
225
- enableScrollBar: uo,
226
- handleChangeInTable: M,
227
- //按钮
228
- buttonSwitch: H,
229
- handleAdd: z,
230
- handleEdit: V,
231
- onImportExcel: U,
232
- onExportExcel: A,
233
- exportLoading: O,
234
- onExportExcelOverride: io,
235
- cgTopButtonList: $,
236
- cgLinkButtonList: J,
237
- cgButtonJsHandler: W,
238
- cgButtonActionHandler: G,
239
- cgButtonLinkHandler: X,
240
- handleBatchDelete: j,
241
- // table-slot
242
- downloadRowFile: mo,
243
- getImgView: co,
244
- getPcaText: go,
245
- getFormatDate: fo,
246
- // 操作列
247
- getActions: x,
248
- getDropDownActions: Z,
249
- // 弹窗
250
- registerModal: N,
251
- registerCustomModal: e,
252
- registerImportModal: K,
253
- registerDetailModal: no,
254
- importUrl: q,
255
- handleFormConfig: D,
256
- onlinePopModalRef: Io,
257
- //其他
258
- tableReloading: y,
259
- handleSubmitFlow: Y,
260
- hrefComponent: yo,
261
- viewOnlineCellImage: Co,
262
- hrefMainTableId: bo,
263
- onlineExtConfigJson: w,
264
- registerOnlineHrefModal: So,
265
- registerPopModal: wo,
266
- popTableId: P,
267
- registerBpmModal: to
268
- };
269
- }
270
- // 1引入了loadsh console.log(that.simpleDateFormat(new Date().getTime(),'yyyy-MM-dd'));
271
- // 2. value的问题
272
- // 3. 变量位置改变后需要 重写api
273
- // 1添加按钮的时候 预留出样式对象 然后js增强中设置样式对象
274
- // 2直接设置css字符串 然后通过js document 往head里面增加css片段 全局生效
275
- };
276
- const ie = {
277
- key: 0,
278
- style: { "font-size": "12px", "font-style": "italic" }
279
- }, re = {
280
- key: 0,
281
- style: { "font-size": "12px", "font-style": "italic" }
282
- }, le = ["src", "onClick"], ae = ["innerHTML"], se = ["title"];
283
- function ue(o, f, l, I, m, b) {
284
- 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");
285
- return t(), C("div", {
286
- class: Q(["p-2", `online-list-${o.ID}`])
287
- }, [
288
- p(S, {
289
- ref: "onlineQueryFormOuter",
290
- id: o.ID,
291
- onSearch: o.queryWithCondition,
292
- onLoaded: o.onQueryFormLoaded
293
- }, null, 8, ["id", "onSearch", "onLoaded"]),
294
- o.tableReloading ? d("", !0) : (t(), u(M, {
295
- key: 0,
296
- ref: "onlineTable",
297
- rowKey: "jeecg_row_key",
298
- canResize: !0,
299
- bordered: !0,
300
- showIndexColumn: !1,
301
- loading: o.loading,
302
- columns: o.columns,
303
- dataSource: o.dataSource,
304
- pagination: o.pagination,
305
- rowSelection: o.rowSelection,
306
- actionColumn: o.actionColumn,
307
- showTableSetting: !0,
308
- clickToRowSelect: !1,
309
- scroll: o.tableScroll,
310
- onTableRedo: o.reload,
311
- class: Q({ "j-table-force-nowrap": o.enableScrollBar }),
312
- onChange: o.handleChangeInTable
313
- }, {
314
- tableTitle: i(() => [
315
- o.buttonSwitch.add ? (t(), u(r, {
316
- key: 0,
317
- preIcon: "ant-design:plus-outlined",
318
- type: "primary",
319
- onClick: o.handleAdd
320
- }, {
321
- default: i(() => [
322
- g("新增")
323
- ]),
324
- _: 1
325
- }, 8, ["onClick"])) : d("", !0),
326
- o.buttonSwitch.import ? (t(), u(r, {
327
- key: 1,
328
- preIcon: "ant-design:import-outlined",
329
- type: "primary",
330
- onClick: o.onImportExcel
331
- }, {
332
- default: i(() => [
333
- g("导入")
334
- ]),
335
- _: 1
336
- }, 8, ["onClick"])) : d("", !0),
337
- o.buttonSwitch.export ? (t(), u(r, {
338
- key: 2,
339
- preIcon: "ant-design:export-outlined",
340
- type: "primary",
341
- loading: o.exportLoading,
342
- onClick: o.onExportExcelOverride
343
- }, {
344
- default: i(() => [
345
- g(" 导出")
346
- ]),
347
- _: 1
348
- }, 8, ["loading", "onClick"])) : d("", !0),
349
- o.cgTopButtonList && o.cgTopButtonList.length > 0 ? (t(!0), C(_, { key: 3 }, Lo(o.cgTopButtonList, (e, y) => (t(), C(_, null, [
350
- e.optType == "js" ? (t(), u(r, {
351
- key: "cgbtn" + y,
352
- onClick: (L) => o.cgButtonJsHandler(e.buttonCode),
353
- type: "primary",
354
- preIcon: e.buttonIcon ? "ant-design:" + e.buttonIcon : ""
355
- }, {
356
- default: i(() => [
357
- g(B(e.buttonName), 1)
358
- ]),
359
- _: 2
360
- }, 1032, ["onClick", "preIcon"])) : e.optType == "action" ? (t(), u(r, {
361
- key: "cgbtn" + y,
362
- onClick: (L) => o.cgButtonActionHandler(e.buttonCode),
363
- type: "primary",
364
- preIcon: e.buttonIcon ? "ant-design:" + e.buttonIcon : ""
365
- }, {
366
- default: i(() => [
367
- g(B(e.buttonName), 1)
368
- ]),
369
- _: 2
370
- }, 1032, ["onClick", "preIcon"])) : d("", !0)
371
- ], 64))), 256)) : d("", !0),
372
- o.buttonSwitch.batch_delete ? Oo((t(), u(r, {
373
- key: 4,
374
- preIcon: "ant-design:delete-outlined",
375
- onClick: o.handleBatchDelete
376
- }, {
377
- default: i(() => [
378
- g(" 批量删除")
379
- ]),
380
- _: 1
381
- }, 8, ["onClick"])), [
382
- [Fo, o.selectedKeys.length > 0]
383
- ]) : d("", !0),
384
- o.buttonSwitch.super_query ? (t(), u(a, {
385
- key: 5,
386
- ref: "superQueryButtonRef",
387
- online: "",
388
- status: o.superQueryStatus,
389
- onSearch: o.handleSuperQuery
390
- }, null, 8, ["status", "onSearch"])) : d("", !0)
391
- ]),
392
- fileSlot: i(({ text: e }) => [
393
- e ? (t(), u(r, {
394
- key: 1,
395
- ghost: !0,
396
- type: "primary",
397
- preIcon: "ant-design:download",
398
- size: "small",
399
- onClick: (y) => o.downloadRowFile(e)
400
- }, {
401
- default: i(() => [
402
- g(" 下载 ")
403
- ]),
404
- _: 2
405
- }, 1032, ["onClick"])) : (t(), C("span", ie, "无文件"))
406
- ]),
407
- imgSlot: i(({ text: e }) => [
408
- e ? (t(), C("img", {
409
- key: 1,
410
- src: o.getImgView(e),
411
- alt: "图片不存在",
412
- class: "online-cell-image",
413
- onClick: (y) => o.viewOnlineCellImage(e)
414
- }, null, 8, le)) : (t(), C("span", re, "无图片"))
415
- ]),
416
- htmlSlot: i(({ text: e }) => [
417
- F("div", { innerHTML: e }, null, 8, ae)
418
- ]),
419
- pcaSlot: i(({ text: e }) => [
420
- F("div", {
421
- title: o.getPcaText(e)
422
- }, B(o.getPcaText(e)), 9, se)
423
- ]),
424
- dateSlot: i(({ text: e }) => [
425
- F("span", null, B(o.getFormatDate(e)), 1)
426
- ]),
427
- action: i(({ record: e }) => [
428
- p(c, {
429
- actions: o.getActions(e),
430
- dropDownActions: o.getDropDownActions(e)
431
- }, null, 8, ["actions", "dropDownActions"])
432
- ]),
433
- _: 1
434
- }, 8, ["loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
435
- p(R, {
436
- id: o.ID,
437
- onRegister: o.registerModal,
438
- onSuccess: o.reload,
439
- onFormConfig: o.handleFormConfig
440
- }, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
441
- p(h, {
442
- id: o.ID,
443
- onRegister: o.registerDetailModal
444
- }, null, 8, ["id", "onRegister"]),
445
- p(E, {
446
- onRegister: o.registerImportModal,
447
- url: o.importUrl(),
448
- onOk: o.reload,
449
- online: ""
450
- }, null, 8, ["onRegister", "url", "onOk"]),
451
- p(v, Ao(o.hrefComponent.model, Po(o.hrefComponent.on)), {
452
- default: i(() => [
453
- (t(), u(Qo(o.hrefComponent.is), _o(Ho(o.hrefComponent.params)), null, 16))
454
- ]),
455
- _: 1
456
- }, 16),
457
- p(w, {
458
- onRegister: o.registerCustomModal,
459
- onSuccess: o.reload
460
- }, null, 8, ["onRegister", "onSuccess"]),
461
- p(h, {
462
- id: o.hrefMainTableId,
463
- onRegister: o.registerOnlineHrefModal,
464
- defaultFullscreen: !1
465
- }, null, 8, ["id", "onRegister"]),
466
- p(D, {
467
- ref: "onlinePopModalRef",
468
- id: o.popTableId,
469
- onRegister: o.registerPopModal,
470
- onSuccess: o.reload,
471
- request: "",
472
- topTip: ""
473
- }, null, 8, ["id", "onRegister", "onSuccess"])
474
- ], 2);
475
- }
476
- const Tn = /* @__PURE__ */ ne(te, [["render", ue]]);
477
- export {
478
- Tn as default
479
- };
@@ -1,207 +0,0 @@
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 H, renderList as q, createTextVNode as C, toDisplayString as z, createCommentVNode as G, createVNode as b } from "vue";
18
- import { BasicModal as J } from "/@/components/Modal";
19
- import K from "./OnlineForm-fb3a2379.mjs";
20
- import { b as Q } from "./useExtendComponent-f4e29152.mjs";
21
- import U from "/@/components/jeecg/comment/CommentPanel.vue";
22
- import { _ as X } from "./index-73993b18.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-46e8af51.mjs";
52
- import "./OnlineSelectCascade-abc345f9.mjs";
53
- import "./JModalTip-0413ad6a.mjs";
54
- import "/@/hooks/web/useAppInject";
55
- import "ant-design-vue";
56
- import "@vueuse/core";
57
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
58
- const Y = P({
59
- name: "OnlineAutoModal",
60
- props: {
61
- id: {
62
- type: String,
63
- default: ""
64
- }
65
- },
66
- components: {
67
- BasicModal: J,
68
- OnlineForm: K,
69
- CommentPanel: U
70
- },
71
- emits: ["success", "register", "formConfig"],
72
- setup(e, { emit: l }) {
73
- const t = V();
74
- function p() {
75
- t.value && t.value.reload();
76
- }
77
- const {
78
- title: d,
79
- modalWidth: s,
80
- registerModal: m,
81
- closeModal: i,
82
- cgButtonList: o,
83
- handleCgButtonClick: r,
84
- disableSubmit: n,
85
- handleSubmit: h,
86
- submitLoading: F,
87
- handleCancel: T,
88
- handleFormConfig: y,
89
- onlineFormCompRef: B,
90
- formTemplate: N,
91
- isTreeForm: I,
92
- pidFieldName: M,
93
- renderSuccess: R,
94
- formRendered: v,
95
- tableName: $,
96
- formDataId: w,
97
- enableComment: E,
98
- onCloseEvent: g,
99
- themeTemplate: L
100
- } = Q(!1, { emit: l }, p);
101
- function O(D) {
102
- l("success", D), i(), g();
103
- }
104
- W(() => e.id, A, { immediate: !0 });
105
- function A() {
106
- return k(this, null, function* () {
107
- v.value = !1, e.id && (yield y(e.id, {}));
108
- });
109
- }
110
- return {
111
- title: d,
112
- onlineFormCompRef: B,
113
- renderSuccess: R,
114
- registerModal: m,
115
- handleSubmit: h,
116
- handleSuccess: O,
117
- handleCancel: T,
118
- modalWidth: s,
119
- formTemplate: N,
120
- disableSubmit: n,
121
- cgButtonList: o,
122
- handleCgButtonClick: r,
123
- isTreeForm: I,
124
- pidFieldName: M,
125
- submitLoading: F,
126
- tableName: $,
127
- formDataId: w,
128
- enableComment: E,
129
- commentPanelRef: t,
130
- onCloseEvent: g,
131
- themeTemplate: L
132
- };
133
- }
134
- });
135
- function Z(e, l, t, p, d, s) {
136
- const m = u("a-button"), i = u("online-form"), o = u("comment-panel"), r = u("BasicModal");
137
- return c(), f(r, S({
138
- title: e.title,
139
- onCancel: e.onCloseEvent,
140
- enableComment: e.enableComment,
141
- width: e.modalWidth
142
- }, e.$attrs, {
143
- maxHeight: 600,
144
- onRegister: e.registerModal,
145
- wrapClassName: "jeecg-online-modal",
146
- onOk: e.handleSubmit
147
- }), {
148
- footer: a(() => [
149
- (c(!0), j(H, null, q(e.cgButtonList, (n) => (c(), f(m, {
150
- key: n.id,
151
- type: "primary",
152
- onClick: (h) => e.handleCgButtonClick(n.optType, n.buttonCode),
153
- preIcon: n.buttonIcon ? "ant-design:" + n.buttonIcon : ""
154
- }, {
155
- default: a(() => [
156
- C(z(n.buttonName), 1)
157
- ]),
158
- _: 2
159
- }, 1032, ["onClick", "preIcon"]))), 128)),
160
- e.disableSubmit ? G("", !0) : (c(), f(m, {
161
- key: "submit",
162
- type: "primary",
163
- onClick: e.handleSubmit,
164
- loading: e.submitLoading
165
- }, {
166
- default: a(() => [
167
- C("确定")
168
- ]),
169
- _: 1
170
- }, 8, ["onClick", "loading"])),
171
- b(m, {
172
- key: "back",
173
- onClick: e.handleCancel
174
- }, {
175
- default: a(() => [
176
- C("关闭")
177
- ]),
178
- _: 1
179
- }, 8, ["onClick"])
180
- ]),
181
- comment: a(() => [
182
- b(o, {
183
- ref: "commentPanelRef",
184
- tableName: e.tableName,
185
- dataId: e.formDataId
186
- }, null, 8, ["tableName", "dataId"])
187
- ]),
188
- default: a(() => [
189
- b(i, S(e.$attrs, {
190
- ref: "onlineFormCompRef",
191
- id: e.id,
192
- disabled: e.disableSubmit,
193
- "form-template": e.formTemplate,
194
- isTree: e.isTreeForm,
195
- pidField: e.pidFieldName,
196
- themeTemplate: e.themeTemplate,
197
- onRendered: e.renderSuccess,
198
- onSuccess: e.handleSuccess
199
- }), null, 16, ["id", "disabled", "form-template", "isTree", "pidField", "themeTemplate", "onRendered", "onSuccess"])
200
- ]),
201
- _: 1
202
- }, 16, ["title", "onCancel", "enableComment", "width", "onRegister", "onOk"]);
203
- }
204
- const He = /* @__PURE__ */ X(Y, [["render", Z]]);
205
- export {
206
- He as default
207
- };