@jeecg/online 3.9.0-beta → 3.9.1-RC

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