@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,261 +0,0 @@
1
- var k = (e, p, o) => new Promise((d, s) => {
2
- var f = (t) => {
3
- try {
4
- r(o.next(t));
5
- } catch (i) {
6
- s(i);
7
- }
8
- }, a = (t) => {
9
- try {
10
- r(o.throw(t));
11
- } catch (i) {
12
- s(i);
13
- }
14
- }, r = (t) => t.done ? d(t.value) : Promise.resolve(t.value).then(f, a);
15
- r((o = o.apply(e, p)).next());
16
- });
17
- import { defineComponent as q, ref as N, watch as z, resolveComponent as l, openBlock as u, createBlock as b, mergeProps as y, withCtx as m, createVNode as C, createElementBlock as G, Fragment as J, renderList as K, createTextVNode as Q, toDisplayString as B, createElementVNode as O, createCommentVNode as M } from "vue";
18
- import { BasicModal as X } from "/@/components/Modal";
19
- import Y from "./OnlineForm-20604e4f.mjs";
20
- import { b as Z } from "./useExtendComponent-ad499dff.mjs";
21
- import _ from "/@/components/jeecg/comment/CommentPanel.vue";
22
- import { a as x } from "./constant-fa63bd66.mjs";
23
- import { _ as ee } from "./index-94b6319e.mjs";
24
- import "/@/hooks/web/useMessage";
25
- import "/@/components/Form/index";
26
- import "/@/utils/http/axios";
27
- import "lodash-es";
28
- import "/@/utils";
29
- import "/@/components/Loading";
30
- import "/@/components/jeecg/JVxeTable/types";
31
- import "/@/utils/auth";
32
- import "@ant-design/icons-vue";
33
- import "/@/hooks/core/useContext";
34
- import "/@/utils/mitt";
35
- import "./useCustomHook-3a17a690.mjs";
36
- import "/@/utils/cache";
37
- import "/@/utils/common/compUtils";
38
- import "/@/store/modules/user";
39
- import "/@/hooks/web/useAppInject";
40
- import "/@/utils/is";
41
- import "./dayjs.min-eea532a3.mjs";
42
- import "/@/store/modules/permission";
43
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs";
44
- import "/@/components/Form/src/componentMap";
45
- import "/@/utils/propTypes";
46
- import "/@/components/Form/src/jeecg/components/JUpload";
47
- import "/@/views/system/user/user.api";
48
- import "/@/utils/desform/customExpression";
49
- import "/@/utils/dict/JDictSelectUtil";
50
- import "/@/components/Table";
51
- import "/@/hooks/system/useListPage";
52
- import "vue-router";
53
- import "/@/components/Form/src/utils/Area";
54
- import "/@/components/Preview/index";
55
- import "./LinkTableListPiece-47f4286c.mjs";
56
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
57
- import "/@/api/common/api";
58
- import "/@/assets/images/placeholderImage.png";
59
- import "./OnlineSelectCascade-180e8c9a.mjs";
60
- import "./JModalTip-5401f43d.mjs";
61
- import "ant-design-vue";
62
- import "@vueuse/core";
63
- const te = q({
64
- name: "OnlineAutoModal",
65
- props: {
66
- id: {
67
- type: String,
68
- default: ""
69
- },
70
- // 为了区分来源,编码时主要是erp子表有特殊处理
71
- source: {
72
- type: String,
73
- default: ""
74
- },
75
- buttonSwitch: Object,
76
- cgBIBtnMap: Object,
77
- confirmBtnCfg: {
78
- type: Object,
79
- default: () => ({
80
- enabled: !0,
81
- buttonName: "确定",
82
- buttonIcon: ""
83
- })
84
- },
85
- cancelBtnCfg: {
86
- type: Object,
87
- default: () => ({
88
- enabled: !0,
89
- buttonName: "关闭",
90
- buttonIcon: ""
91
- })
92
- }
93
- },
94
- components: {
95
- BasicModal: X,
96
- OnlineForm: Y,
97
- CommentPanel: _
98
- },
99
- emits: ["success", "register", "formConfig"],
100
- setup(e, { emit: p }) {
101
- const o = N(), d = N(0);
102
- function s() {
103
- o.value && o.value.reload();
104
- }
105
- const {
106
- title: f,
107
- modalWidth: a,
108
- registerModal: r,
109
- closeModal: t,
110
- cgButtonList: i,
111
- handleCgButtonClick: g,
112
- disableSubmit: h,
113
- handleSubmit: n,
114
- submitLoading: I,
115
- handleCancel: T,
116
- handleFormConfig: w,
117
- onlineFormCompRef: F,
118
- formTemplate: R,
119
- isTreeForm: v,
120
- pidFieldName: $,
121
- renderSuccess: E,
122
- formRendered: L,
123
- tableName: j,
124
- tableId: P,
125
- formDataId: A,
126
- enableComment: V,
127
- onCloseEvent: S,
128
- themeTemplate: D
129
- } = Z(!1, { emit: p }, s);
130
- function W(c) {
131
- p("success", c), t(), S();
132
- }
133
- z(() => e.id, H, { immediate: !0 });
134
- function H() {
135
- return k(this, null, function* () {
136
- if (L.value = !1, !e.id)
137
- return;
138
- const c = {};
139
- e.source === x && (c.tabletype = 3), yield w(e.id, c);
140
- });
141
- }
142
- return {
143
- title: f,
144
- onlineFormCompRef: F,
145
- renderSuccess: E,
146
- registerModal: r,
147
- handleSubmit: n,
148
- handleSuccess: W,
149
- handleCancel: T,
150
- modalWidth: a,
151
- formTemplate: R,
152
- disableSubmit: h,
153
- cgButtonList: i,
154
- handleCgButtonClick: g,
155
- isTreeForm: v,
156
- pidFieldName: $,
157
- submitLoading: I,
158
- tableName: j,
159
- tableId: P,
160
- formDataId: A,
161
- enableComment: V,
162
- commentPanelRef: o,
163
- onCloseEvent: S,
164
- themeTemplate: D,
165
- handleCommentOpen: (c, U) => {
166
- d.value = U;
167
- },
168
- commentSpan: d
169
- };
170
- }
171
- });
172
- function oe(e, p, o, d, s, f) {
173
- const a = l("a-button"), r = l("a-col"), t = l("a-row"), i = l("online-form"), g = l("comment-panel"), h = l("BasicModal");
174
- return u(), b(h, y({
175
- title: e.title,
176
- onCancel: e.onCloseEvent,
177
- enableComment: e.enableComment,
178
- width: e.modalWidth
179
- }, e.$attrs, {
180
- maxHeight: 600,
181
- onRegister: e.registerModal,
182
- wrapClassName: "jeecg-online-modal",
183
- onOk: e.handleSubmit,
184
- onCommentOpen: e.handleCommentOpen
185
- }), {
186
- footer: m(() => [
187
- C(t, null, {
188
- default: m(() => [
189
- C(r, {
190
- span: 24 - e.commentSpan
191
- }, {
192
- default: m(() => [
193
- (u(!0), G(J, null, K(e.cgButtonList, (n) => (u(), b(a, {
194
- key: n.id,
195
- type: "primary",
196
- onClick: (I) => e.handleCgButtonClick(n.optType, n.buttonCode),
197
- preIcon: n.buttonIcon ? "ant-design:" + n.buttonIcon : ""
198
- }, {
199
- default: m(() => [
200
- Q(B(n.buttonName), 1)
201
- ]),
202
- _: 2
203
- }, 1032, ["onClick", "preIcon"]))), 128)),
204
- !e.disableSubmit && e.confirmBtnCfg.enabled ? (u(), b(a, {
205
- key: "submit",
206
- type: "primary",
207
- preIcon: e.confirmBtnCfg.buttonIcon,
208
- loading: e.submitLoading,
209
- onClick: e.handleSubmit
210
- }, {
211
- default: m(() => [
212
- O("span", null, B(e.confirmBtnCfg.buttonName), 1)
213
- ]),
214
- _: 1
215
- }, 8, ["preIcon", "loading", "onClick"])) : M("", !0),
216
- e.cancelBtnCfg.enabled ? (u(), b(a, {
217
- key: "back",
218
- onClick: e.handleCancel
219
- }, {
220
- default: m(() => [
221
- O("span", null, B(e.cancelBtnCfg.buttonName), 1)
222
- ]),
223
- _: 1
224
- }, 8, ["onClick"])) : M("", !0)
225
- ]),
226
- _: 1
227
- }, 8, ["span"])
228
- ]),
229
- _: 1
230
- })
231
- ]),
232
- comment: m(() => [
233
- C(g, {
234
- ref: "commentPanelRef",
235
- tableId: e.tableId,
236
- tableName: e.tableName,
237
- dataId: e.formDataId
238
- }, null, 8, ["tableId", "tableName", "dataId"])
239
- ]),
240
- default: m(() => [
241
- C(i, y(e.$attrs, {
242
- ref: "onlineFormCompRef",
243
- id: e.id,
244
- disabled: e.disableSubmit,
245
- "form-template": e.formTemplate,
246
- isTree: e.isTreeForm,
247
- pidField: e.pidFieldName,
248
- themeTemplate: e.themeTemplate,
249
- cgBIBtnMap: e.cgBIBtnMap,
250
- buttonSwitch: e.buttonSwitch,
251
- onRendered: e.renderSuccess,
252
- onSuccess: e.handleSuccess
253
- }), null, 16, ["id", "disabled", "form-template", "isTree", "pidField", "themeTemplate", "cgBIBtnMap", "buttonSwitch", "onRendered", "onSuccess"])
254
- ]),
255
- _: 1
256
- }, 16, ["title", "onCancel", "enableComment", "width", "onRegister", "onOk", "onCommentOpen"]);
257
- }
258
- const _e = /* @__PURE__ */ ee(te, [["render", oe]]);
259
- export {
260
- _e as default
261
- };
@@ -1,247 +0,0 @@
1
- var X = Object.defineProperty;
2
- var _ = Object.getOwnPropertySymbols;
3
- var Y = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable;
4
- var I = (o, n, e) => n in o ? X(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e, k = (o, n) => {
5
- for (var e in n || (n = {}))
6
- Y.call(n, e) && I(o, e, n[e]);
7
- if (_)
8
- for (var e of _(n))
9
- Z.call(n, e) && I(o, e, n[e]);
10
- return o;
11
- };
12
- var f = (o, n, e) => new Promise((a, d) => {
13
- var i = (r) => {
14
- try {
15
- p(e.next(r));
16
- } catch (l) {
17
- d(l);
18
- }
19
- }, u = (r) => {
20
- try {
21
- p(e.throw(r));
22
- } catch (l) {
23
- d(l);
24
- }
25
- }, p = (r) => r.done ? a(r.value) : Promise.resolve(r.value).then(i, u);
26
- p((e = e.apply(o, n)).next());
27
- });
28
- import { defineComponent as x, ref as s, nextTick as B, watch as oo, reactive as eo, markRaw as to, defineAsyncComponent as no, resolveComponent as w, openBlock as R, createBlock as b, mergeProps as ro, withCtx as C, createVNode as P, createTextVNode as E, toDisplayString as D, resolveDynamicComponent as mo } from "vue";
29
- import { BasicModal as io, useModalInner as lo } from "/@/components/Modal";
30
- import { g as N } from "./useExtendComponent-ad499dff.mjs";
31
- import { defHttp as so } from "/@/utils/http/axios";
32
- import ao from "./OnlineForm-20604e4f.mjs";
33
- import { importViewsFile as po } from "/@/utils";
34
- import { omit as uo } from "lodash-es";
35
- import { _ as co } from "./index-94b6319e.mjs";
36
- import "/@/components/Form/src/componentMap";
37
- import "/@/utils/propTypes";
38
- import "@ant-design/icons-vue";
39
- import "/@/hooks/web/useMessage";
40
- import "/@/components/Form/index";
41
- import "./constant-fa63bd66.mjs";
42
- import "/@/utils/common/compUtils";
43
- import "/@/components/Form/src/jeecg/components/JUpload";
44
- import "/@/utils/is";
45
- import "/@/views/system/user/user.api";
46
- import "./dayjs.min-eea532a3.mjs";
47
- import "/@/store/modules/user";
48
- import "/@/utils/desform/customExpression";
49
- import "/@/store/modules/permission";
50
- import "/@/utils/dict/JDictSelectUtil";
51
- import "/@/components/Table";
52
- import "/@/hooks/system/useListPage";
53
- import "vue-router";
54
- import "/@/components/Form/src/utils/Area";
55
- import "/@/components/Preview/index";
56
- import "./LinkTableListPiece-47f4286c.mjs";
57
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
58
- import "/@/utils/auth";
59
- import "/@/api/common/api";
60
- import "/@/hooks/web/useAppInject";
61
- import "/@/assets/images/placeholderImage.png";
62
- import "./OnlineSelectCascade-180e8c9a.mjs";
63
- import "/@/components/Loading";
64
- import "./JModalTip-5401f43d.mjs";
65
- import "ant-design-vue";
66
- import "@vueuse/core";
67
- import "/@/components/jeecg/JVxeTable/types";
68
- import "/@/hooks/core/useContext";
69
- import "/@/utils/mitt";
70
- import "./useCustomHook-3a17a690.mjs";
71
- import "/@/utils/cache";
72
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs";
73
- const fo = {
74
- code: "",
75
- row: {},
76
- hide: [],
77
- show: [],
78
- requestUrl: "",
79
- tableType: "",
80
- foreignKeys: "",
81
- formComponent: ""
82
- }, Co = x({
83
- name: "OnlineCustomModal",
84
- components: {
85
- OnlineForm: ao,
86
- BasicModal: io
87
- },
88
- setup(o, { emit: n, attrs: e }) {
89
- const a = s(), d = s({}), i = s("");
90
- let u = [], p = [], r = "", l = {};
91
- const c = {
92
- loadFormItems: "/online/cgform/api/getFormItem/",
93
- optPre: "/online/cgform/api/form/"
94
- }, $ = { position: "relative" }, L = s(!1), g = s(!1);
95
- function U() {
96
- g.value = !0;
97
- }
98
- const F = s(!0), [V, { setModalProps: j, closeModal: O }] = lo((t) => f(this, null, function* () {
99
- j({ confirmLoading: !1 }), q(t), yield B(() => f(this, null, function* () {
100
- t.formComponent ? W(t.formComponent) : yield z();
101
- }));
102
- }));
103
- function q(t) {
104
- let m = Object.assign({}, fo, t);
105
- i.value = m.code, d.value = k(k({
106
- title: "自定义弹框",
107
- width: 600
108
- }, e), uo(t, ["row", "formComponent", "hide", "show", "requestUrl"])), u = m.hide || [], p = m.show || [], r = A(m.requestUrl), l = m.row;
109
- }
110
- function A(t) {
111
- return t || c.optPre + i.value;
112
- }
113
- const y = s(!1);
114
- function H() {
115
- y.value = !0, F.value === !0 ? a.value.handleSubmit() : M.value.handleSubmit(), setTimeout(() => {
116
- y.value = !0;
117
- }, 3500);
118
- }
119
- function G() {
120
- O();
121
- }
122
- function K(t) {
123
- n("success", t), O();
124
- }
125
- function z() {
126
- return f(this, null, function* () {
127
- F.value = !0, yield N(g), a.value.handleCustomFormSh(p, u), a.value.handleCustomFormEdit(l, r);
128
- });
129
- }
130
- const T = s(1);
131
- oo(i, J, { immediate: !0 });
132
- function J() {
133
- return f(this, null, function* () {
134
- if (g.value = !1, !i.value)
135
- return;
136
- let t = yield Q(), m = t.head.formTemplate;
137
- T.value = m ? Number(m) : 1, B(() => f(this, null, function* () {
138
- (yield N(a)).createRootProperties(t);
139
- }));
140
- });
141
- }
142
- function Q() {
143
- let t = `/online/cgform/api/getFormItem/${i.value}`;
144
- return new Promise((m, v) => {
145
- so.get({ url: t }, { isTransformResponse: !1 }).then((S) => {
146
- S.success ? m(S.result) : v(S.message);
147
- }).catch(() => {
148
- v();
149
- });
150
- });
151
- }
152
- const M = s(), h = eo({
153
- url: "",
154
- is: "",
155
- row: {}
156
- });
157
- function W(t) {
158
- F.value = !1, h.url = r, h.row = l, h.is = to(no(() => po(t)));
159
- }
160
- return {
161
- //modal
162
- registerModal: V,
163
- modalProps: d,
164
- modalStyle: $,
165
- handleSubmit: H,
166
- handleCancel: G,
167
- // online表单
168
- id: i,
169
- onlineFormCompRef: a,
170
- formTemplate: T,
171
- renderSuccess: U,
172
- //自定义表单
173
- customFormRef: M,
174
- customFormComponent: h,
175
- //通用
176
- open,
177
- isOnlineForm: F,
178
- confirmLoading: L,
179
- submitLoading: y,
180
- handleSuccess: K
181
- };
182
- }
183
- });
184
- function Fo(o, n, e, a, d, i) {
185
- const u = w("a-button"), p = w("online-form"), r = w("a-spin"), l = w("BasicModal");
186
- return R(), b(l, ro(o.modalProps, {
187
- style: o.modalStyle,
188
- onRegister: o.registerModal,
189
- wrapClassName: "jeecg-online-modal2",
190
- onOk: o.handleSubmit
191
- }), {
192
- footer: C(() => [
193
- P(u, {
194
- key: "submit",
195
- type: "primary",
196
- onClick: o.handleSubmit
197
- }, {
198
- default: C(() => {
199
- var c;
200
- return [
201
- E(D((c = o.modalProps.okText) != null ? c : "确定"), 1)
202
- ];
203
- }),
204
- _: 1
205
- }, 8, ["onClick"]),
206
- P(u, {
207
- key: "back",
208
- onClick: o.handleCancel
209
- }, {
210
- default: C(() => {
211
- var c;
212
- return [
213
- E(D((c = o.modalProps.cancelText) != null ? c : "关闭"), 1)
214
- ];
215
- }),
216
- _: 1
217
- }, 8, ["onClick"])
218
- ]),
219
- default: C(() => [
220
- P(r, { spinning: o.confirmLoading }, {
221
- default: C(() => [
222
- o.isOnlineForm ? (R(), b(p, {
223
- key: 0,
224
- ref: "onlineFormCompRef",
225
- id: o.id,
226
- "form-template": o.formTemplate,
227
- onRendered: o.renderSuccess,
228
- onSuccess: o.handleSuccess,
229
- modalClass: "jeecg-online-modal2"
230
- }, null, 8, ["id", "form-template", "onRendered", "onSuccess"])) : (R(), b(mo(o.customFormComponent.is), {
231
- key: 1,
232
- ref: "customFormRef",
233
- url: o.customFormComponent.url,
234
- row: o.customFormComponent.row,
235
- onClose: o.handleSuccess
236
- }, null, 40, ["url", "row", "onClose"]))
237
- ]),
238
- _: 1
239
- }, 8, ["spinning"])
240
- ]),
241
- _: 1
242
- }, 16, ["style", "onRegister", "onOk"]);
243
- }
244
- const ae = /* @__PURE__ */ co(Co, [["render", Fo]]);
245
- export {
246
- ae as default
247
- };
@@ -1,199 +0,0 @@
1
- var c = (e, i, o) => new Promise((l, n) => {
2
- var p = (t) => {
3
- try {
4
- m(o.next(t));
5
- } catch (r) {
6
- n(r);
7
- }
8
- }, a = (t) => {
9
- try {
10
- m(o.throw(t));
11
- } catch (r) {
12
- n(r);
13
- }
14
- }, m = (t) => t.done ? l(t.value) : Promise.resolve(t.value).then(p, a);
15
- m((o = o.apply(e, i)).next());
16
- });
17
- import { defineComponent as E, ref as P, watch as v, resolveComponent as d, openBlock as u, createBlock as b, mergeProps as L, withCtx as s, createElementVNode as O, toDisplayString as A, createCommentVNode as V, renderSlot as j, createVNode as C } from "vue";
18
- import { BasicModal as W } from "/@/components/Modal";
19
- import q from "./OnlineFormDetail-719118b6.mjs";
20
- import { b as H } from "./useExtendComponent-ad499dff.mjs";
21
- import U from "/@/components/jeecg/comment/CommentPanel.vue";
22
- import { a as z, I as G } from "./constant-fa63bd66.mjs";
23
- import { _ as J } from "./index-94b6319e.mjs";
24
- import "/@/hooks/web/useMessage";
25
- import "/@/components/Loading";
26
- import "/@/utils/auth";
27
- import "/@/utils";
28
- import "@ant-design/icons-vue";
29
- import "./DetailForm-a2bf8c33.mjs";
30
- import "/@/utils/propTypes";
31
- import "/@/utils/dict";
32
- import "/@/utils/dict/JDictSelectUtil";
33
- import "/@/utils/dict/index";
34
- import "/@/api/common/api";
35
- import "/@/utils/http/axios";
36
- import "/@/components/Form/src/utils/Area";
37
- import "/@/utils/common/compUtils";
38
- import "/@/components/Preview/index";
39
- import "/@/components/Markdown";
40
- import "/@/components/Form/src/componentMap";
41
- import "/@/components/Form/index";
42
- import "lodash-es";
43
- import "/@/components/Form/src/jeecg/components/JUpload";
44
- import "/@/utils/is";
45
- import "/@/views/system/user/user.api";
46
- import "./dayjs.min-eea532a3.mjs";
47
- import "/@/store/modules/user";
48
- import "/@/utils/desform/customExpression";
49
- import "/@/store/modules/permission";
50
- import "/@/components/Table";
51
- import "/@/hooks/system/useListPage";
52
- import "vue-router";
53
- import "./LinkTableListPiece-47f4286c.mjs";
54
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
55
- import "/@/hooks/web/useAppInject";
56
- import "/@/assets/images/placeholderImage.png";
57
- import "./OnlineSelectCascade-180e8c9a.mjs";
58
- import "./JModalTip-5401f43d.mjs";
59
- import "ant-design-vue";
60
- import "@vueuse/core";
61
- import "./OnlineSubFormDetail-4d64e7be.mjs";
62
- import "/@/utils/uuid";
63
- const K = E({
64
- name: "OnlineDetailModal",
65
- props: {
66
- id: {
67
- type: String,
68
- required: !1,
69
- default: ""
70
- },
71
- // 为了区分来源,编码时主要是erp子表有特殊处理
72
- source: {
73
- type: String,
74
- default: ""
75
- },
76
- cancelBtnCfg: {
77
- type: Object,
78
- default: () => ({
79
- enabled: !0,
80
- buttonName: "关闭",
81
- buttonIcon: ""
82
- })
83
- }
84
- },
85
- components: {
86
- BasicModal: W,
87
- OnlineFormDetail: q,
88
- CommentPanel: U
89
- },
90
- emits: ["success", "register", "formConfig"],
91
- setup(e, { emit: i }) {
92
- const o = P();
93
- function l() {
94
- o.value && o.value.reload();
95
- }
96
- const {
97
- title: n,
98
- modalWidth: p,
99
- registerModal: a,
100
- cgButtonList: m,
101
- handleCgButtonClick: t,
102
- disableSubmit: r,
103
- handleSubmit: h,
104
- submitLoading: g,
105
- handleCancel: B,
106
- handleFormConfig: N,
107
- onlineFormCompRef: R,
108
- formTemplate: S,
109
- isTreeForm: w,
110
- pidFieldName: T,
111
- renderSuccess: F,
112
- formRendered: I,
113
- showSub: M,
114
- tableName: _,
115
- formDataId: k,
116
- enableComment: y,
117
- themeTemplate: D
118
- } = H(!1, { emit: i }, l);
119
- v(() => e.id, $, { immediate: !0 });
120
- function $() {
121
- return c(this, null, function* () {
122
- if (I.value = !1, !e.id)
123
- return;
124
- let f = {};
125
- (e.source === z || e.source === G) && (f.tabletype = 3), yield N(e.id, f);
126
- });
127
- }
128
- return {
129
- title: n,
130
- onlineFormCompRef: R,
131
- renderSuccess: F,
132
- registerModal: a,
133
- handleSubmit: h,
134
- handleCancel: B,
135
- modalWidth: p,
136
- formTemplate: S,
137
- disableSubmit: r,
138
- cgButtonList: m,
139
- handleCgButtonClick: t,
140
- isTreeForm: w,
141
- pidFieldName: T,
142
- submitLoading: g,
143
- showSub: M,
144
- tableName: _,
145
- formDataId: k,
146
- enableComment: y,
147
- commentPanelRef: o,
148
- themeTemplate: D
149
- };
150
- }
151
- });
152
- function Q(e, i, o, l, n, p) {
153
- const a = d("a-button"), m = d("online-form-detail"), t = d("comment-panel"), r = d("BasicModal");
154
- return u(), b(r, L({
155
- title: e.title,
156
- width: e.modalWidth,
157
- maxHeight: 600,
158
- enableComment: e.enableComment,
159
- defaultFullscreen: !1
160
- }, e.$attrs, {
161
- onRegister: e.registerModal,
162
- wrapClassName: "jeecg-online-detail-modal"
163
- }), {
164
- footer: s(() => [
165
- e.cancelBtnCfg.enabled ? (u(), b(a, {
166
- key: "back",
167
- onClick: e.handleCancel
168
- }, {
169
- default: s(() => [
170
- O("span", null, A(e.cancelBtnCfg.buttonName), 1)
171
- ]),
172
- _: 1
173
- }, 8, ["onClick"])) : V("", !0),
174
- j(e.$slots, "footerBtn")
175
- ]),
176
- comment: s(() => [
177
- C(t, {
178
- ref: "commentPanelRef",
179
- tableName: e.tableName,
180
- dataId: e.formDataId
181
- }, null, 8, ["tableName", "dataId"])
182
- ]),
183
- default: s(() => [
184
- C(m, {
185
- ref: "onlineFormCompRef",
186
- id: e.id,
187
- "form-template": e.formTemplate,
188
- "show-sub": e.showSub,
189
- themeTemplate: e.themeTemplate,
190
- onRendered: e.renderSuccess
191
- }, null, 8, ["id", "form-template", "show-sub", "themeTemplate", "onRendered"])
192
- ]),
193
- _: 3
194
- }, 16, ["title", "width", "enableComment", "onRegister"]);
195
- }
196
- const Ue = /* @__PURE__ */ J(K, [["render", Q]]);
197
- export {
198
- Ue as default
199
- };