@jeecg/online 3.9.0-beta → 3.9.1-RC

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/{AccountLoginForm-cbc75a49.mjs → AccountLoginForm-BXyvcSds.mjs} +50 -53
  2. package/{AiModal-5bec5218.mjs → AiModal-BgVzn074.mjs} +18 -20
  3. package/{AppForgetPassword-dbc8377e.mjs → AppForgetPassword-B-2CvL62.mjs} +59 -63
  4. package/AppLogin-BMBmx2oq.mjs +272 -0
  5. package/AppLoginHeader-BtKXOMRR.mjs +23 -0
  6. package/{AppNameEmail-7c6a1406.mjs → AppNameEmail-DCqMNjaK.mjs} +20 -24
  7. package/{AppRegister-29a00a9d.mjs → AppRegister-C5iH-245.mjs} +33 -37
  8. package/{AppTenant-92890383.mjs → AppTenant-etPXeUcW.mjs} +49 -55
  9. package/AppThirdForm-NMob-JaS.mjs +185 -0
  10. package/AuthButtonConfig-zUioaGwn.mjs +155 -0
  11. package/AuthButtonTree-DYZwphe6.mjs +159 -0
  12. package/{AuthDataConfig-c978c469.mjs → AuthDataConfig-uQ5WT7rx.mjs} +57 -62
  13. package/AuthDataTree-Cr28_YKx.mjs +134 -0
  14. package/{AuthFieldConfig-558283bc.mjs → AuthFieldConfig-DjdaPIXF.mjs} +95 -101
  15. package/{AuthFieldTree-106db4e2.mjs → AuthFieldTree-DHmnDQ0I.mjs} +94 -99
  16. package/AuthManagerDrawer-DUb6QylS.mjs +108 -0
  17. package/{AuthSetterModal-90a76886.mjs → AuthSetterModal-BBFdNv1M.mjs} +89 -100
  18. package/BuiltInButtonList-Cgg5maxI.mjs +4 -0
  19. package/{BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs → BuiltInButtonList.vue_vue_type_script_setup_true_lang-5-4hU0bi.mjs} +8 -8
  20. package/{CgformAddressModal-690b8940.mjs → CgformAddressModal-BVoww1fk.mjs} +57 -63
  21. package/CgformCopyList-7e96RMbJ.mjs +176 -0
  22. package/{CgformModal-b04a492a.mjs → CgformModal-RH-Tr08S.mjs} +240 -241
  23. package/{CgreportAigcModal-8fdcbd31.mjs → CgreportAigcModal-rEfIpPF9.mjs} +35 -38
  24. package/{CgreportModal-da62724c.mjs → CgreportModal-Bajb_3ku.mjs} +49 -50
  25. package/{CheckDictTable-7320189b.mjs → CheckDictTable-BxJFrctQ.mjs} +44 -52
  26. package/{CodeFileListModal-e5ec210d.mjs → CodeFileListModal-C3uqsFvi.mjs} +32 -36
  27. package/{CodeFileViewModal-09053f3a.mjs → CodeFileViewModal-bEtZDbAY.mjs} +78 -81
  28. package/CodeGeneratorModal-ZWEIXRbY.mjs +291 -0
  29. package/{CustomButtonList-704e6d1c.mjs → CustomButtonList-7wjonhtu.mjs} +82 -85
  30. package/{DBAttributeTable-4a65c897.mjs → DBAttributeTable-DA2XttIQ.mjs} +50 -60
  31. package/{DbToOnlineModal-cc398c70.mjs → DbToOnlineModal-CDVqmEJH.mjs} +43 -45
  32. package/DetailForm-CnfJBMys.mjs +472 -0
  33. package/{DropMenuItem-884f9464.mjs → DropMenuItem-D8YWMle-.mjs} +8 -11
  34. package/EnhanceJavaModal-W8_oGY-U.mjs +255 -0
  35. package/{EnhanceJsHistory-95ca545c.mjs → EnhanceJsHistory-ZzXedCNI.mjs} +48 -49
  36. package/{EnhanceJsModal-742b0ee2.mjs → EnhanceJsModal-Djb5ItH4.mjs} +95 -104
  37. package/EnhanceSqlModal-DxPdRcQc.mjs +258 -0
  38. package/ErrorTip-BDS1uxkW.mjs +4 -0
  39. package/{ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs → ErrorTip.vue_vue_type_script_setup_true_lang-Bl9zMjvW.mjs} +11 -11
  40. package/ExtendConfigModal-CxJIWvV4.mjs +102 -0
  41. package/{FieldExtendJsonModal-fe7f7902.mjs → FieldExtendJsonModal-Bvmbb6yd.mjs} +27 -30
  42. package/{FileSelectModal-cf41604b.mjs → FileSelectModal-DXqL5msQ.mjs} +27 -31
  43. package/{ForeignKeyTable-4a59ded1.mjs → ForeignKeyTable-D6AlLbfd.mjs} +17 -25
  44. package/{IndexTable-87d67830.mjs → IndexTable-B7ef6Aox.mjs} +9 -17
  45. package/JModalTip-DHrn6ksJ.mjs +46 -0
  46. package/{JOnlineSearchSelect-d8c57973.mjs → JOnlineSearchSelect-CAv2Dm9V.mjs} +21 -23
  47. package/{LeftDepart-463bf432.mjs → LeftDepart-BC1jpYJP.mjs} +8 -11
  48. package/{LeftRole-1631d3d4.mjs → LeftRole-sq_2p6Qk.mjs} +16 -19
  49. package/{LeftUser-5774a5db.mjs → LeftUser-CYh4PBgd.mjs} +7 -10
  50. package/{LinkTableConfigModal-1bab1423.mjs → LinkTableConfigModal-BOWs0A5-.mjs} +38 -40
  51. package/{LinkTableFieldConfigModal-49470140.mjs → LinkTableFieldConfigModal-D7FTBP3E.mjs} +50 -52
  52. package/LinkTableListPiece-Bfu6vfo0.mjs +31 -0
  53. package/{ModalFormDemo-dbd0aa28.mjs → ModalFormDemo-C1qQT6lj.mjs} +13 -16
  54. package/{OnlCgformErpList-35ad1d6e.mjs → OnlCgformErpList-CavWG8GK.mjs} +139 -200
  55. package/OnlCgformErpSubTable-D3QM8oWi.mjs +382 -0
  56. package/OnlCgformInnerSubTable-BqmooFqy.mjs +213 -0
  57. package/OnlCgformInnerTableList-Dr1KdoSC.mjs +421 -0
  58. package/OnlCgformTabList-DCy3oudh.mjs +371 -0
  59. package/OnlineAutoList-C4pkORGb.mjs +500 -0
  60. package/OnlineAutoModal-Cuf_wcbU.mjs +222 -0
  61. package/{OnlineAutoTreeList-5153f09d.mjs → OnlineAutoTreeList-LDE9Sm7X.mjs} +124 -182
  62. package/OnlineCustomModal-Jz4MxkH0.mjs +209 -0
  63. package/OnlineDetailModal-So0YEah1.mjs +160 -0
  64. package/{OnlineForm-20604e4f.mjs → OnlineForm-CvcbzRIZ.mjs} +47 -74
  65. package/OnlineFormDetail-KaD6cV31.mjs +321 -0
  66. package/OnlineFormUrlAdd-CktstdFD.mjs +86 -0
  67. package/OnlineFormUrlDetail-C4qptuTQ.mjs +85 -0
  68. package/OnlineFormUrlEdit-C06vTiM_.mjs +84 -0
  69. package/{OnlineFormUrlSuccess-302ecb21.mjs → OnlineFormUrlSuccess-Cvbte2lW.mjs} +27 -30
  70. package/{OnlineQueryForm-5eeceb51.mjs → OnlineQueryForm-6E1IRi95.mjs} +139 -168
  71. package/{OnlineSearchFormItem-5536a1a6.mjs → OnlineSearchFormItem-CdRuXQPu.mjs} +112 -118
  72. package/{OnlineSelectCascade-180e8c9a.mjs → OnlineSelectCascade-O7iXAgdH.mjs} +31 -33
  73. package/OnlineSubFormDetail-DcMpAk8Z.mjs +109 -0
  74. package/OnlineTabAutoModal-DSOVDlOz.mjs +285 -0
  75. package/OnlineTabDetailModal-OXQ_2VLI.mjs +187 -0
  76. package/{OnlineTabForm-827e7089.mjs → OnlineTabForm-Cg3_IX2H.mjs} +228 -254
  77. package/OnlineTabFormDetail-BgFkUkva.mjs +299 -0
  78. package/{PageAttributeTable-5703e2f1.mjs → PageAttributeTable-C803SekP.mjs} +46 -59
  79. package/{PhoneLoginForm-15dc68ed.mjs → PhoneLoginForm-8a0Uehov.mjs} +40 -43
  80. package/ProcessOnlineForm-COeEaGc8.mjs +182 -0
  81. package/{QueryTable-26c9ee22.mjs → QueryTable-DHYaYbKC.mjs} +23 -31
  82. package/SetSwitchOptions-B4Q6l-54.mjs +58 -0
  83. package/ShareAddView-CxZuNTQB.mjs +11 -0
  84. package/ShareEditView-Dqdzjmpc.mjs +17 -0
  85. package/ShareView-B9TiMmkR.mjs +4 -0
  86. package/{ShareView.vue_vue_type_script_setup_true_lang-d1597c0d.mjs → ShareView.vue_vue_type_script_setup_true_lang-BCdP9KMD.mjs} +21 -21
  87. package/SingleView-BDXeMLV-.mjs +4 -0
  88. package/{SingleView.vue_vue_type_style_index_0_lang-914483d0.mjs → SingleView.vue_vue_type_style_index_0_lang-D3QcMcYT.mjs} +27 -27
  89. package/{SuperQuery-c95f86ee.mjs → SuperQuery-CgkajEWI.mjs} +342 -371
  90. package/SuperQueryValComponent-UO10kRg5.mjs +4 -0
  91. package/TaskOpinionList-C8rcU6ee.mjs +10 -0
  92. package/{aiModal-b44fa135.mjs → aiModal-DTU-w5Xx.mjs} +33 -36
  93. package/{enhance.data-6601ff44.mjs → enhance.data-DRCzy5Bx.mjs} +5 -5
  94. package/index-0kQBIHx0.mjs +58 -0
  95. package/{index-02f6dc7d.mjs → index-B1H394jP.mjs} +35 -38
  96. package/index-CXD6__bJ.mjs +195 -0
  97. package/{index-abbfd327.mjs → index-DIjQbz6A.mjs} +37 -41
  98. package/{index-30da2fc0.mjs → index-Dbr1qL3H.mjs} +474 -609
  99. package/{index-19eaef11.mjs → index-dmWvLQET.mjs} +2 -2
  100. package/{index-391aec04.mjs → index-pGbTziKP.mjs} +32 -44
  101. package/{index-22a99f2e.mjs → index-siZ6JDIW.mjs} +17 -20
  102. package/main.index.js +8 -9
  103. package/online.css +1 -0
  104. package/package.json +1 -1
  105. package/{useCgformList-aaa30c8c.mjs → useCgformList-_o9GP7ca.mjs} +3 -3
  106. package/useExtendComponent-P9wrWQwT.mjs +4479 -0
  107. package/{useListButton-308458cd.mjs → useListButton-DyOAscwT.mjs} +7 -9
  108. package/{useSchemas-b074f3a1.mjs → useSchemas-svH7q1tm.mjs} +69 -42
  109. package/{useTableSync-dbfba20e.mjs → useTableSync-BAWujyoc.mjs} +1 -1
  110. package/{utils-9fce7606.mjs → utils-DcQ65Qmw.mjs} +1 -1
  111. package/AppLogin-786949d3.mjs +0 -287
  112. package/AppLoginHeader-37034b2f.mjs +0 -27
  113. package/AppThirdForm-760064e5.mjs +0 -189
  114. package/AuthButtonConfig-78180aec.mjs +0 -160
  115. package/AuthButtonTree-62c8e70c.mjs +0 -165
  116. package/AuthDataTree-0647a06c.mjs +0 -139
  117. package/AuthManagerDrawer-ec5190d2.mjs +0 -119
  118. package/BuiltInButtonList-bb6cf95c.mjs +0 -10
  119. package/CgformCopyList-af9c99a4.mjs +0 -260
  120. package/CodeGeneratorModal-aba790e3.mjs +0 -298
  121. package/DetailForm-a2bf8c33.mjs +0 -498
  122. package/EnhanceJavaModal-fe8d475d.mjs +0 -264
  123. package/EnhanceSqlModal-6e36bc4f.mjs +0 -268
  124. package/ErrorTip-bb616e32.mjs +0 -7
  125. package/ExtendConfigModal-74d657c7.mjs +0 -117
  126. package/JModalTip-5401f43d.mjs +0 -49
  127. package/LinkTableListPiece-47f4286c.mjs +0 -34
  128. package/OnlCgformErpSubTable-5093d438.mjs +0 -444
  129. package/OnlCgformInnerSubTable-f1dc90db.mjs +0 -270
  130. package/OnlCgformInnerTableList-1b82a7da.mjs +0 -482
  131. package/OnlCgformTabList-d66d1261.mjs +0 -432
  132. package/OnlineAutoList-fbba2a52.mjs +0 -559
  133. package/OnlineAutoModal-68909692.mjs +0 -261
  134. package/OnlineCustomModal-b5f8c799.mjs +0 -247
  135. package/OnlineDetailModal-ac078a9a.mjs +0 -199
  136. package/OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs +0 -1
  137. package/OnlineFormDetail-719118b6.mjs +0 -350
  138. package/OnlineFormUrlAdd-5b675f48.mjs +0 -117
  139. package/OnlineFormUrlDetail-91156bf2.mjs +0 -122
  140. package/OnlineFormUrlEdit-fb810de6.mjs +0 -115
  141. package/OnlineSubFormDetail-4d64e7be.mjs +0 -148
  142. package/OnlineTabAutoModal-c127ed50.mjs +0 -320
  143. package/OnlineTabDetailModal-e4e9f7e3.mjs +0 -227
  144. package/OnlineTabFormDetail-0f96377e.mjs +0 -329
  145. package/ProcessOnlineForm-1fcbe0af.mjs +0 -219
  146. package/SetSwitchOptions-a3428177.mjs +0 -62
  147. package/ShareAddView-0512e884.mjs +0 -89
  148. package/ShareEditView-b89dfbd3.mjs +0 -95
  149. package/ShareView-faf1a0ab.mjs +0 -83
  150. package/SingleView-21d3a558.mjs +0 -71
  151. package/SuperQueryValComponent-5a9ccfd4.mjs +0 -8
  152. package/TaskOpinionList-73ecb3c8.mjs +0 -101
  153. package/dayjs.min-eea532a3.mjs +0 -301
  154. package/index-26940246.mjs +0 -219
  155. package/index-94b6319e.mjs +0 -57
  156. package/style.css +0 -1
  157. package/useExtendComponent-ad499dff.mjs +0 -4164
  158. /package/{SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs → SuperQueryValComponent.vue_vue_type_script_lang-BM-iwlLi.mjs} +0 -0
  159. /package/{auth.api-53df4c33.mjs → auth.api-2QmzY0ji.mjs} +0 -0
  160. /package/{auth.data-e44c7975.mjs → auth.data-Cp8D9uZ7.mjs} +0 -0
  161. /package/{button.data-fe45d43b.mjs → button.data-CyUX77GQ.mjs} +0 -0
  162. /package/{cgform.data-0ca62d09.mjs → cgform.data-CviSPXEg.mjs} +0 -0
  163. /package/{cgformState-d9f8ec42.mjs → cgformState-CUyRXfhW.mjs} +0 -0
  164. /package/{constant-fa63bd66.mjs → constant-DnbpmwZg.mjs} +0 -0
  165. /package/{enhance.api-138e6826.mjs → enhance.api-BqHb-YGL.mjs} +0 -0
  166. /package/{index-5e89258d.mjs → index-aVGkB_J9.mjs} +0 -0
  167. /package/{shareStore-7de6c7a6.mjs → shareStore-k-kzyga5.mjs} +0 -0
  168. /package/{useCustomHook-3a17a690.mjs → useCustomHook-B35kFqDB.mjs} +0 -0
  169. /package/{useFormUrl-2ee1a82d.mjs → useFormUrl-D8ASmaz6.mjs} +0 -0
  170. /package/{useOnlinePopEvent-687070b7.mjs → useOnlinePopEvent-FOvbs0Ta.mjs} +0 -0
  171. /package/{useOnlineTest-e4bd8be3.mjs → useOnlineTest-_onDRxjY.mjs} +0 -0
@@ -1,227 +0,0 @@
1
- var F = (e, t, a) => new Promise((s, i) => {
2
- var b = (o) => {
3
- try {
4
- r(a.next(o));
5
- } catch (n) {
6
- i(n);
7
- }
8
- }, p = (o) => {
9
- try {
10
- r(a.throw(o));
11
- } catch (n) {
12
- i(n);
13
- }
14
- }, r = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(b, p);
15
- r((a = a.apply(e, t)).next());
16
- });
17
- import { defineComponent as z, ref as v, watch as G, resolveComponent as d, openBlock as I, createBlock as M, mergeProps as J, withCtx as m, createElementVNode as N, toDisplayString as R, createVNode as f, createElementBlock as K, Fragment as Q, renderList as X, createTextVNode as S } from "vue";
18
- import { BasicModal as Y } from "/@/components/Modal";
19
- import Z from "./OnlineTabFormDetail-0f96377e.mjs";
20
- import { b as ee } from "./useExtendComponent-ad499dff.mjs";
21
- import te from "/@/components/jeecg/comment/CommentPanel.vue";
22
- import { T as oe } from "./constant-fa63bd66.mjs";
23
- import { _ as ae } from "./index-94b6319e.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-a2bf8c33.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-4d64e7be.mjs";
41
- import "/@/components/Form/index";
42
- import "/@/hooks/web/useAppInject";
43
- import "/@/utils/uuid";
44
- import "/@/components/Form/src/componentMap";
45
- import "lodash-es";
46
- import "/@/components/Form/src/jeecg/components/JUpload";
47
- import "/@/utils/is";
48
- import "/@/views/system/user/user.api";
49
- import "./dayjs.min-eea532a3.mjs";
50
- import "/@/store/modules/user";
51
- import "/@/utils/desform/customExpression";
52
- import "/@/store/modules/permission";
53
- import "/@/components/Table";
54
- import "/@/hooks/system/useListPage";
55
- import "vue-router";
56
- import "./LinkTableListPiece-47f4286c.mjs";
57
- import "/@/assets/images/placeholderImage.png";
58
- import "./OnlineSelectCascade-180e8c9a.mjs";
59
- import "./JModalTip-5401f43d.mjs";
60
- import "ant-design-vue";
61
- import "@vueuse/core";
62
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
63
- const re = z({
64
- name: "OnlineTabDetailModal",
65
- props: {
66
- id: {
67
- type: String,
68
- required: !1,
69
- default: ""
70
- }
71
- },
72
- components: {
73
- BasicModal: Y,
74
- OnlineFormDetail: Z,
75
- CommentPanel: te
76
- },
77
- emits: ["success", "register", "formConfig"],
78
- setup(e, { emit: t }) {
79
- const a = v(), s = v([]), i = v("-1");
80
- function b() {
81
- a.value && a.value.reload();
82
- }
83
- const {
84
- title: p,
85
- modalWidth: r,
86
- registerModal: o,
87
- cgButtonList: n,
88
- handleCgButtonClick: c,
89
- disableSubmit: h,
90
- handleSubmit: l,
91
- submitLoading: g,
92
- handleCancel: k,
93
- handleFormConfig: D,
94
- onlineFormCompRef: y,
95
- formTemplate: V,
96
- isTreeForm: O,
97
- pidFieldName: $,
98
- renderSuccess: E,
99
- formRendered: P,
100
- showSub: A,
101
- tableName: L,
102
- formDataId: j,
103
- enableComment: W,
104
- themeTemplate: q
105
- } = ee(!1, { emit: t }, b);
106
- G(() => e.id, H, { immediate: !0 });
107
- function H() {
108
- return F(this, null, function* () {
109
- P.value = !1, e.id && (yield D(e.id, {}, (T) => {
110
- const w = [], _ = [], { head: B, schema: U } = T, { properties: x } = U;
111
- w.push({ tableName: B.tableName, tableTxt: B.tableTxt }), Object.entries(x).forEach(([C, u]) => {
112
- u.view == "tab" && _.push({ tableName: C, tableTxt: u.describe, order: u.order });
113
- }), _.sort((C, u) => C.order - u.order), s.value = [...w, ..._];
114
- }));
115
- });
116
- }
117
- return {
118
- title: p,
119
- onlineFormCompRef: y,
120
- renderSuccess: E,
121
- registerModal: o,
122
- handleSubmit: l,
123
- handleCancel: k,
124
- modalWidth: r,
125
- formTemplate: V,
126
- disableSubmit: h,
127
- cgButtonList: n,
128
- handleCgButtonClick: c,
129
- isTreeForm: O,
130
- pidFieldName: $,
131
- submitLoading: g,
132
- showSub: A,
133
- tableName: L,
134
- formDataId: j,
135
- enableComment: W,
136
- commentPanelRef: a,
137
- themeTemplate: q,
138
- tabNav: s,
139
- tabValue: (T) => String(T - 1),
140
- tabIndex: i,
141
- TAB: oe,
142
- restTabIndex: () => {
143
- setTimeout(() => {
144
- i.value = "-1";
145
- }, 500);
146
- }
147
- };
148
- }
149
- });
150
- const ne = { class: "titleArea" }, me = { class: "title" }, ie = { class: "right" };
151
- function le(e, t, a, s, i, b) {
152
- const p = d("a-radio-button"), r = d("a-radio-group"), o = d("a-button"), n = d("online-form-detail"), c = d("comment-panel"), h = d("BasicModal");
153
- return I(), M(h, J({
154
- title: e.title,
155
- onCancel: t[2] || (t[2] = () => {
156
- e.restTabIndex();
157
- }),
158
- width: e.modalWidth,
159
- maxHeight: 600,
160
- enableComment: e.enableComment,
161
- defaultFullscreen: !1
162
- }, e.$attrs, {
163
- onRegister: e.registerModal,
164
- wrapClassName: "jeecg-online-detail-modal"
165
- }), {
166
- title: m(() => [
167
- N("div", ne, [
168
- N("div", me, R(e.title), 1),
169
- N("div", ie, [
170
- f(r, {
171
- value: e.tabIndex,
172
- "onUpdate:value": t[0] || (t[0] = (l) => e.tabIndex = l)
173
- }, {
174
- default: m(() => [
175
- (I(!0), K(Q, null, X(e.tabNav, (l, g) => (I(), M(p, {
176
- value: e.tabValue(g),
177
- key: l.tableName
178
- }, {
179
- default: m(() => [
180
- S(R(l.tableTxt), 1)
181
- ]),
182
- _: 2
183
- }, 1032, ["value"]))), 128))
184
- ]),
185
- _: 1
186
- }, 8, ["value"])
187
- ])
188
- ])
189
- ]),
190
- footer: m(() => [
191
- f(o, {
192
- key: "back",
193
- onClick: t[1] || (t[1] = () => {
194
- e.handleCancel(), e.restTabIndex();
195
- })
196
- }, {
197
- default: m(() => t[3] || (t[3] = [
198
- S("关闭")
199
- ])),
200
- _: 1
201
- })
202
- ]),
203
- comment: m(() => [
204
- f(c, {
205
- ref: "commentPanelRef",
206
- tableName: e.tableName,
207
- dataId: e.formDataId
208
- }, null, 8, ["tableName", "dataId"])
209
- ]),
210
- default: m(() => [
211
- f(n, {
212
- ref: "onlineFormCompRef",
213
- id: e.id,
214
- "form-template": e.formTemplate,
215
- "show-sub": e.showSub,
216
- themeTemplate: e.themeTemplate,
217
- tabIndex: e.tabIndex,
218
- onRendered: e.renderSuccess
219
- }, null, 8, ["id", "form-template", "show-sub", "themeTemplate", "tabIndex", "onRendered"])
220
- ]),
221
- _: 1
222
- }, 16, ["title", "width", "enableComment", "onRegister"]);
223
- }
224
- const nt = /* @__PURE__ */ ae(re, [["render", le], ["__scopeId", "data-v-1d94bf71"]]);
225
- export {
226
- nt as default
227
- };
@@ -1,329 +0,0 @@
1
- var Z = Object.defineProperty;
2
- var I = Object.getOwnPropertySymbols;
3
- var $ = Object.prototype.hasOwnProperty, ee = Object.prototype.propertyIsEnumerable;
4
- var J = (l, i, r) => i in l ? Z(l, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : l[i] = r, N = (l, i) => {
5
- for (var r in i || (i = {}))
6
- $.call(i, r) && J(l, r, i[r]);
7
- if (I)
8
- for (var r of I(i))
9
- ee.call(i, r) && J(l, r, i[r]);
10
- return l;
11
- };
12
- var T = (l, i, r) => new Promise((o, b) => {
13
- var y = (m) => {
14
- try {
15
- c(r.next(m));
16
- } catch (f) {
17
- b(f);
18
- }
19
- }, g = (m) => {
20
- try {
21
- c(r.throw(m));
22
- } catch (f) {
23
- b(f);
24
- }
25
- }, c = (m) => m.done ? o(m.value) : Promise.resolve(m.value).then(y, g);
26
- c((r = r.apply(l, i)).next());
27
- });
28
- import { useMessage as te } from "/@/hooks/web/useMessage";
29
- import { ref as s, watch as oe, reactive as ne, resolveComponent as p, openBlock as u, createElementBlock as h, createVNode as _, createCommentVNode as V, withCtx as K, createBlock as v, Fragment as re, renderList as ie, normalizeStyle as ae, renderSlot as le } from "vue";
30
- import { Loading as me } from "/@/components/Loading";
31
- import { getToken as se } from "/@/utils/auth";
32
- import { goJmReportViewPage as ue } from "/@/utils";
33
- import { PrinterOutlined as pe } from "@ant-design/icons-vue";
34
- import ce from "./DetailForm-a2bf8c33.mjs";
35
- import fe from "./OnlineSubFormDetail-4d64e7be.mjs";
36
- import { k as de } from "./useExtendComponent-ad499dff.mjs";
37
- import { defHttp as be } from "/@/utils/http/axios";
38
- import { E as ge, T as he } from "./constant-fa63bd66.mjs";
39
- import { useAppInject as _e } from "/@/hooks/web/useAppInject";
40
- import { buildShortUUID as ye } from "/@/utils/uuid";
41
- import { _ as Se } from "./index-94b6319e.mjs";
42
- import "/@/utils/propTypes";
43
- import "/@/utils/dict";
44
- import "/@/utils/dict/JDictSelectUtil";
45
- import "/@/utils/dict/index";
46
- import "/@/api/common/api";
47
- import "/@/components/Form/src/utils/Area";
48
- import "/@/utils/common/compUtils";
49
- import "/@/components/Preview/index";
50
- import "/@/components/Markdown";
51
- import "/@/components/Form/src/componentMap";
52
- import "/@/components/Modal";
53
- import "/@/components/Form/index";
54
- import "lodash-es";
55
- import "/@/components/Form/src/jeecg/components/JUpload";
56
- import "/@/utils/is";
57
- import "/@/views/system/user/user.api";
58
- import "./dayjs.min-eea532a3.mjs";
59
- import "/@/store/modules/user";
60
- import "/@/utils/desform/customExpression";
61
- import "/@/store/modules/permission";
62
- import "/@/components/Table";
63
- import "/@/hooks/system/useListPage";
64
- import "vue-router";
65
- import "./LinkTableListPiece-47f4286c.mjs";
66
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
67
- import "/@/assets/images/placeholderImage.png";
68
- import "./OnlineSelectCascade-180e8c9a.mjs";
69
- import "./JModalTip-5401f43d.mjs";
70
- import "ant-design-vue";
71
- import "@vueuse/core";
72
- const Te = {
73
- name: "OnlineTabFormDetail",
74
- components: {
75
- DetailForm: ce,
76
- Loading: me,
77
- PrinterOutlined: pe,
78
- OnlineSubFormDetail: fe
79
- },
80
- props: {
81
- id: {
82
- type: String,
83
- default: ""
84
- },
85
- formTemplate: {
86
- type: Number,
87
- default: 1
88
- },
89
- disabled: {
90
- type: Boolean,
91
- default: !1
92
- },
93
- isTree: {
94
- type: Boolean,
95
- default: !1
96
- },
97
- pidField: {
98
- type: String,
99
- default: ""
100
- },
101
- submitTip: {
102
- type: Boolean,
103
- default: !0
104
- },
105
- showSub: {
106
- type: Boolean,
107
- default: !0
108
- },
109
- themeTemplate: {
110
- type: String,
111
- default: ""
112
- },
113
- tabIndex: {
114
- type: String,
115
- default: ""
116
- }
117
- },
118
- emits: ["success", "rendered"],
119
- setup(l, { emit: i }) {
120
- const { createMessage: r } = te(), { getIsMobile: o } = _e(), b = s(""), y = s(!0), g = s(!1), c = s(1), m = s({}), f = s("auto"), k = s(340), S = s("0"), w = s(!o.value), x = s(ye());
121
- oe(
122
- () => l.tabIndex,
123
- (e, t) => {
124
- S.value = e, t && B();
125
- },
126
- {
127
- immediate: !0
128
- }
129
- );
130
- const a = ne({
131
- reportPrintShow: 0,
132
- reportPrintUrl: "",
133
- joinQuery: 0,
134
- modelFullscreen: 0,
135
- modalMinWidth: ""
136
- }), { detailFormSchemas: P, hasSubTable: A, subTabInfo: E, refMap: M, showStatus: F, subDataSource: C, createFormSchemas: R, formSpan: U } = de(l);
137
- function j(e) {
138
- let t = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 1, modalMinWidth: "" };
139
- e && (t = JSON.parse(e)), Object.keys(t).map((n) => {
140
- a[n] = t[n];
141
- });
142
- }
143
- function H(e) {
144
- return T(this, null, function* () {
145
- c.value = e.head.tableType, b.value = e.head.tableName, y.value = e.head.tableType == 1, j(e.head.extConfigJson), R(e.schema.properties), i("rendered", a);
146
- });
147
- }
148
- function L(e, t) {
149
- return T(this, null, function* () {
150
- yield Q(t), D(!0);
151
- });
152
- }
153
- function z(e) {
154
- let t = `/online/cgform/api/detail/${l.id}/${e}`;
155
- return new Promise((n, d) => {
156
- be.get({ url: t }, { isTransformResponse: !1 }).then((O) => {
157
- O.success ? n(O.result) : (d(), r.warning(O.message));
158
- }).catch(() => {
159
- d();
160
- });
161
- });
162
- }
163
- function D(e) {
164
- Object.keys(F).map((t) => {
165
- F[t] = e;
166
- });
167
- }
168
- function B() {
169
- D(!1), setTimeout(() => {
170
- D(!0);
171
- }, 300);
172
- }
173
- function Q(e) {
174
- return T(this, null, function* () {
175
- let t = yield z(e.id);
176
- m.value = N({}, t), W(t);
177
- });
178
- }
179
- function W(e) {
180
- e || (e = {});
181
- let t = Object.keys(C.value);
182
- if (t && t.length > 0) {
183
- let n = {};
184
- for (let d of t)
185
- n[d] = e[d] || [];
186
- C.value = n;
187
- }
188
- }
189
- function q(e) {
190
- return "online_" + e + ":";
191
- }
192
- function G() {
193
- let e = a.reportPrintUrl, t = m.value;
194
- if (t) {
195
- let n = t.id, d = se();
196
- ue(e, n, d);
197
- }
198
- }
199
- function X(e) {
200
- let t = m.value, n = Y(t, e);
201
- return n && (n = n + "__" + x.value), n;
202
- }
203
- function Y(e, t) {
204
- if (e) {
205
- let n = e[t];
206
- return !n && n !== 0 && (n = e[t.toLowerCase()], !n && n !== 0 && (n = e[t.toUpperCase()])), n;
207
- }
208
- return "";
209
- }
210
- return {
211
- detailFormSchemas: P,
212
- formData: m,
213
- formSpan: U,
214
- //主表
215
- tableName: b,
216
- loading: g,
217
- //子表
218
- hasSubTable: A,
219
- subTabInfo: E,
220
- subFormHeight: f,
221
- subTableHeight: k,
222
- refMap: M,
223
- onTabChange: B,
224
- //一对多子表
225
- subDataSource: C,
226
- getSubTableAuthPre: q,
227
- //父组件调用
228
- show: L,
229
- createRootProperties: H,
230
- // 扩展配置
231
- onOpenReportPrint: G,
232
- onlineExtConfigJson: a,
233
- getSubTableForeignKeyValue: X,
234
- showStatus: F,
235
- ERP: ge,
236
- TAB: he,
237
- subActiveKey: S,
238
- rowNumber: w
239
- };
240
- }
241
- };
242
- const ve = ["id"], ke = {
243
- key: 0,
244
- style: { "text-align": "right", position: "absolute", top: "15px", right: "20px", "z-index": "999" }
245
- }, we = { key: 1 };
246
- function xe(l, i, r, o, b, y) {
247
- const g = p("PrinterOutlined"), c = p("detail-form"), m = p("a-tab-pane"), f = p("online-sub-form-detail"), k = p("JVxeTable"), S = p("a-spin"), w = p("a-tabs"), x = p("Loading");
248
- return u(), h("div", {
249
- id: o.tableName + "_form"
250
- }, [
251
- o.formData.id && o.onlineExtConfigJson.reportPrintShow ? (u(), h("div", ke, [
252
- _(g, {
253
- title: "打印",
254
- onClick: o.onOpenReportPrint,
255
- style: { "font-size": "16px" }
256
- }, null, 8, ["onClick"])
257
- ])) : V("", !0),
258
- _(w, {
259
- class: "tabTheme",
260
- onChange: o.onTabChange,
261
- activeKey: o.subActiveKey,
262
- "onUpdate:activeKey": i[0] || (i[0] = (a) => o.subActiveKey = a)
263
- }, {
264
- default: K(() => [
265
- (u(), v(m, {
266
- tab: "主表",
267
- key: "-1"
268
- }, {
269
- default: K(() => [
270
- _(c, {
271
- schemas: o.detailFormSchemas,
272
- data: o.formData,
273
- span: o.formSpan
274
- }, null, 8, ["schemas", "data", "span"])
275
- ]),
276
- _: 1
277
- })),
278
- o.hasSubTable && r.showSub ? (u(!0), h(re, { key: 0 }, ie(o.subTabInfo, (a, P) => (u(), v(m, {
279
- tab: a.describe,
280
- key: P + "",
281
- forceRender: !0
282
- }, {
283
- default: K(() => [
284
- a.relationType == 1 ? (u(), h("div", {
285
- key: 0,
286
- style: ae({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": o.subFormHeight + "px" })
287
- }, [
288
- _(f, {
289
- table: a.key,
290
- "form-template": r.formTemplate,
291
- "main-id": o.getSubTableForeignKeyValue(a.foreignKey),
292
- properties: a.properties
293
- }, null, 8, ["table", "form-template", "main-id", "properties"])
294
- ], 4)) : (u(), h("div", we, [
295
- o.showStatus[a.key] ? (u(), v(k, {
296
- key: 0,
297
- ref_for: !0,
298
- ref: o.refMap[a.key],
299
- toolbar: "",
300
- "keep-source": "",
301
- "row-number": o.rowNumber,
302
- "row-selection": "",
303
- height: o.subTableHeight,
304
- disabled: !0,
305
- columns: a.columns,
306
- dataSource: o.subDataSource[a.key],
307
- authPre: o.getSubTableAuthPre(a.key)
308
- }, null, 8, ["row-number", "height", "columns", "dataSource", "authPre"])) : (u(), v(S, {
309
- key: 1,
310
- spinning: !0
311
- }))
312
- ]))
313
- ]),
314
- _: 2
315
- }, 1032, ["tab"]))), 128)) : V("", !0)
316
- ]),
317
- _: 1
318
- }, 8, ["onChange", "activeKey"]),
319
- _(x, {
320
- loading: o.loading,
321
- absolute: !1
322
- }, null, 8, ["loading"]),
323
- le(l.$slots, "bottom", {}, void 0, !0)
324
- ], 8, ve);
325
- }
326
- const ht = /* @__PURE__ */ Se(Te, [["render", xe], ["__scopeId", "data-v-f0b22224"]]);
327
- export {
328
- ht as default
329
- };