@jeecg/online 3.6.2-beta → 3.7.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 (127) hide show
  1. package/AiModal-6de335e3.mjs +84 -0
  2. package/AuthButtonConfig-89763932.mjs +154 -0
  3. package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
  4. package/AuthDataConfig-5c3a8e6b.mjs +238 -0
  5. package/{AuthDataTree-94e026e3.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
  6. package/AuthFieldConfig-9f6fa06c.mjs +245 -0
  7. package/{AuthFieldTree-69864163.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
  8. package/AuthManagerDrawer-76f15e8d.mjs +119 -0
  9. package/AuthSetterModal-f5d2e87f.mjs +274 -0
  10. package/{CgformCopyList-14b76108.mjs → CgformCopyList-365b3e8f.mjs} +49 -46
  11. package/CgformModal-21c5c387.mjs +671 -0
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-edefa8e3.mjs} +153 -129
  13. package/CheckDictTable-1bc8322d.mjs +229 -0
  14. package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-24601898.mjs} +5 -4
  15. package/CodeFileViewModal-2fe911f4.mjs +253 -0
  16. package/CodeGeneratorModal-f09fe903.mjs +282 -0
  17. package/CustomButtonList-f07bc695.mjs +397 -0
  18. package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-285d40db.mjs} +118 -89
  19. package/DbToOnlineModal-5dcb67c3.mjs +169 -0
  20. package/DetailForm-deecbf3d.mjs +486 -0
  21. package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-45c66cd5.mjs} +3 -3
  22. package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-fab3102e.mjs} +2 -2
  23. package/EnhanceJsModal-175357a1.mjs +548 -0
  24. package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-7ea1b300.mjs} +3 -3
  25. package/ExtendConfigModal-a89ae052.mjs +117 -0
  26. package/FieldExtendJsonModal-32135634.mjs +277 -0
  27. package/{FileSelectModal-9a02560b.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
  28. package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-7f7e28a7.mjs} +3 -3
  29. package/{IndexTable-f8af9d44.mjs → IndexTable-cdcc2b48.mjs} +28 -20
  30. package/{JModalTip-33c7dc44.mjs → JModalTip-b055ab60.mjs} +1 -1
  31. package/JOnlineSearchSelect-22aae934.mjs +128 -0
  32. package/{LeftDepart-fa85523d.mjs → LeftDepart-d5615ed9.mjs} +1 -1
  33. package/{LeftRole-8b8dfe21.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
  34. package/{LeftUser-dc24ef2f.mjs → LeftUser-22baa378.mjs} +3 -3
  35. package/LinkTableConfigModal-9242d750.mjs +240 -0
  36. package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +41 -41
  37. package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
  38. package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-711418db.mjs} +1 -1
  39. package/OnlCgformErpList-58acdfa0.mjs +470 -0
  40. package/OnlCgformErpSubTable-9b1e1938.mjs +426 -0
  41. package/OnlCgformInnerSubTable-6c23781f.mjs +265 -0
  42. package/OnlCgformInnerTableList-4b5e14ed.mjs +458 -0
  43. package/OnlCgformTabList-019ad753.mjs +408 -0
  44. package/OnlineAutoList-48589d09.mjs +493 -0
  45. package/OnlineAutoModal-c2928847.mjs +239 -0
  46. package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3baa1d00.mjs} +207 -204
  47. package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-9e17b6ce.mjs} +16 -12
  48. package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-d5895734.mjs} +74 -64
  49. package/OnlineForm-9f1153ba.mjs +985 -0
  50. package/OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs +1 -0
  51. package/OnlineFormDetail-022ca117.mjs +342 -0
  52. package/OnlineFormUrlAdd-9715d70a.mjs +115 -0
  53. package/OnlineFormUrlDetail-8f864b1a.mjs +119 -0
  54. package/OnlineFormUrlEdit-ac985b36.mjs +113 -0
  55. package/OnlineFormUrlSuccess-3dfc54ab.mjs +59 -0
  56. package/OnlineQueryForm-eedb9a60.mjs +466 -0
  57. package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
  58. package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
  59. package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-58e896ce.mjs} +30 -28
  60. package/OnlineTabAutoModal-47b18ad6.mjs +306 -0
  61. package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-82de1465.mjs} +22 -20
  62. package/OnlineTabForm-27655c83.mjs +817 -0
  63. package/OnlineTabFormDetail-8d0c40c0.mjs +327 -0
  64. package/PageAttributeTable-25e3b7da.mjs +466 -0
  65. package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-148632fe.mjs} +66 -56
  66. package/QueryTable-f7bfca7f.mjs +147 -0
  67. package/SetSwitchOptions-b2af757f.mjs +62 -0
  68. package/SuperQuery-a8592995.mjs +967 -0
  69. package/auth.api-ea1d33d4.mjs +41 -0
  70. package/auth.data-511e5197.mjs +217 -0
  71. package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
  72. package/constant-fa63bd66.mjs +10 -0
  73. package/{enhance.data-efc7e155.mjs → enhance.data-a67572e1.mjs} +11 -10
  74. package/index-1d1a6e56.mjs +57 -0
  75. package/{index-b7a05eef.mjs → index-30e0e923.mjs} +396 -362
  76. package/{index-49508cad.mjs → index-f30613d1.mjs} +29 -27
  77. package/main.index.js +1 -1
  78. package/package.json +1 -1
  79. package/style.css +1 -1
  80. package/useCgformList-f41d4dc1.mjs +426 -0
  81. package/useExtendComponent-dcae5c78.mjs +4399 -0
  82. package/useFormUrl-2ee1a82d.mjs +24 -0
  83. package/useListButton-bfac4ecf.mjs +697 -0
  84. package/{useSchemas-0433a403.mjs → useSchemas-a9c75b0f.mjs} +191 -101
  85. package/useTableSync-d7e9f18d.mjs +89 -0
  86. package/AuthButtonConfig-244ec09f.mjs +0 -125
  87. package/AuthDataConfig-83891eea.mjs +0 -212
  88. package/AuthFieldConfig-6b21915c.mjs +0 -139
  89. package/AuthManagerDrawer-300dd4e4.mjs +0 -114
  90. package/AuthSetterModal-a414fb35.mjs +0 -267
  91. package/CgformModal-eccfc38e.mjs +0 -611
  92. package/CgreportModal-2065f5a9.mjs +0 -13
  93. package/CheckDictTable-134cbb83.mjs +0 -211
  94. package/CodeFileViewModal-373e8058.mjs +0 -244
  95. package/CodeGeneratorModal-f08a89cd.mjs +0 -233
  96. package/CustomButtonList-02e3d897.mjs +0 -363
  97. package/DbToOnlineModal-9f13956f.mjs +0 -160
  98. package/DetailForm-424638eb.mjs +0 -462
  99. package/EnhanceJsModal-05c73a59.mjs +0 -311
  100. package/ExtendConfigModal-1dde390a.mjs +0 -111
  101. package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
  102. package/JOnlineSearchSelect-c287af12.mjs +0 -95
  103. package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
  104. package/OnlCgformErpList-db45e22b.mjs +0 -454
  105. package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
  106. package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
  107. package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
  108. package/OnlCgformTabList-a9e1e36a.mjs +0 -395
  109. package/OnlineAutoList-0583a910.mjs +0 -479
  110. package/OnlineAutoModal-510991eb.mjs +0 -207
  111. package/OnlineForm-1fa2d893.mjs +0 -750
  112. package/OnlineFormDetail-0e7294ca.mjs +0 -297
  113. package/OnlineQueryForm-1bfc8320.mjs +0 -386
  114. package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
  115. package/OnlineTabForm-512d3951.mjs +0 -766
  116. package/OnlineTabFormDetail-5a70219d.mjs +0 -324
  117. package/PageAttributeTable-965dc58e.mjs +0 -404
  118. package/QueryTable-eb9a5b21.mjs +0 -115
  119. package/SuperQuery-5d1ca957.mjs +0 -843
  120. package/auth.api-d3a6c4b3.mjs +0 -39
  121. package/auth.data-8be5c9e3.mjs +0 -141
  122. package/constant-754f1a9d.mjs +0 -9
  123. package/index-0e3ab3af.mjs +0 -56
  124. package/useCgformList-423282b7.mjs +0 -400
  125. package/useExtendComponent-325fe3f1.mjs +0 -3926
  126. package/useListButton-cdbab702.mjs +0 -676
  127. package/useTableSync-774c3774.mjs +0 -87
@@ -0,0 +1,239 @@
1
+ var B = (e, p, t) => new Promise((d, s) => {
2
+ var f = (o) => {
3
+ try {
4
+ i(t.next(o));
5
+ } catch (r) {
6
+ s(r);
7
+ }
8
+ }, a = (o) => {
9
+ try {
10
+ i(t.throw(o));
11
+ } catch (r) {
12
+ s(r);
13
+ }
14
+ }, i = (o) => o.done ? d(o.value) : Promise.resolve(o.value).then(f, a);
15
+ i((t = t.apply(e, p)).next());
16
+ });
17
+ import { defineComponent as j, ref as I, watch as H, resolveComponent as l, openBlock as C, createBlock as g, mergeProps as T, withCtx as m, createVNode as c, createElementBlock as U, Fragment as q, renderList as z, createTextVNode as S, toDisplayString as G, createCommentVNode as J } from "vue";
18
+ import { BasicModal as K } from "/@/components/Modal";
19
+ import Q from "./OnlineForm-9f1153ba.mjs";
20
+ import { b as X } from "./useExtendComponent-dcae5c78.mjs";
21
+ import Y from "/@/components/jeecg/comment/CommentPanel.vue";
22
+ import { a as Z } from "./constant-fa63bd66.mjs";
23
+ import { _ as x } from "./index-1d1a6e56.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 "/@/store/modules/permission";
42
+ import "./OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs";
43
+ import "/@/components/Form/src/componentMap";
44
+ import "/@/utils/propTypes";
45
+ import "/@/components/Form/src/jeecg/components/JUpload";
46
+ import "/@/views/system/user/user.api";
47
+ import "/@/utils/desform/customExpression";
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-f3a8e0d7.mjs";
55
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
56
+ import "/@/api/common/api";
57
+ import "/@/assets/images/placeholderImage.png";
58
+ import "./OnlineSelectCascade-05c40fef.mjs";
59
+ import "./JModalTip-b055ab60.mjs";
60
+ import "ant-design-vue";
61
+ import "@vueuse/core";
62
+ const ee = j({
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: K,
77
+ OnlineForm: Q,
78
+ CommentPanel: Y
79
+ },
80
+ emits: ["success", "register", "formConfig"],
81
+ setup(e, { emit: p }) {
82
+ const t = I(), d = I(0);
83
+ function s() {
84
+ t.value && t.value.reload();
85
+ }
86
+ const {
87
+ title: f,
88
+ modalWidth: a,
89
+ registerModal: i,
90
+ closeModal: o,
91
+ cgButtonList: r,
92
+ handleCgButtonClick: b,
93
+ disableSubmit: h,
94
+ handleSubmit: n,
95
+ submitLoading: k,
96
+ handleCancel: F,
97
+ handleFormConfig: N,
98
+ onlineFormCompRef: O,
99
+ formTemplate: R,
100
+ isTreeForm: v,
101
+ pidFieldName: M,
102
+ renderSuccess: w,
103
+ formRendered: E,
104
+ tableName: $,
105
+ tableId: L,
106
+ formDataId: A,
107
+ enableComment: P,
108
+ onCloseEvent: y,
109
+ themeTemplate: _
110
+ } = X(!1, { emit: p }, s);
111
+ function D(u) {
112
+ p("success", u), o(), y();
113
+ }
114
+ H(() => e.id, V, { immediate: !0 });
115
+ function V() {
116
+ return B(this, null, function* () {
117
+ if (E.value = !1, !e.id)
118
+ return;
119
+ const u = {};
120
+ e.source === Z && (u.tabletype = 3), yield N(e.id, u);
121
+ });
122
+ }
123
+ return {
124
+ title: f,
125
+ onlineFormCompRef: O,
126
+ renderSuccess: w,
127
+ registerModal: i,
128
+ handleSubmit: n,
129
+ handleSuccess: D,
130
+ handleCancel: F,
131
+ modalWidth: a,
132
+ formTemplate: R,
133
+ disableSubmit: h,
134
+ cgButtonList: r,
135
+ handleCgButtonClick: b,
136
+ isTreeForm: v,
137
+ pidFieldName: M,
138
+ submitLoading: k,
139
+ tableName: $,
140
+ tableId: L,
141
+ formDataId: A,
142
+ enableComment: P,
143
+ commentPanelRef: t,
144
+ onCloseEvent: y,
145
+ themeTemplate: _,
146
+ handleCommentOpen: (u, W) => {
147
+ d.value = W;
148
+ },
149
+ commentSpan: d
150
+ };
151
+ }
152
+ });
153
+ function oe(e, p, t, d, s, f) {
154
+ const a = l("a-button"), i = l("a-col"), o = l("a-row"), r = l("online-form"), b = l("comment-panel"), h = l("BasicModal");
155
+ return C(), g(h, T({
156
+ title: e.title,
157
+ onCancel: e.onCloseEvent,
158
+ enableComment: e.enableComment,
159
+ width: e.modalWidth
160
+ }, e.$attrs, {
161
+ maxHeight: 600,
162
+ onRegister: e.registerModal,
163
+ wrapClassName: "jeecg-online-modal",
164
+ onOk: e.handleSubmit,
165
+ onCommentOpen: e.handleCommentOpen
166
+ }), {
167
+ footer: m(() => [
168
+ c(o, null, {
169
+ default: m(() => [
170
+ c(i, {
171
+ span: 24 - e.commentSpan
172
+ }, {
173
+ default: m(() => [
174
+ (C(!0), U(q, null, z(e.cgButtonList, (n) => (C(), g(a, {
175
+ key: n.id,
176
+ type: "primary",
177
+ onClick: (k) => e.handleCgButtonClick(n.optType, n.buttonCode),
178
+ preIcon: n.buttonIcon ? "ant-design:" + n.buttonIcon : ""
179
+ }, {
180
+ default: m(() => [
181
+ S(G(n.buttonName), 1)
182
+ ]),
183
+ _: 2
184
+ }, 1032, ["onClick", "preIcon"]))), 128)),
185
+ e.disableSubmit ? J("", !0) : (C(), g(a, {
186
+ key: "submit",
187
+ type: "primary",
188
+ onClick: e.handleSubmit,
189
+ loading: e.submitLoading
190
+ }, {
191
+ default: m(() => [
192
+ S("确定")
193
+ ]),
194
+ _: 1
195
+ }, 8, ["onClick", "loading"])),
196
+ c(a, {
197
+ key: "back",
198
+ onClick: e.handleCancel
199
+ }, {
200
+ default: m(() => [
201
+ S("关闭")
202
+ ]),
203
+ _: 1
204
+ }, 8, ["onClick"])
205
+ ]),
206
+ _: 1
207
+ }, 8, ["span"])
208
+ ]),
209
+ _: 1
210
+ })
211
+ ]),
212
+ comment: m(() => [
213
+ c(b, {
214
+ ref: "commentPanelRef",
215
+ tableId: e.tableId,
216
+ tableName: e.tableName,
217
+ dataId: e.formDataId
218
+ }, null, 8, ["tableId", "tableName", "dataId"])
219
+ ]),
220
+ default: m(() => [
221
+ c(r, T(e.$attrs, {
222
+ ref: "onlineFormCompRef",
223
+ id: e.id,
224
+ disabled: e.disableSubmit,
225
+ "form-template": e.formTemplate,
226
+ isTree: e.isTreeForm,
227
+ pidField: e.pidFieldName,
228
+ themeTemplate: e.themeTemplate,
229
+ onRendered: e.renderSuccess,
230
+ onSuccess: e.handleSuccess
231
+ }), null, 16, ["id", "disabled", "form-template", "isTree", "pidField", "themeTemplate", "onRendered", "onSuccess"])
232
+ ]),
233
+ _: 1
234
+ }, 16, ["title", "onCancel", "enableComment", "width", "onRegister", "onOk", "onCommentOpen"]);
235
+ }
236
+ const Xe = /* @__PURE__ */ x(ee, [["render", oe]]);
237
+ export {
238
+ Xe as default
239
+ };