@jeecg/online 3.9.0-beta2 → 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 (170) hide show
  1. package/{AccountLoginForm-634a76b1.mjs → AccountLoginForm-BXyvcSds.mjs} +50 -53
  2. package/{AiModal-204a2146.mjs → AiModal-BgVzn074.mjs} +18 -20
  3. package/{AppForgetPassword-f9a6258a.mjs → AppForgetPassword-B-2CvL62.mjs} +59 -63
  4. package/AppLogin-BMBmx2oq.mjs +272 -0
  5. package/AppLoginHeader-BtKXOMRR.mjs +23 -0
  6. package/{AppNameEmail-54026ea8.mjs → AppNameEmail-DCqMNjaK.mjs} +20 -24
  7. package/{AppRegister-043efc45.mjs → AppRegister-C5iH-245.mjs} +33 -37
  8. package/{AppTenant-c7bb8700.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-3cd10ca2.mjs → AuthDataConfig-uQ5WT7rx.mjs} +57 -62
  13. package/AuthDataTree-Cr28_YKx.mjs +134 -0
  14. package/{AuthFieldConfig-bb65f78b.mjs → AuthFieldConfig-DjdaPIXF.mjs} +95 -101
  15. package/{AuthFieldTree-3e38b12b.mjs → AuthFieldTree-DHmnDQ0I.mjs} +94 -99
  16. package/AuthManagerDrawer-DUb6QylS.mjs +108 -0
  17. package/{AuthSetterModal-f176c221.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-a3903b24.mjs → CgformAddressModal-BVoww1fk.mjs} +57 -63
  21. package/CgformCopyList-7e96RMbJ.mjs +176 -0
  22. package/{CgformModal-115710a6.mjs → CgformModal-RH-Tr08S.mjs} +240 -241
  23. package/{CgreportAigcModal-3bef8abe.mjs → CgreportAigcModal-rEfIpPF9.mjs} +35 -38
  24. package/{CgreportModal-0cc48587.mjs → CgreportModal-Bajb_3ku.mjs} +49 -50
  25. package/{CheckDictTable-65157c48.mjs → CheckDictTable-BxJFrctQ.mjs} +44 -52
  26. package/{CodeFileListModal-305c1a62.mjs → CodeFileListModal-C3uqsFvi.mjs} +32 -36
  27. package/{CodeFileViewModal-320d7acf.mjs → CodeFileViewModal-bEtZDbAY.mjs} +78 -81
  28. package/CodeGeneratorModal-ZWEIXRbY.mjs +291 -0
  29. package/{CustomButtonList-98db8fd2.mjs → CustomButtonList-7wjonhtu.mjs} +82 -85
  30. package/{DBAttributeTable-56701599.mjs → DBAttributeTable-DA2XttIQ.mjs} +50 -60
  31. package/{DbToOnlineModal-a82cdeb5.mjs → DbToOnlineModal-CDVqmEJH.mjs} +43 -45
  32. package/DetailForm-CnfJBMys.mjs +472 -0
  33. package/{DropMenuItem-b3a9cd6a.mjs → DropMenuItem-D8YWMle-.mjs} +8 -11
  34. package/EnhanceJavaModal-W8_oGY-U.mjs +255 -0
  35. package/{EnhanceJsHistory-bb6ba865.mjs → EnhanceJsHistory-ZzXedCNI.mjs} +48 -49
  36. package/{EnhanceJsModal-b0527cbf.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-536e6d5b.mjs → FieldExtendJsonModal-Bvmbb6yd.mjs} +27 -30
  42. package/{FileSelectModal-eb026170.mjs → FileSelectModal-DXqL5msQ.mjs} +27 -31
  43. package/{ForeignKeyTable-97a5827f.mjs → ForeignKeyTable-D6AlLbfd.mjs} +17 -25
  44. package/{IndexTable-4d350e4e.mjs → IndexTable-B7ef6Aox.mjs} +9 -17
  45. package/JModalTip-DHrn6ksJ.mjs +46 -0
  46. package/{JOnlineSearchSelect-ffeac61d.mjs → JOnlineSearchSelect-CAv2Dm9V.mjs} +21 -23
  47. package/{LeftDepart-a727aab7.mjs → LeftDepart-BC1jpYJP.mjs} +8 -11
  48. package/{LeftRole-b533dcf6.mjs → LeftRole-sq_2p6Qk.mjs} +16 -19
  49. package/{LeftUser-aaac52cb.mjs → LeftUser-CYh4PBgd.mjs} +7 -10
  50. package/{LinkTableConfigModal-4053b62d.mjs → LinkTableConfigModal-BOWs0A5-.mjs} +38 -40
  51. package/{LinkTableFieldConfigModal-93552099.mjs → LinkTableFieldConfigModal-D7FTBP3E.mjs} +50 -52
  52. package/LinkTableListPiece-Bfu6vfo0.mjs +31 -0
  53. package/{ModalFormDemo-b8478356.mjs → ModalFormDemo-C1qQT6lj.mjs} +13 -16
  54. package/{OnlCgformErpList-b0605798.mjs → OnlCgformErpList-CavWG8GK.mjs} +139 -199
  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-624106c1.mjs → OnlineAutoTreeList-LDE9Sm7X.mjs} +124 -181
  62. package/OnlineCustomModal-Jz4MxkH0.mjs +209 -0
  63. package/OnlineDetailModal-So0YEah1.mjs +160 -0
  64. package/{OnlineForm-86b5966d.mjs → OnlineForm-CvcbzRIZ.mjs} +47 -73
  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-0c2431a4.mjs → OnlineFormUrlSuccess-Cvbte2lW.mjs} +27 -30
  70. package/{OnlineQueryForm-3017a4ca.mjs → OnlineQueryForm-6E1IRi95.mjs} +139 -167
  71. package/{OnlineSearchFormItem-1b54585f.mjs → OnlineSearchFormItem-CdRuXQPu.mjs} +112 -118
  72. package/{OnlineSelectCascade-fab4426d.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-5c04cbc5.mjs → OnlineTabForm-Cg3_IX2H.mjs} +228 -253
  77. package/OnlineTabFormDetail-BgFkUkva.mjs +299 -0
  78. package/{PageAttributeTable-18aabf81.mjs → PageAttributeTable-C803SekP.mjs} +46 -59
  79. package/{PhoneLoginForm-4a9d7869.mjs → PhoneLoginForm-8a0Uehov.mjs} +40 -43
  80. package/ProcessOnlineForm-COeEaGc8.mjs +182 -0
  81. package/{QueryTable-342fd89a.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-9ea579c2.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-24d417dc.mjs → SingleView.vue_vue_type_style_index_0_lang-D3QcMcYT.mjs} +27 -27
  89. package/{SuperQuery-270b0968.mjs → SuperQuery-CgkajEWI.mjs} +342 -370
  90. package/SuperQueryValComponent-UO10kRg5.mjs +4 -0
  91. package/TaskOpinionList-C8rcU6ee.mjs +10 -0
  92. package/{aiModal-e7362c3f.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-b811abb9.mjs → index-B1H394jP.mjs} +35 -38
  96. package/index-CXD6__bJ.mjs +195 -0
  97. package/{index-6d1a78e2.mjs → index-DIjQbz6A.mjs} +37 -41
  98. package/{index-e2c3e6f3.mjs → index-Dbr1qL3H.mjs} +474 -608
  99. package/{index-19eaef11.mjs → index-dmWvLQET.mjs} +2 -2
  100. package/{index-d95bb7c2.mjs → index-pGbTziKP.mjs} +32 -44
  101. package/{index-b5fe9bd4.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-6d5547ff.mjs → useCgformList-_o9GP7ca.mjs} +3 -3
  106. package/useExtendComponent-P9wrWQwT.mjs +4479 -0
  107. package/{useListButton-73071548.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-bf783eab.mjs +0 -287
  112. package/AppLoginHeader-55594326.mjs +0 -27
  113. package/AppThirdForm-5e7e1144.mjs +0 -189
  114. package/AuthButtonConfig-4887be0d.mjs +0 -160
  115. package/AuthButtonTree-7e47b44b.mjs +0 -165
  116. package/AuthDataTree-714c259c.mjs +0 -139
  117. package/AuthManagerDrawer-dee39b07.mjs +0 -119
  118. package/BuiltInButtonList-bb6cf95c.mjs +0 -10
  119. package/CgformCopyList-4be1000f.mjs +0 -259
  120. package/CodeGeneratorModal-2ba18bd1.mjs +0 -298
  121. package/DetailForm-7d4f630e.mjs +0 -497
  122. package/EnhanceJavaModal-469e645e.mjs +0 -264
  123. package/EnhanceSqlModal-c6e8bce1.mjs +0 -268
  124. package/ErrorTip-bb616e32.mjs +0 -7
  125. package/ExtendConfigModal-7b00b49a.mjs +0 -117
  126. package/JModalTip-c3e6726c.mjs +0 -49
  127. package/LinkTableListPiece-0f4ca559.mjs +0 -34
  128. package/OnlCgformErpSubTable-89699bc9.mjs +0 -443
  129. package/OnlCgformInnerSubTable-f2722f77.mjs +0 -269
  130. package/OnlCgformInnerTableList-992aa7e9.mjs +0 -481
  131. package/OnlCgformTabList-882a0e0c.mjs +0 -431
  132. package/OnlineAutoList-caedb54a.mjs +0 -558
  133. package/OnlineAutoModal-a0d1a6b8.mjs +0 -260
  134. package/OnlineCustomModal-f4e17bed.mjs +0 -246
  135. package/OnlineDetailModal-35394778.mjs +0 -198
  136. package/OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs +0 -1
  137. package/OnlineFormDetail-4b3ad130.mjs +0 -349
  138. package/OnlineFormUrlAdd-708c91fb.mjs +0 -116
  139. package/OnlineFormUrlDetail-5c8efaeb.mjs +0 -121
  140. package/OnlineFormUrlEdit-8f08474e.mjs +0 -114
  141. package/OnlineSubFormDetail-bbc48c3e.mjs +0 -147
  142. package/OnlineTabAutoModal-b0f9fce8.mjs +0 -319
  143. package/OnlineTabDetailModal-401a26ad.mjs +0 -226
  144. package/OnlineTabFormDetail-2a28febf.mjs +0 -328
  145. package/ProcessOnlineForm-0ddce4fb.mjs +0 -218
  146. package/SetSwitchOptions-e1d5a6b4.mjs +0 -62
  147. package/ShareAddView-a5154da3.mjs +0 -88
  148. package/ShareEditView-cf761cf3.mjs +0 -94
  149. package/ShareView-3b2f5457.mjs +0 -82
  150. package/SingleView-3cab20a9.mjs +0 -70
  151. package/SuperQueryValComponent-5a9ccfd4.mjs +0 -8
  152. package/TaskOpinionList-60cf4080.mjs +0 -13
  153. package/index-740b2c4a.mjs +0 -57
  154. package/index-8fd12d0f.mjs +0 -219
  155. package/style.css +0 -1
  156. package/useExtendComponent-95ce0719.mjs +0 -4460
  157. /package/{SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs → SuperQueryValComponent.vue_vue_type_script_lang-BM-iwlLi.mjs} +0 -0
  158. /package/{auth.api-53df4c33.mjs → auth.api-2QmzY0ji.mjs} +0 -0
  159. /package/{auth.data-e44c7975.mjs → auth.data-Cp8D9uZ7.mjs} +0 -0
  160. /package/{button.data-fe45d43b.mjs → button.data-CyUX77GQ.mjs} +0 -0
  161. /package/{cgform.data-0ca62d09.mjs → cgform.data-CviSPXEg.mjs} +0 -0
  162. /package/{cgformState-d9f8ec42.mjs → cgformState-CUyRXfhW.mjs} +0 -0
  163. /package/{constant-fa63bd66.mjs → constant-DnbpmwZg.mjs} +0 -0
  164. /package/{enhance.api-138e6826.mjs → enhance.api-BqHb-YGL.mjs} +0 -0
  165. /package/{index-5e89258d.mjs → index-aVGkB_J9.mjs} +0 -0
  166. /package/{shareStore-7de6c7a6.mjs → shareStore-k-kzyga5.mjs} +0 -0
  167. /package/{useCustomHook-3a17a690.mjs → useCustomHook-B35kFqDB.mjs} +0 -0
  168. /package/{useFormUrl-2ee1a82d.mjs → useFormUrl-D8ASmaz6.mjs} +0 -0
  169. /package/{useOnlinePopEvent-687070b7.mjs → useOnlinePopEvent-FOvbs0Ta.mjs} +0 -0
  170. /package/{useOnlineTest-e4bd8be3.mjs → useOnlineTest-_onDRxjY.mjs} +0 -0
@@ -0,0 +1,209 @@
1
+ var X = Object.defineProperty;
2
+ var _ = Object.getOwnPropertySymbols;
3
+ var Y = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable;
4
+ var B = (e, t, o) => t in e ? X(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, k = (e, t) => {
5
+ for (var o in t || (t = {}))
6
+ Y.call(t, o) && B(e, o, t[o]);
7
+ if (_)
8
+ for (var o of _(t))
9
+ Z.call(t, o) && B(e, o, t[o]);
10
+ return e;
11
+ };
12
+ var p = (e, t, o) => new Promise((i, f) => {
13
+ var l = (r) => {
14
+ try {
15
+ u(o.next(r));
16
+ } catch (a) {
17
+ f(a);
18
+ }
19
+ }, c = (r) => {
20
+ try {
21
+ u(o.throw(r));
22
+ } catch (a) {
23
+ f(a);
24
+ }
25
+ }, u = (r) => r.done ? i(r.value) : Promise.resolve(r.value).then(l, c);
26
+ u((o = o.apply(e, t)).next());
27
+ });
28
+ import { defineComponent as x, ref as m, nextTick as I, watch as ee, reactive as oe, markRaw as ne, defineAsyncComponent as te, resolveComponent as w, createBlock as R, openBlock as b, mergeProps as re, withCtx as C, createVNode as P, resolveDynamicComponent as se, createTextVNode as N, toDisplayString as $ } from "vue";
29
+ import { BasicModal as le, useModalInner as ae } from "/@/components/Modal";
30
+ import { g as D } from "./useExtendComponent-P9wrWQwT.mjs";
31
+ import { defHttp as me } from "/@/utils/http/axios";
32
+ import ie from "./OnlineForm-CvcbzRIZ.mjs";
33
+ import { importViewsFile as ue } from "/@/utils";
34
+ import { omit as ce } from "lodash-es";
35
+ import { _ as de } from "./index-0kQBIHx0.mjs";
36
+ const fe = {
37
+ code: "",
38
+ row: {},
39
+ hide: [],
40
+ show: [],
41
+ requestUrl: "",
42
+ tableType: "",
43
+ foreignKeys: "",
44
+ formComponent: ""
45
+ }, pe = x({
46
+ name: "OnlineCustomModal",
47
+ components: {
48
+ OnlineForm: ie,
49
+ BasicModal: le
50
+ },
51
+ setup(e, { emit: t, attrs: o }) {
52
+ const i = m(), f = m({}), l = m("");
53
+ let c = [], u = [], r = "", a = {};
54
+ const d = {
55
+ optPre: "/online/cgform/api/form/"
56
+ }, E = { position: "relative" }, L = m(!1), g = m(!1);
57
+ function U() {
58
+ g.value = !0;
59
+ }
60
+ const h = m(!0), [V, { setModalProps: j, closeModal: O }] = ae((n) => p(null, null, function* () {
61
+ j({ confirmLoading: !1 }), q(n), yield I(() => p(null, null, function* () {
62
+ n.formComponent ? W(n.formComponent) : yield z();
63
+ }));
64
+ }));
65
+ function q(n) {
66
+ let s = Object.assign({}, fe, n);
67
+ l.value = s.code, f.value = k(k({
68
+ title: "自定义弹框",
69
+ width: 600
70
+ }, o), ce(n, ["row", "formComponent", "hide", "show", "requestUrl"])), c = s.hide || [], u = s.show || [], r = H(s.requestUrl), a = s.row;
71
+ }
72
+ function H(n) {
73
+ return n || d.optPre + l.value;
74
+ }
75
+ const y = m(!1);
76
+ function A() {
77
+ y.value = !0, h.value === !0 ? i.value.handleSubmit() : M.value.handleSubmit(), setTimeout(() => {
78
+ y.value = !0;
79
+ }, 3500);
80
+ }
81
+ function G() {
82
+ O();
83
+ }
84
+ function K(n) {
85
+ t("success", n), O();
86
+ }
87
+ function z() {
88
+ return p(this, null, function* () {
89
+ h.value = !0, yield D(g), i.value.handleCustomFormSh(u, c), i.value.handleCustomFormEdit(a, r);
90
+ });
91
+ }
92
+ const T = m(1);
93
+ ee(l, J, { immediate: !0 });
94
+ function J() {
95
+ return p(this, null, function* () {
96
+ if (g.value = !1, !l.value)
97
+ return;
98
+ let n = yield Q(), s = n.head.formTemplate;
99
+ T.value = s ? Number(s) : 1, I(() => p(null, null, function* () {
100
+ (yield D(i)).createRootProperties(n);
101
+ }));
102
+ });
103
+ }
104
+ function Q() {
105
+ let n = `/online/cgform/api/getFormItem/${l.value}`;
106
+ return new Promise((s, v) => {
107
+ me.get({ url: n }, { isTransformResponse: !1 }).then((S) => {
108
+ S.success ? s(S.result) : v(S.message);
109
+ }).catch(() => {
110
+ v();
111
+ });
112
+ });
113
+ }
114
+ const M = m(), F = oe({
115
+ url: "",
116
+ is: "",
117
+ row: {}
118
+ });
119
+ function W(n) {
120
+ h.value = !1, F.url = r, F.row = a, F.is = ne(te(() => ue(n)));
121
+ }
122
+ return {
123
+ //modal
124
+ registerModal: V,
125
+ modalProps: f,
126
+ modalStyle: E,
127
+ handleSubmit: A,
128
+ handleCancel: G,
129
+ // online表单
130
+ id: l,
131
+ onlineFormCompRef: i,
132
+ formTemplate: T,
133
+ renderSuccess: U,
134
+ //自定义表单
135
+ customFormRef: M,
136
+ customFormComponent: F,
137
+ //通用
138
+ open,
139
+ isOnlineForm: h,
140
+ confirmLoading: L,
141
+ submitLoading: y,
142
+ handleSuccess: K
143
+ };
144
+ }
145
+ });
146
+ function Ce(e, t, o, i, f, l) {
147
+ const c = w("a-button"), u = w("online-form"), r = w("a-spin"), a = w("BasicModal");
148
+ return b(), R(a, re(e.modalProps, {
149
+ style: e.modalStyle,
150
+ onRegister: e.registerModal,
151
+ wrapClassName: "jeecg-online-modal2",
152
+ onOk: e.handleSubmit
153
+ }), {
154
+ footer: C(() => [
155
+ P(c, {
156
+ key: "submit",
157
+ type: "primary",
158
+ onClick: e.handleSubmit
159
+ }, {
160
+ default: C(() => {
161
+ var d;
162
+ return [
163
+ N($((d = e.modalProps.okText) != null ? d : "确定"), 1)
164
+ ];
165
+ }),
166
+ _: 1
167
+ }, 8, ["onClick"]),
168
+ P(c, {
169
+ key: "back",
170
+ onClick: e.handleCancel
171
+ }, {
172
+ default: C(() => {
173
+ var d;
174
+ return [
175
+ N($((d = e.modalProps.cancelText) != null ? d : "关闭"), 1)
176
+ ];
177
+ }),
178
+ _: 1
179
+ }, 8, ["onClick"])
180
+ ]),
181
+ default: C(() => [
182
+ P(r, { spinning: e.confirmLoading }, {
183
+ default: C(() => [
184
+ e.isOnlineForm ? (b(), R(u, {
185
+ key: 0,
186
+ ref: "onlineFormCompRef",
187
+ id: e.id,
188
+ "form-template": e.formTemplate,
189
+ onRendered: e.renderSuccess,
190
+ onSuccess: e.handleSuccess,
191
+ modalClass: "jeecg-online-modal2"
192
+ }, null, 8, ["id", "form-template", "onRendered", "onSuccess"])) : (b(), R(se(e.customFormComponent.is), {
193
+ key: 1,
194
+ ref: "customFormRef",
195
+ url: e.customFormComponent.url,
196
+ row: e.customFormComponent.row,
197
+ onClose: e.handleSuccess
198
+ }, null, 40, ["url", "row", "onClose"]))
199
+ ]),
200
+ _: 1
201
+ }, 8, ["spinning"])
202
+ ]),
203
+ _: 1
204
+ }, 16, ["style", "onRegister", "onOk"]);
205
+ }
206
+ const be = /* @__PURE__ */ de(pe, [["render", Ce]]);
207
+ export {
208
+ be as default
209
+ };
@@ -0,0 +1,160 @@
1
+ var u = (e, r, o) => new Promise((i, l) => {
2
+ var d = (t) => {
3
+ try {
4
+ n(o.next(t));
5
+ } catch (a) {
6
+ l(a);
7
+ }
8
+ }, m = (t) => {
9
+ try {
10
+ n(o.throw(t));
11
+ } catch (a) {
12
+ l(a);
13
+ }
14
+ }, n = (t) => t.done ? i(t.value) : Promise.resolve(t.value).then(d, m);
15
+ n((o = o.apply(e, r)).next());
16
+ });
17
+ import { defineComponent as E, ref as P, watch as v, resolveComponent as s, createBlock as p, openBlock as b, mergeProps as L, withCtx as f, createVNode as C, createCommentVNode as O, renderSlot as A, createElementVNode as V, toDisplayString as j } from "vue";
18
+ import { BasicModal as W } from "/@/components/Modal";
19
+ import q from "./OnlineFormDetail-KaD6cV31.mjs";
20
+ import { b as H } from "./useExtendComponent-P9wrWQwT.mjs";
21
+ import U from "/@/components/jeecg/comment/CommentPanel.vue";
22
+ import { a as z, I as G } from "./constant-DnbpmwZg.mjs";
23
+ import { _ as J } from "./index-0kQBIHx0.mjs";
24
+ const K = E({
25
+ name: "OnlineDetailModal",
26
+ props: {
27
+ id: {
28
+ type: String,
29
+ required: !1,
30
+ default: ""
31
+ },
32
+ // 为了区分来源,编码时主要是erp子表有特殊处理
33
+ source: {
34
+ type: String,
35
+ default: ""
36
+ },
37
+ cancelBtnCfg: {
38
+ type: Object,
39
+ default: () => ({
40
+ enabled: !0,
41
+ buttonName: "关闭",
42
+ buttonIcon: ""
43
+ })
44
+ }
45
+ },
46
+ components: {
47
+ BasicModal: W,
48
+ OnlineFormDetail: q,
49
+ CommentPanel: U
50
+ },
51
+ emits: ["success", "register", "formConfig"],
52
+ setup(e, { emit: r }) {
53
+ const o = P();
54
+ function i() {
55
+ o.value && o.value.reload();
56
+ }
57
+ const {
58
+ title: l,
59
+ modalWidth: d,
60
+ registerModal: m,
61
+ cgButtonList: n,
62
+ handleCgButtonClick: t,
63
+ disableSubmit: a,
64
+ handleSubmit: h,
65
+ submitLoading: g,
66
+ handleCancel: B,
67
+ handleFormConfig: N,
68
+ onlineFormCompRef: R,
69
+ formTemplate: S,
70
+ isTreeForm: w,
71
+ pidFieldName: T,
72
+ renderSuccess: F,
73
+ formRendered: I,
74
+ showSub: M,
75
+ tableName: _,
76
+ formDataId: k,
77
+ enableComment: y,
78
+ themeTemplate: D
79
+ } = H(!1, { emit: r }, i);
80
+ v(() => e.id, $, { immediate: !0 });
81
+ function $() {
82
+ return u(this, null, function* () {
83
+ if (I.value = !1, !e.id)
84
+ return;
85
+ let c = {};
86
+ (e.source === z || e.source === G) && (c.tabletype = 3), yield N(e.id, c);
87
+ });
88
+ }
89
+ return {
90
+ title: l,
91
+ onlineFormCompRef: R,
92
+ renderSuccess: F,
93
+ registerModal: m,
94
+ handleSubmit: h,
95
+ handleCancel: B,
96
+ modalWidth: d,
97
+ formTemplate: S,
98
+ disableSubmit: a,
99
+ cgButtonList: n,
100
+ handleCgButtonClick: t,
101
+ isTreeForm: w,
102
+ pidFieldName: T,
103
+ submitLoading: g,
104
+ showSub: M,
105
+ tableName: _,
106
+ formDataId: k,
107
+ enableComment: y,
108
+ commentPanelRef: o,
109
+ themeTemplate: D
110
+ };
111
+ }
112
+ });
113
+ function Q(e, r, o, i, l, d) {
114
+ const m = s("a-button"), n = s("online-form-detail"), t = s("comment-panel"), a = s("BasicModal");
115
+ return b(), p(a, L({
116
+ title: e.title,
117
+ width: e.modalWidth,
118
+ maxHeight: 600,
119
+ enableComment: e.enableComment,
120
+ defaultFullscreen: !1
121
+ }, e.$attrs, {
122
+ onRegister: e.registerModal,
123
+ wrapClassName: "jeecg-online-detail-modal"
124
+ }), {
125
+ footer: f(() => [
126
+ e.cancelBtnCfg.enabled ? (b(), p(m, {
127
+ key: "back",
128
+ onClick: e.handleCancel
129
+ }, {
130
+ default: f(() => [
131
+ V("span", null, j(e.cancelBtnCfg.buttonName), 1)
132
+ ]),
133
+ _: 1
134
+ }, 8, ["onClick"])) : O("", !0),
135
+ A(e.$slots, "footerBtn")
136
+ ]),
137
+ comment: f(() => [
138
+ C(t, {
139
+ ref: "commentPanelRef",
140
+ tableName: e.tableName,
141
+ dataId: e.formDataId
142
+ }, null, 8, ["tableName", "dataId"])
143
+ ]),
144
+ default: f(() => [
145
+ C(n, {
146
+ ref: "onlineFormCompRef",
147
+ id: e.id,
148
+ "form-template": e.formTemplate,
149
+ "show-sub": e.showSub,
150
+ themeTemplate: e.themeTemplate,
151
+ onRendered: e.renderSuccess
152
+ }, null, 8, ["id", "form-template", "show-sub", "themeTemplate", "onRendered"])
153
+ ]),
154
+ _: 3
155
+ }, 16, ["title", "width", "enableComment", "onRegister"]);
156
+ }
157
+ const le = /* @__PURE__ */ J(K, [["render", Q]]);
158
+ export {
159
+ le as default
160
+ };
@@ -27,12 +27,12 @@ var w = (u, f, s) => new Promise((a, x) => {
27
27
  P((s = s.apply(u, f)).next());
28
28
  });
29
29
  import { useMessage as on } from "/@/hooks/web/useMessage";
30
- import { ref as y, inject as an, reactive as rn, watch as sn, computed as un, resolveComponent as B, openBlock as I, createElementBlock as le, normalizeClass as cn, createVNode as G, createBlock as oe, withCtx as Q, Fragment as fn, renderList as dn, normalizeStyle as mn, createElementVNode as Ie, toDisplayString as je, createCommentVNode as me, renderSlot as pn, unref as Le, nextTick as Ne, toRaw as J } from "vue";
30
+ import { ref as y, inject as an, reactive as rn, watch as sn, computed as un, resolveComponent as B, createElementBlock as le, openBlock as I, normalizeClass as cn, createVNode as G, createBlock as oe, createCommentVNode as me, renderSlot as fn, withCtx as Q, Fragment as dn, renderList as mn, normalizeStyle as pn, createElementVNode as Ie, toDisplayString as je, toRaw as J, nextTick as Ne, unref as Le } from "vue";
31
31
  import { BasicForm as hn, useForm as gn } from "/@/components/Form/index";
32
- import { e as bn, O as yn, f as vn, h as Fn, u as Sn, l as Y, i as wn, g as Tn, V as X, S as kn, j as Cn, k as Je, d as pe } from "./useExtendComponent-95ce0719.mjs";
32
+ import { O as bn, e as yn, f as vn, h as Fn, u as Sn, l as Y, i as Je, g as wn, V as X, j as Tn, S as kn, k as Cn, d as pe } from "./useExtendComponent-P9wrWQwT.mjs";
33
33
  import { defHttp as ae } from "/@/utils/http/axios";
34
- import { pick as _n, omit as We, debounce as On, cloneDeep as Pn } from "lodash-es";
35
- import { sleep as An, goJmReportViewPage as En } from "/@/utils";
34
+ import { omit as We, pick as _n, debounce as On, cloneDeep as Pn } from "lodash-es";
35
+ import { goJmReportViewPage as An, sleep as En } from "/@/utils";
36
36
  import { Loading as Rn } from "/@/components/Loading";
37
37
  import "/@/components/jeecg/JVxeTable/types";
38
38
  import { getToken as xn } from "/@/utils/auth";
@@ -40,35 +40,13 @@ import { PrinterOutlined as Mn } from "@ant-design/icons-vue";
40
40
  import "/@/hooks/core/useContext";
41
41
  import "/@/utils/mitt";
42
42
  import { useModal as Dn } from "/@/components/Modal";
43
- import { u as Vn, G as Bn } from "./useCustomHook-3a17a690.mjs";
44
- import { E as ie } from "./constant-fa63bd66.mjs";
43
+ import { u as Vn, G as Bn } from "./useCustomHook-B35kFqDB.mjs";
44
+ import { E as ie } from "./constant-DnbpmwZg.mjs";
45
45
  import { useAppInject as In } from "/@/hooks/web/useAppInject";
46
46
  import { isArray as jn } from "/@/utils/is";
47
- import { usePermissionStore as Ln } from "/@/store/modules/permission";
48
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs";
49
- import { _ as Nn } from "./index-740b2c4a.mjs";
50
- import "/@/components/Form/src/componentMap";
51
- import "/@/utils/propTypes";
52
- import "/@/utils/common/compUtils";
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 "/@/utils/dict/JDictSelectUtil";
58
- import "/@/components/Table";
59
- import "/@/hooks/system/useListPage";
60
- import "vue-router";
61
- import "/@/components/Form/src/utils/Area";
62
- import "/@/components/Preview/index";
63
- import "./LinkTableListPiece-0f4ca559.mjs";
64
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
65
- import "/@/api/common/api";
66
- import "/@/assets/images/placeholderImage.png";
67
- import "./OnlineSelectCascade-fab4426d.mjs";
68
- import "./JModalTip-c3e6726c.mjs";
69
- import "ant-design-vue";
70
- import "@vueuse/core";
71
- import "/@/utils/cache";
47
+ import { usePermissionStore as Nn } from "/@/store/modules/permission";
48
+ /* empty css */
49
+ import { _ as Ln } from "./index-0kQBIHx0.mjs";
72
50
  const he = {
73
51
  optPre: "/online/cgform/api/form/",
74
52
  urlButtonAction: "/online/cgform/api/doButton"
@@ -77,9 +55,9 @@ const he = {
77
55
  components: {
78
56
  BasicForm: hn,
79
57
  Loading: Rn,
80
- OnlineSubForm: bn,
58
+ OnlineSubForm: yn,
81
59
  PrinterOutlined: Mn,
82
- OnlinePopModal: yn
60
+ OnlinePopModal: bn
83
61
  },
84
62
  props: {
85
63
  id: {
@@ -160,7 +138,6 @@ const he = {
160
138
  subDataSource: ee,
161
139
  baseColProps: Qe,
162
140
  createFormSchemas: Xe,
163
- linkDownList: Kn,
164
141
  fieldDisplayStatus: U,
165
142
  labelCol: Ze,
166
143
  wrapperCol: $e,
@@ -222,7 +199,7 @@ const he = {
222
199
  }
223
200
  });
224
201
  }
225
- const L = {
202
+ const N = {
226
203
  keys: [],
227
204
  map: /* @__PURE__ */ new Map(),
228
205
  calcFn: /* @__PURE__ */ new Map()
@@ -232,16 +209,16 @@ const he = {
232
209
  Le(_) === !1 && Y(e, (n) => {
233
210
  R(n);
234
211
  });
235
- const t = wn(e);
236
- L.keys = [...t.keys()], L.map = t, L.calcFn.clear();
212
+ const t = Tn(e);
213
+ N.keys = [...t.keys()], N.map = t, N.calcFn.clear();
237
214
  }
238
215
  function ct(e, t) {
239
- if (L.keys.includes(e)) {
240
- let n = L.calcFn.get(e);
216
+ if (N.keys.includes(e)) {
217
+ let n = N.calcFn.get(e);
241
218
  typeof n != "function" && (n = On(() => {
242
219
  let l = J(H[D.value]);
243
220
  if (Array.isArray(l) && l.length > 0) {
244
- const o = L.map.get(e);
221
+ const o = N.map.get(e);
245
222
  l = l.filter((i) => o.includes(i.field));
246
223
  } else
247
224
  l = [];
@@ -249,7 +226,7 @@ const he = {
249
226
  let o = te();
250
227
  Y(l, (i) => R(i), o);
251
228
  }
252
- }, 150), L.calcFn.set(e, n)), n(t);
229
+ }, 150), N.calcFn.set(e, n)), n(t);
253
230
  }
254
231
  }
255
232
  function Fe(e, t) {
@@ -323,7 +300,7 @@ const he = {
323
300
  function ht(e) {
324
301
  return w(this, null, function* () {
325
302
  P.value = e.head.tableType, D.value = e.head.tableName, M.value = e.head.tableType == 1, yt(e.head.extConfigJson), Xe(e.schema.properties, e.schema.required, ze, q), d = tt(e.enhanceJs), f("rendered", q);
326
- let t = yield Tn(x);
303
+ let t = yield wn(x);
327
304
  t.$formValueChange = (n, l, o) => {
328
305
  Vt(n, l), o && R(o), gt(n, l, o), ct(n, l);
329
306
  }, d && d.setup && Ee(d.setup), v = e;
@@ -395,13 +372,13 @@ const he = {
395
372
  break;
396
373
  if (ne.value = l, t[n].relationType === 0) {
397
374
  let o = k(e);
398
- An(300, () => o == null ? void 0 : o.validateTable());
375
+ En(300, () => o == null ? void 0 : o.validateTable());
399
376
  }
400
377
  break;
401
378
  }
402
379
  }
403
380
  function Tt() {
404
- return new Promise((e, t) => w(this, null, function* () {
381
+ return new Promise((e, t) => w(null, null, function* () {
405
382
  let n = {};
406
383
  try {
407
384
  let l = T.value;
@@ -488,13 +465,13 @@ const he = {
488
465
  const h = Pn(r.columns.filter((C) => C.type === "date" && C.fieldExtendJson));
489
466
  if (h.length) {
490
467
  const C = {};
491
- h.forEach((N) => {
492
- C[N.key] = {
468
+ h.forEach((L) => {
469
+ C[L.key] = {
493
470
  view: "date",
494
- fieldExtendJson: N.fieldExtendJson
471
+ fieldExtendJson: L.fieldExtendJson
495
472
  };
496
- }), m.forEach((N) => {
497
- l(N, C);
473
+ }), m.forEach((L) => {
474
+ l(L, C);
498
475
  });
499
476
  }
500
477
  }
@@ -593,7 +570,7 @@ const he = {
593
570
  if (!d || !d.onlChange || !e)
594
571
  return !1;
595
572
  let n = d.onlChange();
596
- n[e] && setTimeout(() => w(this, null, function* () {
573
+ n[e] && setTimeout(() => w(null, null, function* () {
597
574
  let o = {
598
575
  row: yield te(),
599
576
  column: { key: e },
@@ -671,8 +648,8 @@ const he = {
671
648
  url: `/sys/dict/loadDict/${i}`,
672
649
  params: { keyword: "", pageSize: 1e3 }
673
650
  }).then((h) => {
674
- const C = t.split(","), N = { customOptions: !0, dictTable: C[0], dictCode: C[2], dictText: C[1], options: h };
675
- n && (N.title = n), r.columns[g] = S(S({}, r.columns[g]), N), window.findSubTableInfo = r;
651
+ const C = t.split(","), L = { customOptions: !0, dictTable: C[0], dictCode: C[2], dictText: C[1], options: h };
652
+ n && (L.title = n), r.columns[g] = S(S({}, r.columns[g]), L), window.findSubTableInfo = r;
676
653
  });
677
654
  }
678
655
  } else if (l == "subForm") {
@@ -695,7 +672,7 @@ const he = {
695
672
  n && (r.label = n), z(r);
696
673
  }
697
674
  }
698
- function Lt(e, t, n) {
675
+ function Nt(e, t, n) {
699
676
  const l = T.value.find((o) => o.key === e);
700
677
  if (l) {
701
678
  !n && n.length <= 0 && (n = []), n.map((i) => {
@@ -705,7 +682,7 @@ const he = {
705
682
  o !== -1 && (l.columns[o] = de(S({}, l.columns[o]), { options: n, dictCode: "" }));
706
683
  }
707
684
  }
708
- function Nt(e, t, n) {
685
+ function Lt(e, t, n) {
709
686
  var l, o;
710
687
  (o = (l = E[e]) == null ? void 0 : l.value) != null && o[0] && (!n && n.length <= 0 && (n = []), n.map((i) => {
711
688
  i.hasOwnProperty("label") || (i.label = i.text);
@@ -747,18 +724,16 @@ const he = {
747
724
  }
748
725
  function Yt() {
749
726
  let e = q.reportPrintUrl, t = V.value.id, n = xn();
750
- En(e, t, n);
727
+ An(e, t, n);
751
728
  }
752
729
  function Kt() {
753
730
  setTimeout(() => {
754
731
  var o, i;
755
- if (!a.value)
756
- return;
732
+ if (!a.value) return;
757
733
  const e = document.createElement("iframe");
758
734
  e.style.display = "none", document.body.appendChild(e);
759
735
  const t = e.contentDocument || ((o = e.contentWindow) == null ? void 0 : o.document);
760
- if (!t)
761
- return;
736
+ if (!t) return;
762
737
  t.open(), t.write(`
763
738
  <!DOCTYPE html>
764
739
  <html>
@@ -822,8 +797,7 @@ const he = {
822
797
  k(t).addRows(n, { isOnlineJS: !1, setActive: !1, emitChange: !0, isModalData: !0 });
823
798
  }
824
799
  function Qt() {
825
- if (u.themeTemplate === ie)
826
- return;
800
+ if (u.themeTemplate === ie) return;
827
801
  let e = T.value;
828
802
  if (e && e.length > 0) {
829
803
  for (let t of e)
@@ -881,8 +855,8 @@ const he = {
881
855
  executeMainFillRule: Xt,
882
856
  executeSubFillRule: Zt,
883
857
  // update-begin--author:liaozhiyang---date:20240313---for:【QQYUN-8350】js增强根据主表限制子表options
884
- changeSubTableOptions: Lt,
885
- changeSubFormbleOptions: Nt,
858
+ changeSubTableOptions: Nt,
859
+ changeSubFormbleOptions: Lt,
886
860
  // update-end--author:liaozhiyang---date:20240313---for:【QQYUN-8350】js增强根据主表限制子表options
887
861
  changeRemoteOptions: jt,
888
862
  changEvent: () => {
@@ -920,7 +894,7 @@ const he = {
920
894
  openSubFormModalForEdit: zt,
921
895
  getBtnAuth: (e, t) => {
922
896
  const n = Ae(t);
923
- let o = Ln().getOnlineSubTableAuth(n);
897
+ let o = Nn().getOnlineSubTableAuth(n);
924
898
  return o != null && o.length ? !o.find((c) => c === e) : !0;
925
899
  },
926
900
  handleRemoved: Mt,
@@ -975,7 +949,7 @@ function Yn(u, f, s, a, x, M) {
975
949
  "onUpdate:activeKey": f[0] || (f[0] = (p) => a.subActiveKey = p)
976
950
  }, {
977
951
  default: Q(() => [
978
- (I(!0), le(fn, null, dn(a.subTabInfo, (p, K) => (I(), oe(_, {
952
+ (I(!0), le(dn, null, mn(a.subTabInfo, (p, K) => (I(), oe(_, {
979
953
  tab: p.describe,
980
954
  key: K + "",
981
955
  forceRender: !0
@@ -985,7 +959,7 @@ function Yn(u, f, s, a, x, M) {
985
959
  key: 0,
986
960
  ref_for: !0,
987
961
  ref: "subFormWrapRef",
988
- style: mn({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": a.subFormHeight + "px" })
962
+ style: pn({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": a.subFormHeight + "px" })
989
963
  }, [
990
964
  G(P, {
991
965
  ref_for: !0,
@@ -1032,8 +1006,8 @@ function Yn(u, f, s, a, x, M) {
1032
1006
  default: Q(() => [
1033
1007
  Ie("span", null, je(a.getSubOpenAddBtnCfg.buttonName), 1)
1034
1008
  ]),
1035
- _: 2
1036
- }, 1032, ["preIcon", "onClick"])) : me("", !0),
1009
+ _: 1
1010
+ }, 8, ["preIcon", "onClick"])) : me("", !0),
1037
1011
  !a.onlineFormDisabled && a.getSubOpenEditBtnCfg.enabled && a.getBtnAuth("update", p.key) ? (I(), oe(F, {
1038
1012
  key: 1,
1039
1013
  type: "primary",
@@ -1043,8 +1017,8 @@ function Yn(u, f, s, a, x, M) {
1043
1017
  default: Q(() => [
1044
1018
  Ie("span", null, je(a.getSubOpenEditBtnCfg.buttonName), 1)
1045
1019
  ]),
1046
- _: 2
1047
- }, 1032, ["preIcon", "onClick"])) : me("", !0)
1020
+ _: 1
1021
+ }, 8, ["preIcon", "onClick"])) : me("", !0)
1048
1022
  ]),
1049
1023
  _: 2
1050
1024
  }, 1032, ["row-number", "height", "disabled", "columns", "dataSource", "addBtnCfg", "removeBtnCfg", "onValueChange", "onRemoved", "authPre", "onAdded", "onExecuteFillRule"])
@@ -1059,7 +1033,7 @@ function Yn(u, f, s, a, x, M) {
1059
1033
  loading: a.loading,
1060
1034
  absolute: !1
1061
1035
  }, null, 8, ["loading"]),
1062
- pn(u.$slots, "bottom", {}, void 0, !0),
1036
+ fn(u.$slots, "bottom", {}, void 0, !0),
1063
1037
  G(W, {
1064
1038
  formTableType: "3",
1065
1039
  request: a.popModalRequest,
@@ -1073,7 +1047,7 @@ function Yn(u, f, s, a, x, M) {
1073
1047
  }, null, 8, ["request", "id", "onRegister", "onSuccess", "taskId", "tableName"])
1074
1048
  ], 10, Wn);
1075
1049
  }
1076
- const Il = /* @__PURE__ */ Nn(Jn, [["render", Yn], ["__scopeId", "data-v-60bd1850"]]);
1050
+ const pl = /* @__PURE__ */ Ln(Jn, [["render", Yn], ["__scopeId", "data-v-55ae5029"]]);
1077
1051
  export {
1078
- Il as default
1052
+ pl as default
1079
1053
  };