@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.
- package/AiModal-fe3988fb.mjs +84 -0
- package/AuthButtonConfig-d50a0a65.mjs +134 -0
- package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-589395ed.mjs} +2 -2
- package/AuthDataConfig-7bb0cd85.mjs +237 -0
- package/{AuthDataTree-94e026e3.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
- package/AuthFieldConfig-490fc0ab.mjs +139 -0
- package/{AuthFieldTree-69864163.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
- package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
- package/AuthSetterModal-6f74449c.mjs +273 -0
- package/{CgformCopyList-14b76108.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
- package/{CgformModal-eccfc38e.mjs → CgformModal-36faf29a.mjs} +256 -246
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-5a23d089.mjs} +154 -131
- package/CheckDictTable-b5cb0e2b.mjs +226 -0
- package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
- package/{CodeFileViewModal-373e8058.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
- package/CodeGeneratorModal-b722d976.mjs +238 -0
- package/{CustomButtonList-02e3d897.mjs → CustomButtonList-37639061.mjs} +118 -100
- package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
- package/{DbToOnlineModal-9f13956f.mjs → DbToOnlineModal-f49b9530.mjs} +57 -51
- package/DetailForm-4aa2570b.mjs +485 -0
- package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
- package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
- package/EnhanceJsModal-247f640d.mjs +532 -0
- package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
- package/ExtendConfigModal-00f2fb55.mjs +117 -0
- package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
- package/{FileSelectModal-9a02560b.mjs → FileSelectModal-38660e3c.mjs} +1 -1
- package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
- package/{IndexTable-f8af9d44.mjs → IndexTable-1b496559.mjs} +10 -10
- package/{JModalTip-33c7dc44.mjs → JModalTip-4a83aaed.mjs} +1 -1
- package/{JOnlineSearchSelect-c287af12.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
- package/{LeftDepart-fa85523d.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
- package/{LeftRole-8b8dfe21.mjs → LeftRole-7d8c5acc.mjs} +1 -1
- package/{LeftUser-dc24ef2f.mjs → LeftUser-b4d1372a.mjs} +3 -3
- package/LinkTableConfigModal-a138c85e.mjs +240 -0
- package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
- package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
- package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-0544737d.mjs} +1 -1
- package/OnlCgformErpList-30e416c8.mjs +470 -0
- package/OnlCgformErpSubTable-9a876058.mjs +427 -0
- package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
- package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
- package/OnlCgformTabList-7a2f2c03.mjs +408 -0
- package/OnlineAutoList-46c6c8b9.mjs +493 -0
- package/OnlineAutoModal-971bef13.mjs +236 -0
- package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
- package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
- package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
- package/OnlineForm-018981b2.mjs +924 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-e036cd11.mjs +342 -0
- package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
- package/OnlineFormUrlDetail-b2292137.mjs +119 -0
- package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
- package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
- package/OnlineQueryForm-998c12a4.mjs +444 -0
- package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
- package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
- package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
- package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
- package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
- package/OnlineTabForm-9ad7d29a.mjs +805 -0
- package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
- package/PageAttributeTable-6c23547b.mjs +446 -0
- package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
- package/QueryTable-96b3dbd0.mjs +144 -0
- package/SetSwitchOptions-a452fa0f.mjs +62 -0
- package/SuperQuery-cbfba908.mjs +975 -0
- package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
- package/index-173949bb.mjs +57 -0
- package/{index-49508cad.mjs → index-581bef24.mjs} +29 -27
- package/{index-b7a05eef.mjs → index-d2abb8a0.mjs} +394 -361
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-8755a94e.mjs +426 -0
- package/useExtendComponent-bb7cca20.mjs +4295 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-7ddb9a46.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
- package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
- package/AuthButtonConfig-244ec09f.mjs +0 -125
- package/AuthDataConfig-83891eea.mjs +0 -212
- package/AuthFieldConfig-6b21915c.mjs +0 -139
- package/AuthManagerDrawer-300dd4e4.mjs +0 -114
- package/AuthSetterModal-a414fb35.mjs +0 -267
- package/CgreportModal-2065f5a9.mjs +0 -13
- package/CheckDictTable-134cbb83.mjs +0 -211
- package/CodeGeneratorModal-f08a89cd.mjs +0 -233
- package/DetailForm-424638eb.mjs +0 -462
- package/EnhanceJsModal-05c73a59.mjs +0 -311
- package/ExtendConfigModal-1dde390a.mjs +0 -111
- package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
- package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
- package/OnlCgformErpList-db45e22b.mjs +0 -454
- package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
- package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
- package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
- package/OnlCgformTabList-a9e1e36a.mjs +0 -395
- package/OnlineAutoList-0583a910.mjs +0 -479
- package/OnlineAutoModal-510991eb.mjs +0 -207
- package/OnlineForm-1fa2d893.mjs +0 -750
- package/OnlineFormDetail-0e7294ca.mjs +0 -297
- package/OnlineQueryForm-1bfc8320.mjs +0 -386
- package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
- package/OnlineTabForm-512d3951.mjs +0 -766
- package/OnlineTabFormDetail-5a70219d.mjs +0 -324
- package/PageAttributeTable-965dc58e.mjs +0 -404
- package/QueryTable-eb9a5b21.mjs +0 -115
- package/SuperQuery-5d1ca957.mjs +0 -843
- package/constant-754f1a9d.mjs +0 -9
- package/index-0e3ab3af.mjs +0 -56
- package/useCgformList-423282b7.mjs +0 -400
- package/useExtendComponent-325fe3f1.mjs +0 -3926
- 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
|
+
};
|