@jeecg/online 3.5.3-beta2 → 3.5.3-vite4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/AuthButtonConfig-2f71787c.mjs +125 -0
  2. package/AuthButtonTree-d73bccf5.mjs +156 -0
  3. package/AuthDataConfig-32cf23d2.mjs +212 -0
  4. package/AuthDataTree-03d62d3f.mjs +139 -0
  5. package/AuthFieldConfig-b1217a0c.mjs +139 -0
  6. package/AuthFieldTree-888e04a9.mjs +232 -0
  7. package/AuthManagerDrawer-f127b8a2.mjs +114 -0
  8. package/AuthSetterModal-37da78ed.mjs +261 -0
  9. package/CgformCopyList-3adab58f.mjs +245 -0
  10. package/CgformModal-6938d8c2.mjs +613 -0
  11. package/CgreportModal-77ec8c17.mjs +12 -0
  12. package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
  13. package/CheckDictTable-414313f2.mjs +211 -0
  14. package/CodeFileListModal-4831ce3d.mjs +158 -0
  15. package/CodeFileViewModal-5990dac4.mjs +244 -0
  16. package/CodeGeneratorModal-7df9e25d.mjs +234 -0
  17. package/CustomButtonList-1c9bd859.mjs +363 -0
  18. package/DBAttributeTable-cd1c41e5.mjs +473 -0
  19. package/DbToOnlineModal-dc5d2030.mjs +160 -0
  20. package/DetailForm-e4538e7a.mjs +446 -0
  21. package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
  22. package/EnhanceJsHistory-c30805ce.mjs +184 -0
  23. package/EnhanceJsModal-0b133341.mjs +233 -0
  24. package/EnhanceSqlModal-33a94c83.mjs +259 -0
  25. package/ExtendConfigModal-60f2cf86.mjs +111 -0
  26. package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
  27. package/FileSelectModal-64aaf623.mjs +91 -0
  28. package/ForeignKeyTable-cb1abd1d.mjs +69 -0
  29. package/IndexTable-4e94cd1f.mjs +89 -0
  30. package/JModalTip-abe1515a.mjs +46 -0
  31. package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
  32. package/LeftDepart-ca7a7375.mjs +82 -0
  33. package/LeftRole-d0fa8398.mjs +86 -0
  34. package/LeftUser-0c88c240.mjs +105 -0
  35. package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
  36. package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
  37. package/LinkTableListPiece-34266919.mjs +34 -0
  38. package/ModalFormDemo-0eeea994.mjs +78 -0
  39. package/OnlCgformErpList-7a0388d8.mjs +425 -0
  40. package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
  41. package/OnlineAutoList-85e6a30d.mjs +472 -0
  42. package/OnlineAutoModal-2a146238.mjs +206 -0
  43. package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
  44. package/OnlineCustomModal-456a85a6.mjs +227 -0
  45. package/OnlineDetailModal-f967f080.mjs +177 -0
  46. package/OnlineForm-630a22c2.mjs +778 -0
  47. package/OnlineFormDetail-1b216792.mjs +296 -0
  48. package/OnlineQueryForm-1c5949a7.mjs +378 -0
  49. package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
  50. package/OnlineSelectCascade-c7baf52b.mjs +160 -0
  51. package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
  52. package/PageAttributeTable-811185fd.mjs +404 -0
  53. package/ProcessOnlineForm-27be6f6f.mjs +177 -0
  54. package/QueryTable-4ba771ef.mjs +115 -0
  55. package/SuperQuery-3821f984.mjs +845 -0
  56. package/SuperQueryValComponent-471110b5.mjs +8 -0
  57. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
  58. package/auth.api-d3a6c4b3.mjs +39 -0
  59. package/auth.data-8be5c9e3.mjs +141 -0
  60. package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
  61. package/constant-fe20103a.mjs +6 -0
  62. package/enhance.api-138e6826.mjs +104 -0
  63. package/enhance.data-efc7e155.mjs +175 -0
  64. package/index-074b92e5.mjs +236 -0
  65. package/index-6a09a912.mjs +58 -0
  66. package/index-9d32ae88.mjs +313 -0
  67. package/main.index.js +7 -1
  68. package/package.json +1 -1
  69. package/style.css +1 -1
  70. package/useCgformList-2d6a5955.mjs +388 -0
  71. package/useExtendComponent-48d37d9b.mjs +3919 -0
  72. package/useListButton-cef1371a.mjs +656 -0
  73. package/useOnlinePopEvent-e9a042f8.mjs +19 -0
  74. package/useOnlineTest-0df0ae86.mjs +43 -0
  75. package/useSchemas-fc8d97ce.mjs +669 -0
  76. package/useTableSync-dc333087.mjs +83 -0
  77. package/AuthButtonConfig.js +0 -147
  78. package/AuthButtonTree.js +0 -183
  79. package/AuthDataConfig.js +0 -246
  80. package/AuthDataTree.js +0 -160
  81. package/AuthFieldConfig.js +0 -170
  82. package/AuthFieldTree.js +0 -281
  83. package/AuthManagerDrawer.js +0 -125
  84. package/AuthSetterModal.js +0 -316
  85. package/CgformCopyList.js +0 -266
  86. package/CgformModal.js +0 -780
  87. package/CgreportModal.js +0 -667
  88. package/CheckDictTable.js +0 -242
  89. package/CodeFileListModal.js +0 -175
  90. package/CodeFileViewModal.js +0 -325
  91. package/CodeGeneratorModal.js +0 -297
  92. package/CustomButtonList.js +0 -410
  93. package/DBAttributeTable.js +0 -526
  94. package/DbToOnlineModal.js +0 -192
  95. package/DetailForm.js +0 -608
  96. package/EnhanceJavaModal.js +0 -298
  97. package/EnhanceJsHistory.js +0 -229
  98. package/EnhanceJsModal.js +0 -293
  99. package/EnhanceSqlModal.js +0 -299
  100. package/ExtendConfigModal.js +0 -151
  101. package/FieldExtendJsonModal.js +0 -283
  102. package/FileSelectModal.js +0 -102
  103. package/ForeignKeyTable.js +0 -79
  104. package/IndexTable.js +0 -97
  105. package/JModalTip.js +0 -54
  106. package/JOnlineSearchSelect.js +0 -115
  107. package/LICENSE +0 -9
  108. package/LeftDepart.js +0 -96
  109. package/LeftRole.js +0 -98
  110. package/LeftUser.js +0 -117
  111. package/LinkTableConfigModal.js +0 -289
  112. package/LinkTableFieldConfigModal.js +0 -218
  113. package/LinkTableListPiece.js +0 -36
  114. package/ModalFormDemo.js +0 -85
  115. package/OnlineAutoList.js +0 -524
  116. package/OnlineAutoModal.js +0 -226
  117. package/OnlineAutoTreeList.js +0 -553
  118. package/OnlineCustomModal.js +0 -286
  119. package/OnlineDetailModal.js +0 -190
  120. package/OnlineForm.js +0 -1018
  121. package/OnlineFormDetail.js +0 -347
  122. package/OnlineQueryForm.js +0 -484
  123. package/OnlineSearchFormItem.js +0 -436
  124. package/OnlineSelectCascade.js +0 -228
  125. package/OnlineSubFormDetail.js +0 -166
  126. package/PageAttributeTable.js +0 -486
  127. package/ProcessOnlineForm.js +0 -208
  128. package/QueryTable.js +0 -129
  129. package/SuperQuery.js +0 -1021
  130. package/SuperQueryValComponent.js +0 -9
  131. package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
  132. package/_arrayPush.js +0 -278
  133. package/_baseClone.js +0 -471
  134. package/_baseSlice.js +0 -18
  135. package/_commonjsHelpers.js +0 -5
  136. package/_flatRest.js +0 -174
  137. package/auth.api.js +0 -43
  138. package/auth.data.js +0 -142
  139. package/clipboard.js +0 -565
  140. package/enhance.api.js +0 -129
  141. package/enhance.data.js +0 -196
  142. package/index.js +0 -87
  143. package/index2.js +0 -340
  144. package/index3.js +0 -264
  145. package/isArray.js +0 -47
  146. package/omit.js +0 -60
  147. package/pick.js +0 -68
  148. package/toString.js +0 -31
  149. package/useCgformList.js +0 -470
  150. package/useExtendComponent.js +0 -5205
  151. package/useListButton.js +0 -923
  152. package/useOnlineTest.js +0 -44
  153. package/useSchemas.js +0 -653
  154. package/useTableSync.js +0 -117
@@ -0,0 +1,446 @@
1
+ var le = Object.defineProperty;
2
+ var H = Object.getOwnPropertySymbols;
3
+ var ie = Object.prototype.hasOwnProperty, ne = Object.prototype.propertyIsEnumerable;
4
+ var J = (a, o, s) => o in a ? le(a, o, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[o] = s, U = (a, o) => {
5
+ for (var s in o || (o = {}))
6
+ ie.call(o, s) && J(a, s, o[s]);
7
+ if (H)
8
+ for (var s of H(o))
9
+ ne.call(o, s) && J(a, s, o[s]);
10
+ return a;
11
+ };
12
+ var p = (a, o, s) => new Promise((h, w) => {
13
+ var F = (f) => {
14
+ try {
15
+ _(s.next(f));
16
+ } catch (C) {
17
+ w(C);
18
+ }
19
+ }, D = (f) => {
20
+ try {
21
+ _(s.throw(f));
22
+ } catch (C) {
23
+ w(C);
24
+ }
25
+ }, _ = (f) => f.done ? h(f.value) : Promise.resolve(f.value).then(F, D);
26
+ _((s = s.apply(a, o)).next());
27
+ });
28
+ import { ref as ae, computed as oe, watch as re, defineComponent as se, resolveComponent as x, openBlock as u, createElementBlock as m, normalizeClass as q, createVNode as T, withCtx as R, Fragment as N, renderList as B, createBlock as W, createElementVNode as c, toDisplayString as M } from "vue";
29
+ import { propTypes as O } from "/@/utils/propTypes";
30
+ import { getDictItemsByCode as de } from "/@/utils/dict";
31
+ import { filterMultiDictText as b, filterDictText as ce } from "/@/utils/dict/JDictSelectUtil";
32
+ import { initDictOptions as V } from "/@/utils/dict/index";
33
+ import { loadDictItem as ue, queryDepartTreeSync as fe, getUserList as pe } from "/@/api/common/api";
34
+ import { defHttp as me } from "/@/utils/http/axios";
35
+ import { getAreaTextByCode as _e } from "/@/components/Form/src/utils/Area";
36
+ import { getFileAccessHttpUrl as ge } from "/@/utils/common/compUtils";
37
+ import { createImgPreview as he } from "/@/components/Preview/index";
38
+ import { useMessage as ve } from "/@/hooks/web/useMessage";
39
+ import { DownloadOutlined as ye, EyeOutlined as we, PaperClipOutlined as De } from "@ant-design/icons-vue";
40
+ import { q as Ce } from "./useExtendComponent-48d37d9b.mjs";
41
+ import { _ as Fe } from "./index-6a09a912.mjs";
42
+ import "/@/components/Form/src/componentMap";
43
+ import "/@/components/Modal";
44
+ import "/@/components/Form/index";
45
+ import "lodash-es";
46
+ import "/@/components/Form/src/jeecg/components/JUpload";
47
+ import "/@/views/system/user/user.api";
48
+ import "/@/store/modules/user";
49
+ import "/@/utils";
50
+ import "/@/utils/desform/customExpression";
51
+ import "/@/store/modules/permission";
52
+ import "/@/components/Table";
53
+ import "/@/hooks/system/useListPage";
54
+ import "vue-router";
55
+ import "./LinkTableListPiece-34266919.mjs";
56
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
57
+ import "./OnlineSelectCascade-c7baf52b.mjs";
58
+ import "/@/components/Loading";
59
+ import "/@/utils/auth";
60
+ import "./JModalTip-abe1515a.mjs";
61
+ import "ant-design-vue";
62
+ import "@vueuse/core";
63
+ function xe(a) {
64
+ console.log(a);
65
+ const o = {}, s = [], h = ae({}), { createMessage: w } = ve(), F = oe(() => a.containerClass ? `jeecg-detail-form ${a.containerClass}` : "jeecg-detail-form");
66
+ re(
67
+ () => a.data,
68
+ (e) => p(this, null, function* () {
69
+ if (e) {
70
+ let n = a.schemas, i = {};
71
+ if (n && n.length > 0)
72
+ for (let l of n) {
73
+ let t = l.field;
74
+ try {
75
+ i[t] = yield D(l);
76
+ } catch (r) {
77
+ console.error("字段【" + t + "】文本获取失败", r);
78
+ }
79
+ }
80
+ h.value = i;
81
+ }
82
+ }),
83
+ { deep: !0, immediate: !0 }
84
+ );
85
+ function D(e) {
86
+ return p(this, null, function* () {
87
+ let n = a.data;
88
+ if (n) {
89
+ let i = n[e.field];
90
+ if (!i && i !== "0" && i !== 0)
91
+ return "";
92
+ let l = i, t = e.view;
93
+ if (t == "list" || t == "radio" || t == "checkbox" || t == "list_multi")
94
+ l = yield _(e, n);
95
+ else if (t == "sel_search")
96
+ l = yield C(e, n);
97
+ else if (t == "cat_tree")
98
+ l = yield S(e, n);
99
+ else if (t == "link_table")
100
+ l = yield ee(e, n);
101
+ else if (t == "sel_depart")
102
+ l = yield j(e, n);
103
+ else if (t == "sel_user")
104
+ l = yield d(e, n);
105
+ else if (t == "pca")
106
+ l = _e(i);
107
+ else if (t == "link_down")
108
+ l = yield v(e, n);
109
+ else if (t == "sel_tree")
110
+ l = yield I(e, n);
111
+ else if (t == "switch")
112
+ l = yield P(e, n);
113
+ else if (t == "image" || t == "file")
114
+ l = K(e, n);
115
+ else if (s.indexOf(e.field) >= 0) {
116
+ let r = o[e.field];
117
+ r && r.length > 0 && (l = b(r, i));
118
+ }
119
+ return l;
120
+ }
121
+ return "";
122
+ });
123
+ }
124
+ function _(e, n) {
125
+ return p(this, null, function* () {
126
+ let i = f(e), l = n[e.field];
127
+ if (!i)
128
+ return l;
129
+ let t = de(i);
130
+ if (t && t.length > 0)
131
+ return b(t, l);
132
+ {
133
+ let r = [];
134
+ if (o[i] ? r = o[i] : r = (yield V(i)) || [], r && r.length > 0)
135
+ return o[i] = r, b(r, l);
136
+ }
137
+ return "";
138
+ });
139
+ }
140
+ function f(e) {
141
+ let n = "", { dictCode: i, dictTable: l, dictText: t } = e;
142
+ return l ? n = encodeURI(`${l},${t},${i}`) : n = i, n;
143
+ }
144
+ function C(e, n) {
145
+ return p(this, null, function* () {
146
+ let i = f(e), l = n[e.field];
147
+ if (!l)
148
+ return "";
149
+ let t = [];
150
+ return o[i + l] ? t = o[i + l] : t = (yield me.get({ url: `/sys/dict/loadDictItem/${i}`, params: { key: l } })) || [], t && t.length > 0 ? (o[i + l] = t, t.join(",")) : "";
151
+ });
152
+ }
153
+ function S(e, n) {
154
+ return p(this, null, function* () {
155
+ let i = n[e.field];
156
+ if (!i)
157
+ return "";
158
+ let l = (yield ue({ ids: i })) || [];
159
+ return l && l.length > 0 ? l.join(",") : "";
160
+ });
161
+ }
162
+ function j(e, n) {
163
+ return p(this, null, function* () {
164
+ let i = n[e.field];
165
+ if (!i)
166
+ return "";
167
+ let t = k(e).store || "id", r = (yield fe({ ids: i, primaryKey: t })) || [];
168
+ if (r && r.length > 0) {
169
+ let g = [];
170
+ for (let y of r)
171
+ g.push(y.title);
172
+ return g.join(",");
173
+ }
174
+ return "";
175
+ });
176
+ }
177
+ function d(e, n) {
178
+ return p(this, null, function* () {
179
+ let i = n[e.field];
180
+ if (!i)
181
+ return "";
182
+ let l = k(e), r = {
183
+ [l.store || "username"]: i
184
+ }, y = ((yield pe(r)) || {}).records || [];
185
+ if (y && y.length > 0) {
186
+ let $ = [];
187
+ console.log("getUserDataText", y);
188
+ let L = l.text || "realname";
189
+ for (let E of y)
190
+ $.push(E[L]);
191
+ return $.join(",");
192
+ }
193
+ return "";
194
+ });
195
+ }
196
+ function k(e) {
197
+ let n = {}, { fieldExtendJson: i } = e;
198
+ if (i && typeof i == "string")
199
+ try {
200
+ let l = JSON.parse(i);
201
+ n = U({}, l);
202
+ } catch (l) {
203
+ console.error(l);
204
+ }
205
+ return n;
206
+ }
207
+ function v(e, n) {
208
+ return p(this, null, function* () {
209
+ let { dictTable: i, field: l } = e, t = [];
210
+ if (o[l])
211
+ t = o[l];
212
+ else if (i) {
213
+ let r = JSON.parse(i);
214
+ if (r) {
215
+ let { table: g, txt: y, key: $, linkField: L } = r, E = `${g},${y},${$}`;
216
+ if (t = [...(yield V(E)) || []], t && t.length > 0 && (o[l] = t, L)) {
217
+ let te = L.split(",");
218
+ for (let A of te)
219
+ o[A] = t, s.push(A);
220
+ }
221
+ }
222
+ }
223
+ if (t && t.length > 0) {
224
+ let r = n[l];
225
+ return b(t, r);
226
+ }
227
+ return "";
228
+ });
229
+ }
230
+ function I(e, n) {
231
+ return p(this, null, function* () {
232
+ let { dict: i, field: l } = e, t = [];
233
+ if (o[l] ? t = o[l] : i && (t = yield V(i)), t && t.length > 0) {
234
+ let r = n[l];
235
+ return b(t, r);
236
+ }
237
+ return "";
238
+ });
239
+ }
240
+ function P(e, n) {
241
+ return p(this, null, function* () {
242
+ let { fieldExtendJson: i, field: l } = e, t = ["Y", "N"];
243
+ i && (t = JSON.parse(i));
244
+ let r = [
245
+ { value: t[0], text: "是" },
246
+ { value: t[1], text: "否" },
247
+ { value: t[0] + "", text: "是" },
248
+ { value: t[1] + "", text: "否" }
249
+ ], g = n[l];
250
+ return ce(r, g);
251
+ });
252
+ }
253
+ function z(e) {
254
+ return e.span ? e.span : a.span;
255
+ }
256
+ function K(e, n) {
257
+ let i = n[e.field];
258
+ if (!i)
259
+ return [];
260
+ let l = i.split(","), t = [];
261
+ for (let r of l) {
262
+ let g = ge(r) || "";
263
+ g && t.push(g);
264
+ }
265
+ return t;
266
+ }
267
+ function Y(e) {
268
+ e && window.open(e);
269
+ }
270
+ function G(e) {
271
+ let n = h.value[e];
272
+ if (!n || n.length == 0) {
273
+ w.warning("无图片!");
274
+ return;
275
+ }
276
+ he({ imageList: n });
277
+ }
278
+ function Q(e) {
279
+ return e ? e.substring(e.lastIndexOf("/") + 1) : "";
280
+ }
281
+ const X = ["file", "image", "markdown", "umeditor"];
282
+ function Z(e) {
283
+ return X.indexOf(e.view) >= 0 ? a.span == 12 ? "span12" : a.span == 8 ? "span8" : a.span == 6 ? "span6" : "span24" : "";
284
+ }
285
+ function ee(e, n) {
286
+ return p(this, null, function* () {
287
+ let i = n[e.field];
288
+ return k(e).showType == "select" ? i ? n[e.field + "_dictText"] : "" : i ? n[e.field] : "";
289
+ });
290
+ }
291
+ return {
292
+ formContainerClass: F,
293
+ detailFormData: h,
294
+ getItemSpan: z,
295
+ handleDownloadFile: Y,
296
+ handleViewImage: G,
297
+ getFilename: Q,
298
+ getLabelWidthClass: Z
299
+ };
300
+ }
301
+ const ke = se({
302
+ name: "DetailForm",
303
+ components: {
304
+ DownloadOutlined: ye,
305
+ EyeOutlined: we,
306
+ PaperClipOutlined: De,
307
+ LinkTableCard: Ce
308
+ },
309
+ props: {
310
+ span: O.number.def(24),
311
+ //表单配置
312
+ schemas: O.array.def([]),
313
+ //表单数据
314
+ data: O.object.def({}),
315
+ containerClass: O.string.def("")
316
+ },
317
+ setup(a) {
318
+ const { formContainerClass: o, detailFormData: s, getItemSpan: h, handleDownloadFile: w, handleViewImage: F, getFilename: D, getLabelWidthClass: _ } = xe(a);
319
+ return {
320
+ formContainerClass: o,
321
+ detailFormData: s,
322
+ getItemSpan: h,
323
+ handleDownloadFile: w,
324
+ handleViewImage: F,
325
+ getFilename: D,
326
+ getLabelWidthClass: _
327
+ };
328
+ }
329
+ });
330
+ const Te = { class: "detail-item" }, be = ["title"], Ie = ["innerHTML"], $e = {
331
+ key: 1,
332
+ class: "item-content",
333
+ style: { display: "block", "padding-top": "10px" }
334
+ }, Le = { key: 0 }, Oe = {
335
+ key: 2,
336
+ class: "item-content"
337
+ }, Se = { class: "ant-upload-list ant-upload-list-picture-card" }, je = {
338
+ class: "ant-upload-list-picture-card-container",
339
+ style: { "margin-top": "8px" }
340
+ }, Ee = {
341
+ class: "ant-upload-list-item ant-upload-list-item-done ant-upload-list-item-list-type-picture-card",
342
+ "data-has-actions": "true"
343
+ }, Ne = { class: "ant-upload-list-item-info" }, Be = ["src"], Me = { class: "ant-upload-list-item-actions" }, Ve = {
344
+ key: 3,
345
+ class: "item-content"
346
+ }, Ae = { class: "ant-upload-list ant-upload-list-text" }, He = { class: "" }, Je = { class: "ant-upload-list-item ant-upload-list-item-done ant-upload-list-item-list-type-text" }, Ue = { class: "ant-upload-list-item-info" }, qe = { class: "ant-upload-span" }, Re = { class: "ant-upload-text-icon" }, We = ["href"], Pe = { class: "ant-upload-list-item-card-actions" }, ze = {
347
+ key: 4,
348
+ class: "item-content"
349
+ };
350
+ function Ke(a, o, s, h, w, F) {
351
+ const D = x("link-table-card"), _ = x("download-outlined"), f = x("eye-outlined"), C = x("paper-clip-outlined"), S = x("a-col"), j = x("a-row");
352
+ return u(), m("div", {
353
+ class: q(a.formContainerClass)
354
+ }, [
355
+ T(j, null, {
356
+ default: R(() => [
357
+ (u(!0), m(N, null, B(a.schemas, (d, k) => (u(), W(S, {
358
+ key: k,
359
+ span: a.getItemSpan(d)
360
+ }, {
361
+ default: R(() => [
362
+ c("div", Te, [
363
+ c("div", {
364
+ class: q(["item-title", a.getLabelWidthClass(d)]),
365
+ title: d.label
366
+ }, M(d.label) + ": ", 11, be),
367
+ d.isHtml ? (u(), m("div", {
368
+ key: 0,
369
+ class: "item-content",
370
+ innerHTML: a.detailFormData[d.field]
371
+ }, null, 8, Ie)) : d.isCard ? (u(), m("div", $e, [
372
+ a.detailFormData[d.field] ? (u(), W(D, {
373
+ key: 1,
374
+ disabled: "",
375
+ detail: "",
376
+ value: a.detailFormData[d.field],
377
+ valueField: d.dictCode,
378
+ textField: d.dictText,
379
+ tableName: d.dictTable,
380
+ multi: d.multi
381
+ }, null, 8, ["value", "valueField", "textField", "tableName", "multi"])) : (u(), m("span", Le))
382
+ ])) : d.isImage ? (u(), m("div", Oe, [
383
+ c("div", Se, [
384
+ (u(!0), m(N, null, B(a.detailFormData[d.field], (v) => (u(), m("div", je, [
385
+ c("span", null, [
386
+ c("div", Ee, [
387
+ c("div", Ne, [
388
+ c("img", {
389
+ src: v,
390
+ alt: "图片不存在",
391
+ class: "ant-upload-list-item-image"
392
+ }, null, 8, Be)
393
+ ]),
394
+ c("span", Me, [
395
+ T(_, {
396
+ onClick: (I) => a.handleDownloadFile(v)
397
+ }, null, 8, ["onClick"]),
398
+ T(f, {
399
+ onClick: (I) => a.handleViewImage(d.field)
400
+ }, null, 8, ["onClick"])
401
+ ])
402
+ ])
403
+ ])
404
+ ]))), 256))
405
+ ])
406
+ ])) : d.isFile ? (u(), m("div", Ve, [
407
+ c("div", Ae, [
408
+ (u(!0), m(N, null, B(a.detailFormData[d.field], (v) => (u(), m("div", He, [
409
+ c("span", null, [
410
+ c("div", Je, [
411
+ c("div", Ue, [
412
+ c("span", qe, [
413
+ c("div", Re, [
414
+ T(C)
415
+ ]),
416
+ c("a", {
417
+ href: v,
418
+ target: "_blank",
419
+ rel: "noopener noreferrer",
420
+ class: "ant-upload-list-item-name"
421
+ }, M(a.getFilename(v)), 9, We),
422
+ c("span", Pe, [
423
+ T(_, {
424
+ onClick: (I) => a.handleDownloadFile(v)
425
+ }, null, 8, ["onClick"])
426
+ ])
427
+ ])
428
+ ])
429
+ ])
430
+ ])
431
+ ]))), 256))
432
+ ])
433
+ ])) : (u(), m("div", ze, M(a.detailFormData[d.field]), 1))
434
+ ])
435
+ ]),
436
+ _: 2
437
+ }, 1032, ["span"]))), 128))
438
+ ]),
439
+ _: 1
440
+ })
441
+ ], 2);
442
+ }
443
+ const St = /* @__PURE__ */ Fe(ke, [["render", Ke], ["__scopeId", "data-v-fd1939fd"]]);
444
+ export {
445
+ St as default
446
+ };
@@ -0,0 +1,260 @@
1
+ var W = Object.defineProperty;
2
+ var A = Object.getOwnPropertySymbols;
3
+ var X = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
4
+ var E = (e, t, o) => t in e ? W(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, R = (e, t) => {
5
+ for (var o in t || (t = {}))
6
+ X.call(t, o) && E(e, o, t[o]);
7
+ if (A)
8
+ for (var o of A(t))
9
+ Y.call(t, o) && E(e, o, t[o]);
10
+ return e;
11
+ };
12
+ var p = (e, t, o) => new Promise((_, f) => {
13
+ var h = (r) => {
14
+ try {
15
+ l(o.next(r));
16
+ } catch (u) {
17
+ f(u);
18
+ }
19
+ }, c = (r) => {
20
+ try {
21
+ l(o.throw(r));
22
+ } catch (u) {
23
+ f(u);
24
+ }
25
+ }, l = (r) => r.done ? _(r.value) : Promise.resolve(r.value).then(h, c);
26
+ l((o = o.apply(e, t)).next());
27
+ });
28
+ import { defineComponent as Z, ref as k, reactive as x, computed as ee, nextTick as oe, resolveComponent as s, openBlock as D, createBlock as J, withCtx as a, createVNode as i, createTextVNode as g, createElementBlock as ne, createCommentVNode as S, normalizeProps as te, guardReactiveProps as ae } from "vue";
29
+ import { BasicModal as ie, useModalInner as re, useModal as se } from "/@/components/Modal";
30
+ import { BasicForm as le, useForm as ce } from "/@/components/Form";
31
+ import { BasicTable as ue, TableAction as me } from "/@/components/Table";
32
+ import { useListPage as de } from "/@/hooks/system/useListPage";
33
+ import { u as pe } from "./useOnlineTest-0df0ae86.mjs";
34
+ import { u as fe, a as ge } from "./enhance.data-efc7e155.mjs";
35
+ import { a as _e, b as he, d as L } from "./enhance.api-138e6826.mjs";
36
+ import { _ as be } from "./index-6a09a912.mjs";
37
+ import "./cgform.data-cbdd88c3.mjs";
38
+ import "/@/utils/dict";
39
+ import "/@/utils/dict/JDictSelectUtil";
40
+ import "/@/utils/uuid";
41
+ import "/@/utils/http/axios";
42
+ import "/@/utils/is";
43
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
44
+ import "/@/hooks/web/useMessage";
45
+ import "vue-router";
46
+ const ve = Z({
47
+ name: "EnhanceJavaModal",
48
+ components: { BasicModal: ie, BasicTable: ue, BasicForm: le, TableAction: me },
49
+ emits: ["register"],
50
+ setup() {
51
+ const e = k(""), t = k([]), { columns: o } = ge(t), { doRequest: _, doDeleteRecord: f, tableContext: h } = de({
52
+ tableProps: {
53
+ api: (n) => p(this, null, function* () {
54
+ let { dataSource: b, btnList: Q } = yield _e(e.value, n);
55
+ return t.value = Q, b;
56
+ }),
57
+ columns: o,
58
+ canResize: !1,
59
+ useSearchForm: !1,
60
+ beforeFetch(n) {
61
+ return Object.assign(n, { column: "orderNum", order: "asc" });
62
+ }
63
+ }
64
+ }), [c, { reload: l }, { rowSelection: r, selectedRowKeys: u }] = h, [v, { closeModal: C }] = re((n) => p(this, null, function* () {
65
+ e.value = n.row.id, l();
66
+ })), { aiTestMode: w, genEnhanceJavaData: y } = pe(), [M, d] = se(), m = k(!1), B = x({
67
+ onRegister: M,
68
+ title: ee(() => m != null && m.value ? "修改" : "新增"),
69
+ width: 800,
70
+ confirmLoading: !1,
71
+ bodyStyle: { height: "350px" },
72
+ onOk: U,
73
+ onCancel: d.closeModal
74
+ });
75
+ let F = {};
76
+ const { formSchemas: P } = fe(t), [V, { resetFields: $, setFieldsValue: N, validate: O }] = ce({
77
+ schemas: P,
78
+ showActionButtonGroup: !1
79
+ });
80
+ function G() {
81
+ C();
82
+ }
83
+ function T(n) {
84
+ return p(this, null, function* () {
85
+ var b;
86
+ m.value = n.isUpdate, F = R({}, (b = n.record) != null ? b : {}), d.openModal(), yield oe(), yield $(), N(F);
87
+ });
88
+ }
89
+ function j() {
90
+ T({ isUpdate: !1 });
91
+ }
92
+ function z(n) {
93
+ T({ isUpdate: !0, record: n });
94
+ }
95
+ function I() {
96
+ y(e.value);
97
+ }
98
+ function K() {
99
+ return p(this, null, function* () {
100
+ _(() => L(u.value));
101
+ });
102
+ }
103
+ function U() {
104
+ return p(this, null, function* () {
105
+ try {
106
+ B.confirmLoading = !0;
107
+ let n = yield O();
108
+ n = Object.assign({}, F, n), yield he(e.value, n, m.value), l(), d.closeModal();
109
+ } finally {
110
+ B.confirmLoading = !1;
111
+ }
112
+ });
113
+ }
114
+ function q(n) {
115
+ return [
116
+ {
117
+ label: "编辑",
118
+ onClick: () => z(n)
119
+ }
120
+ ];
121
+ }
122
+ function H(n) {
123
+ return [
124
+ {
125
+ label: "删除",
126
+ popConfirm: {
127
+ title: "确定删除吗?",
128
+ placement: "left",
129
+ confirm: () => f(() => L([n.id]))
130
+ }
131
+ }
132
+ ];
133
+ }
134
+ return {
135
+ rowSelection: r,
136
+ selectedRowKeys: u,
137
+ aiTestMode: w,
138
+ onCancel: G,
139
+ onAdd: j,
140
+ onGenEnhanceJavaData: I,
141
+ onBatchDelete: K,
142
+ getTableAction: q,
143
+ getDropDownAction: H,
144
+ formModalProps: B,
145
+ registerModal: v,
146
+ registerTable: c,
147
+ registerForm: V
148
+ };
149
+ },
150
+ computed: {
151
+ tableScroll() {
152
+ return {
153
+ y: window.innerHeight - 320
154
+ };
155
+ }
156
+ }
157
+ }), Ce = {
158
+ key: 0,
159
+ style: { float: "left" }
160
+ };
161
+ function we(e, t, o, _, f, h) {
162
+ const c = s("a-button"), l = s("a-icon"), r = s("a-menu-item"), u = s("a-menu"), v = s("a-dropdown"), C = s("TableAction"), w = s("BasicTable"), y = s("BasicForm"), M = s("a-spin"), d = s("BasicModal");
163
+ return D(), J(d, {
164
+ onRegister: e.registerModal,
165
+ title: "JAVA增强",
166
+ width: 1200,
167
+ defaultFullscreen: "",
168
+ onCancel: e.onCancel
169
+ }, {
170
+ footer: a(() => [
171
+ i(c, { onClick: e.onCancel }, {
172
+ default: a(() => [
173
+ g("关闭")
174
+ ]),
175
+ _: 1
176
+ }, 8, ["onClick"]),
177
+ e.aiTestMode ? (D(), ne("div", Ce, [
178
+ i(c, { onClick: e.onGenEnhanceJavaData }, {
179
+ default: a(() => [
180
+ g("生成测试数据")
181
+ ]),
182
+ _: 1
183
+ }, 8, ["onClick"])
184
+ ])) : S("", !0)
185
+ ]),
186
+ default: a(() => [
187
+ i(w, {
188
+ onRegister: e.registerTable,
189
+ rowSelection: e.rowSelection
190
+ }, {
191
+ tableTitle: a(() => [
192
+ i(c, {
193
+ onClick: e.onAdd,
194
+ type: "primary",
195
+ preIcon: "ant-design:plus"
196
+ }, {
197
+ default: a(() => [
198
+ g("新增")
199
+ ]),
200
+ _: 1
201
+ }, 8, ["onClick"]),
202
+ e.selectedRowKeys.length > 0 ? (D(), J(v, { key: 0 }, {
203
+ overlay: a(() => [
204
+ i(u, null, {
205
+ default: a(() => [
206
+ i(r, {
207
+ key: "1",
208
+ onClick: e.onBatchDelete
209
+ }, {
210
+ default: a(() => [
211
+ i(l, { type: "delete" }),
212
+ g(" 删除 ")
213
+ ]),
214
+ _: 1
215
+ }, 8, ["onClick"])
216
+ ]),
217
+ _: 1
218
+ })
219
+ ]),
220
+ default: a(() => [
221
+ i(c, { style: { "margin-left": "8px" } }, {
222
+ default: a(() => [
223
+ g(" 批量操作 "),
224
+ i(l, { type: "down" })
225
+ ]),
226
+ _: 1
227
+ })
228
+ ]),
229
+ _: 1
230
+ })) : S("", !0)
231
+ ]),
232
+ action: a(({ record: m }) => [
233
+ i(C, {
234
+ actions: e.getTableAction(m),
235
+ dropDownActions: e.getDropDownAction(m)
236
+ }, null, 8, ["actions", "dropDownActions"])
237
+ ]),
238
+ _: 1
239
+ }, 8, ["onRegister", "rowSelection"]),
240
+ i(d, te(ae(e.formModalProps)), {
241
+ default: a(() => [
242
+ i(M, {
243
+ spinning: e.formModalProps.confirmLoading
244
+ }, {
245
+ default: a(() => [
246
+ i(y, { onRegister: e.registerForm }, null, 8, ["onRegister"])
247
+ ]),
248
+ _: 1
249
+ }, 8, ["spinning"])
250
+ ]),
251
+ _: 1
252
+ }, 16)
253
+ ]),
254
+ _: 1
255
+ }, 8, ["onRegister", "onCancel"]);
256
+ }
257
+ const je = /* @__PURE__ */ be(ve, [["render", we]]);
258
+ export {
259
+ je as default
260
+ };