@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
@@ -1,114 +0,0 @@
1
- import { defineComponent as x, ref as n, unref as o, watch as F, openBlock as u, createElementBlock as I, normalizeClass as c, createVNode as d, withCtx as f, createElementVNode as b, createCommentVNode as _, createBlock as R } from "vue";
2
- import { Card as y, Spin as O } from "ant-design-vue";
3
- import { useMessage as U } from "/@/hooks/web/useMessage";
4
- import "/@/components/Form/index";
5
- import "/@/utils/http/axios";
6
- import "lodash-es";
7
- import "/@/utils";
8
- import { u as B } from "./useExtendComponent-95ce0719.mjs";
9
- import "/@/components/Loading";
10
- import "/@/components/jeecg/JVxeTable/types";
11
- import "/@/utils/auth";
12
- import "@ant-design/icons-vue";
13
- import "/@/hooks/core/useContext";
14
- import "/@/utils/mitt";
15
- import "/@/components/Modal";
16
- import "/@/utils/cache";
17
- import "/@/utils/common/compUtils";
18
- import "/@/store/modules/user";
19
- import "/@/hooks/web/useAppInject";
20
- import "/@/utils/is";
21
- import "/@/store/modules/permission";
22
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs";
23
- import { useRoute as M, useRouter as S } from "vue-router";
24
- import T from "./OnlineAutoModal-a0d1a6b8.mjs";
25
- import { u as D, a as N } from "./useListButton-73071548.mjs";
26
- import { u as V } from "./useFormUrl-2ee1a82d.mjs";
27
- import { _ as $ } from "./index-740b2c4a.mjs";
28
- import "/@/components/Form/src/componentMap";
29
- import "/@/utils/propTypes";
30
- import "./constant-fa63bd66.mjs";
31
- import "/@/components/Form/src/jeecg/components/JUpload";
32
- import "/@/views/system/user/user.api";
33
- import "/@/utils/desform/customExpression";
34
- import "/@/utils/dict/JDictSelectUtil";
35
- import "/@/components/Table";
36
- import "/@/hooks/system/useListPage";
37
- import "/@/components/Form/src/utils/Area";
38
- import "/@/components/Preview/index";
39
- import "./LinkTableListPiece-0f4ca559.mjs";
40
- import "/@/api/common/api";
41
- import "/@/assets/images/placeholderImage.png";
42
- import "./OnlineSelectCascade-fab4426d.mjs";
43
- import "./JModalTip-c3e6726c.mjs";
44
- import "@vueuse/core";
45
- import "./OnlineForm-86b5966d.mjs";
46
- import "./useCustomHook-3a17a690.mjs";
47
- import "/@/components/jeecg/comment/CommentPanel.vue";
48
- import "/@/router";
49
- import "/@/hooks/core/onMountedOrActivated";
50
- import "/@/store/modules/multipleTab";
51
- import "./cgformState-d9f8ec42.mjs";
52
- import "pinia";
53
- import "/@/store";
54
- import "/@/router/menus";
55
- import "/@/hooks/system/useMethods";
56
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
57
- const H = /* @__PURE__ */ x({
58
- __name: "OnlineFormUrlEdit",
59
- setup(q) {
60
- const { ID: t, onlineTableContext: m, onlineExtConfigJson: g, handleFormConfig: h } = D(), { createMessage: C } = U(), e = M(), p = n(null), a = n(400), s = n(!0), v = S(), { token: r } = V();
61
- if (!o(r))
62
- throw new Error("token不存在~");
63
- if (!t.value || !e.params.dataId)
64
- throw C.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
65
- B(m), F(
66
- () => p.value,
67
- (i) => {
68
- a.value = i.offsetHeight - 60;
69
- }
70
- );
71
- const { registerModal: w, handleEdit: l } = N(m, g), E = (i) => document.querySelector(`.online-edit-${t.value}`), k = () => {
72
- setTimeout(() => {
73
- l({ id: e.params.dataId }), v.push({ path: "/online/formUrlSuccess" });
74
- }, 0);
75
- };
76
- return setTimeout(() => {
77
- r && l({ id: e.params.dataId }), s.value = !1;
78
- }, 1e3), (i, z) => (u(), I("div", {
79
- class: c([["p-2"], "online-wrap"])
80
- }, [
81
- d(o(y), { bordered: !1 }, {
82
- default: f(() => [
83
- d(o(O), { spinning: s.value }, {
84
- default: f(() => [
85
- b("div", {
86
- class: c(["wrap", `online-edit-${o(t)}`]),
87
- ref_key: "wrapRef",
88
- ref: p
89
- }, [
90
- _("", !0),
91
- o(r) ? (u(), R(T, {
92
- key: 1,
93
- id: o(t),
94
- maskClosable: !1,
95
- onRegister: o(w),
96
- getContainer: E,
97
- onFormConfig: o(h),
98
- onSuccess: k,
99
- height: a.value
100
- }, null, 8, ["id", "onRegister", "onFormConfig", "height"])) : _("", !0)
101
- ], 2)
102
- ]),
103
- _: 1
104
- }, 8, ["spinning"])
105
- ]),
106
- _: 1
107
- })
108
- ]));
109
- }
110
- });
111
- const jo = /* @__PURE__ */ $(H, [["__scopeId", "data-v-0b4f6a76"]]);
112
- export {
113
- jo as default
114
- };
@@ -1,147 +0,0 @@
1
- var u = (t, i, m) => new Promise((e, a) => {
2
- var l = (r) => {
3
- try {
4
- p(m.next(r));
5
- } catch (o) {
6
- a(o);
7
- }
8
- }, n = (r) => {
9
- try {
10
- p(m.throw(r));
11
- } catch (o) {
12
- a(o);
13
- }
14
- }, p = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(l, n);
15
- p((m = m.apply(t, i)).next());
16
- });
17
- import { useMessage as h } from "/@/hooks/web/useMessage";
18
- import { ref as d, watch as b, resolveComponent as F, openBlock as S, createBlock as v } from "vue";
19
- import { BasicForm as y } from "/@/components/Form/index";
20
- import { defHttp as D } from "/@/utils/http/axios";
21
- import { m as w, g as x } from "./useExtendComponent-95ce0719.mjs";
22
- import { Loading as O } from "/@/components/Loading";
23
- import $ from "./DetailForm-7d4f630e.mjs";
24
- import { _ as k } from "./index-740b2c4a.mjs";
25
- import "/@/components/Form/src/componentMap";
26
- import "/@/utils/propTypes";
27
- import "@ant-design/icons-vue";
28
- import "/@/components/Modal";
29
- import "lodash-es";
30
- import "./constant-fa63bd66.mjs";
31
- import "/@/utils/common/compUtils";
32
- import "/@/components/Form/src/jeecg/components/JUpload";
33
- import "/@/utils/is";
34
- import "/@/views/system/user/user.api";
35
- import "/@/store/modules/user";
36
- import "/@/utils";
37
- import "/@/utils/desform/customExpression";
38
- import "/@/store/modules/permission";
39
- import "/@/utils/dict/JDictSelectUtil";
40
- import "/@/components/Table";
41
- import "/@/hooks/system/useListPage";
42
- import "vue-router";
43
- import "/@/components/Form/src/utils/Area";
44
- import "/@/components/Preview/index";
45
- import "./LinkTableListPiece-0f4ca559.mjs";
46
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
47
- import "/@/utils/auth";
48
- import "/@/api/common/api";
49
- import "/@/hooks/web/useAppInject";
50
- import "/@/assets/images/placeholderImage.png";
51
- import "./OnlineSelectCascade-fab4426d.mjs";
52
- import "./JModalTip-c3e6726c.mjs";
53
- import "ant-design-vue";
54
- import "@vueuse/core";
55
- import "/@/utils/dict";
56
- import "/@/utils/dict/index";
57
- import "/@/components/Markdown";
58
- const B = "/online/cgform/api/subform", I = {
59
- name: "OnlineSubFormDetail",
60
- components: {
61
- BasicForm: y,
62
- Loading: O,
63
- DetailForm: $
64
- },
65
- props: {
66
- properties: {
67
- type: Object,
68
- required: !0
69
- },
70
- mainId: {
71
- type: String,
72
- default: ""
73
- },
74
- table: {
75
- type: String,
76
- default: ""
77
- },
78
- formTemplate: {
79
- type: Number,
80
- default: 1
81
- }
82
- },
83
- emits: ["formChange"],
84
- setup(t) {
85
- const i = d(!1);
86
- h();
87
- const m = d(""), e = d({}), { detailFormSchemas: a, createFormSchemas: l, formSpan: n } = w(t);
88
- b(
89
- () => t.table,
90
- () => {
91
- m.value = t.table;
92
- },
93
- { immediate: !0 }
94
- ), b(
95
- () => t.properties,
96
- () => {
97
- i.value = !1, l(t.properties), i.value = !0;
98
- },
99
- { deep: !0, immediate: !0 }
100
- ), b(
101
- () => t.mainId,
102
- () => {
103
- setTimeout(() => {
104
- p();
105
- }, 100);
106
- },
107
- { immediate: !0 }
108
- );
109
- function p() {
110
- return u(this, null, function* () {
111
- yield x(i), e.value = {};
112
- const { table: o, mainId: s } = t;
113
- if (!o || !s)
114
- return;
115
- let c = s.substring(0, s.indexOf("__"));
116
- e.value = (yield r(o, c)) || {};
117
- });
118
- }
119
- function r(o, s) {
120
- return u(this, null, function* () {
121
- let c = `${B}/${o}/${s}`;
122
- return new Promise((_, g) => {
123
- D.get({ url: c }, { isTransformResponse: !1 }).then((f) => {
124
- f.success ? _(f.result) : g(f.message);
125
- });
126
- }).catch((_) => Promise.resolve({}));
127
- });
128
- }
129
- return {
130
- detailFormSchemas: a,
131
- subFormData: e,
132
- formSpan: n
133
- };
134
- }
135
- };
136
- function P(t, i, m, e, a, l) {
137
- const n = F("detail-form");
138
- return S(), v(n, {
139
- schemas: e.detailFormSchemas,
140
- data: e.subFormData,
141
- span: e.formSpan
142
- }, null, 8, ["schemas", "data", "span"]);
143
- }
144
- const St = /* @__PURE__ */ k(I, [["render", P]]);
145
- export {
146
- St as default
147
- };
@@ -1,319 +0,0 @@
1
- var L = (e, n, i) => new Promise((c, d) => {
2
- var C = (a) => {
3
- try {
4
- s(i.next(a));
5
- } catch (p) {
6
- d(p);
7
- }
8
- }, h = (a) => {
9
- try {
10
- s(i.throw(a));
11
- } catch (p) {
12
- d(p);
13
- }
14
- }, s = (a) => a.done ? c(a.value) : Promise.resolve(a.value).then(C, h);
15
- s((i = i.apply(e, n)).next());
16
- });
17
- import { defineComponent as oe, ref as B, watch as ne, computed as ae, resolveComponent as r, openBlock as m, createBlock as u, mergeProps as re, createSlots as le, withCtx as o, createVNode as f, createElementBlock as A, Fragment as V, renderList as j, createTextVNode as I, toDisplayString as g, createElementVNode as N, createCommentVNode as me } from "vue";
18
- import { BasicModal as ie } from "/@/components/Modal";
19
- import de from "./OnlineTabForm-5c04cbc5.mjs";
20
- import { b as se } from "./useExtendComponent-95ce0719.mjs";
21
- import pe from "/@/components/jeecg/comment/CommentPanel.vue";
22
- import { T as ue } from "./constant-fa63bd66.mjs";
23
- import { useAppInject as ce } from "/@/hooks/web/useAppInject";
24
- import { _ as be } from "./index-740b2c4a.mjs";
25
- import "/@/hooks/web/useMessage";
26
- import "/@/components/Form/index";
27
- import "/@/utils/http/axios";
28
- import "lodash-es";
29
- import "/@/utils";
30
- import "/@/components/Loading";
31
- import "/@/utils/auth";
32
- import "@ant-design/icons-vue";
33
- import "./useCustomHook-3a17a690.mjs";
34
- import "/@/utils/cache";
35
- import "/@/utils/common/compUtils";
36
- import "/@/store/modules/user";
37
- import "/@/components/Form/src/componentMap";
38
- import "/@/utils/propTypes";
39
- import "/@/components/Form/src/jeecg/components/JUpload";
40
- import "/@/utils/is";
41
- import "/@/views/system/user/user.api";
42
- import "/@/utils/desform/customExpression";
43
- import "/@/store/modules/permission";
44
- import "/@/utils/dict/JDictSelectUtil";
45
- import "/@/components/Table";
46
- import "/@/hooks/system/useListPage";
47
- import "vue-router";
48
- import "/@/components/Form/src/utils/Area";
49
- import "/@/components/Preview/index";
50
- import "./LinkTableListPiece-0f4ca559.mjs";
51
- import "/@/api/common/api";
52
- import "/@/assets/images/placeholderImage.png";
53
- import "./OnlineSelectCascade-fab4426d.mjs";
54
- import "./JModalTip-c3e6726c.mjs";
55
- import "ant-design-vue";
56
- import "@vueuse/core";
57
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
58
- const fe = oe({
59
- name: "OnlineTabAutoModal",
60
- props: {
61
- id: {
62
- type: String,
63
- default: ""
64
- },
65
- cgBIBtnMap: Object,
66
- buttonSwitch: Object,
67
- confirmBtnCfg: {
68
- type: Object,
69
- default: () => ({
70
- enabled: !0,
71
- buttonName: "确定",
72
- buttonIcon: ""
73
- })
74
- }
75
- },
76
- components: {
77
- BasicModal: ie,
78
- OnlineForm: de,
79
- CommentPanel: pe
80
- },
81
- emits: ["success", "register", "formConfig"],
82
- setup(e, { emit: n }) {
83
- const i = B(), c = B([]), d = B("-1"), C = B(0), { getIsMobile: h } = ce();
84
- function s() {
85
- i.value && i.value.reload();
86
- }
87
- const {
88
- title: a,
89
- modalWidth: p,
90
- registerModal: S,
91
- closeModal: T,
92
- cgButtonList: y,
93
- handleCgButtonClick: w,
94
- disableSubmit: M,
95
- handleSubmit: _,
96
- submitLoading: O,
97
- handleCancel: t,
98
- handleFormConfig: b,
99
- onlineFormCompRef: P,
100
- formTemplate: W,
101
- isTreeForm: H,
102
- pidFieldName: U,
103
- renderSuccess: q,
104
- formRendered: z,
105
- tableName: G,
106
- formDataId: J,
107
- enableComment: K,
108
- onCloseEvent: D,
109
- themeTemplate: Q
110
- } = se(!1, { emit: n }, s);
111
- function X(l) {
112
- n("success", l), T(), D(), E();
113
- }
114
- ne(() => e.id, Y, { immediate: !0 });
115
- function Y() {
116
- return L(this, null, function* () {
117
- z.value = !1, e.id && (yield b(e.id, {}, (l) => {
118
- const k = [], F = [], { head: $, schema: ee } = l, { properties: te } = ee;
119
- k.push({ tableName: $.tableName, tableTxt: $.tableTxt }), Object.entries(te).forEach(([R, v]) => {
120
- v.view == "tab" && F.push({ tableName: R, tableTxt: v.describe, order: v.order });
121
- }), F.sort((R, v) => R.order - v.order), c.value = [...k, ...F];
122
- }));
123
- });
124
- }
125
- const Z = (l) => String(l - 1), E = () => {
126
- setTimeout(() => {
127
- d.value = "-1";
128
- }, 500);
129
- }, x = ae(() => h.value && c.value.length > 2);
130
- return {
131
- title: a,
132
- onlineFormCompRef: P,
133
- renderSuccess: q,
134
- registerModal: S,
135
- handleSubmit: _,
136
- handleSuccess: X,
137
- handleCancel: t,
138
- modalWidth: p,
139
- formTemplate: W,
140
- disableSubmit: M,
141
- cgButtonList: y,
142
- handleCgButtonClick: w,
143
- isTreeForm: H,
144
- pidFieldName: U,
145
- submitLoading: O,
146
- tableName: G,
147
- formDataId: J,
148
- enableComment: K,
149
- commentPanelRef: i,
150
- onCloseEvent: D,
151
- themeTemplate: Q,
152
- tabNav: c,
153
- tabValue: Z,
154
- tabIndex: d,
155
- TAB: ue,
156
- restTabIndex: E,
157
- handleMenuClick: ({ key: l }) => {
158
- d.value = l;
159
- },
160
- showDropdownBtn: x,
161
- handleToggleTab: (l) => {
162
- d.value = l;
163
- },
164
- handleCommentOpen: (l, k) => {
165
- C.value = k;
166
- },
167
- commentSpan: C
168
- };
169
- }
170
- });
171
- const ge = { class: "titleArea" }, Ce = { class: "title" }, he = { class: "right" };
172
- function Te(e, n, i, c, d, C) {
173
- const h = r("a-menu-item"), s = r("a-menu"), a = r("a-dropdown-button"), p = r("a-radio-button"), S = r("a-radio-group"), T = r("a-button"), y = r("a-col"), w = r("a-row"), M = r("online-form"), _ = r("comment-panel"), O = r("BasicModal");
174
- return m(), u(O, re({
175
- title: e.title,
176
- onCancel: n[2] || (n[2] = () => {
177
- e.onCloseEvent(), e.restTabIndex();
178
- }),
179
- enableComment: e.enableComment,
180
- width: e.modalWidth
181
- }, e.$attrs, {
182
- maxHeight: 600,
183
- onRegister: e.registerModal,
184
- wrapClassName: "jeecg-online-modal",
185
- onOk: e.handleSubmit,
186
- onCommentOpen: e.handleCommentOpen
187
- }), le({
188
- footer: o(() => [
189
- f(w, null, {
190
- default: o(() => [
191
- f(y, {
192
- span: 24 - e.commentSpan
193
- }, {
194
- default: o(() => [
195
- (m(!0), A(V, null, j(e.cgButtonList, (t) => (m(), u(T, {
196
- key: t.id,
197
- type: "primary",
198
- onClick: (b) => e.handleCgButtonClick(t.optType, t.buttonCode),
199
- preIcon: t.buttonIcon ? "ant-design:" + t.buttonIcon : ""
200
- }, {
201
- default: o(() => [
202
- I(g(t.buttonName), 1)
203
- ]),
204
- _: 2
205
- }, 1032, ["onClick", "preIcon"]))), 128)),
206
- !e.disableSubmit && e.confirmBtnCfg.enabled ? (m(), u(T, {
207
- key: "submit",
208
- type: "primary",
209
- preIcon: e.confirmBtnCfg.buttonIcon,
210
- loading: e.submitLoading,
211
- onClick: e.handleSubmit
212
- }, {
213
- default: o(() => [
214
- N("span", null, g(e.confirmBtnCfg.buttonName), 1)
215
- ]),
216
- _: 1
217
- }, 8, ["preIcon", "loading", "onClick"])) : me("", !0),
218
- f(T, {
219
- key: "back",
220
- onClick: n[1] || (n[1] = () => {
221
- e.handleCancel(), e.restTabIndex();
222
- })
223
- }, {
224
- default: o(() => n[3] || (n[3] = [
225
- I("关闭")
226
- ])),
227
- _: 1
228
- })
229
- ]),
230
- _: 1
231
- }, 8, ["span"])
232
- ]),
233
- _: 1
234
- })
235
- ]),
236
- comment: o(() => [
237
- f(_, {
238
- ref: "commentPanelRef",
239
- tableName: e.tableName,
240
- dataId: e.formDataId
241
- }, null, 8, ["tableName", "dataId"])
242
- ]),
243
- default: o(() => [
244
- f(M, {
245
- ref: "onlineFormCompRef",
246
- id: e.id,
247
- disabled: e.disableSubmit,
248
- "form-template": e.formTemplate,
249
- isTree: e.isTreeForm,
250
- pidField: e.pidFieldName,
251
- themeTemplate: e.themeTemplate,
252
- tabIndex: e.tabIndex,
253
- cgBIBtnMap: e.cgBIBtnMap,
254
- buttonSwitch: e.buttonSwitch,
255
- onRendered: e.renderSuccess,
256
- onSuccess: e.handleSuccess,
257
- onToggleTab: e.handleToggleTab
258
- }, null, 8, ["id", "disabled", "form-template", "isTree", "pidField", "themeTemplate", "tabIndex", "cgBIBtnMap", "buttonSwitch", "onRendered", "onSuccess", "onToggleTab"])
259
- ]),
260
- _: 2
261
- }, [
262
- e.themeTemplate === e.TAB ? {
263
- name: "title",
264
- fn: o(() => [
265
- N("div", ge, [
266
- N("div", Ce, g(e.title), 1),
267
- N("div", he, [
268
- e.showDropdownBtn ? (m(), u(a, {
269
- key: 0,
270
- trigger: "click"
271
- }, {
272
- overlay: o(() => [
273
- f(s, { onClick: e.handleMenuClick }, {
274
- default: o(() => [
275
- (m(!0), A(V, null, j(e.tabNav, (t, b) => (m(), u(h, {
276
- key: e.tabValue(b)
277
- }, {
278
- default: o(() => [
279
- I(g(t.tableTxt), 1)
280
- ]),
281
- _: 2
282
- }, 1024))), 128))
283
- ]),
284
- _: 1
285
- }, 8, ["onClick"])
286
- ]),
287
- default: o(() => [
288
- I(g(e.tabNav[+e.tabIndex + 1].tableTxt) + " ", 1)
289
- ]),
290
- _: 1
291
- })) : (m(), u(S, {
292
- key: 1,
293
- value: e.tabIndex,
294
- "onUpdate:value": n[0] || (n[0] = (t) => e.tabIndex = t)
295
- }, {
296
- default: o(() => [
297
- (m(!0), A(V, null, j(e.tabNav, (t, b) => (m(), u(p, {
298
- value: e.tabValue(b),
299
- key: t.tableName
300
- }, {
301
- default: o(() => [
302
- I(g(t.tableTxt), 1)
303
- ]),
304
- _: 2
305
- }, 1032, ["value"]))), 128))
306
- ]),
307
- _: 1
308
- }, 8, ["value"]))
309
- ])
310
- ])
311
- ]),
312
- key: "0"
313
- } : void 0
314
- ]), 1040, ["title", "enableComment", "width", "onRegister", "onOk", "onCommentOpen"]);
315
- }
316
- const ut = /* @__PURE__ */ be(fe, [["render", Te], ["__scopeId", "data-v-e1588480"]]);
317
- export {
318
- ut as default
319
- };