@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
@@ -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 { d as bn, O as yn, e as vn, f as Fn, u as Sn, l as Y, h as wn, g as Tn, V as X, S as kn, i as Cn, j as Je } from "./useExtendComponent-ad499dff.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,36 +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 { d as pe } from "./dayjs.min-eea532a3.mjs";
48
- import { usePermissionStore as Ln } from "/@/store/modules/permission";
49
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs";
50
- import { _ as Nn } from "./index-94b6319e.mjs";
51
- import "/@/components/Form/src/componentMap";
52
- import "/@/utils/propTypes";
53
- import "/@/utils/common/compUtils";
54
- import "/@/components/Form/src/jeecg/components/JUpload";
55
- import "/@/views/system/user/user.api";
56
- import "/@/store/modules/user";
57
- import "/@/utils/desform/customExpression";
58
- import "/@/utils/dict/JDictSelectUtil";
59
- import "/@/components/Table";
60
- import "/@/hooks/system/useListPage";
61
- import "vue-router";
62
- import "/@/components/Form/src/utils/Area";
63
- import "/@/components/Preview/index";
64
- import "./LinkTableListPiece-47f4286c.mjs";
65
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
66
- import "/@/api/common/api";
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
- import "/@/utils/cache";
47
+ import { usePermissionStore as Nn } from "/@/store/modules/permission";
48
+ /* empty css */
49
+ import { _ as Ln } from "./index-0kQBIHx0.mjs";
73
50
  const he = {
74
51
  optPre: "/online/cgform/api/form/",
75
52
  urlButtonAction: "/online/cgform/api/doButton"
@@ -78,9 +55,9 @@ const he = {
78
55
  components: {
79
56
  BasicForm: hn,
80
57
  Loading: Rn,
81
- OnlineSubForm: bn,
58
+ OnlineSubForm: yn,
82
59
  PrinterOutlined: Mn,
83
- OnlinePopModal: yn
60
+ OnlinePopModal: bn
84
61
  },
85
62
  props: {
86
63
  id: {
@@ -161,7 +138,6 @@ const he = {
161
138
  subDataSource: ee,
162
139
  baseColProps: Qe,
163
140
  createFormSchemas: Xe,
164
- linkDownList: Kn,
165
141
  fieldDisplayStatus: U,
166
142
  labelCol: Ze,
167
143
  wrapperCol: $e,
@@ -223,7 +199,7 @@ const he = {
223
199
  }
224
200
  });
225
201
  }
226
- const L = {
202
+ const N = {
227
203
  keys: [],
228
204
  map: /* @__PURE__ */ new Map(),
229
205
  calcFn: /* @__PURE__ */ new Map()
@@ -233,16 +209,16 @@ const he = {
233
209
  Le(_) === !1 && Y(e, (n) => {
234
210
  R(n);
235
211
  });
236
- const t = wn(e);
237
- 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();
238
214
  }
239
215
  function ct(e, t) {
240
- if (L.keys.includes(e)) {
241
- let n = L.calcFn.get(e);
216
+ if (N.keys.includes(e)) {
217
+ let n = N.calcFn.get(e);
242
218
  typeof n != "function" && (n = On(() => {
243
219
  let l = J(H[D.value]);
244
220
  if (Array.isArray(l) && l.length > 0) {
245
- const o = L.map.get(e);
221
+ const o = N.map.get(e);
246
222
  l = l.filter((i) => o.includes(i.field));
247
223
  } else
248
224
  l = [];
@@ -250,7 +226,7 @@ const he = {
250
226
  let o = te();
251
227
  Y(l, (i) => R(i), o);
252
228
  }
253
- }, 150), L.calcFn.set(e, n)), n(t);
229
+ }, 150), N.calcFn.set(e, n)), n(t);
254
230
  }
255
231
  }
256
232
  function Fe(e, t) {
@@ -324,7 +300,7 @@ const he = {
324
300
  function ht(e) {
325
301
  return w(this, null, function* () {
326
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);
327
- let t = yield Tn(x);
303
+ let t = yield wn(x);
328
304
  t.$formValueChange = (n, l, o) => {
329
305
  Vt(n, l), o && R(o), gt(n, l, o), ct(n, l);
330
306
  }, d && d.setup && Ee(d.setup), v = e;
@@ -396,13 +372,13 @@ const he = {
396
372
  break;
397
373
  if (ne.value = l, t[n].relationType === 0) {
398
374
  let o = k(e);
399
- An(300, () => o == null ? void 0 : o.validateTable());
375
+ En(300, () => o == null ? void 0 : o.validateTable());
400
376
  }
401
377
  break;
402
378
  }
403
379
  }
404
380
  function Tt() {
405
- return new Promise((e, t) => w(this, null, function* () {
381
+ return new Promise((e, t) => w(null, null, function* () {
406
382
  let n = {};
407
383
  try {
408
384
  let l = T.value;
@@ -489,13 +465,13 @@ const he = {
489
465
  const h = Pn(r.columns.filter((C) => C.type === "date" && C.fieldExtendJson));
490
466
  if (h.length) {
491
467
  const C = {};
492
- h.forEach((N) => {
493
- C[N.key] = {
468
+ h.forEach((L) => {
469
+ C[L.key] = {
494
470
  view: "date",
495
- fieldExtendJson: N.fieldExtendJson
471
+ fieldExtendJson: L.fieldExtendJson
496
472
  };
497
- }), m.forEach((N) => {
498
- l(N, C);
473
+ }), m.forEach((L) => {
474
+ l(L, C);
499
475
  });
500
476
  }
501
477
  }
@@ -594,7 +570,7 @@ const he = {
594
570
  if (!d || !d.onlChange || !e)
595
571
  return !1;
596
572
  let n = d.onlChange();
597
- n[e] && setTimeout(() => w(this, null, function* () {
573
+ n[e] && setTimeout(() => w(null, null, function* () {
598
574
  let o = {
599
575
  row: yield te(),
600
576
  column: { key: e },
@@ -672,8 +648,8 @@ const he = {
672
648
  url: `/sys/dict/loadDict/${i}`,
673
649
  params: { keyword: "", pageSize: 1e3 }
674
650
  }).then((h) => {
675
- const C = t.split(","), N = { customOptions: !0, dictTable: C[0], dictCode: C[2], dictText: C[1], options: h };
676
- 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;
677
653
  });
678
654
  }
679
655
  } else if (l == "subForm") {
@@ -696,7 +672,7 @@ const he = {
696
672
  n && (r.label = n), z(r);
697
673
  }
698
674
  }
699
- function Lt(e, t, n) {
675
+ function Nt(e, t, n) {
700
676
  const l = T.value.find((o) => o.key === e);
701
677
  if (l) {
702
678
  !n && n.length <= 0 && (n = []), n.map((i) => {
@@ -706,7 +682,7 @@ const he = {
706
682
  o !== -1 && (l.columns[o] = de(S({}, l.columns[o]), { options: n, dictCode: "" }));
707
683
  }
708
684
  }
709
- function Nt(e, t, n) {
685
+ function Lt(e, t, n) {
710
686
  var l, o;
711
687
  (o = (l = E[e]) == null ? void 0 : l.value) != null && o[0] && (!n && n.length <= 0 && (n = []), n.map((i) => {
712
688
  i.hasOwnProperty("label") || (i.label = i.text);
@@ -748,18 +724,16 @@ const he = {
748
724
  }
749
725
  function Yt() {
750
726
  let e = q.reportPrintUrl, t = V.value.id, n = xn();
751
- En(e, t, n);
727
+ An(e, t, n);
752
728
  }
753
729
  function Kt() {
754
730
  setTimeout(() => {
755
731
  var o, i;
756
- if (!a.value)
757
- return;
732
+ if (!a.value) return;
758
733
  const e = document.createElement("iframe");
759
734
  e.style.display = "none", document.body.appendChild(e);
760
735
  const t = e.contentDocument || ((o = e.contentWindow) == null ? void 0 : o.document);
761
- if (!t)
762
- return;
736
+ if (!t) return;
763
737
  t.open(), t.write(`
764
738
  <!DOCTYPE html>
765
739
  <html>
@@ -823,8 +797,7 @@ const he = {
823
797
  k(t).addRows(n, { isOnlineJS: !1, setActive: !1, emitChange: !0, isModalData: !0 });
824
798
  }
825
799
  function Qt() {
826
- if (u.themeTemplate === ie)
827
- return;
800
+ if (u.themeTemplate === ie) return;
828
801
  let e = T.value;
829
802
  if (e && e.length > 0) {
830
803
  for (let t of e)
@@ -882,8 +855,8 @@ const he = {
882
855
  executeMainFillRule: Xt,
883
856
  executeSubFillRule: Zt,
884
857
  // update-begin--author:liaozhiyang---date:20240313---for:【QQYUN-8350】js增强根据主表限制子表options
885
- changeSubTableOptions: Lt,
886
- changeSubFormbleOptions: Nt,
858
+ changeSubTableOptions: Nt,
859
+ changeSubFormbleOptions: Lt,
887
860
  // update-end--author:liaozhiyang---date:20240313---for:【QQYUN-8350】js增强根据主表限制子表options
888
861
  changeRemoteOptions: jt,
889
862
  changEvent: () => {
@@ -921,7 +894,7 @@ const he = {
921
894
  openSubFormModalForEdit: zt,
922
895
  getBtnAuth: (e, t) => {
923
896
  const n = Ae(t);
924
- let o = Ln().getOnlineSubTableAuth(n);
897
+ let o = Nn().getOnlineSubTableAuth(n);
925
898
  return o != null && o.length ? !o.find((c) => c === e) : !0;
926
899
  },
927
900
  handleRemoved: Mt,
@@ -976,7 +949,7 @@ function Yn(u, f, s, a, x, M) {
976
949
  "onUpdate:activeKey": f[0] || (f[0] = (p) => a.subActiveKey = p)
977
950
  }, {
978
951
  default: Q(() => [
979
- (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(_, {
980
953
  tab: p.describe,
981
954
  key: K + "",
982
955
  forceRender: !0
@@ -986,7 +959,7 @@ function Yn(u, f, s, a, x, M) {
986
959
  key: 0,
987
960
  ref_for: !0,
988
961
  ref: "subFormWrapRef",
989
- 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" })
990
963
  }, [
991
964
  G(P, {
992
965
  ref_for: !0,
@@ -1033,8 +1006,8 @@ function Yn(u, f, s, a, x, M) {
1033
1006
  default: Q(() => [
1034
1007
  Ie("span", null, je(a.getSubOpenAddBtnCfg.buttonName), 1)
1035
1008
  ]),
1036
- _: 2
1037
- }, 1032, ["preIcon", "onClick"])) : me("", !0),
1009
+ _: 1
1010
+ }, 8, ["preIcon", "onClick"])) : me("", !0),
1038
1011
  !a.onlineFormDisabled && a.getSubOpenEditBtnCfg.enabled && a.getBtnAuth("update", p.key) ? (I(), oe(F, {
1039
1012
  key: 1,
1040
1013
  type: "primary",
@@ -1044,8 +1017,8 @@ function Yn(u, f, s, a, x, M) {
1044
1017
  default: Q(() => [
1045
1018
  Ie("span", null, je(a.getSubOpenEditBtnCfg.buttonName), 1)
1046
1019
  ]),
1047
- _: 2
1048
- }, 1032, ["preIcon", "onClick"])) : me("", !0)
1020
+ _: 1
1021
+ }, 8, ["preIcon", "onClick"])) : me("", !0)
1049
1022
  ]),
1050
1023
  _: 2
1051
1024
  }, 1032, ["row-number", "height", "disabled", "columns", "dataSource", "addBtnCfg", "removeBtnCfg", "onValueChange", "onRemoved", "authPre", "onAdded", "onExecuteFillRule"])
@@ -1060,7 +1033,7 @@ function Yn(u, f, s, a, x, M) {
1060
1033
  loading: a.loading,
1061
1034
  absolute: !1
1062
1035
  }, null, 8, ["loading"]),
1063
- pn(u.$slots, "bottom", {}, void 0, !0),
1036
+ fn(u.$slots, "bottom", {}, void 0, !0),
1064
1037
  G(W, {
1065
1038
  formTableType: "3",
1066
1039
  request: a.popModalRequest,
@@ -1074,7 +1047,7 @@ function Yn(u, f, s, a, x, M) {
1074
1047
  }, null, 8, ["request", "id", "onRegister", "onSuccess", "taskId", "tableName"])
1075
1048
  ], 10, Wn);
1076
1049
  }
1077
- const jl = /* @__PURE__ */ Nn(Jn, [["render", Yn], ["__scopeId", "data-v-60bd1850"]]);
1050
+ const pl = /* @__PURE__ */ Ln(Jn, [["render", Yn], ["__scopeId", "data-v-55ae5029"]]);
1078
1051
  export {
1079
- jl as default
1052
+ pl as default
1080
1053
  };