@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,253 @@
1
+ var A = (e, n, a) => new Promise((p, l) => {
2
+ var b = (t) => {
3
+ try {
4
+ r(a.next(t));
5
+ } catch (m) {
6
+ l(m);
7
+ }
8
+ }, u = (t) => {
9
+ try {
10
+ r(a.throw(t));
11
+ } catch (m) {
12
+ l(m);
13
+ }
14
+ }, r = (t) => t.done ? p(t.value) : Promise.resolve(t.value).then(b, u);
15
+ r((a = a.apply(e, n)).next());
16
+ });
17
+ import { defineComponent as x, ref as S, watch as ee, resolveComponent as d, openBlock as s, createBlock as h, mergeProps as te, createSlots as oe, withCtx as i, createElementBlock as w, Fragment as E, renderList as O, createTextVNode as g, toDisplayString as y, createCommentVNode as ne, createVNode as T, createElementVNode as B } from "vue";
18
+ import { BasicModal as ae } from "/@/components/Modal";
19
+ import ie from "./OnlineTabForm-b1dcd4b4.mjs";
20
+ import { b as re } from "./useExtendComponent-aa1cdfc8.mjs";
21
+ import me from "/@/components/jeecg/comment/CommentPanel.vue";
22
+ import { T as le } from "./constant-754f1a9d.mjs";
23
+ import { _ as de } from "./index-b70302f2.mjs";
24
+ import "/@/hooks/web/useMessage";
25
+ import "/@/components/Form/index";
26
+ import "/@/utils/http/axios";
27
+ import "lodash-es";
28
+ import "/@/utils";
29
+ import "/@/components/Loading";
30
+ import "/@/utils/auth";
31
+ import "@ant-design/icons-vue";
32
+ import "./useCustomHook-acb00837.mjs";
33
+ import "/@/utils/cache";
34
+ import "/@/utils/common/compUtils";
35
+ import "/@/store/modules/user";
36
+ import "/@/components/Form/src/componentMap";
37
+ import "/@/utils/propTypes";
38
+ import "/@/components/Form/src/jeecg/components/JUpload";
39
+ import "/@/views/system/user/user.api";
40
+ import "/@/utils/desform/customExpression";
41
+ import "/@/store/modules/permission";
42
+ import "/@/utils/dict/JDictSelectUtil";
43
+ import "/@/components/Table";
44
+ import "/@/hooks/system/useListPage";
45
+ import "vue-router";
46
+ import "/@/components/Form/src/utils/Area";
47
+ import "/@/components/Preview/index";
48
+ import "./LinkTableListPiece-7f793b08.mjs";
49
+ import "./OnlineSelectCascade-a05c30f4.mjs";
50
+ import "./JModalTip-e1938b49.mjs";
51
+ import "ant-design-vue";
52
+ import "@vueuse/core";
53
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
54
+ const se = x({
55
+ name: "OnlineTabAutoModal",
56
+ props: {
57
+ id: {
58
+ type: String,
59
+ default: ""
60
+ }
61
+ },
62
+ components: {
63
+ BasicModal: ae,
64
+ OnlineForm: ie,
65
+ CommentPanel: me
66
+ },
67
+ emits: ["success", "register", "formConfig"],
68
+ setup(e, { emit: n }) {
69
+ const a = S(), p = S([]), l = S("-1");
70
+ function b() {
71
+ a.value && a.value.reload();
72
+ }
73
+ const {
74
+ title: u,
75
+ modalWidth: r,
76
+ registerModal: t,
77
+ closeModal: m,
78
+ cgButtonList: v,
79
+ handleCgButtonClick: I,
80
+ disableSubmit: o,
81
+ handleSubmit: f,
82
+ submitLoading: V,
83
+ handleCancel: $,
84
+ handleFormConfig: L,
85
+ onlineFormCompRef: D,
86
+ formTemplate: P,
87
+ isTreeForm: j,
88
+ pidFieldName: W,
89
+ renderSuccess: U,
90
+ formRendered: q,
91
+ tableName: z,
92
+ formDataId: G,
93
+ enableComment: H,
94
+ onCloseEvent: F,
95
+ themeTemplate: J
96
+ } = re(!1, { emit: n }, b);
97
+ function K(c) {
98
+ n("success", c), m(), F(), _();
99
+ }
100
+ ee(() => e.id, Q, { immediate: !0 });
101
+ function Q() {
102
+ return A(this, null, function* () {
103
+ q.value = !1, e.id && (yield L(e.id, {}, (c) => {
104
+ const M = [], k = [], { head: R, schema: Y } = c, { properties: Z } = Y;
105
+ M.push({ tableName: R.tableName, tableTxt: R.tableTxt }), Object.entries(Z).forEach(([N, C]) => {
106
+ C.view == "tab" && k.push({ tableName: N, tableTxt: C.describe });
107
+ }), k.sort((N, C) => N.order - C.order), p.value = [...M, ...k];
108
+ }));
109
+ });
110
+ }
111
+ const X = (c) => String(c - 1), _ = () => {
112
+ setTimeout(() => {
113
+ l.value = "-1";
114
+ }, 500);
115
+ };
116
+ return {
117
+ title: u,
118
+ onlineFormCompRef: D,
119
+ renderSuccess: U,
120
+ registerModal: t,
121
+ handleSubmit: f,
122
+ handleSuccess: K,
123
+ handleCancel: $,
124
+ modalWidth: r,
125
+ formTemplate: P,
126
+ disableSubmit: o,
127
+ cgButtonList: v,
128
+ handleCgButtonClick: I,
129
+ isTreeForm: j,
130
+ pidFieldName: W,
131
+ submitLoading: V,
132
+ tableName: z,
133
+ formDataId: G,
134
+ enableComment: H,
135
+ commentPanelRef: a,
136
+ onCloseEvent: F,
137
+ themeTemplate: J,
138
+ tabNav: p,
139
+ tabValue: X,
140
+ tabIndex: l,
141
+ TAB: le,
142
+ restTabIndex: _
143
+ };
144
+ }
145
+ });
146
+ const pe = { class: "titleArea" }, ue = { class: "title" }, ce = { class: "right" };
147
+ function be(e, n, a, p, l, b) {
148
+ const u = d("a-radio-button"), r = d("a-radio-group"), t = d("a-button"), m = d("online-form"), v = d("comment-panel"), I = d("BasicModal");
149
+ return s(), h(I, te({
150
+ title: e.title,
151
+ onCancel: n[2] || (n[2] = () => {
152
+ e.onCloseEvent(), e.restTabIndex();
153
+ }),
154
+ enableComment: e.enableComment,
155
+ width: e.modalWidth
156
+ }, e.$attrs, {
157
+ height: 600,
158
+ onRegister: e.registerModal,
159
+ wrapClassName: "jeecg-online-modal",
160
+ onOk: e.handleSubmit
161
+ }), oe({
162
+ footer: i(() => [
163
+ (s(!0), w(E, null, O(e.cgButtonList, (o) => (s(), h(t, {
164
+ key: o.id,
165
+ type: "primary",
166
+ onClick: (f) => e.handleCgButtonClick(o.optType, o.buttonCode),
167
+ preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
168
+ }, {
169
+ default: i(() => [
170
+ g(y(o.buttonName), 1)
171
+ ]),
172
+ _: 2
173
+ }, 1032, ["onClick", "preIcon"]))), 128)),
174
+ e.disableSubmit ? ne("", !0) : (s(), h(t, {
175
+ key: "submit",
176
+ type: "primary",
177
+ onClick: e.handleSubmit,
178
+ loading: e.submitLoading
179
+ }, {
180
+ default: i(() => [
181
+ g("确定")
182
+ ]),
183
+ _: 1
184
+ }, 8, ["onClick", "loading"])),
185
+ T(t, {
186
+ key: "back",
187
+ onClick: n[1] || (n[1] = () => {
188
+ e.handleCancel(), e.restTabIndex();
189
+ })
190
+ }, {
191
+ default: i(() => [
192
+ g("关闭")
193
+ ]),
194
+ _: 1
195
+ })
196
+ ]),
197
+ comment: i(() => [
198
+ T(v, {
199
+ ref: "commentPanelRef",
200
+ tableName: e.tableName,
201
+ dataId: e.formDataId
202
+ }, null, 8, ["tableName", "dataId"])
203
+ ]),
204
+ default: i(() => [
205
+ T(m, {
206
+ ref: "onlineFormCompRef",
207
+ id: e.id,
208
+ disabled: e.disableSubmit,
209
+ "form-template": e.formTemplate,
210
+ isTree: e.isTreeForm,
211
+ pidField: e.pidFieldName,
212
+ themeTemplate: e.themeTemplate,
213
+ tabIndex: e.tabIndex,
214
+ onRendered: e.renderSuccess,
215
+ onSuccess: e.handleSuccess
216
+ }, null, 8, ["id", "disabled", "form-template", "isTree", "pidField", "themeTemplate", "tabIndex", "onRendered", "onSuccess"])
217
+ ]),
218
+ _: 2
219
+ }, [
220
+ e.themeTemplate === e.TAB ? {
221
+ name: "title",
222
+ fn: i(() => [
223
+ B("div", pe, [
224
+ B("div", ue, y(e.title), 1),
225
+ B("div", ce, [
226
+ T(r, {
227
+ value: e.tabIndex,
228
+ "onUpdate:value": n[0] || (n[0] = (o) => e.tabIndex = o)
229
+ }, {
230
+ default: i(() => [
231
+ (s(!0), w(E, null, O(e.tabNav, (o, f) => (s(), h(u, {
232
+ value: e.tabValue(f),
233
+ key: o.tableName
234
+ }, {
235
+ default: i(() => [
236
+ g(y(o.tableTxt), 1)
237
+ ]),
238
+ _: 2
239
+ }, 1032, ["value"]))), 128))
240
+ ]),
241
+ _: 1
242
+ }, 8, ["value"])
243
+ ])
244
+ ])
245
+ ]),
246
+ key: "0"
247
+ } : void 0
248
+ ]), 1040, ["title", "enableComment", "width", "onRegister", "onOk"]);
249
+ }
250
+ const et = /* @__PURE__ */ de(se, [["render", be], ["__scopeId", "data-v-fbfa495c"]]);
251
+ export {
252
+ et as default
253
+ };
@@ -0,0 +1,222 @@
1
+ var F = (e, o, a) => new Promise((d, i) => {
2
+ var u = (t) => {
3
+ try {
4
+ n(a.next(t));
5
+ } catch (r) {
6
+ i(r);
7
+ }
8
+ }, p = (t) => {
9
+ try {
10
+ n(a.throw(t));
11
+ } catch (r) {
12
+ i(r);
13
+ }
14
+ }, n = (t) => t.done ? d(t.value) : Promise.resolve(t.value).then(u, p);
15
+ n((a = a.apply(e, o)).next());
16
+ });
17
+ import { defineComponent as H, ref as C, watch as J, resolveComponent as s, openBlock as I, createBlock as M, mergeProps as K, withCtx as m, createElementVNode as N, toDisplayString as R, createVNode as f, createElementBlock as Q, Fragment as X, renderList as Y, createTextVNode as S } from "vue";
18
+ import { BasicModal as Z } from "/@/components/Modal";
19
+ import x from "./OnlineTabFormDetail-8e494a96.mjs";
20
+ import { b as ee } from "./useExtendComponent-aa1cdfc8.mjs";
21
+ import te from "/@/components/jeecg/comment/CommentPanel.vue";
22
+ import { T as oe } from "./constant-754f1a9d.mjs";
23
+ import { _ as ae } from "./index-b70302f2.mjs";
24
+ import "/@/hooks/web/useMessage";
25
+ import "/@/components/Loading";
26
+ import "/@/utils/auth";
27
+ import "/@/utils";
28
+ import "@ant-design/icons-vue";
29
+ import "./DetailForm-2901d215.mjs";
30
+ import "/@/utils/propTypes";
31
+ import "/@/utils/dict";
32
+ import "/@/utils/dict/JDictSelectUtil";
33
+ import "/@/utils/dict/index";
34
+ import "/@/api/common/api";
35
+ import "/@/utils/http/axios";
36
+ import "/@/components/Form/src/utils/Area";
37
+ import "/@/utils/common/compUtils";
38
+ import "/@/components/Preview/index";
39
+ import "/@/components/Markdown";
40
+ import "./OnlineSubFormDetail-583d01eb.mjs";
41
+ import "/@/components/Form/index";
42
+ import "/@/components/Form/src/componentMap";
43
+ import "lodash-es";
44
+ import "/@/components/Form/src/jeecg/components/JUpload";
45
+ import "/@/views/system/user/user.api";
46
+ import "/@/store/modules/user";
47
+ import "/@/utils/desform/customExpression";
48
+ import "/@/store/modules/permission";
49
+ import "/@/components/Table";
50
+ import "/@/hooks/system/useListPage";
51
+ import "vue-router";
52
+ import "./LinkTableListPiece-7f793b08.mjs";
53
+ import "./OnlineSelectCascade-a05c30f4.mjs";
54
+ import "./JModalTip-e1938b49.mjs";
55
+ import "ant-design-vue";
56
+ import "@vueuse/core";
57
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
58
+ const ne = H({
59
+ name: "OnlineTabDetailModal",
60
+ props: {
61
+ id: {
62
+ type: String,
63
+ required: !1,
64
+ default: ""
65
+ }
66
+ },
67
+ components: {
68
+ BasicModal: Z,
69
+ OnlineFormDetail: x,
70
+ CommentPanel: te
71
+ },
72
+ emits: ["success", "register", "formConfig"],
73
+ setup(e, { emit: o }) {
74
+ const a = C(), d = C([]), i = C("-1");
75
+ function u() {
76
+ a.value && a.value.reload();
77
+ }
78
+ const {
79
+ title: p,
80
+ modalWidth: n,
81
+ registerModal: t,
82
+ cgButtonList: r,
83
+ handleCgButtonClick: c,
84
+ disableSubmit: h,
85
+ handleSubmit: l,
86
+ submitLoading: _,
87
+ handleCancel: k,
88
+ handleFormConfig: D,
89
+ onlineFormCompRef: y,
90
+ formTemplate: V,
91
+ isTreeForm: O,
92
+ pidFieldName: $,
93
+ renderSuccess: E,
94
+ formRendered: P,
95
+ showSub: A,
96
+ tableName: L,
97
+ formDataId: j,
98
+ enableComment: W,
99
+ themeTemplate: q
100
+ } = ee(!1, { emit: o }, u);
101
+ J(() => e.id, U, { immediate: !0 });
102
+ function U() {
103
+ return F(this, null, function* () {
104
+ P.value = !1, e.id && (yield D(e.id, {}, (g) => {
105
+ const w = [], T = [], { head: B, schema: z } = g, { properties: G } = z;
106
+ w.push({ tableName: B.tableName, tableTxt: B.tableTxt }), Object.entries(G).forEach(([v, b]) => {
107
+ b.view == "tab" && T.push({ tableName: v, tableTxt: b.describe });
108
+ }), T.sort((v, b) => v.order - b.order), d.value = [...w, ...T];
109
+ }));
110
+ });
111
+ }
112
+ return {
113
+ title: p,
114
+ onlineFormCompRef: y,
115
+ renderSuccess: E,
116
+ registerModal: t,
117
+ handleSubmit: l,
118
+ handleCancel: k,
119
+ modalWidth: n,
120
+ formTemplate: V,
121
+ disableSubmit: h,
122
+ cgButtonList: r,
123
+ handleCgButtonClick: c,
124
+ isTreeForm: O,
125
+ pidFieldName: $,
126
+ submitLoading: _,
127
+ showSub: A,
128
+ tableName: L,
129
+ formDataId: j,
130
+ enableComment: W,
131
+ commentPanelRef: a,
132
+ themeTemplate: q,
133
+ tabNav: d,
134
+ tabValue: (g) => String(g - 1),
135
+ tabIndex: i,
136
+ TAB: oe,
137
+ restTabIndex: () => {
138
+ setTimeout(() => {
139
+ i.value = "-1";
140
+ }, 500);
141
+ }
142
+ };
143
+ }
144
+ });
145
+ const re = { class: "titleArea" }, me = { class: "title" }, ie = { class: "right" };
146
+ function le(e, o, a, d, i, u) {
147
+ const p = s("a-radio-button"), n = s("a-radio-group"), t = s("a-button"), r = s("online-form-detail"), c = s("comment-panel"), h = s("BasicModal");
148
+ return I(), M(h, K({
149
+ title: e.title,
150
+ onCancel: o[2] || (o[2] = () => {
151
+ e.restTabIndex();
152
+ }),
153
+ width: e.modalWidth,
154
+ height: 600,
155
+ enableComment: e.enableComment,
156
+ defaultFullscreen: !1
157
+ }, e.$attrs, {
158
+ onRegister: e.registerModal,
159
+ wrapClassName: "jeecg-online-detail-modal"
160
+ }), {
161
+ title: m(() => [
162
+ N("div", re, [
163
+ N("div", me, R(e.title), 1),
164
+ N("div", ie, [
165
+ f(n, {
166
+ value: e.tabIndex,
167
+ "onUpdate:value": o[0] || (o[0] = (l) => e.tabIndex = l)
168
+ }, {
169
+ default: m(() => [
170
+ (I(!0), Q(X, null, Y(e.tabNav, (l, _) => (I(), M(p, {
171
+ value: e.tabValue(_),
172
+ key: l.tableName
173
+ }, {
174
+ default: m(() => [
175
+ S(R(l.tableTxt), 1)
176
+ ]),
177
+ _: 2
178
+ }, 1032, ["value"]))), 128))
179
+ ]),
180
+ _: 1
181
+ }, 8, ["value"])
182
+ ])
183
+ ])
184
+ ]),
185
+ footer: m(() => [
186
+ f(t, {
187
+ key: "back",
188
+ onClick: o[1] || (o[1] = () => {
189
+ e.handleCancel(), e.restTabIndex();
190
+ })
191
+ }, {
192
+ default: m(() => [
193
+ S("关闭")
194
+ ]),
195
+ _: 1
196
+ })
197
+ ]),
198
+ comment: m(() => [
199
+ f(c, {
200
+ ref: "commentPanelRef",
201
+ tableName: e.tableName,
202
+ dataId: e.formDataId
203
+ }, null, 8, ["tableName", "dataId"])
204
+ ]),
205
+ default: m(() => [
206
+ f(r, {
207
+ ref: "onlineFormCompRef",
208
+ id: e.id,
209
+ "form-template": e.formTemplate,
210
+ "show-sub": e.showSub,
211
+ themeTemplate: e.themeTemplate,
212
+ tabIndex: e.tabIndex,
213
+ onRendered: e.renderSuccess
214
+ }, null, 8, ["id", "form-template", "show-sub", "themeTemplate", "tabIndex", "onRendered"])
215
+ ]),
216
+ _: 1
217
+ }, 16, ["title", "width", "enableComment", "onRegister"]);
218
+ }
219
+ const et = /* @__PURE__ */ ae(ne, [["render", le], ["__scopeId", "data-v-b4eb128e"]]);
220
+ export {
221
+ et as default
222
+ };