@jeecg/online 3.7.1-RC → 3.7.4-beta

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 (143) hide show
  1. package/AccountLoginForm-84cbd344.mjs +254 -0
  2. package/AiModal-26903538.mjs +84 -0
  3. package/AppForgetPassword-52443f23.mjs +310 -0
  4. package/AppLogin-ecf798fa.mjs +287 -0
  5. package/AppLoginHeader-4432c584.mjs +27 -0
  6. package/AppNameEmail-3303a037.mjs +180 -0
  7. package/AppRegister-79a62c59.mjs +303 -0
  8. package/AppTenant-f0bef7ca.mjs +373 -0
  9. package/AppThirdForm-fd8b4604.mjs +189 -0
  10. package/AuthButtonConfig-d5bffca0.mjs +156 -0
  11. package/AuthButtonTree-b0bd6c40.mjs +165 -0
  12. package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-d3b7afa4.mjs} +23 -23
  13. package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-f14a98d9.mjs} +43 -43
  14. package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-f1e224cc.mjs} +71 -71
  15. package/AuthFieldTree-5cc0da05.mjs +232 -0
  16. package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-32556109.mjs} +6 -6
  17. package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-364f1f67.mjs} +9 -9
  18. package/BuiltInButtonList-bb6cf95c.mjs +10 -0
  19. package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
  20. package/CgformAddressModal-1131274c.mjs +260 -0
  21. package/CgformCopyList-5fba0810.mjs +252 -0
  22. package/{CgformModal-21c5c387.mjs → CgformModal-c4a4e0c2.mjs} +190 -194
  23. package/{CgreportModal-edefa8e3.mjs → CgreportModal-8a84aae5.mjs} +181 -168
  24. package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-8a938e3a.mjs} +3 -3
  25. package/CodeFileListModal-a924902a.mjs +159 -0
  26. package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-405e2b58.mjs} +66 -66
  27. package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
  28. package/CustomButtonList-c453b654.mjs +274 -0
  29. package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-1a45c7b7.mjs} +3 -3
  30. package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-f28ff0a3.mjs} +53 -54
  31. package/{DetailForm-deecbf3d.mjs → DetailForm-c592b8d8.mjs} +5 -5
  32. package/DropMenuItem-1e49abea.mjs +44 -0
  33. package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
  34. package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
  35. package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-dc4f9ade.mjs} +104 -104
  36. package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
  37. package/ErrorTip-bb616e32.mjs +7 -0
  38. package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
  39. package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
  40. package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
  41. package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
  42. package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
  43. package/{IndexTable-cdcc2b48.mjs → IndexTable-2ded2014.mjs} +3 -3
  44. package/JModalTip-a927f85d.mjs +49 -0
  45. package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-04ec87d0.mjs} +1 -1
  46. package/{LeftDepart-d5615ed9.mjs → LeftDepart-52cb6743.mjs} +1 -1
  47. package/LeftRole-b0e0b496.mjs +86 -0
  48. package/{LeftUser-22baa378.mjs → LeftUser-dd4b10e2.mjs} +30 -30
  49. package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
  51. package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
  52. package/{ModalFormDemo-711418db.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
  53. package/OnlCgformErpList-5c5acdaa.mjs +488 -0
  54. package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +38 -38
  56. package/OnlCgformInnerTableList-b283a525.mjs +474 -0
  57. package/OnlCgformTabList-91e3dd78.mjs +424 -0
  58. package/OnlineAutoList-84475f1b.mjs +513 -0
  59. package/OnlineAutoModal-95f46901.mjs +260 -0
  60. package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
  61. package/OnlineCustomModal-c8b1e780.mjs +232 -0
  62. package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
  63. package/OnlineForm-58282699.mjs +1012 -0
  64. package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +9 -9
  66. package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-ad912560.mjs} +11 -11
  67. package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +9 -9
  68. package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
  69. package/OnlineQueryForm-9248341f.mjs +484 -0
  70. package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
  71. package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
  72. package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-8be879b9.mjs} +52 -53
  73. package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
  74. package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
  75. package/OnlineTabForm-1940e88b.mjs +814 -0
  76. package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
  77. package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-66e7b485.mjs} +108 -108
  78. package/PhoneLoginForm-86437a9d.mjs +214 -0
  79. package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-98ede18d.mjs} +32 -32
  80. package/{QueryTable-f7bfca7f.mjs → QueryTable-65d3f54f.mjs} +3 -3
  81. package/SetSwitchOptions-f914bc17.mjs +62 -0
  82. package/ShareAddView-657f0f8b.mjs +86 -0
  83. package/ShareEditView-1b945fd3.mjs +92 -0
  84. package/ShareView-222ed3d8.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
  86. package/SingleView-23b0cb4e.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
  88. package/SuperQuery-46032e66.mjs +974 -0
  89. package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
  90. package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
  91. package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
  92. package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
  93. package/button.data-fe45d43b.mjs +12 -0
  94. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  95. package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
  96. package/index-19eaef11.mjs +11 -0
  97. package/index-1a2e8832.mjs +135 -0
  98. package/{index-f30613d1.mjs → index-2fb8e07f.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-9e1e1e53.mjs +57 -0
  101. package/{index-30e0e923.mjs → index-a039036e.mjs} +272 -262
  102. package/index-c5a79b0b.mjs +219 -0
  103. package/index-cce225be.mjs +110 -0
  104. package/index-f2c2d1cf.mjs +74 -0
  105. package/main.index.js +1 -1
  106. package/package.json +1 -1
  107. package/shareStore-7de6c7a6.mjs +67 -0
  108. package/style.css +1 -1
  109. package/useCgformList-f3cb9156.mjs +378 -0
  110. package/useExtendComponent-bb98e568.mjs +4460 -0
  111. package/useListButton-98908683.mjs +719 -0
  112. package/{useSchemas-a9c75b0f.mjs → useSchemas-b074f3a1.mjs} +33 -0
  113. package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
  114. package/utils-9fce7606.mjs +16 -0
  115. package/AiModal-6de335e3.mjs +0 -84
  116. package/AuthButtonConfig-89763932.mjs +0 -154
  117. package/AuthButtonTree-2d87d0b3.mjs +0 -157
  118. package/AuthFieldTree-e326fc38.mjs +0 -232
  119. package/CgformCopyList-365b3e8f.mjs +0 -251
  120. package/CodeFileListModal-24601898.mjs +0 -159
  121. package/CodeGeneratorModal-f09fe903.mjs +0 -282
  122. package/CustomButtonList-f07bc695.mjs +0 -397
  123. package/JModalTip-b055ab60.mjs +0 -49
  124. package/LeftRole-2ed8a2bf.mjs +0 -86
  125. package/OnlCgformErpList-58acdfa0.mjs +0 -470
  126. package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
  127. package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
  128. package/OnlCgformTabList-019ad753.mjs +0 -408
  129. package/OnlineAutoList-48589d09.mjs +0 -493
  130. package/OnlineAutoModal-c2928847.mjs +0 -239
  131. package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
  132. package/OnlineCustomModal-9e17b6ce.mjs +0 -232
  133. package/OnlineForm-9f1153ba.mjs +0 -985
  134. package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
  135. package/OnlineQueryForm-eedb9a60.mjs +0 -466
  136. package/OnlineTabForm-27655c83.mjs +0 -817
  137. package/SetSwitchOptions-b2af757f.mjs +0 -62
  138. package/SuperQuery-a8592995.mjs +0 -967
  139. package/index-1d1a6e56.mjs +0 -57
  140. package/useCgformList-f41d4dc1.mjs +0 -426
  141. package/useExtendComponent-dcae5c78.mjs +0 -4399
  142. package/useListButton-bfac4ecf.mjs +0 -697
  143. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
@@ -0,0 +1,232 @@
1
+ var c = (o, s, r) => new Promise((m, p) => {
2
+ var d = (t) => {
3
+ try {
4
+ a(r.next(t));
5
+ } catch (l) {
6
+ p(l);
7
+ }
8
+ }, u = (t) => {
9
+ try {
10
+ a(r.throw(t));
11
+ } catch (l) {
12
+ p(l);
13
+ }
14
+ }, a = (t) => t.done ? m(t.value) : Promise.resolve(t.value).then(d, u);
15
+ a((r = r.apply(o, s)).next());
16
+ });
17
+ import { defineComponent as z, ref as i, nextTick as T, watch as J, reactive as Q, markRaw as W, defineAsyncComponent as X, resolveComponent as F, openBlock as S, createBlock as k, mergeProps as Y, withCtx as f, createVNode as R, createTextVNode as P, resolveDynamicComponent as Z } from "vue";
18
+ import { BasicModal as x, useModalInner as oo } from "/@/components/Modal";
19
+ import { g as I } from "./useExtendComponent-bb98e568.mjs";
20
+ import { defHttp as eo } from "/@/utils/http/axios";
21
+ import to from "./OnlineForm-58282699.mjs";
22
+ import { importViewsFile as no } from "/@/utils";
23
+ import { _ as ro } from "./index-9e1e1e53.mjs";
24
+ import "/@/components/Form/src/componentMap";
25
+ import "/@/utils/propTypes";
26
+ import "@ant-design/icons-vue";
27
+ import "/@/hooks/web/useMessage";
28
+ import "/@/components/Form/index";
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/desform/customExpression";
37
+ import "/@/store/modules/permission";
38
+ import "/@/utils/dict/JDictSelectUtil";
39
+ import "/@/components/Table";
40
+ import "/@/hooks/system/useListPage";
41
+ import "vue-router";
42
+ import "/@/components/Form/src/utils/Area";
43
+ import "/@/components/Preview/index";
44
+ import "./LinkTableListPiece-e016b8e6.mjs";
45
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
46
+ import "/@/utils/auth";
47
+ import "/@/api/common/api";
48
+ import "/@/hooks/web/useAppInject";
49
+ import "/@/assets/images/placeholderImage.png";
50
+ import "./OnlineSelectCascade-d631ed72.mjs";
51
+ import "/@/components/Loading";
52
+ import "./JModalTip-a927f85d.mjs";
53
+ import "ant-design-vue";
54
+ import "@vueuse/core";
55
+ import "/@/components/jeecg/JVxeTable/types";
56
+ import "/@/hooks/core/useContext";
57
+ import "/@/utils/mitt";
58
+ import "./useCustomHook-acb00837.mjs";
59
+ import "/@/utils/cache";
60
+ import "./OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs";
61
+ const io = {
62
+ code: "",
63
+ title: "自定义弹框",
64
+ width: 600,
65
+ row: {},
66
+ hide: [],
67
+ show: [],
68
+ requestUrl: "",
69
+ tableType: "",
70
+ foreignKeys: "",
71
+ formComponent: ""
72
+ }, mo = z({
73
+ name: "OnlineCustomModal",
74
+ components: {
75
+ OnlineForm: to,
76
+ BasicModal: x
77
+ },
78
+ setup(o, { emit: s }) {
79
+ const r = i(), m = i(""), p = i("自定义弹框"), d = i(600);
80
+ let u = [], a = [], t = "", l = {};
81
+ const B = {
82
+ loadFormItems: "/online/cgform/api/getFormItem/",
83
+ optPre: "/online/cgform/api/form/"
84
+ }, E = { position: "relative" }, $ = i(!1), h = i(!1);
85
+ function N() {
86
+ h.value = !0;
87
+ }
88
+ const w = i(!0), [D, { setModalProps: L, closeModal: b }] = oo((e) => c(this, null, function* () {
89
+ L({ confirmLoading: !1 }), _(e), yield T(() => c(this, null, function* () {
90
+ e.formComponent ? K(e.formComponent) : yield H();
91
+ }));
92
+ }));
93
+ function _(e) {
94
+ let n = Object.assign({}, io, e);
95
+ m.value = n.code, p.value = n.title, d.value = n.width, u = n.hide || [], a = n.show || [], t = U(n.requestUrl), l = n.row;
96
+ }
97
+ function U(e) {
98
+ return e || B.optPre + m.value;
99
+ }
100
+ const g = i(!1);
101
+ function V() {
102
+ g.value = !0, w.value === !0 ? r.value.handleSubmit() : M.value.handleSubmit(), setTimeout(() => {
103
+ g.value = !0;
104
+ }, 3500);
105
+ }
106
+ function j() {
107
+ b();
108
+ }
109
+ function A(e) {
110
+ s("success", e), b();
111
+ }
112
+ function H() {
113
+ return c(this, null, function* () {
114
+ w.value = !0, yield I(h), r.value.handleCustomFormSh(a, u), r.value.handleCustomFormEdit(l, t);
115
+ });
116
+ }
117
+ const O = i(1);
118
+ J(m, q, { immediate: !0 });
119
+ function q() {
120
+ return c(this, null, function* () {
121
+ if (h.value = !1, !m.value)
122
+ return;
123
+ let e = yield G(), n = e.head.formTemplate;
124
+ O.value = n ? Number(n) : 1, T(() => c(this, null, function* () {
125
+ (yield I(r)).createRootProperties(e);
126
+ }));
127
+ });
128
+ }
129
+ function G() {
130
+ let e = `/online/cgform/api/getFormItem/${m.value}`;
131
+ return new Promise((n, v) => {
132
+ eo.get({ url: e }, { isTransformResponse: !1 }).then((y) => {
133
+ y.success ? n(y.result) : v(y.message);
134
+ }).catch(() => {
135
+ v();
136
+ });
137
+ });
138
+ }
139
+ const M = i(), C = Q({
140
+ url: "",
141
+ is: "",
142
+ row: {}
143
+ });
144
+ function K(e) {
145
+ w.value = !1, C.url = t, C.row = l, C.is = W(X(() => no(e)));
146
+ }
147
+ return {
148
+ //modal
149
+ registerModal: D,
150
+ title: p,
151
+ width: d,
152
+ modalStyle: E,
153
+ handleSubmit: V,
154
+ handleCancel: j,
155
+ // online表单
156
+ id: m,
157
+ onlineFormCompRef: r,
158
+ formTemplate: O,
159
+ renderSuccess: N,
160
+ //自定义表单
161
+ customFormRef: M,
162
+ customFormComponent: C,
163
+ //通用
164
+ open,
165
+ isOnlineForm: w,
166
+ confirmLoading: $,
167
+ submitLoading: g,
168
+ handleSuccess: A
169
+ };
170
+ }
171
+ });
172
+ function lo(o, s, r, m, p, d) {
173
+ const u = F("a-button"), a = F("online-form"), t = F("a-spin"), l = F("BasicModal");
174
+ return S(), k(l, Y({
175
+ title: o.title,
176
+ width: o.width
177
+ }, o.$attrs, {
178
+ style: o.modalStyle,
179
+ onRegister: o.registerModal,
180
+ wrapClassName: "jeecg-online-modal2",
181
+ onOk: o.handleSubmit
182
+ }), {
183
+ footer: f(() => [
184
+ R(u, {
185
+ key: "submit",
186
+ type: "primary",
187
+ onClick: o.handleSubmit
188
+ }, {
189
+ default: f(() => s[0] || (s[0] = [
190
+ P("确定")
191
+ ])),
192
+ _: 1
193
+ }, 8, ["onClick"]),
194
+ R(u, {
195
+ key: "back",
196
+ onClick: o.handleCancel
197
+ }, {
198
+ default: f(() => s[1] || (s[1] = [
199
+ P("关闭")
200
+ ])),
201
+ _: 1
202
+ }, 8, ["onClick"])
203
+ ]),
204
+ default: f(() => [
205
+ R(t, { spinning: o.confirmLoading }, {
206
+ default: f(() => [
207
+ o.isOnlineForm ? (S(), k(a, {
208
+ key: 0,
209
+ ref: "onlineFormCompRef",
210
+ id: o.id,
211
+ "form-template": o.formTemplate,
212
+ onRendered: o.renderSuccess,
213
+ onSuccess: o.handleSuccess,
214
+ modalClass: "jeecg-online-modal2"
215
+ }, null, 8, ["id", "form-template", "onRendered", "onSuccess"])) : (S(), k(Z(o.customFormComponent.is), {
216
+ key: 1,
217
+ ref: "customFormRef",
218
+ url: o.customFormComponent.url,
219
+ row: o.customFormComponent.row,
220
+ onClose: o.handleSuccess
221
+ }, null, 40, ["url", "row", "onClose"]))
222
+ ]),
223
+ _: 1
224
+ }, 8, ["spinning"])
225
+ ]),
226
+ _: 1
227
+ }, 16, ["title", "width", "style", "onRegister", "onOk"]);
228
+ }
229
+ const oe = /* @__PURE__ */ ro(mo, [["render", lo]]);
230
+ export {
231
+ oe as default
232
+ };
@@ -1,32 +1,32 @@
1
- var u = (e, n, o) => new Promise((l, i) => {
1
+ var c = (e, i, o) => new Promise((l, n) => {
2
2
  var p = (t) => {
3
3
  try {
4
4
  m(o.next(t));
5
5
  } catch (r) {
6
- i(r);
6
+ n(r);
7
7
  }
8
8
  }, a = (t) => {
9
9
  try {
10
10
  m(o.throw(t));
11
11
  } catch (r) {
12
- i(r);
12
+ n(r);
13
13
  }
14
14
  }, m = (t) => t.done ? l(t.value) : Promise.resolve(t.value).then(p, a);
15
- m((o = o.apply(e, n)).next());
15
+ m((o = o.apply(e, i)).next());
16
16
  });
17
- import { defineComponent as I, ref as P, watch as $, resolveComponent as d, openBlock as v, createBlock as E, mergeProps as L, withCtx as s, createVNode as f, createTextVNode as O } from "vue";
18
- import { BasicModal as A } from "/@/components/Modal";
19
- import V from "./OnlineFormDetail-022ca117.mjs";
20
- import { b as W } from "./useExtendComponent-dcae5c78.mjs";
21
- import j from "/@/components/jeecg/comment/CommentPanel.vue";
22
- import { a as q } from "./constant-fa63bd66.mjs";
23
- import { _ as H } from "./index-1d1a6e56.mjs";
17
+ import { defineComponent as P, ref as v, watch as O, resolveComponent as d, openBlock as u, createBlock as b, mergeProps as E, withCtx as s, createElementVNode as L, toDisplayString as V, createCommentVNode as j, renderSlot as A, createVNode as C } from "vue";
18
+ import { BasicModal as W } from "/@/components/Modal";
19
+ import q from "./OnlineFormDetail-fc087725.mjs";
20
+ import { b as H } from "./useExtendComponent-bb98e568.mjs";
21
+ import U from "/@/components/jeecg/comment/CommentPanel.vue";
22
+ import { a as z } from "./constant-fa63bd66.mjs";
23
+ import { _ as G } from "./index-9e1e1e53.mjs";
24
24
  import "/@/hooks/web/useMessage";
25
25
  import "/@/components/Loading";
26
26
  import "/@/utils/auth";
27
27
  import "/@/utils";
28
28
  import "@ant-design/icons-vue";
29
- import "./DetailForm-deecbf3d.mjs";
29
+ import "./DetailForm-c592b8d8.mjs";
30
30
  import "/@/utils/propTypes";
31
31
  import "/@/utils/dict";
32
32
  import "/@/utils/dict/JDictSelectUtil";
@@ -49,16 +49,16 @@ import "/@/store/modules/permission";
49
49
  import "/@/components/Table";
50
50
  import "/@/hooks/system/useListPage";
51
51
  import "vue-router";
52
- import "./LinkTableListPiece-f3a8e0d7.mjs";
52
+ import "./LinkTableListPiece-e016b8e6.mjs";
53
53
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
54
54
  import "/@/hooks/web/useAppInject";
55
55
  import "/@/assets/images/placeholderImage.png";
56
- import "./OnlineSelectCascade-05c40fef.mjs";
57
- import "./JModalTip-b055ab60.mjs";
56
+ import "./OnlineSelectCascade-d631ed72.mjs";
57
+ import "./JModalTip-a927f85d.mjs";
58
58
  import "ant-design-vue";
59
59
  import "@vueuse/core";
60
- import "./OnlineSubFormDetail-58e896ce.mjs";
61
- const U = I({
60
+ import "./OnlineSubFormDetail-8be879b9.mjs";
61
+ const J = P({
62
62
  name: "OnlineDetailModal",
63
63
  props: {
64
64
  id: {
@@ -70,78 +70,86 @@ const U = I({
70
70
  source: {
71
71
  type: String,
72
72
  default: ""
73
+ },
74
+ cancelBtnCfg: {
75
+ type: Object,
76
+ default: () => ({
77
+ enabled: !0,
78
+ buttonName: "关闭",
79
+ buttonIcon: ""
80
+ })
73
81
  }
74
82
  },
75
83
  components: {
76
- BasicModal: A,
77
- OnlineFormDetail: V,
78
- CommentPanel: j
84
+ BasicModal: W,
85
+ OnlineFormDetail: q,
86
+ CommentPanel: U
79
87
  },
80
88
  emits: ["success", "register", "formConfig"],
81
- setup(e, { emit: n }) {
82
- const o = P();
89
+ setup(e, { emit: i }) {
90
+ const o = v();
83
91
  function l() {
84
92
  o.value && o.value.reload();
85
93
  }
86
94
  const {
87
- title: i,
95
+ title: n,
88
96
  modalWidth: p,
89
97
  registerModal: a,
90
98
  cgButtonList: m,
91
99
  handleCgButtonClick: t,
92
100
  disableSubmit: r,
93
101
  handleSubmit: h,
94
- submitLoading: b,
95
- handleCancel: C,
96
- handleFormConfig: g,
97
- onlineFormCompRef: w,
98
- formTemplate: R,
99
- isTreeForm: _,
100
- pidFieldName: B,
101
- renderSuccess: S,
102
+ submitLoading: g,
103
+ handleCancel: B,
104
+ handleFormConfig: N,
105
+ onlineFormCompRef: S,
106
+ formTemplate: w,
107
+ isTreeForm: R,
108
+ pidFieldName: F,
109
+ renderSuccess: M,
102
110
  formRendered: T,
103
- showSub: F,
104
- tableName: M,
105
- formDataId: N,
106
- enableComment: k,
107
- themeTemplate: D
108
- } = W(!1, { emit: n }, l);
109
- $(() => e.id, y, { immediate: !0 });
110
- function y() {
111
- return u(this, null, function* () {
111
+ showSub: k,
112
+ tableName: y,
113
+ formDataId: _,
114
+ enableComment: D,
115
+ themeTemplate: I
116
+ } = H(!1, { emit: i }, l);
117
+ O(() => e.id, $, { immediate: !0 });
118
+ function $() {
119
+ return c(this, null, function* () {
112
120
  if (T.value = !1, !e.id)
113
121
  return;
114
- let c = {};
115
- e.source === q && (c.tabletype = 3), yield g(e.id, c);
122
+ let f = {};
123
+ e.source === z && (f.tabletype = 3), yield N(e.id, f);
116
124
  });
117
125
  }
118
126
  return {
119
- title: i,
120
- onlineFormCompRef: w,
121
- renderSuccess: S,
127
+ title: n,
128
+ onlineFormCompRef: S,
129
+ renderSuccess: M,
122
130
  registerModal: a,
123
131
  handleSubmit: h,
124
- handleCancel: C,
132
+ handleCancel: B,
125
133
  modalWidth: p,
126
- formTemplate: R,
134
+ formTemplate: w,
127
135
  disableSubmit: r,
128
136
  cgButtonList: m,
129
137
  handleCgButtonClick: t,
130
- isTreeForm: _,
131
- pidFieldName: B,
132
- submitLoading: b,
133
- showSub: F,
134
- tableName: M,
135
- formDataId: N,
136
- enableComment: k,
138
+ isTreeForm: R,
139
+ pidFieldName: F,
140
+ submitLoading: g,
141
+ showSub: k,
142
+ tableName: y,
143
+ formDataId: _,
144
+ enableComment: D,
137
145
  commentPanelRef: o,
138
- themeTemplate: D
146
+ themeTemplate: I
139
147
  };
140
148
  }
141
149
  });
142
- function z(e, n, o, l, i, p) {
150
+ function K(e, i, o, l, n, p) {
143
151
  const a = d("a-button"), m = d("online-form-detail"), t = d("comment-panel"), r = d("BasicModal");
144
- return v(), E(r, L({
152
+ return u(), b(r, E({
145
153
  title: e.title,
146
154
  width: e.modalWidth,
147
155
  maxHeight: 600,
@@ -152,25 +160,26 @@ function z(e, n, o, l, i, p) {
152
160
  wrapClassName: "jeecg-online-detail-modal"
153
161
  }), {
154
162
  footer: s(() => [
155
- f(a, {
163
+ e.cancelBtnCfg.enabled ? (u(), b(a, {
156
164
  key: "back",
157
165
  onClick: e.handleCancel
158
166
  }, {
159
167
  default: s(() => [
160
- O("关闭")
168
+ L("span", null, V(e.cancelBtnCfg.buttonName), 1)
161
169
  ]),
162
170
  _: 1
163
- }, 8, ["onClick"])
171
+ }, 8, ["onClick"])) : j("", !0),
172
+ A(e.$slots, "footerBtn")
164
173
  ]),
165
174
  comment: s(() => [
166
- f(t, {
175
+ C(t, {
167
176
  ref: "commentPanelRef",
168
177
  tableName: e.tableName,
169
178
  dataId: e.formDataId
170
179
  }, null, 8, ["tableName", "dataId"])
171
180
  ]),
172
181
  default: s(() => [
173
- f(m, {
182
+ C(m, {
174
183
  ref: "onlineFormCompRef",
175
184
  id: e.id,
176
185
  "form-template": e.formTemplate,
@@ -179,10 +188,10 @@ function z(e, n, o, l, i, p) {
179
188
  onRendered: e.renderSuccess
180
189
  }, null, 8, ["id", "form-template", "show-sub", "themeTemplate", "onRendered"])
181
190
  ]),
182
- _: 1
191
+ _: 3
183
192
  }, 16, ["title", "width", "enableComment", "onRegister"]);
184
193
  }
185
- const Ae = /* @__PURE__ */ H(U, [["render", z]]);
194
+ const We = /* @__PURE__ */ G(J, [["render", K]]);
186
195
  export {
187
- Ae as default
196
+ We as default
188
197
  };