@jeecg/online 3.6.2-beta → 3.7.0-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 (118) hide show
  1. package/AiModal-fe3988fb.mjs +84 -0
  2. package/AuthButtonConfig-d50a0a65.mjs +134 -0
  3. package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-589395ed.mjs} +2 -2
  4. package/AuthDataConfig-7bb0cd85.mjs +237 -0
  5. package/{AuthDataTree-94e026e3.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
  6. package/AuthFieldConfig-490fc0ab.mjs +139 -0
  7. package/{AuthFieldTree-69864163.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
  8. package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
  9. package/AuthSetterModal-6f74449c.mjs +273 -0
  10. package/{CgformCopyList-14b76108.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
  11. package/{CgformModal-eccfc38e.mjs → CgformModal-36faf29a.mjs} +256 -246
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-5a23d089.mjs} +154 -131
  13. package/CheckDictTable-b5cb0e2b.mjs +226 -0
  14. package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
  15. package/{CodeFileViewModal-373e8058.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
  16. package/CodeGeneratorModal-b722d976.mjs +238 -0
  17. package/{CustomButtonList-02e3d897.mjs → CustomButtonList-37639061.mjs} +118 -100
  18. package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
  19. package/{DbToOnlineModal-9f13956f.mjs → DbToOnlineModal-f49b9530.mjs} +57 -51
  20. package/DetailForm-4aa2570b.mjs +485 -0
  21. package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
  22. package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
  23. package/EnhanceJsModal-247f640d.mjs +532 -0
  24. package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
  25. package/ExtendConfigModal-00f2fb55.mjs +117 -0
  26. package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
  27. package/{FileSelectModal-9a02560b.mjs → FileSelectModal-38660e3c.mjs} +1 -1
  28. package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
  29. package/{IndexTable-f8af9d44.mjs → IndexTable-1b496559.mjs} +10 -10
  30. package/{JModalTip-33c7dc44.mjs → JModalTip-4a83aaed.mjs} +1 -1
  31. package/{JOnlineSearchSelect-c287af12.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
  32. package/{LeftDepart-fa85523d.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
  33. package/{LeftRole-8b8dfe21.mjs → LeftRole-7d8c5acc.mjs} +1 -1
  34. package/{LeftUser-dc24ef2f.mjs → LeftUser-b4d1372a.mjs} +3 -3
  35. package/LinkTableConfigModal-a138c85e.mjs +240 -0
  36. package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
  37. package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
  38. package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-0544737d.mjs} +1 -1
  39. package/OnlCgformErpList-30e416c8.mjs +470 -0
  40. package/OnlCgformErpSubTable-9a876058.mjs +427 -0
  41. package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
  42. package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
  43. package/OnlCgformTabList-7a2f2c03.mjs +408 -0
  44. package/OnlineAutoList-46c6c8b9.mjs +493 -0
  45. package/OnlineAutoModal-971bef13.mjs +236 -0
  46. package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
  47. package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
  48. package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
  49. package/OnlineForm-018981b2.mjs +924 -0
  50. package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
  51. package/OnlineFormDetail-e036cd11.mjs +342 -0
  52. package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
  53. package/OnlineFormUrlDetail-b2292137.mjs +119 -0
  54. package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
  55. package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
  56. package/OnlineQueryForm-998c12a4.mjs +444 -0
  57. package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
  58. package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
  59. package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
  60. package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
  61. package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
  62. package/OnlineTabForm-9ad7d29a.mjs +805 -0
  63. package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
  64. package/PageAttributeTable-6c23547b.mjs +446 -0
  65. package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
  66. package/QueryTable-96b3dbd0.mjs +144 -0
  67. package/SetSwitchOptions-a452fa0f.mjs +62 -0
  68. package/SuperQuery-cbfba908.mjs +975 -0
  69. package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
  70. package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
  71. package/constant-fa63bd66.mjs +10 -0
  72. package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
  73. package/index-173949bb.mjs +57 -0
  74. package/{index-49508cad.mjs → index-581bef24.mjs} +29 -27
  75. package/{index-b7a05eef.mjs → index-d2abb8a0.mjs} +394 -361
  76. package/main.index.js +1 -1
  77. package/package.json +1 -1
  78. package/style.css +1 -1
  79. package/useCgformList-8755a94e.mjs +426 -0
  80. package/useExtendComponent-bb7cca20.mjs +4295 -0
  81. package/useFormUrl-2ee1a82d.mjs +24 -0
  82. package/useListButton-7ddb9a46.mjs +697 -0
  83. package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
  84. package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
  85. package/AuthButtonConfig-244ec09f.mjs +0 -125
  86. package/AuthDataConfig-83891eea.mjs +0 -212
  87. package/AuthFieldConfig-6b21915c.mjs +0 -139
  88. package/AuthManagerDrawer-300dd4e4.mjs +0 -114
  89. package/AuthSetterModal-a414fb35.mjs +0 -267
  90. package/CgreportModal-2065f5a9.mjs +0 -13
  91. package/CheckDictTable-134cbb83.mjs +0 -211
  92. package/CodeGeneratorModal-f08a89cd.mjs +0 -233
  93. package/DetailForm-424638eb.mjs +0 -462
  94. package/EnhanceJsModal-05c73a59.mjs +0 -311
  95. package/ExtendConfigModal-1dde390a.mjs +0 -111
  96. package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
  97. package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
  98. package/OnlCgformErpList-db45e22b.mjs +0 -454
  99. package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
  100. package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
  101. package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
  102. package/OnlCgformTabList-a9e1e36a.mjs +0 -395
  103. package/OnlineAutoList-0583a910.mjs +0 -479
  104. package/OnlineAutoModal-510991eb.mjs +0 -207
  105. package/OnlineForm-1fa2d893.mjs +0 -750
  106. package/OnlineFormDetail-0e7294ca.mjs +0 -297
  107. package/OnlineQueryForm-1bfc8320.mjs +0 -386
  108. package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
  109. package/OnlineTabForm-512d3951.mjs +0 -766
  110. package/OnlineTabFormDetail-5a70219d.mjs +0 -324
  111. package/PageAttributeTable-965dc58e.mjs +0 -404
  112. package/QueryTable-eb9a5b21.mjs +0 -115
  113. package/SuperQuery-5d1ca957.mjs +0 -843
  114. package/constant-754f1a9d.mjs +0 -9
  115. package/index-0e3ab3af.mjs +0 -56
  116. package/useCgformList-423282b7.mjs +0 -400
  117. package/useExtendComponent-325fe3f1.mjs +0 -3926
  118. package/useListButton-cdbab702.mjs +0 -676
@@ -0,0 +1,236 @@
1
+ var B = (e, p, t) => new Promise((d, s) => {
2
+ var f = (o) => {
3
+ try {
4
+ a(t.next(o));
5
+ } catch (r) {
6
+ s(r);
7
+ }
8
+ }, i = (o) => {
9
+ try {
10
+ a(t.throw(o));
11
+ } catch (r) {
12
+ s(r);
13
+ }
14
+ }, a = (o) => o.done ? d(o.value) : Promise.resolve(o.value).then(f, i);
15
+ a((t = t.apply(e, p)).next());
16
+ });
17
+ import { defineComponent as W, ref as T, watch as j, resolveComponent as l, openBlock as C, createBlock as g, mergeProps as F, withCtx as m, createVNode as c, createElementBlock as H, Fragment as U, renderList as q, createTextVNode as S, toDisplayString as z, createCommentVNode as G } from "vue";
18
+ import { BasicModal as J } from "/@/components/Modal";
19
+ import K from "./OnlineForm-018981b2.mjs";
20
+ import { b as Q } from "./useExtendComponent-bb7cca20.mjs";
21
+ import X from "/@/components/jeecg/comment/CommentPanel.vue";
22
+ import { a as Y } from "./constant-fa63bd66.mjs";
23
+ import { _ as Z } from "./index-173949bb.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-acb00837.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 "./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs";
42
+ import "/@/components/Form/src/componentMap";
43
+ import "/@/utils/propTypes";
44
+ import "/@/components/Form/src/jeecg/components/JUpload";
45
+ import "/@/views/system/user/user.api";
46
+ import "/@/utils/desform/customExpression";
47
+ import "/@/store/modules/permission";
48
+ import "/@/utils/dict/JDictSelectUtil";
49
+ import "/@/components/Table";
50
+ import "/@/hooks/system/useListPage";
51
+ import "vue-router";
52
+ import "/@/components/Form/src/utils/Area";
53
+ import "/@/components/Preview/index";
54
+ import "./LinkTableListPiece-2660d709.mjs";
55
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
56
+ import "/@/api/common/api";
57
+ import "/@/assets/images/placeholderImage.png";
58
+ import "./OnlineSelectCascade-471fcc76.mjs";
59
+ import "./JModalTip-4a83aaed.mjs";
60
+ import "ant-design-vue";
61
+ import "@vueuse/core";
62
+ const x = W({
63
+ name: "OnlineAutoModal",
64
+ props: {
65
+ id: {
66
+ type: String,
67
+ default: ""
68
+ },
69
+ // 为了区分来源,编码时主要是erp子表有特殊处理
70
+ source: {
71
+ type: String,
72
+ default: ""
73
+ }
74
+ },
75
+ components: {
76
+ BasicModal: J,
77
+ OnlineForm: K,
78
+ CommentPanel: X
79
+ },
80
+ emits: ["success", "register", "formConfig"],
81
+ setup(e, { emit: p }) {
82
+ const t = T(), d = T(0);
83
+ function s() {
84
+ t.value && t.value.reload();
85
+ }
86
+ const {
87
+ title: f,
88
+ modalWidth: i,
89
+ registerModal: a,
90
+ closeModal: o,
91
+ cgButtonList: r,
92
+ handleCgButtonClick: b,
93
+ disableSubmit: h,
94
+ handleSubmit: n,
95
+ submitLoading: k,
96
+ handleCancel: N,
97
+ handleFormConfig: O,
98
+ onlineFormCompRef: R,
99
+ formTemplate: v,
100
+ isTreeForm: I,
101
+ pidFieldName: M,
102
+ renderSuccess: w,
103
+ formRendered: E,
104
+ tableName: $,
105
+ formDataId: L,
106
+ enableComment: _,
107
+ onCloseEvent: y,
108
+ themeTemplate: A
109
+ } = Q(!1, { emit: p }, s);
110
+ function P(u) {
111
+ p("success", u), o(), y();
112
+ }
113
+ j(() => e.id, D, { immediate: !0 });
114
+ function D() {
115
+ return B(this, null, function* () {
116
+ if (E.value = !1, !e.id)
117
+ return;
118
+ const u = {};
119
+ e.source === Y && (u.tabletype = 3), yield O(e.id, u);
120
+ });
121
+ }
122
+ return {
123
+ title: f,
124
+ onlineFormCompRef: R,
125
+ renderSuccess: w,
126
+ registerModal: a,
127
+ handleSubmit: n,
128
+ handleSuccess: P,
129
+ handleCancel: N,
130
+ modalWidth: i,
131
+ formTemplate: v,
132
+ disableSubmit: h,
133
+ cgButtonList: r,
134
+ handleCgButtonClick: b,
135
+ isTreeForm: I,
136
+ pidFieldName: M,
137
+ submitLoading: k,
138
+ tableName: $,
139
+ formDataId: L,
140
+ enableComment: _,
141
+ commentPanelRef: t,
142
+ onCloseEvent: y,
143
+ themeTemplate: A,
144
+ handleCommentOpen: (u, V) => {
145
+ d.value = V;
146
+ },
147
+ commentSpan: d
148
+ };
149
+ }
150
+ });
151
+ function ee(e, p, t, d, s, f) {
152
+ const i = l("a-button"), a = l("a-col"), o = l("a-row"), r = l("online-form"), b = l("comment-panel"), h = l("BasicModal");
153
+ return C(), g(h, F({
154
+ title: e.title,
155
+ onCancel: e.onCloseEvent,
156
+ enableComment: e.enableComment,
157
+ width: e.modalWidth
158
+ }, e.$attrs, {
159
+ maxHeight: 600,
160
+ onRegister: e.registerModal,
161
+ wrapClassName: "jeecg-online-modal",
162
+ onOk: e.handleSubmit,
163
+ onCommentOpen: e.handleCommentOpen
164
+ }), {
165
+ footer: m(() => [
166
+ c(o, null, {
167
+ default: m(() => [
168
+ c(a, {
169
+ span: 24 - e.commentSpan
170
+ }, {
171
+ default: m(() => [
172
+ (C(!0), H(U, null, q(e.cgButtonList, (n) => (C(), g(i, {
173
+ key: n.id,
174
+ type: "primary",
175
+ onClick: (k) => e.handleCgButtonClick(n.optType, n.buttonCode),
176
+ preIcon: n.buttonIcon ? "ant-design:" + n.buttonIcon : ""
177
+ }, {
178
+ default: m(() => [
179
+ S(z(n.buttonName), 1)
180
+ ]),
181
+ _: 2
182
+ }, 1032, ["onClick", "preIcon"]))), 128)),
183
+ e.disableSubmit ? G("", !0) : (C(), g(i, {
184
+ key: "submit",
185
+ type: "primary",
186
+ onClick: e.handleSubmit,
187
+ loading: e.submitLoading
188
+ }, {
189
+ default: m(() => [
190
+ S("确定")
191
+ ]),
192
+ _: 1
193
+ }, 8, ["onClick", "loading"])),
194
+ c(i, {
195
+ key: "back",
196
+ onClick: e.handleCancel
197
+ }, {
198
+ default: m(() => [
199
+ S("关闭")
200
+ ]),
201
+ _: 1
202
+ }, 8, ["onClick"])
203
+ ]),
204
+ _: 1
205
+ }, 8, ["span"])
206
+ ]),
207
+ _: 1
208
+ })
209
+ ]),
210
+ comment: m(() => [
211
+ c(b, {
212
+ ref: "commentPanelRef",
213
+ tableName: e.tableName,
214
+ dataId: e.formDataId
215
+ }, null, 8, ["tableName", "dataId"])
216
+ ]),
217
+ default: m(() => [
218
+ c(r, F(e.$attrs, {
219
+ ref: "onlineFormCompRef",
220
+ id: e.id,
221
+ disabled: e.disableSubmit,
222
+ "form-template": e.formTemplate,
223
+ isTree: e.isTreeForm,
224
+ pidField: e.pidFieldName,
225
+ themeTemplate: e.themeTemplate,
226
+ onRendered: e.renderSuccess,
227
+ onSuccess: e.handleSuccess
228
+ }), null, 16, ["id", "disabled", "form-template", "isTree", "pidField", "themeTemplate", "onRendered", "onSuccess"])
229
+ ]),
230
+ _: 1
231
+ }, 16, ["title", "onCancel", "enableComment", "width", "onRegister", "onOk", "onCommentOpen"]);
232
+ }
233
+ const Qe = /* @__PURE__ */ Z(x, [["render", ee]]);
234
+ export {
235
+ Qe as default
236
+ };