@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,323 @@
1
+ var G = Object.defineProperty;
2
+ var K = Object.getOwnPropertySymbols;
3
+ var X = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
4
+ var V = (i, r, n) => r in i ? G(i, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : i[r] = n, E = (i, r) => {
5
+ for (var n in r || (r = {}))
6
+ X.call(r, n) && V(i, n, r[n]);
7
+ if (K)
8
+ for (var n of K(r))
9
+ Y.call(r, n) && V(i, n, r[n]);
10
+ return i;
11
+ };
12
+ var v = (i, r, n) => new Promise((o, g) => {
13
+ var S = (m) => {
14
+ try {
15
+ s(n.next(m));
16
+ } catch (f) {
17
+ g(f);
18
+ }
19
+ }, h = (m) => {
20
+ try {
21
+ s(n.throw(m));
22
+ } catch (f) {
23
+ g(f);
24
+ }
25
+ }, s = (m) => m.done ? o(m.value) : Promise.resolve(m.value).then(S, h);
26
+ s((n = n.apply(i, r)).next());
27
+ });
28
+ import { useMessage as Z } from "/@/hooks/web/useMessage";
29
+ import { ref as u, watch as $, reactive as ee, resolveComponent as c, openBlock as p, createElementBlock as _, createVNode as y, createCommentVNode as N, withCtx as B, createBlock as k, Fragment as te, renderList as oe, normalizeStyle as ne, renderSlot as re } from "vue";
30
+ import { Loading as ae } from "/@/components/Loading";
31
+ import { getToken as ie } from "/@/utils/auth";
32
+ import { goJmReportViewPage as le } from "/@/utils";
33
+ import { PrinterOutlined as me } from "@ant-design/icons-vue";
34
+ import se from "./DetailForm-2901d215.mjs";
35
+ import pe from "./OnlineSubFormDetail-583d01eb.mjs";
36
+ import { i as ue } from "./useExtendComponent-aa1cdfc8.mjs";
37
+ import { defHttp as ce } from "/@/utils/http/axios";
38
+ import { E as fe, T as de } from "./constant-754f1a9d.mjs";
39
+ import { _ as be } from "./index-b70302f2.mjs";
40
+ import "/@/utils/propTypes";
41
+ import "/@/utils/dict";
42
+ import "/@/utils/dict/JDictSelectUtil";
43
+ import "/@/utils/dict/index";
44
+ import "/@/api/common/api";
45
+ import "/@/components/Form/src/utils/Area";
46
+ import "/@/utils/common/compUtils";
47
+ import "/@/components/Preview/index";
48
+ import "/@/components/Markdown";
49
+ import "/@/components/Form/index";
50
+ import "/@/components/Form/src/componentMap";
51
+ import "/@/components/Modal";
52
+ import "lodash-es";
53
+ import "/@/components/Form/src/jeecg/components/JUpload";
54
+ import "/@/views/system/user/user.api";
55
+ import "/@/store/modules/user";
56
+ import "/@/utils/desform/customExpression";
57
+ import "/@/store/modules/permission";
58
+ import "/@/components/Table";
59
+ import "/@/hooks/system/useListPage";
60
+ import "vue-router";
61
+ import "./LinkTableListPiece-7f793b08.mjs";
62
+ import "./OnlineSelectCascade-a05c30f4.mjs";
63
+ import "./JModalTip-e1938b49.mjs";
64
+ import "ant-design-vue";
65
+ import "@vueuse/core";
66
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
67
+ const ge = {
68
+ name: "OnlineTabFormDetail",
69
+ components: {
70
+ DetailForm: se,
71
+ Loading: ae,
72
+ PrinterOutlined: me,
73
+ OnlineSubFormDetail: pe
74
+ },
75
+ props: {
76
+ id: {
77
+ type: String,
78
+ default: ""
79
+ },
80
+ formTemplate: {
81
+ type: Number,
82
+ default: 1
83
+ },
84
+ disabled: {
85
+ type: Boolean,
86
+ default: !1
87
+ },
88
+ isTree: {
89
+ type: Boolean,
90
+ default: !1
91
+ },
92
+ pidField: {
93
+ type: String,
94
+ default: ""
95
+ },
96
+ submitTip: {
97
+ type: Boolean,
98
+ default: !0
99
+ },
100
+ showSub: {
101
+ type: Boolean,
102
+ default: !0
103
+ },
104
+ themeTemplate: {
105
+ type: String,
106
+ default: ""
107
+ },
108
+ tabIndex: {
109
+ type: String,
110
+ default: ""
111
+ }
112
+ },
113
+ emits: ["success", "rendered"],
114
+ setup(i, { emit: r }) {
115
+ const { createMessage: n } = Z(), o = u(""), g = u(!0), S = u(!1), h = u(1), s = u({}), m = u(300), f = u(340), T = u("0");
116
+ $(
117
+ () => i.tabIndex,
118
+ (e, t) => {
119
+ T.value = e, t && J();
120
+ },
121
+ {
122
+ immediate: !0
123
+ }
124
+ );
125
+ const b = ee({
126
+ reportPrintShow: 0,
127
+ reportPrintUrl: "",
128
+ joinQuery: 0,
129
+ modelFullscreen: 0,
130
+ modalMinWidth: ""
131
+ }), { detailFormSchemas: x, hasSubTable: w, subTabInfo: l, refMap: P, showStatus: F, subDataSource: C, createFormSchemas: R, formSpan: A } = ue(i);
132
+ function I(e) {
133
+ let t = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 1, modalMinWidth: "" };
134
+ e && (t = JSON.parse(e)), Object.keys(t).map((a) => {
135
+ b[a] = t[a];
136
+ });
137
+ }
138
+ function M(e) {
139
+ return v(this, null, function* () {
140
+ h.value = e.head.tableType, o.value = e.head.tableName, g.value = e.head.tableType == 1, I(e.head.extConfigJson), R(e.schema.properties), r("rendered", b);
141
+ });
142
+ }
143
+ function H(e, t) {
144
+ return v(this, null, function* () {
145
+ yield U(t), D(!0);
146
+ });
147
+ }
148
+ function L(e) {
149
+ let t = `/online/cgform/api/detail/${i.id}/${e}`;
150
+ return new Promise((a, d) => {
151
+ ce.get({ url: t }, { isTransformResponse: !1 }).then((O) => {
152
+ O.success ? a(O.result) : (d(), n.warning(O.message));
153
+ }).catch(() => {
154
+ d();
155
+ });
156
+ });
157
+ }
158
+ function D(e) {
159
+ Object.keys(F).map((t) => {
160
+ F[t] = e;
161
+ });
162
+ }
163
+ function J() {
164
+ D(!1), setTimeout(() => {
165
+ D(!0);
166
+ }, 300);
167
+ }
168
+ function U(e) {
169
+ return v(this, null, function* () {
170
+ let t = yield L(e.id);
171
+ s.value = E({}, t), j(t);
172
+ });
173
+ }
174
+ function j(e) {
175
+ e || (e = {});
176
+ let t = Object.keys(C.value);
177
+ if (t && t.length > 0) {
178
+ let a = {};
179
+ for (let d of t)
180
+ a[d] = e[d] || [];
181
+ C.value = a;
182
+ }
183
+ }
184
+ function z(e) {
185
+ return "online_" + e + ":";
186
+ }
187
+ function Q() {
188
+ let e = b.reportPrintUrl, t = s.value;
189
+ if (t) {
190
+ let a = t.id, d = ie();
191
+ le(e, a, d);
192
+ }
193
+ }
194
+ function W(e) {
195
+ let t = s.value;
196
+ return q(t, e);
197
+ }
198
+ function q(e, t) {
199
+ if (e) {
200
+ let a = e[t];
201
+ return !a && a !== 0 && (a = e[t.toLowerCase()], !a && a !== 0 && (a = e[t.toUpperCase()])), a;
202
+ }
203
+ return "";
204
+ }
205
+ return {
206
+ detailFormSchemas: x,
207
+ formData: s,
208
+ formSpan: A,
209
+ //主表
210
+ tableName: o,
211
+ loading: S,
212
+ //子表
213
+ hasSubTable: w,
214
+ subTabInfo: l,
215
+ subFormHeight: m,
216
+ subTableHeight: f,
217
+ refMap: P,
218
+ onTabChange: J,
219
+ //一对多子表
220
+ subDataSource: C,
221
+ getSubTableAuthPre: z,
222
+ //父组件调用
223
+ show: H,
224
+ createRootProperties: M,
225
+ // 扩展配置
226
+ onOpenReportPrint: Q,
227
+ onlineExtConfigJson: b,
228
+ getSubTableForeignKeyValue: W,
229
+ showStatus: F,
230
+ ERP: fe,
231
+ TAB: de,
232
+ subActiveKey: T
233
+ };
234
+ }
235
+ };
236
+ const he = ["id"], _e = {
237
+ key: 0,
238
+ style: { "text-align": "right", position: "absolute", top: "15px", right: "20px", "z-index": "999" }
239
+ }, ye = { key: 1 };
240
+ function Se(i, r, n, o, g, S) {
241
+ const h = c("PrinterOutlined"), s = c("detail-form"), m = c("a-tab-pane"), f = c("online-sub-form-detail"), T = c("JVxeTable"), b = c("a-spin"), x = c("a-tabs"), w = c("Loading");
242
+ return p(), _("div", {
243
+ id: o.tableName + "_form"
244
+ }, [
245
+ o.formData.id && o.onlineExtConfigJson.reportPrintShow ? (p(), _("div", _e, [
246
+ y(h, {
247
+ title: "打印",
248
+ onClick: o.onOpenReportPrint,
249
+ style: { "font-size": "16px" }
250
+ }, null, 8, ["onClick"])
251
+ ])) : N("", !0),
252
+ y(x, {
253
+ class: "tabTheme",
254
+ onChange: o.onTabChange,
255
+ activeKey: o.subActiveKey,
256
+ "onUpdate:activeKey": r[0] || (r[0] = (l) => o.subActiveKey = l)
257
+ }, {
258
+ default: B(() => [
259
+ (p(), k(m, {
260
+ tab: "主表",
261
+ key: "-1"
262
+ }, {
263
+ default: B(() => [
264
+ y(s, {
265
+ schemas: o.detailFormSchemas,
266
+ data: o.formData,
267
+ span: o.formSpan
268
+ }, null, 8, ["schemas", "data", "span"])
269
+ ]),
270
+ _: 1
271
+ })),
272
+ o.hasSubTable && n.showSub ? (p(!0), _(te, { key: 0 }, oe(o.subTabInfo, (l, P) => (p(), k(m, {
273
+ tab: l.describe,
274
+ key: P + "",
275
+ forceRender: !0
276
+ }, {
277
+ default: B(() => [
278
+ l.relationType == 1 ? (p(), _("div", {
279
+ key: 0,
280
+ style: ne({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": o.subFormHeight + "px" })
281
+ }, [
282
+ y(f, {
283
+ table: l.key,
284
+ "form-template": n.formTemplate,
285
+ "main-id": o.getSubTableForeignKeyValue(l.foreignKey),
286
+ properties: l.properties
287
+ }, null, 8, ["table", "form-template", "main-id", "properties"])
288
+ ], 4)) : (p(), _("div", ye, [
289
+ o.showStatus[l.key] ? (p(), k(T, {
290
+ key: 0,
291
+ ref_for: !0,
292
+ ref: o.refMap[l.key],
293
+ toolbar: "",
294
+ "keep-source": "",
295
+ "row-number": "",
296
+ "row-selection": "",
297
+ height: o.subTableHeight,
298
+ disabled: !0,
299
+ columns: l.columns,
300
+ dataSource: o.subDataSource[l.key],
301
+ authPre: o.getSubTableAuthPre(l.key)
302
+ }, null, 8, ["height", "columns", "dataSource", "authPre"])) : (p(), k(b, {
303
+ key: 1,
304
+ spinning: !0
305
+ }))
306
+ ]))
307
+ ]),
308
+ _: 2
309
+ }, 1032, ["tab"]))), 128)) : N("", !0)
310
+ ]),
311
+ _: 1
312
+ }, 8, ["onChange", "activeKey"]),
313
+ y(w, {
314
+ loading: o.loading,
315
+ absolute: !1
316
+ }, null, 8, ["loading"]),
317
+ re(i.$slots, "bottom", {}, void 0, !0)
318
+ ], 8, he);
319
+ }
320
+ const lt = /* @__PURE__ */ be(ge, [["render", Se], ["__scopeId", "data-v-e0b07b2d"]]);
321
+ export {
322
+ lt as default
323
+ };