@jeecg/online 3.6.2-beta → 3.7.1-RC

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 (127) hide show
  1. package/AiModal-6de335e3.mjs +84 -0
  2. package/AuthButtonConfig-89763932.mjs +154 -0
  3. package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
  4. package/AuthDataConfig-5c3a8e6b.mjs +238 -0
  5. package/{AuthDataTree-94e026e3.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
  6. package/AuthFieldConfig-9f6fa06c.mjs +245 -0
  7. package/{AuthFieldTree-69864163.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
  8. package/AuthManagerDrawer-76f15e8d.mjs +119 -0
  9. package/AuthSetterModal-f5d2e87f.mjs +274 -0
  10. package/{CgformCopyList-14b76108.mjs → CgformCopyList-365b3e8f.mjs} +49 -46
  11. package/CgformModal-21c5c387.mjs +671 -0
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-edefa8e3.mjs} +153 -129
  13. package/CheckDictTable-1bc8322d.mjs +229 -0
  14. package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-24601898.mjs} +5 -4
  15. package/CodeFileViewModal-2fe911f4.mjs +253 -0
  16. package/CodeGeneratorModal-f09fe903.mjs +282 -0
  17. package/CustomButtonList-f07bc695.mjs +397 -0
  18. package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-285d40db.mjs} +118 -89
  19. package/DbToOnlineModal-5dcb67c3.mjs +169 -0
  20. package/DetailForm-deecbf3d.mjs +486 -0
  21. package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-45c66cd5.mjs} +3 -3
  22. package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-fab3102e.mjs} +2 -2
  23. package/EnhanceJsModal-175357a1.mjs +548 -0
  24. package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-7ea1b300.mjs} +3 -3
  25. package/ExtendConfigModal-a89ae052.mjs +117 -0
  26. package/FieldExtendJsonModal-32135634.mjs +277 -0
  27. package/{FileSelectModal-9a02560b.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
  28. package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-7f7e28a7.mjs} +3 -3
  29. package/{IndexTable-f8af9d44.mjs → IndexTable-cdcc2b48.mjs} +28 -20
  30. package/{JModalTip-33c7dc44.mjs → JModalTip-b055ab60.mjs} +1 -1
  31. package/JOnlineSearchSelect-22aae934.mjs +128 -0
  32. package/{LeftDepart-fa85523d.mjs → LeftDepart-d5615ed9.mjs} +1 -1
  33. package/{LeftRole-8b8dfe21.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
  34. package/{LeftUser-dc24ef2f.mjs → LeftUser-22baa378.mjs} +3 -3
  35. package/LinkTableConfigModal-9242d750.mjs +240 -0
  36. package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +41 -41
  37. package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
  38. package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-711418db.mjs} +1 -1
  39. package/OnlCgformErpList-58acdfa0.mjs +470 -0
  40. package/OnlCgformErpSubTable-9b1e1938.mjs +426 -0
  41. package/OnlCgformInnerSubTable-6c23781f.mjs +265 -0
  42. package/OnlCgformInnerTableList-4b5e14ed.mjs +458 -0
  43. package/OnlCgformTabList-019ad753.mjs +408 -0
  44. package/OnlineAutoList-48589d09.mjs +493 -0
  45. package/OnlineAutoModal-c2928847.mjs +239 -0
  46. package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3baa1d00.mjs} +207 -204
  47. package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-9e17b6ce.mjs} +16 -12
  48. package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-d5895734.mjs} +74 -64
  49. package/OnlineForm-9f1153ba.mjs +985 -0
  50. package/OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs +1 -0
  51. package/OnlineFormDetail-022ca117.mjs +342 -0
  52. package/OnlineFormUrlAdd-9715d70a.mjs +115 -0
  53. package/OnlineFormUrlDetail-8f864b1a.mjs +119 -0
  54. package/OnlineFormUrlEdit-ac985b36.mjs +113 -0
  55. package/OnlineFormUrlSuccess-3dfc54ab.mjs +59 -0
  56. package/OnlineQueryForm-eedb9a60.mjs +466 -0
  57. package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
  58. package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
  59. package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-58e896ce.mjs} +30 -28
  60. package/OnlineTabAutoModal-47b18ad6.mjs +306 -0
  61. package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-82de1465.mjs} +22 -20
  62. package/OnlineTabForm-27655c83.mjs +817 -0
  63. package/OnlineTabFormDetail-8d0c40c0.mjs +327 -0
  64. package/PageAttributeTable-25e3b7da.mjs +466 -0
  65. package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-148632fe.mjs} +66 -56
  66. package/QueryTable-f7bfca7f.mjs +147 -0
  67. package/SetSwitchOptions-b2af757f.mjs +62 -0
  68. package/SuperQuery-a8592995.mjs +967 -0
  69. package/auth.api-ea1d33d4.mjs +41 -0
  70. package/auth.data-511e5197.mjs +217 -0
  71. package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
  72. package/constant-fa63bd66.mjs +10 -0
  73. package/{enhance.data-efc7e155.mjs → enhance.data-a67572e1.mjs} +11 -10
  74. package/index-1d1a6e56.mjs +57 -0
  75. package/{index-b7a05eef.mjs → index-30e0e923.mjs} +396 -362
  76. package/{index-49508cad.mjs → index-f30613d1.mjs} +29 -27
  77. package/main.index.js +1 -1
  78. package/package.json +1 -1
  79. package/style.css +1 -1
  80. package/useCgformList-f41d4dc1.mjs +426 -0
  81. package/useExtendComponent-dcae5c78.mjs +4399 -0
  82. package/useFormUrl-2ee1a82d.mjs +24 -0
  83. package/useListButton-bfac4ecf.mjs +697 -0
  84. package/{useSchemas-0433a403.mjs → useSchemas-a9c75b0f.mjs} +191 -101
  85. package/useTableSync-d7e9f18d.mjs +89 -0
  86. package/AuthButtonConfig-244ec09f.mjs +0 -125
  87. package/AuthDataConfig-83891eea.mjs +0 -212
  88. package/AuthFieldConfig-6b21915c.mjs +0 -139
  89. package/AuthManagerDrawer-300dd4e4.mjs +0 -114
  90. package/AuthSetterModal-a414fb35.mjs +0 -267
  91. package/CgformModal-eccfc38e.mjs +0 -611
  92. package/CgreportModal-2065f5a9.mjs +0 -13
  93. package/CheckDictTable-134cbb83.mjs +0 -211
  94. package/CodeFileViewModal-373e8058.mjs +0 -244
  95. package/CodeGeneratorModal-f08a89cd.mjs +0 -233
  96. package/CustomButtonList-02e3d897.mjs +0 -363
  97. package/DbToOnlineModal-9f13956f.mjs +0 -160
  98. package/DetailForm-424638eb.mjs +0 -462
  99. package/EnhanceJsModal-05c73a59.mjs +0 -311
  100. package/ExtendConfigModal-1dde390a.mjs +0 -111
  101. package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
  102. package/JOnlineSearchSelect-c287af12.mjs +0 -95
  103. package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
  104. package/OnlCgformErpList-db45e22b.mjs +0 -454
  105. package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
  106. package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
  107. package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
  108. package/OnlCgformTabList-a9e1e36a.mjs +0 -395
  109. package/OnlineAutoList-0583a910.mjs +0 -479
  110. package/OnlineAutoModal-510991eb.mjs +0 -207
  111. package/OnlineForm-1fa2d893.mjs +0 -750
  112. package/OnlineFormDetail-0e7294ca.mjs +0 -297
  113. package/OnlineQueryForm-1bfc8320.mjs +0 -386
  114. package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
  115. package/OnlineTabForm-512d3951.mjs +0 -766
  116. package/OnlineTabFormDetail-5a70219d.mjs +0 -324
  117. package/PageAttributeTable-965dc58e.mjs +0 -404
  118. package/QueryTable-eb9a5b21.mjs +0 -115
  119. package/SuperQuery-5d1ca957.mjs +0 -843
  120. package/auth.api-d3a6c4b3.mjs +0 -39
  121. package/auth.data-8be5c9e3.mjs +0 -141
  122. package/constant-754f1a9d.mjs +0 -9
  123. package/index-0e3ab3af.mjs +0 -56
  124. package/useCgformList-423282b7.mjs +0 -400
  125. package/useExtendComponent-325fe3f1.mjs +0 -3926
  126. package/useListButton-cdbab702.mjs +0 -676
  127. package/useTableSync-774c3774.mjs +0 -87
@@ -0,0 +1,426 @@
1
+ var L = (_, I, r) => new Promise((p, v) => {
2
+ var E = (c) => {
3
+ try {
4
+ i(r.next(c));
5
+ } catch (m) {
6
+ v(m);
7
+ }
8
+ }, C = (c) => {
9
+ try {
10
+ i(r.throw(c));
11
+ } catch (m) {
12
+ v(m);
13
+ }
14
+ }, i = (c) => c.done ? p(c.value) : Promise.resolve(c.value).then(E, C);
15
+ i((r = r.apply(_, I)).next());
16
+ });
17
+ import { ref as F, provide as Ae, watch as J, resolveComponent as z, openBlock as n, createElementBlock as g, Fragment as P, createBlock as d, unref as e, createCommentVNode as f, normalizeClass as Ke, withCtx as l, createTextVNode as h, renderList as Ne, toDisplayString as M, withDirectives as $e, vShow as Je, createElementVNode as V, createVNode as y, mergeProps as ze, toHandlers as Ve, resolveDynamicComponent as je, normalizeProps as qe, guardReactiveProps as Qe } from "vue";
18
+ import { BasicTable as Ue, TableAction as We } from "/@/components/Table";
19
+ import { useMessage as Ge } from "/@/hooks/web/useMessage";
20
+ import Xe from "./OnlineAutoModal-c2928847.mjs";
21
+ import Ye from "./OnlineCustomModal-9e17b6ce.mjs";
22
+ import j from "./OnlineDetailModal-d5895734.mjs";
23
+ import Ze from "/@/components/Form/src/jeecg/components/JImportModal.vue";
24
+ import { u as eo, a as oo } from "./useListButton-bfac4ecf.mjs";
25
+ import { u as to, a as no, O as io } from "./useExtendComponent-dcae5c78.mjs";
26
+ import lo from "./OnlineQueryForm-eedb9a60.mjs";
27
+ import { u as ro } from "./useOnlinePopEvent-687070b7.mjs";
28
+ import { E as ao, a as q } from "./constant-fa63bd66.mjs";
29
+ import { cloneDeep as co } from "lodash-es";
30
+ import "/@/components/Modal";
31
+ import "./OnlineForm-9f1153ba.mjs";
32
+ import "/@/components/Form/index";
33
+ import "/@/utils/http/axios";
34
+ import "/@/utils";
35
+ import "/@/components/Loading";
36
+ import "/@/components/jeecg/JVxeTable/types";
37
+ import "/@/utils/auth";
38
+ import "@ant-design/icons-vue";
39
+ import "/@/hooks/core/useContext";
40
+ import "/@/utils/mitt";
41
+ import "./useCustomHook-acb00837.mjs";
42
+ import "/@/utils/cache";
43
+ import "/@/utils/common/compUtils";
44
+ import "/@/store/modules/user";
45
+ import "/@/hooks/web/useAppInject";
46
+ import "/@/utils/is";
47
+ import "/@/store/modules/permission";
48
+ import "./OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs";
49
+ import "./index-1d1a6e56.mjs";
50
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
51
+ import "vue-router";
52
+ import "/@/components/jeecg/comment/CommentPanel.vue";
53
+ import "./OnlineFormDetail-022ca117.mjs";
54
+ import "./DetailForm-deecbf3d.mjs";
55
+ import "/@/utils/propTypes";
56
+ import "/@/utils/dict";
57
+ import "/@/utils/dict/JDictSelectUtil";
58
+ import "/@/utils/dict/index";
59
+ import "/@/api/common/api";
60
+ import "/@/components/Form/src/utils/Area";
61
+ import "/@/components/Preview/index";
62
+ import "/@/components/Markdown";
63
+ import "./OnlineSubFormDetail-58e896ce.mjs";
64
+ import "/@/router";
65
+ import "/@/hooks/core/onMountedOrActivated";
66
+ import "/@/store/modules/multipleTab";
67
+ import "./cgformState-d9f8ec42.mjs";
68
+ import "pinia";
69
+ import "/@/store";
70
+ import "ant-design-vue";
71
+ import "/@/hooks/system/useMethods";
72
+ import "/@/components/Form/src/componentMap";
73
+ import "/@/components/Form/src/jeecg/components/JUpload";
74
+ import "/@/views/system/user/user.api";
75
+ import "/@/utils/desform/customExpression";
76
+ import "/@/hooks/system/useListPage";
77
+ import "./LinkTableListPiece-f3a8e0d7.mjs";
78
+ import "/@/assets/images/placeholderImage.png";
79
+ import "./OnlineSelectCascade-05c40fef.mjs";
80
+ import "./JModalTip-b055ab60.mjs";
81
+ import "@vueuse/core";
82
+ import "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
83
+ const so = {
84
+ key: 0,
85
+ style: { "font-size": "12px", "font-style": "italic" }
86
+ }, uo = {
87
+ key: 0,
88
+ style: { "font-size": "12px", "font-style": "italic" }
89
+ }, po = ["src", "onClick"], mo = ["innerHTML", "onClick"], go = ["innerHTML"], fo = ["title"], xt = {
90
+ __name: "OnlCgformErpSubTable",
91
+ props: ["data", "mainTableSelectedRowRcord"],
92
+ emits: ["getSource"],
93
+ setup(_, { emit: I }) {
94
+ const r = _, p = F(!1), v = {
95
+ cacheKey: `online_erp_subTable_${r.data.currentTableName}`
96
+ }, { createMessage: E } = Ge(), {
97
+ ID: C,
98
+ onlineTableContext: i,
99
+ onlineQueryFormOuter: c,
100
+ loading: m,
101
+ reload: b,
102
+ dataSource: k,
103
+ pagination: x,
104
+ handleSpecialConfig: Q,
105
+ getColumnList: yo,
106
+ handleChangeInTable: U,
107
+ loadData: W,
108
+ onlineExtConfigJson: D,
109
+ handleFormConfig: G,
110
+ registerCustomModal: X,
111
+ tableReloading: Y
112
+ } = eo({ code: r.data.code, themeTemplate: ao });
113
+ i.isErpSubTable = !0;
114
+ let { initCgEnhanceJs: Z } = to(i);
115
+ const {
116
+ buttonSwitch: T,
117
+ cgLinkButtonList: ho,
118
+ cgTopButtonList: B,
119
+ importUrl: ee,
120
+ registerModal: oe,
121
+ handleAdd: te,
122
+ handleEdit: Co,
123
+ handleBatchDelete: ne,
124
+ registerImportModal: ie,
125
+ onImportExcel: le,
126
+ onExportExcel: re,
127
+ cgButtonJsHandler: ae,
128
+ cgButtonActionHandler: ce,
129
+ cgButtonLinkHandler: bo,
130
+ handleSubmitFlow: ko,
131
+ getDropDownActions: se,
132
+ getActions: ue,
133
+ initButtonList: de,
134
+ initButtonSwitch: pe,
135
+ registerDetailModal: me,
136
+ registerBpmModal: So
137
+ } = oo(i, D), O = F(!1);
138
+ function ge() {
139
+ return L(this, null, function* () {
140
+ try {
141
+ O.value = !0, yield re();
142
+ } finally {
143
+ setTimeout(() => O.value = !1, 1500);
144
+ }
145
+ });
146
+ }
147
+ const {
148
+ columns: fe,
149
+ actionColumn: ye,
150
+ selectedKeys: H,
151
+ rowSelection: he,
152
+ enableScrollBar: Ce,
153
+ tableScroll: be,
154
+ downloadRowFile: ke,
155
+ getImgView: Se,
156
+ getPcaText: A,
157
+ getFormatDate: _e,
158
+ handleColumnResult: ve,
159
+ hrefComponent: R,
160
+ viewOnlineCellImage: Te,
161
+ hrefMainTableId: Re,
162
+ registerOnlineHrefModal: we,
163
+ registerPopModal: Me,
164
+ openPopModal: Ie,
165
+ onlinePopModalRef: Ee,
166
+ popTableId: K,
167
+ handleClickFieldHref: Be
168
+ } = no(i, D);
169
+ Oe(co(r.data));
170
+ const N = F(null), w = r.data.foreignKeys;
171
+ let $;
172
+ if (w != null && w.length) {
173
+ const t = w[0], a = t.field;
174
+ $ = t.key, i.foreignKeyField = a;
175
+ } else
176
+ i.foreignKeyField = null, i.foreignKeyValue = null;
177
+ Ae("foreignkey", N), J(
178
+ () => r.mainTableSelectedRowRcord,
179
+ (t) => {
180
+ var a;
181
+ if (x.value.current = 1, H.value = [], (a = c.value) == null || a.clearSearch(), t) {
182
+ if (i.foreignKeyField) {
183
+ const s = t[$];
184
+ i.foreignKeyValue = s, N.value = { field: i.foreignKeyField, value: s };
185
+ }
186
+ p.value = !0, m.value = !0, W().finally(() => {
187
+ m.value = !1;
188
+ });
189
+ } else
190
+ p.value = !1, k.value = [];
191
+ },
192
+ {
193
+ immediate: !0
194
+ }
195
+ ), J(
196
+ () => k.value,
197
+ () => {
198
+ I("getSource", r.data.currentTableName, k.value);
199
+ },
200
+ { immediate: !0 }
201
+ );
202
+ function Oe(t) {
203
+ return L(this, null, function* () {
204
+ Le(t), m.value = !1, i.execButtonEnhance("setup");
205
+ });
206
+ }
207
+ function Le(t) {
208
+ let a = Z(t.enhanceJs);
209
+ i.EnhanceJS = a, de(t.cgButtonList), pe(t.hideColumns), ve(t), Q(t);
210
+ }
211
+ function Fe(t) {
212
+ i.queryParam = t, b({ mode: "search" });
213
+ }
214
+ function Pe(t) {
215
+ K.value = t.id;
216
+ let a = {
217
+ title: t.describe
218
+ };
219
+ t.record && t.record.id && (a.record = t.record, a.isUpdate = !0), Ie(!0, a);
220
+ }
221
+ ro(Pe);
222
+ const xe = () => {
223
+ r.data.relationType == 1 && k.value.length ? E.warning("一对一的表只能新增一条数据") : te();
224
+ };
225
+ return (t, a) => {
226
+ const s = z("a-button"), De = z("a-modal");
227
+ return n(), g(P, null, [
228
+ _.mainTableSelectedRowRcord ? (n(), d(lo, {
229
+ key: 0,
230
+ ref_key: "onlineQueryFormOuter",
231
+ ref: c,
232
+ id: e(C),
233
+ onSearch: Fe
234
+ }, null, 8, ["id"])) : f("", !0),
235
+ e(Y) ? f("", !0) : (n(), d(e(Ue), {
236
+ key: 1,
237
+ ref: "onlineTable",
238
+ rowKey: "jeecg_row_key",
239
+ canResize: !0,
240
+ bordered: !0,
241
+ showIndexColumn: !1,
242
+ loading: e(m),
243
+ columns: e(fe),
244
+ dataSource: e(k),
245
+ pagination: e(x),
246
+ rowSelection: e(he),
247
+ actionColumn: e(ye),
248
+ showTableSetting: !0,
249
+ clickToRowSelect: !1,
250
+ scroll: e(be),
251
+ onTableRedo: e(b),
252
+ class: Ke({ "j-table-force-nowrap": e(Ce) }),
253
+ tableSetting: v,
254
+ onChange: e(U),
255
+ minHeight: 300
256
+ }, {
257
+ tableTitle: l(() => [
258
+ p.value && e(T).add ? (n(), d(s, {
259
+ key: 0,
260
+ preIcon: "ant-design:plus-outlined",
261
+ type: "primary",
262
+ onClick: xe
263
+ }, {
264
+ default: l(() => [
265
+ h("新增")
266
+ ]),
267
+ _: 1
268
+ })) : f("", !0),
269
+ p.value && e(T).import ? (n(), d(s, {
270
+ key: 1,
271
+ preIcon: "ant-design:import-outlined",
272
+ type: "primary",
273
+ onClick: e(le)
274
+ }, {
275
+ default: l(() => [
276
+ h("导入")
277
+ ]),
278
+ _: 1
279
+ }, 8, ["onClick"])) : f("", !0),
280
+ p.value && e(T).export ? (n(), d(s, {
281
+ key: 2,
282
+ preIcon: "ant-design:export-outlined",
283
+ type: "primary",
284
+ loading: O.value,
285
+ onClick: ge
286
+ }, {
287
+ default: l(() => [
288
+ h(" 导出")
289
+ ]),
290
+ _: 1
291
+ }, 8, ["loading"])) : f("", !0),
292
+ p.value && e(B) && e(B).length > 0 ? (n(!0), g(P, { key: 3 }, Ne(e(B), (o, u) => (n(), g(P, null, [
293
+ o.optType == "js" ? (n(), d(s, {
294
+ key: "cgbtn" + u,
295
+ onClick: (S) => e(ae)(o.buttonCode),
296
+ type: "primary",
297
+ preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
298
+ }, {
299
+ default: l(() => [
300
+ h(M(o.buttonName), 1)
301
+ ]),
302
+ _: 2
303
+ }, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (n(), d(s, {
304
+ key: "cgbtn" + u,
305
+ onClick: (S) => e(ce)(o.buttonCode),
306
+ type: "primary",
307
+ preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
308
+ }, {
309
+ default: l(() => [
310
+ h(M(o.buttonName), 1)
311
+ ]),
312
+ _: 2
313
+ }, 1032, ["onClick", "preIcon"])) : f("", !0)
314
+ ], 64))), 256)) : f("", !0),
315
+ e(T).batch_delete ? $e((n(), d(s, {
316
+ key: 4,
317
+ preIcon: "ant-design:delete-outlined",
318
+ onClick: e(ne)
319
+ }, {
320
+ default: l(() => [
321
+ h(" 批量删除")
322
+ ]),
323
+ _: 1
324
+ }, 8, ["onClick"])), [
325
+ [Je, e(H).length > 0]
326
+ ]) : f("", !0)
327
+ ]),
328
+ fileSlot: l(({ text: o, record: u, column: S }) => [
329
+ o ? (n(), d(s, {
330
+ key: 1,
331
+ ghost: !0,
332
+ type: "primary",
333
+ preIcon: "ant-design:download",
334
+ size: "small",
335
+ onClick: (He) => e(ke)(o, u, S, e(C))
336
+ }, {
337
+ default: l(() => [
338
+ h(" 下载 ")
339
+ ]),
340
+ _: 2
341
+ }, 1032, ["onClick"])) : (n(), g("span", so, "无文件"))
342
+ ]),
343
+ imgSlot: l(({ text: o }) => [
344
+ o ? (n(), g("img", {
345
+ key: 1,
346
+ src: e(Se)(o),
347
+ alt: "图片不存在",
348
+ class: "online-cell-image",
349
+ onClick: (u) => e(Te)(o)
350
+ }, null, 8, po)) : (n(), g("span", uo, "无图片"))
351
+ ]),
352
+ htmlSlot: l(({ text: o, column: u, record: S }) => [
353
+ u.fieldHref ? (n(), g("a", {
354
+ key: 0,
355
+ innerHTML: o,
356
+ onClick: (He) => e(Be)(u.fieldHref, S)
357
+ }, null, 8, mo)) : (n(), g("div", {
358
+ key: 1,
359
+ innerHTML: o
360
+ }, null, 8, go))
361
+ ]),
362
+ pcaSlot: l(({ text: o }) => [
363
+ V("div", {
364
+ title: e(A)(o)
365
+ }, M(e(A)(o)), 9, fo)
366
+ ]),
367
+ dateSlot: l(({ text: o, column: u }) => [
368
+ V("span", null, M(e(_e)(o, u)), 1)
369
+ ]),
370
+ action: l(({ record: o }) => [
371
+ y(e(We), {
372
+ actions: e(ue)(o),
373
+ dropDownActions: e(se)(o)
374
+ }, null, 8, ["actions", "dropDownActions"])
375
+ ]),
376
+ _: 1
377
+ }, 8, ["loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
378
+ y(Xe, {
379
+ source: e(q),
380
+ id: e(C),
381
+ onRegister: e(oe),
382
+ onSuccess: e(b),
383
+ onFormConfig: e(G)
384
+ }, null, 8, ["source", "id", "onRegister", "onSuccess", "onFormConfig"]),
385
+ y(j, {
386
+ source: e(q),
387
+ id: e(C),
388
+ onRegister: e(me)
389
+ }, null, 8, ["source", "id", "onRegister"]),
390
+ y(Ze, {
391
+ onRegister: e(ie),
392
+ url: e(ee)(),
393
+ onOk: e(b),
394
+ online: ""
395
+ }, null, 8, ["onRegister", "url", "onOk"]),
396
+ y(De, ze(e(R).model, Ve(e(R).on)), {
397
+ default: l(() => [
398
+ (n(), d(je(e(R).is), qe(Qe(e(R).params)), null, 16))
399
+ ]),
400
+ _: 1
401
+ }, 16),
402
+ y(Ye, {
403
+ onRegister: e(X),
404
+ onSuccess: e(b)
405
+ }, null, 8, ["onRegister", "onSuccess"]),
406
+ y(j, {
407
+ id: e(Re),
408
+ onRegister: e(we),
409
+ defaultFullscreen: !1
410
+ }, null, 8, ["id", "onRegister"]),
411
+ y(io, {
412
+ ref_key: "onlinePopModalRef",
413
+ ref: Ee,
414
+ id: e(K),
415
+ onRegister: e(Me),
416
+ onSuccess: e(b),
417
+ request: "",
418
+ topTip: ""
419
+ }, null, 8, ["id", "onRegister", "onSuccess"])
420
+ ], 64);
421
+ };
422
+ }
423
+ };
424
+ export {
425
+ xt as default
426
+ };
@@ -0,0 +1,265 @@
1
+ var I = (T, g, p) => new Promise((a, n) => {
2
+ var f = (i) => {
3
+ try {
4
+ b(p.next(i));
5
+ } catch (_) {
6
+ n(_);
7
+ }
8
+ }, c = (i) => {
9
+ try {
10
+ b(p.throw(i));
11
+ } catch (_) {
12
+ n(_);
13
+ }
14
+ }, b = (i) => i.done ? a(i.value) : Promise.resolve(i.value).then(f, c);
15
+ b((p = p.apply(T, g)).next());
16
+ });
17
+ import { watch as re, resolveComponent as M, openBlock as r, createElementBlock as d, Fragment as ae, unref as e, createBlock as S, normalizeClass as se, withCtx as m, createTextVNode as me, createElementVNode as w, toDisplayString as v, createCommentVNode as pe, createVNode as u, mergeProps as ce, toHandlers as de, resolveDynamicComponent as ue, normalizeProps as ge, guardReactiveProps as fe } from "vue";
18
+ import { BasicTable as be } from "/@/components/Table";
19
+ import { useMessage as _e } from "/@/hooks/web/useMessage";
20
+ import he from "./OnlineCustomModal-9e17b6ce.mjs";
21
+ import O from "./OnlineDetailModal-d5895734.mjs";
22
+ import Te from "/@/components/Form/src/jeecg/components/JImportModal.vue";
23
+ import { u as Ce, a as Se } from "./useListButton-bfac4ecf.mjs";
24
+ import { u as Re, a as ke, O as ye } from "./useExtendComponent-dcae5c78.mjs";
25
+ import { u as Ie } from "./useOnlinePopEvent-687070b7.mjs";
26
+ import { I as Me } from "./constant-fa63bd66.mjs";
27
+ import "/@/components/Table/src/const";
28
+ import "/@/components/Modal";
29
+ import "/@/utils/http/axios";
30
+ import "./OnlineForm-9f1153ba.mjs";
31
+ import "/@/components/Form/index";
32
+ import "lodash-es";
33
+ import "/@/utils";
34
+ import "/@/components/Loading";
35
+ import "/@/components/jeecg/JVxeTable/types";
36
+ import "/@/utils/auth";
37
+ import "@ant-design/icons-vue";
38
+ import "/@/hooks/core/useContext";
39
+ import "/@/utils/mitt";
40
+ import "./useCustomHook-acb00837.mjs";
41
+ import "/@/utils/cache";
42
+ import "/@/utils/common/compUtils";
43
+ import "/@/store/modules/user";
44
+ import "/@/hooks/web/useAppInject";
45
+ import "/@/utils/is";
46
+ import "/@/store/modules/permission";
47
+ import "./OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs";
48
+ import "./index-1d1a6e56.mjs";
49
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
50
+ import "vue-router";
51
+ import "./OnlineFormDetail-022ca117.mjs";
52
+ import "./DetailForm-deecbf3d.mjs";
53
+ import "/@/utils/propTypes";
54
+ import "/@/utils/dict";
55
+ import "/@/utils/dict/JDictSelectUtil";
56
+ import "/@/utils/dict/index";
57
+ import "/@/api/common/api";
58
+ import "/@/components/Form/src/utils/Area";
59
+ import "/@/components/Preview/index";
60
+ import "/@/components/Markdown";
61
+ import "./OnlineSubFormDetail-58e896ce.mjs";
62
+ import "/@/components/jeecg/comment/CommentPanel.vue";
63
+ import "/@/router";
64
+ import "/@/hooks/core/onMountedOrActivated";
65
+ import "/@/store/modules/multipleTab";
66
+ import "./cgformState-d9f8ec42.mjs";
67
+ import "pinia";
68
+ import "/@/store";
69
+ import "ant-design-vue";
70
+ import "/@/hooks/system/useMethods";
71
+ import "/@/components/Form/src/componentMap";
72
+ import "/@/components/Form/src/jeecg/components/JUpload";
73
+ import "/@/views/system/user/user.api";
74
+ import "/@/utils/desform/customExpression";
75
+ import "/@/hooks/system/useListPage";
76
+ import "./LinkTableListPiece-f3a8e0d7.mjs";
77
+ import "/@/assets/images/placeholderImage.png";
78
+ import "./OnlineSelectCascade-05c40fef.mjs";
79
+ import "./JModalTip-b055ab60.mjs";
80
+ import "@vueuse/core";
81
+ const we = {
82
+ key: 0,
83
+ style: { "font-size": "12px", "font-style": "italic" }
84
+ }, ve = {
85
+ key: 0,
86
+ style: { "font-size": "12px", "font-style": "italic" }
87
+ }, Oe = ["src", "onClick"], Be = ["innerHTML", "onClick"], Pe = ["innerHTML"], Ee = ["title"], Uo = {
88
+ __name: "OnlCgformInnerSubTable",
89
+ props: ["subTableId", "subTableName", "mTableSelectedRcordId"],
90
+ setup(T) {
91
+ const g = T, { createMessage: p } = _e(), {
92
+ ID: a,
93
+ onlineTableContext: n,
94
+ loading: f,
95
+ reload: c,
96
+ dataSource: b,
97
+ handleSpecialConfig: i,
98
+ getColumnList: _,
99
+ handleChangeInTable: B,
100
+ loadData: P,
101
+ onlineExtConfigJson: R,
102
+ registerCustomModal: E,
103
+ tableReloading: L
104
+ } = Ce({ code: g.subTableId });
105
+ n.isInnerSubTable = !0, n.innerSubTableName = g.subTableName, n.innerSubTableId = a.value, n.mTableSelectedRcordId = g.mTableSelectedRcordId, a.value || p.warning("地址错误, 配置ID不存在!");
106
+ let { initCgEnhanceJs: H } = Re(n);
107
+ const {
108
+ importUrl: N,
109
+ registerImportModal: x,
110
+ initButtonList: D,
111
+ initButtonSwitch: z,
112
+ registerDetailModal: F,
113
+ registerBpmModal: Le
114
+ } = Se(n, R), {
115
+ columns: J,
116
+ enableScrollBar: V,
117
+ tableScroll: $,
118
+ downloadRowFile: A,
119
+ getImgView: K,
120
+ getPcaText: k,
121
+ getFormatDate: j,
122
+ handleColumnResult: U,
123
+ hrefComponent: h,
124
+ viewOnlineCellImage: q,
125
+ hrefMainTableId: G,
126
+ registerOnlineHrefModal: Q,
127
+ registerPopModal: W,
128
+ openPopModal: X,
129
+ onlinePopModalRef: Y,
130
+ popTableId: y,
131
+ handleClickFieldHref: Z
132
+ } = ke(n, R);
133
+ re(
134
+ a,
135
+ () => {
136
+ ee();
137
+ },
138
+ { immediate: !0 }
139
+ );
140
+ function ee() {
141
+ return I(this, null, function* () {
142
+ var l;
143
+ f.value = !0;
144
+ let o = yield _(Me);
145
+ oe(o), (l = o.foreignKeys) != null && l.length && (n.innerSubTableFk = o.foreignKeys[0].field), yield P(), f.value = !1, n.execButtonEnhance("setup");
146
+ });
147
+ }
148
+ function oe(o) {
149
+ let l = H(o.enhanceJs);
150
+ n.EnhanceJS = l, D(o.cgButtonList), z(o.hideColumns), U(o), i(o);
151
+ }
152
+ function te(o) {
153
+ y.value = o.id;
154
+ let l = {
155
+ title: o.describe
156
+ };
157
+ o.record && o.record.id && (l.record = o.record, l.isUpdate = !0), X(!0, l);
158
+ }
159
+ return Ie(te), (o, l) => {
160
+ const ne = M("a-button"), ie = M("a-modal");
161
+ return r(), d(ae, null, [
162
+ e(L) ? pe("", !0) : (r(), S(e(be), {
163
+ key: 0,
164
+ ref: "onlineTable",
165
+ rowKey: "jeecg_row_key",
166
+ canResize: !0,
167
+ bordered: !0,
168
+ showIndexColumn: !1,
169
+ loading: e(f),
170
+ columns: e(J),
171
+ dataSource: e(b),
172
+ pagination: !1,
173
+ showActionColumn: !1,
174
+ showTableSetting: !1,
175
+ clickToRowSelect: !1,
176
+ scroll: e($),
177
+ onTableRedo: e(c),
178
+ class: se({ "j-table-force-nowrap": e(V) }),
179
+ onChange: e(B)
180
+ }, {
181
+ fileSlot: m(({ text: t, record: s, column: C }) => [
182
+ t ? (r(), S(ne, {
183
+ key: 1,
184
+ ghost: !0,
185
+ type: "primary",
186
+ preIcon: "ant-design:download",
187
+ size: "small",
188
+ onClick: (le) => e(A)(t, s, C, e(a))
189
+ }, {
190
+ default: m(() => [
191
+ me(" 下载 ")
192
+ ]),
193
+ _: 2
194
+ }, 1032, ["onClick"])) : (r(), d("span", we, "无文件"))
195
+ ]),
196
+ imgSlot: m(({ text: t }) => [
197
+ t ? (r(), d("img", {
198
+ key: 1,
199
+ src: e(K)(t),
200
+ alt: "图片不存在",
201
+ class: "online-cell-image",
202
+ onClick: (s) => e(q)(t)
203
+ }, null, 8, Oe)) : (r(), d("span", ve, "无图片"))
204
+ ]),
205
+ htmlSlot: m(({ text: t, column: s, record: C }) => [
206
+ s.fieldHref ? (r(), d("a", {
207
+ key: 0,
208
+ innerHTML: t,
209
+ onClick: (le) => e(Z)(s.fieldHref, C)
210
+ }, null, 8, Be)) : (r(), d("div", {
211
+ key: 1,
212
+ innerHTML: t
213
+ }, null, 8, Pe))
214
+ ]),
215
+ pcaSlot: m(({ text: t }) => [
216
+ w("div", {
217
+ title: e(k)(t)
218
+ }, v(e(k)(t)), 9, Ee)
219
+ ]),
220
+ dateSlot: m(({ text: t, column: s }) => [
221
+ w("span", null, v(e(j)(t, s)), 1)
222
+ ]),
223
+ _: 1
224
+ }, 8, ["loading", "columns", "dataSource", "scroll", "onTableRedo", "class", "onChange"])),
225
+ u(O, {
226
+ id: e(a),
227
+ onRegister: e(F)
228
+ }, null, 8, ["id", "onRegister"]),
229
+ u(Te, {
230
+ onRegister: e(x),
231
+ url: e(N)(),
232
+ onOk: e(c),
233
+ online: ""
234
+ }, null, 8, ["onRegister", "url", "onOk"]),
235
+ u(ie, ce(e(h).model, de(e(h).on)), {
236
+ default: m(() => [
237
+ (r(), S(ue(e(h).is), ge(fe(e(h).params)), null, 16))
238
+ ]),
239
+ _: 1
240
+ }, 16),
241
+ u(he, {
242
+ onRegister: e(E),
243
+ onSuccess: e(c)
244
+ }, null, 8, ["onRegister", "onSuccess"]),
245
+ u(O, {
246
+ id: e(G),
247
+ onRegister: e(Q),
248
+ defaultFullscreen: !1
249
+ }, null, 8, ["id", "onRegister"]),
250
+ u(ye, {
251
+ ref_key: "onlinePopModalRef",
252
+ ref: Y,
253
+ id: e(y),
254
+ onRegister: e(W),
255
+ onSuccess: e(c),
256
+ request: "",
257
+ topTip: ""
258
+ }, null, 8, ["id", "onRegister", "onSuccess"])
259
+ ], 64);
260
+ };
261
+ }
262
+ };
263
+ export {
264
+ Uo as default
265
+ };