@jeecg/online 3.5.3-vite4 → 3.6.2-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 (101) hide show
  1. package/{AuthButtonConfig-2f71787c.mjs → AuthButtonConfig-244ec09f.mjs} +1 -1
  2. package/{AuthButtonTree-d73bccf5.mjs → AuthButtonTree-3aa0ed49.mjs} +1 -1
  3. package/{AuthDataConfig-32cf23d2.mjs → AuthDataConfig-83891eea.mjs} +1 -1
  4. package/{AuthDataTree-03d62d3f.mjs → AuthDataTree-94e026e3.mjs} +1 -1
  5. package/{AuthFieldConfig-b1217a0c.mjs → AuthFieldConfig-6b21915c.mjs} +1 -1
  6. package/{AuthFieldTree-888e04a9.mjs → AuthFieldTree-69864163.mjs} +1 -1
  7. package/{AuthManagerDrawer-f127b8a2.mjs → AuthManagerDrawer-300dd4e4.mjs} +4 -4
  8. package/{AuthSetterModal-37da78ed.mjs → AuthSetterModal-a414fb35.mjs} +58 -52
  9. package/{CgformCopyList-3adab58f.mjs → CgformCopyList-14b76108.mjs} +42 -39
  10. package/CgformModal-eccfc38e.mjs +611 -0
  11. package/{CgreportModal-77ec8c17.mjs → CgreportModal-2065f5a9.mjs} +2 -1
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs → CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs} +170 -171
  13. package/{CheckDictTable-414313f2.mjs → CheckDictTable-134cbb83.mjs} +3 -3
  14. package/{CodeFileListModal-4831ce3d.mjs → CodeFileListModal-a6d3290d.mjs} +2 -2
  15. package/{CodeFileViewModal-5990dac4.mjs → CodeFileViewModal-373e8058.mjs} +2 -2
  16. package/{CodeGeneratorModal-7df9e25d.mjs → CodeGeneratorModal-f08a89cd.mjs} +5 -6
  17. package/{CustomButtonList-1c9bd859.mjs → CustomButtonList-02e3d897.mjs} +2 -2
  18. package/{DBAttributeTable-cd1c41e5.mjs → DBAttributeTable-370de07b.mjs} +2 -2
  19. package/{DbToOnlineModal-dc5d2030.mjs → DbToOnlineModal-9f13956f.mjs} +35 -35
  20. package/{DetailForm-e4538e7a.mjs → DetailForm-424638eb.mjs} +179 -163
  21. package/{EnhanceJavaModal-7f53d2ca.mjs → EnhanceJavaModal-f63aa2d3.mjs} +17 -13
  22. package/{EnhanceJsHistory-c30805ce.mjs → EnhanceJsHistory-352b46b1.mjs} +1 -1
  23. package/EnhanceJsModal-05c73a59.mjs +311 -0
  24. package/{EnhanceSqlModal-33a94c83.mjs → EnhanceSqlModal-5e4ae84f.mjs} +55 -46
  25. package/{ExtendConfigModal-60f2cf86.mjs → ExtendConfigModal-1dde390a.mjs} +2 -2
  26. package/FieldExtendJsonModal-a70a9ccd.mjs +219 -0
  27. package/FileSelectModal-9a02560b.mjs +103 -0
  28. package/{ForeignKeyTable-cb1abd1d.mjs → ForeignKeyTable-6a843c4b.mjs} +2 -2
  29. package/{IndexTable-4e94cd1f.mjs → IndexTable-f8af9d44.mjs} +2 -2
  30. package/JModalTip-33c7dc44.mjs +49 -0
  31. package/{JOnlineSearchSelect-5608a5cf.mjs → JOnlineSearchSelect-c287af12.mjs} +17 -16
  32. package/{LeftDepart-ca7a7375.mjs → LeftDepart-fa85523d.mjs} +1 -1
  33. package/{LeftRole-d0fa8398.mjs → LeftRole-8b8dfe21.mjs} +1 -1
  34. package/{LeftUser-0c88c240.mjs → LeftUser-dc24ef2f.mjs} +1 -1
  35. package/{LinkTableConfigModal-77d7c0b9.mjs → LinkTableConfigModal-d4fbdef2.mjs} +23 -23
  36. package/{LinkTableFieldConfigModal-c5689ab0.mjs → LinkTableFieldConfigModal-787bc55c.mjs} +44 -46
  37. package/LinkTableListPiece-8499a318.mjs +34 -0
  38. package/{ModalFormDemo-0eeea994.mjs → ModalFormDemo-977a49eb.mjs} +1 -1
  39. package/OnlCgformErpList-db45e22b.mjs +454 -0
  40. package/OnlCgformErpSubTable-54b50eec.mjs +403 -0
  41. package/OnlCgformInnerSubTable-fbca73e0.mjs +253 -0
  42. package/OnlCgformInnerTableList-782eaf04.mjs +444 -0
  43. package/OnlCgformTabList-a9e1e36a.mjs +395 -0
  44. package/OnlineAutoList-0583a910.mjs +479 -0
  45. package/{OnlineAutoModal-2a146238.mjs → OnlineAutoModal-510991eb.mjs} +59 -58
  46. package/{OnlineAutoTreeList-f8d0e100.mjs → OnlineAutoTreeList-89265688.mjs} +158 -153
  47. package/{OnlineCustomModal-456a85a6.mjs → OnlineCustomModal-518ad33c.mjs} +67 -66
  48. package/{OnlineDetailModal-f967f080.mjs → OnlineDetailModal-9675390d.mjs} +40 -39
  49. package/OnlineForm-1fa2d893.mjs +750 -0
  50. package/{OnlineFormDetail-1b216792.mjs → OnlineFormDetail-0e7294ca.mjs} +56 -55
  51. package/OnlineQueryForm-1bfc8320.mjs +386 -0
  52. package/{OnlineSearchFormItem-7c2ea9ed.mjs → OnlineSearchFormItem-0cc85a8a.mjs} +83 -87
  53. package/{OnlineSelectCascade-c7baf52b.mjs → OnlineSelectCascade-4265c95d.mjs} +31 -32
  54. package/{OnlineSubFormDetail-0aa4966c.mjs → OnlineSubFormDetail-f0d2c016.mjs} +53 -50
  55. package/OnlineTabAutoModal-6f636ee2.mjs +254 -0
  56. package/OnlineTabDetailModal-7356d3a8.mjs +223 -0
  57. package/OnlineTabForm-512d3951.mjs +766 -0
  58. package/OnlineTabFormDetail-5a70219d.mjs +324 -0
  59. package/{PageAttributeTable-811185fd.mjs → PageAttributeTable-965dc58e.mjs} +20 -20
  60. package/{ProcessOnlineForm-27be6f6f.mjs → ProcessOnlineForm-67558898.mjs} +39 -38
  61. package/{QueryTable-4ba771ef.mjs → QueryTable-eb9a5b21.mjs} +2 -2
  62. package/README.md +5 -2
  63. package/{SuperQuery-3821f984.mjs → SuperQuery-5d1ca957.mjs} +171 -173
  64. package/{SuperQueryValComponent-471110b5.mjs → SuperQueryValComponent-7ad86d4b.mjs} +1 -1
  65. package/SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs +101 -0
  66. package/cgformState-d9f8ec42.mjs +28 -0
  67. package/constant-754f1a9d.mjs +9 -0
  68. package/index-0e3ab3af.mjs +56 -0
  69. package/{index-074b92e5.mjs → index-49508cad.mjs} +4 -3
  70. package/index-b7a05eef.mjs +1496 -0
  71. package/main.index.js +1 -1
  72. package/package.json +1 -1
  73. package/style.css +1 -1
  74. package/useCgformList-423282b7.mjs +400 -0
  75. package/useCustomHook-acb00837.mjs +53 -0
  76. package/useExtendComponent-325fe3f1.mjs +3926 -0
  77. package/useListButton-cdbab702.mjs +676 -0
  78. package/useOnlinePopEvent-687070b7.mjs +19 -0
  79. package/useOnlineTest-e4bd8be3.mjs +42 -0
  80. package/{useSchemas-fc8d97ce.mjs → useSchemas-0433a403.mjs} +129 -109
  81. package/{useTableSync-dc333087.mjs → useTableSync-774c3774.mjs} +17 -13
  82. package/CgformModal-6938d8c2.mjs +0 -613
  83. package/EnhanceJsModal-0b133341.mjs +0 -233
  84. package/FieldExtendJsonModal-48f7d67f.mjs +0 -220
  85. package/FileSelectModal-64aaf623.mjs +0 -91
  86. package/JModalTip-abe1515a.mjs +0 -46
  87. package/LinkTableListPiece-34266919.mjs +0 -34
  88. package/OnlCgformErpList-7a0388d8.mjs +0 -425
  89. package/OnlCgformErpSubTable-fc6ade76.mjs +0 -388
  90. package/OnlineAutoList-85e6a30d.mjs +0 -472
  91. package/OnlineForm-630a22c2.mjs +0 -778
  92. package/OnlineQueryForm-1c5949a7.mjs +0 -378
  93. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +0 -101
  94. package/constant-fe20103a.mjs +0 -6
  95. package/index-6a09a912.mjs +0 -58
  96. package/index-9d32ae88.mjs +0 -313
  97. package/useCgformList-2d6a5955.mjs +0 -388
  98. package/useExtendComponent-48d37d9b.mjs +0 -3919
  99. package/useListButton-cef1371a.mjs +0 -656
  100. package/useOnlinePopEvent-e9a042f8.mjs +0 -19
  101. package/useOnlineTest-0df0ae86.mjs +0 -43
@@ -0,0 +1,324 @@
1
+ var G = Object.defineProperty;
2
+ var K = Object.getOwnPropertySymbols;
3
+ var X = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
4
+ var V = (a, r, n) => r in a ? G(a, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[r] = n, E = (a, r) => {
5
+ for (var n in r || (r = {}))
6
+ X.call(r, n) && V(a, n, r[n]);
7
+ if (K)
8
+ for (var n of K(r))
9
+ Y.call(r, n) && V(a, n, r[n]);
10
+ return a;
11
+ };
12
+ var v = (a, 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(a, 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 ie } from "/@/components/Loading";
31
+ import { getToken as ae } 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-424638eb.mjs";
35
+ import pe from "./OnlineSubFormDetail-f0d2c016.mjs";
36
+ import { i as ue } from "./useExtendComponent-325fe3f1.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-0e3ab3af.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-8499a318.mjs";
62
+ import "./OnlineSelectCascade-4265c95d.mjs";
63
+ import "./JModalTip-33c7dc44.mjs";
64
+ import "/@/hooks/web/useAppInject";
65
+ import "ant-design-vue";
66
+ import "@vueuse/core";
67
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
68
+ const ge = {
69
+ name: "OnlineTabFormDetail",
70
+ components: {
71
+ DetailForm: se,
72
+ Loading: ie,
73
+ PrinterOutlined: me,
74
+ OnlineSubFormDetail: pe
75
+ },
76
+ props: {
77
+ id: {
78
+ type: String,
79
+ default: ""
80
+ },
81
+ formTemplate: {
82
+ type: Number,
83
+ default: 1
84
+ },
85
+ disabled: {
86
+ type: Boolean,
87
+ default: !1
88
+ },
89
+ isTree: {
90
+ type: Boolean,
91
+ default: !1
92
+ },
93
+ pidField: {
94
+ type: String,
95
+ default: ""
96
+ },
97
+ submitTip: {
98
+ type: Boolean,
99
+ default: !0
100
+ },
101
+ showSub: {
102
+ type: Boolean,
103
+ default: !0
104
+ },
105
+ themeTemplate: {
106
+ type: String,
107
+ default: ""
108
+ },
109
+ tabIndex: {
110
+ type: String,
111
+ default: ""
112
+ }
113
+ },
114
+ emits: ["success", "rendered"],
115
+ setup(a, { emit: r }) {
116
+ 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");
117
+ $(
118
+ () => a.tabIndex,
119
+ (e, t) => {
120
+ T.value = e, t && J();
121
+ },
122
+ {
123
+ immediate: !0
124
+ }
125
+ );
126
+ const b = ee({
127
+ reportPrintShow: 0,
128
+ reportPrintUrl: "",
129
+ joinQuery: 0,
130
+ modelFullscreen: 0,
131
+ modalMinWidth: ""
132
+ }), { detailFormSchemas: x, hasSubTable: w, subTabInfo: l, refMap: P, showStatus: F, subDataSource: C, createFormSchemas: R, formSpan: A } = ue(a);
133
+ function I(e) {
134
+ let t = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 1, modalMinWidth: "" };
135
+ e && (t = JSON.parse(e)), Object.keys(t).map((i) => {
136
+ b[i] = t[i];
137
+ });
138
+ }
139
+ function M(e) {
140
+ return v(this, null, function* () {
141
+ 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);
142
+ });
143
+ }
144
+ function H(e, t) {
145
+ return v(this, null, function* () {
146
+ yield U(t), D(!0);
147
+ });
148
+ }
149
+ function L(e) {
150
+ let t = `/online/cgform/api/detail/${a.id}/${e}`;
151
+ return new Promise((i, d) => {
152
+ ce.get({ url: t }, { isTransformResponse: !1 }).then((O) => {
153
+ O.success ? i(O.result) : (d(), n.warning(O.message));
154
+ }).catch(() => {
155
+ d();
156
+ });
157
+ });
158
+ }
159
+ function D(e) {
160
+ Object.keys(F).map((t) => {
161
+ F[t] = e;
162
+ });
163
+ }
164
+ function J() {
165
+ D(!1), setTimeout(() => {
166
+ D(!0);
167
+ }, 300);
168
+ }
169
+ function U(e) {
170
+ return v(this, null, function* () {
171
+ let t = yield L(e.id);
172
+ s.value = E({}, t), j(t);
173
+ });
174
+ }
175
+ function j(e) {
176
+ e || (e = {});
177
+ let t = Object.keys(C.value);
178
+ if (t && t.length > 0) {
179
+ let i = {};
180
+ for (let d of t)
181
+ i[d] = e[d] || [];
182
+ C.value = i;
183
+ }
184
+ }
185
+ function z(e) {
186
+ return "online_" + e + ":";
187
+ }
188
+ function Q() {
189
+ let e = b.reportPrintUrl, t = s.value;
190
+ if (t) {
191
+ let i = t.id, d = ae();
192
+ le(e, i, d);
193
+ }
194
+ }
195
+ function W(e) {
196
+ let t = s.value;
197
+ return q(t, e);
198
+ }
199
+ function q(e, t) {
200
+ if (e) {
201
+ let i = e[t];
202
+ return !i && i !== 0 && (i = e[t.toLowerCase()], !i && i !== 0 && (i = e[t.toUpperCase()])), i;
203
+ }
204
+ return "";
205
+ }
206
+ return {
207
+ detailFormSchemas: x,
208
+ formData: s,
209
+ formSpan: A,
210
+ //主表
211
+ tableName: o,
212
+ loading: S,
213
+ //子表
214
+ hasSubTable: w,
215
+ subTabInfo: l,
216
+ subFormHeight: m,
217
+ subTableHeight: f,
218
+ refMap: P,
219
+ onTabChange: J,
220
+ //一对多子表
221
+ subDataSource: C,
222
+ getSubTableAuthPre: z,
223
+ //父组件调用
224
+ show: H,
225
+ createRootProperties: M,
226
+ // 扩展配置
227
+ onOpenReportPrint: Q,
228
+ onlineExtConfigJson: b,
229
+ getSubTableForeignKeyValue: W,
230
+ showStatus: F,
231
+ ERP: fe,
232
+ TAB: de,
233
+ subActiveKey: T
234
+ };
235
+ }
236
+ };
237
+ const he = ["id"], _e = {
238
+ key: 0,
239
+ style: { "text-align": "right", position: "absolute", top: "15px", right: "20px", "z-index": "999" }
240
+ }, ye = { key: 1 };
241
+ function Se(a, r, n, o, g, S) {
242
+ 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");
243
+ return p(), _("div", {
244
+ id: o.tableName + "_form"
245
+ }, [
246
+ o.formData.id && o.onlineExtConfigJson.reportPrintShow ? (p(), _("div", _e, [
247
+ y(h, {
248
+ title: "打印",
249
+ onClick: o.onOpenReportPrint,
250
+ style: { "font-size": "16px" }
251
+ }, null, 8, ["onClick"])
252
+ ])) : N("", !0),
253
+ y(x, {
254
+ class: "tabTheme",
255
+ onChange: o.onTabChange,
256
+ activeKey: o.subActiveKey,
257
+ "onUpdate:activeKey": r[0] || (r[0] = (l) => o.subActiveKey = l)
258
+ }, {
259
+ default: B(() => [
260
+ (p(), k(m, {
261
+ tab: "主表",
262
+ key: "-1"
263
+ }, {
264
+ default: B(() => [
265
+ y(s, {
266
+ schemas: o.detailFormSchemas,
267
+ data: o.formData,
268
+ span: o.formSpan
269
+ }, null, 8, ["schemas", "data", "span"])
270
+ ]),
271
+ _: 1
272
+ })),
273
+ o.hasSubTable && n.showSub ? (p(!0), _(te, { key: 0 }, oe(o.subTabInfo, (l, P) => (p(), k(m, {
274
+ tab: l.describe,
275
+ key: P + "",
276
+ forceRender: !0
277
+ }, {
278
+ default: B(() => [
279
+ l.relationType == 1 ? (p(), _("div", {
280
+ key: 0,
281
+ style: ne({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": o.subFormHeight + "px" })
282
+ }, [
283
+ y(f, {
284
+ table: l.key,
285
+ "form-template": n.formTemplate,
286
+ "main-id": o.getSubTableForeignKeyValue(l.foreignKey),
287
+ properties: l.properties
288
+ }, null, 8, ["table", "form-template", "main-id", "properties"])
289
+ ], 4)) : (p(), _("div", ye, [
290
+ o.showStatus[l.key] ? (p(), k(T, {
291
+ key: 0,
292
+ ref_for: !0,
293
+ ref: o.refMap[l.key],
294
+ toolbar: "",
295
+ "keep-source": "",
296
+ "row-number": "",
297
+ "row-selection": "",
298
+ height: o.subTableHeight,
299
+ disabled: !0,
300
+ columns: l.columns,
301
+ dataSource: o.subDataSource[l.key],
302
+ authPre: o.getSubTableAuthPre(l.key)
303
+ }, null, 8, ["height", "columns", "dataSource", "authPre"])) : (p(), k(b, {
304
+ key: 1,
305
+ spinning: !0
306
+ }))
307
+ ]))
308
+ ]),
309
+ _: 2
310
+ }, 1032, ["tab"]))), 128)) : N("", !0)
311
+ ]),
312
+ _: 1
313
+ }, 8, ["onChange", "activeKey"]),
314
+ y(w, {
315
+ loading: o.loading,
316
+ absolute: !1
317
+ }, null, 8, ["loading"]),
318
+ re(a.$slots, "bottom", {}, void 0, !0)
319
+ ], 8, he);
320
+ }
321
+ const mt = /* @__PURE__ */ be(ge, [["render", Se], ["__scopeId", "data-v-e0b07b2d"]]);
322
+ export {
323
+ mt as default
324
+ };
@@ -12,12 +12,12 @@ var E = (t, s, n) => s in t ? W(t, s, { enumerable: !0, configurable: !0, writab
12
12
  }, $ = (t, s) => G(t, U(s));
13
13
  import { defineComponent as Z, ref as ee, resolveComponent as y, openBlock as H, createElementBlock as te, Fragment as le, createVNode as w, mergeProps as ie, withCtx as K, createBlock as ae, createTextVNode as oe, createCommentVNode as de } from "vue";
14
14
  import { JVxeTypes as r } from "/@/components/jeecg/JVxeTable/types";
15
- import { u as ne } from "./useTableSync-dc333087.mjs";
16
- import se from "./LinkTableConfigModal-77d7c0b9.mjs";
17
- import ue from "./LinkTableFieldConfigModal-c5689ab0.mjs";
18
- import re from "./FieldExtendJsonModal-48f7d67f.mjs";
15
+ import { u as ne } from "./useTableSync-774c3774.mjs";
16
+ import se from "./LinkTableConfigModal-d4fbdef2.mjs";
17
+ import ue from "./LinkTableFieldConfigModal-787bc55c.mjs";
18
+ import re from "./FieldExtendJsonModal-a70a9ccd.mjs";
19
19
  import { useModal as V } from "/@/components/Modal";
20
- import { _ as fe } from "./index-6a09a912.mjs";
20
+ import { _ as fe } from "./index-0e3ab3af.mjs";
21
21
  import "./cgform.data-cbdd88c3.mjs";
22
22
  import "/@/utils/dict";
23
23
  import "/@/utils/dict/JDictSelectUtil";
@@ -26,6 +26,7 @@ import "lodash-es";
26
26
  import "/@/components/Form/index";
27
27
  import "/@/utils/http/axios";
28
28
  import "/@/hooks/web/useMessage";
29
+ import "./constant-754f1a9d.mjs";
29
30
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
30
31
  import "vue-router";
31
32
  const P = [
@@ -188,9 +189,9 @@ const P = [
188
189
  type: r.slot,
189
190
  slotName: "fieldConfig"
190
191
  }
191
- ]), s = ne(t), { tableRef: n, tables: b } = s;
192
+ ]), s = ne(t), { tableRef: n, tables: p } = s;
192
193
  function C({ cellValue: e, row: l }, a) {
193
- let { dbTable: u } = b, i = u.value.tableRef.getTableData({ rowIds: [l.id] })[0].dbType;
194
+ let { dbTable: u } = p, i = u.value.tableRef.getTableData({ rowIds: [l.id] })[0].dbType;
194
195
  e === "time" && i !== "string" ? a(!1, "当控件类型为时间时,数据库属性里的字段类型必须是String!") : e === "date" && i !== "Date" && i !== "Datetime" ? a(!1, "当控件类型为日期时,数据库属性里的字段类型必须是Date或Datetime!") : e === "datetime" && i !== "Datetime" ? a(!1, "当控件类型为datetime时,数据库属性里的字段类型必须是Datetime!") : a(!0);
195
196
  }
196
197
  function D(e) {
@@ -225,7 +226,7 @@ const P = [
225
226
  e.row.fieldShowType.indexOf("link_table") >= 0 ? J(e) : Q(e);
226
227
  }
227
228
  function J(e) {
228
- let { row: l } = e, { checkTable: a } = b;
229
+ let { row: l } = e, { checkTable: a } = p;
229
230
  if (a) {
230
231
  let u = a.value.tableRef.getTableData({ rowIds: [l.id] })[0];
231
232
  if (e.row.fieldShowType == "link_table") {
@@ -243,7 +244,7 @@ const P = [
243
244
  function B(e, l) {
244
245
  let u = n.value.getTableData().filter((g) => g.fieldShowType == "link_table"), i = {};
245
246
  if (u && u.length > 0) {
246
- let g = b.checkTable.value.tableRef.getTableData();
247
+ let g = p.checkTable.value.tableRef.getTableData();
247
248
  for (let T of u) {
248
249
  let h = g.filter((m) => m.dbFieldName == T.dbFieldName);
249
250
  if (h && h.length > 0) {
@@ -284,7 +285,6 @@ const P = [
284
285
  let d = JSON.parse(i);
285
286
  d.multiSelect ? o.multiSelect = d.multiSelect : o.multiSelect = !1, d.showType ? o.showType = d.showType : o.showType = "card", d.imageField ? o.imageField = d.imageField : o.imageField = "";
286
287
  } catch (d) {
287
- console.error("解析扩展参数出错", i);
288
288
  }
289
289
  return o;
290
290
  }
@@ -292,19 +292,19 @@ const P = [
292
292
  const { multiSelect: l, showType: a, imageField: u, fieldName: i } = e;
293
293
  let c = { showType: a, multiSelect: l, imageField: u }, f = [{ rowKey: e.rowKey, values: { fieldExtendJson: JSON.stringify(c), dbFieldTxt: e.dbFieldTxt } }];
294
294
  n.value.setValues(f);
295
- let { checkTable: o, dbTable: d } = b;
295
+ let { checkTable: o, dbTable: d } = p;
296
296
  if (d) {
297
- let p = [{ rowKey: e.rowKey, values: { dbFieldTxt: e.dbFieldTxt } }];
298
- d.value.tableRef.setValues(p);
297
+ let b = [{ rowKey: e.rowKey, values: { dbFieldTxt: e.dbFieldTxt } }];
298
+ d.value.tableRef.setValues(b);
299
299
  }
300
300
  if (o) {
301
- let p = e.titleField;
302
- e.otherFields && (p += "," + e.otherFields);
301
+ let b = e.titleField;
302
+ e.otherFields && (b += "," + e.otherFields);
303
303
  const { dictTable: g, dictField: T } = e;
304
304
  let h = {
305
305
  dictTable: g,
306
306
  dictField: T,
307
- dictText: p,
307
+ dictText: b,
308
308
  dbFieldName: i
309
309
  }, m = [{ rowKey: e.rowKey, values: h }];
310
310
  o.value.tableRef.setValues(m);
@@ -314,7 +314,7 @@ const P = [
314
314
  const { dbFieldTxt: l, dictTable: a, dictText: u, rowKey: i } = e;
315
315
  let c = [{ rowKey: i, values: { dbFieldTxt: l } }];
316
316
  n.value.setValues(c);
317
- let { checkTable: f, dbTable: o } = b;
317
+ let { checkTable: f, dbTable: o } = p;
318
318
  if (o) {
319
319
  let d = [{ rowKey: i, values: { dbFieldTxt: l, dbIsPersist: "0" } }];
320
320
  o.value.tableRef.setValues(d);
@@ -354,7 +354,7 @@ const P = [
354
354
  });
355
355
  }
356
356
  });
357
- function be(t, s, n, b, C, D) {
357
+ function pe(t, s, n, p, C, D) {
358
358
  const k = y("a-button"), F = y("JVxeTable"), _ = y("link-table-config-modal"), x = y("link-table-field-config-modal"), S = y("FieldExtendJsonModal");
359
359
  return H(), te(le, null, [
360
360
  w(F, ie({
@@ -398,7 +398,7 @@ function be(t, s, n, b, C, D) {
398
398
  }, null, 8, ["onRegister", "onSuccess"])
399
399
  ], 64);
400
400
  }
401
- const Ne = /* @__PURE__ */ fe(me, [["render", be], ["__scopeId", "data-v-08ae6456"]]);
401
+ const $e = /* @__PURE__ */ fe(me, [["render", pe], ["__scopeId", "data-v-08ae6456"]]);
402
402
  export {
403
- Ne as default
403
+ $e as default
404
404
  };
@@ -1,24 +1,24 @@
1
- var u = (e, r, o) => new Promise((p, d) => {
1
+ var u = (e, r, o) => new Promise((p, s) => {
2
2
  var l = (t) => {
3
3
  try {
4
- a(o.next(t));
5
- } catch (m) {
6
- d(m);
4
+ n(o.next(t));
5
+ } catch (a) {
6
+ s(a);
7
7
  }
8
8
  }, i = (t) => {
9
9
  try {
10
- a(o.throw(t));
11
- } catch (m) {
12
- d(m);
10
+ n(o.throw(t));
11
+ } catch (a) {
12
+ s(a);
13
13
  }
14
- }, a = (t) => t.done ? p(t.value) : Promise.resolve(t.value).then(l, i);
15
- a((o = o.apply(e, r)).next());
14
+ }, n = (t) => t.done ? p(t.value) : Promise.resolve(t.value).then(l, i);
15
+ n((o = o.apply(e, r)).next());
16
16
  });
17
- import { O as S } from "./OnlineForm-630a22c2.mjs";
18
- import { defineComponent as k, ref as s, watch as T, nextTick as w, resolveComponent as f, openBlock as h, createElementBlock as y, createVNode as _, withCtx as g, createTextVNode as N, createCommentVNode as C } from "vue";
17
+ import S from "./OnlineForm-1fa2d893.mjs";
18
+ import { defineComponent as k, ref as m, watch as T, nextTick as w, resolveComponent as f, openBlock as h, createElementBlock as y, createVNode as _, withCtx as g, createTextVNode as N, createCommentVNode as C } from "vue";
19
19
  import { defHttp as P } from "/@/utils/http/axios";
20
- import { g as b } from "./useExtendComponent-48d37d9b.mjs";
21
- import { _ as R } from "./index-6a09a912.mjs";
20
+ import { g as b } from "./useExtendComponent-325fe3f1.mjs";
21
+ import { _ as R } from "./index-0e3ab3af.mjs";
22
22
  import "/@/hooks/web/useMessage";
23
23
  import "/@/components/Form/index";
24
24
  import "lodash-es";
@@ -30,10 +30,11 @@ import "@ant-design/icons-vue";
30
30
  import "/@/hooks/core/useContext";
31
31
  import "/@/utils/mitt";
32
32
  import "/@/components/Modal";
33
+ import "./useCustomHook-acb00837.mjs";
33
34
  import "/@/utils/cache";
34
35
  import "/@/utils/common/compUtils";
35
36
  import "/@/store/modules/user";
36
- import "./constant-fe20103a.mjs";
37
+ import "./constant-754f1a9d.mjs";
37
38
  import "/@/components/Form/src/componentMap";
38
39
  import "/@/utils/propTypes";
39
40
  import "/@/components/Form/src/jeecg/components/JUpload";
@@ -46,9 +47,10 @@ import "/@/hooks/system/useListPage";
46
47
  import "vue-router";
47
48
  import "/@/components/Form/src/utils/Area";
48
49
  import "/@/components/Preview/index";
49
- import "./LinkTableListPiece-34266919.mjs";
50
- import "./OnlineSelectCascade-c7baf52b.mjs";
51
- import "./JModalTip-abe1515a.mjs";
50
+ import "./LinkTableListPiece-8499a318.mjs";
51
+ import "./OnlineSelectCascade-4265c95d.mjs";
52
+ import "./JModalTip-33c7dc44.mjs";
53
+ import "/@/hooks/web/useAppInject";
52
54
  import "ant-design-vue";
53
55
  import "@vueuse/core";
54
56
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
@@ -77,25 +79,24 @@ const L = k({
77
79
  }
78
80
  },
79
81
  setup(e) {
80
- const r = s(), o = s(""), p = s(1), d = s(!1), l = s(""), i = s(!1);
82
+ const r = m(), o = m(""), p = m(1), s = m(!1), l = m(""), i = m(!1);
81
83
  T(
82
84
  () => e.tableName,
83
85
  (c) => {
84
- c && a();
86
+ c && n();
85
87
  },
86
88
  { immediate: !0 }
87
89
  );
88
- function a() {
90
+ function n() {
89
91
  return u(this, null, function* () {
90
92
  i.value = !0;
91
93
  const c = `/online/cgform/api/getFormItemBytbname/${e.tableName}`, I = { taskId: e.taskId };
92
94
  try {
93
- let n = yield P.get({ url: c, params: I });
94
- console.log("动态表单查询结果是:", n), o.value = n.head.id, p.value = Number(n.head.formTemplate || 1), d.value = n.head.isTree === "Y", l.value = n.head.treeParentIdField || "", yield w(() => u(this, null, function* () {
95
- (yield b(r)).createRootProperties(n);
95
+ let d = yield P.get({ url: c, params: I });
96
+ o.value = d.head.id, p.value = Number(d.head.formTemplate || 1), s.value = d.head.isTree === "Y", l.value = d.head.treeParentIdField || "", yield w(() => u(this, null, function* () {
97
+ (yield b(r)).createRootProperties(d);
96
98
  }));
97
- } catch (n) {
98
- console.error("流程表单查询异常", n);
99
+ } catch (d) {
99
100
  }
100
101
  });
101
102
  }
@@ -107,38 +108,38 @@ const L = k({
107
108
  });
108
109
  });
109
110
  }
110
- const m = s(!1);
111
+ const a = m(!1);
111
112
  function F() {
112
113
  return u(this, null, function* () {
113
- m.value = !0, r.value.handleSubmit();
114
+ a.value = !0, r.value.handleSubmit();
114
115
  });
115
116
  }
116
117
  function v() {
117
- m.value = !1;
118
+ a.value = !1;
118
119
  }
119
120
  return {
120
121
  onlineFormCompRef: r,
121
122
  formId: o,
122
123
  formTemplate: p,
123
- isTreeForm: d,
124
+ isTreeForm: s,
124
125
  pidFieldName: l,
125
126
  renderSuccess: t,
126
127
  handleSuccess: v,
127
128
  handleSubmit: F,
128
- buttonLoading: m,
129
+ buttonLoading: a,
129
130
  spinLoading: i
130
131
  };
131
132
  }
132
- }), O = { class: "cust-onl-form" }, $ = {
133
+ }), $ = { class: "cust-onl-form" }, B = {
133
134
  key: 0,
134
135
  style: { width: "100%", "text-align": "center", "margin-top": "5px" }
135
136
  };
136
- function B(e, r, o, p, d, l) {
137
- const i = f("a-button"), a = f("online-form"), t = f("a-spin");
138
- return h(), y("div", O, [
137
+ function O(e, r, o, p, s, l) {
138
+ const i = f("a-button"), n = f("online-form"), t = f("a-spin");
139
+ return h(), y("div", $, [
139
140
  _(t, { spinning: e.spinLoading }, {
140
141
  default: g(() => [
141
- _(a, {
142
+ _(n, {
142
143
  ref: "onlineFormCompRef",
143
144
  id: e.formId,
144
145
  disabled: e.disabled,
@@ -149,7 +150,7 @@ function B(e, r, o, p, d, l) {
149
150
  onSuccess: e.handleSuccess
150
151
  }, {
151
152
  bottom: g(() => [
152
- !e.disabled && !e.spinLoading ? (h(), y("div", $, [
153
+ !e.disabled && !e.spinLoading ? (h(), y("div", B, [
153
154
  _(i, {
154
155
  preIcon: "ant-design:check",
155
156
  style: { width: "126px" },
@@ -171,7 +172,7 @@ function B(e, r, o, p, d, l) {
171
172
  }, 8, ["spinning"])
172
173
  ]);
173
174
  }
174
- const ve = /* @__PURE__ */ R(L, [["render", B], ["__scopeId", "data-v-530d8f91"]]);
175
+ const Se = /* @__PURE__ */ R(L, [["render", O], ["__scopeId", "data-v-530d8f91"]]);
175
176
  export {
176
- ve as default
177
+ Se as default
177
178
  };
@@ -12,8 +12,8 @@ var n = (e, t, l) => t in e ? y(e, t, { enumerable: !0, configurable: !0, writab
12
12
  }, s = (e, t) => c(e, f(t));
13
13
  import { defineComponent as g, ref as k, resolveComponent as v, openBlock as T, createBlock as _, mergeProps as V } from "vue";
14
14
  import { JVxeTypes as a } from "/@/components/jeecg/JVxeTable/types";
15
- import { u as w } from "./useTableSync-dc333087.mjs";
16
- import { _ as C } from "./index-6a09a912.mjs";
15
+ import { u as w } from "./useTableSync-774c3774.mjs";
16
+ import { _ as C } from "./index-0e3ab3af.mjs";
17
17
  import "./cgform.data-cbdd88c3.mjs";
18
18
  import "/@/utils/dict";
19
19
  import "/@/utils/dict/JDictSelectUtil";
package/README.md CHANGED
@@ -1,6 +1,5 @@
1
1
  # jeecg online form vue3
2
2
 
3
-
4
3
  ## Install
5
4
 
6
5
  ```bash
@@ -20,4 +19,8 @@ JeecgBoot 在线低代码功能
20
19
 
21
20
  ## 官网
22
21
 
23
- - http://www.jeecg.com
22
+ > 版本所属:北京国炬信息技术有限公司
23
+
24
+ - http://www.jeecg.com
25
+ - http://guojusoft.com
26
+