@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.
- package/AiModal-6de335e3.mjs +84 -0
- package/AuthButtonConfig-89763932.mjs +154 -0
- package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
- package/AuthDataConfig-5c3a8e6b.mjs +238 -0
- package/{AuthDataTree-94e026e3.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
- package/AuthFieldConfig-9f6fa06c.mjs +245 -0
- package/{AuthFieldTree-69864163.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
- package/AuthManagerDrawer-76f15e8d.mjs +119 -0
- package/AuthSetterModal-f5d2e87f.mjs +274 -0
- package/{CgformCopyList-14b76108.mjs → CgformCopyList-365b3e8f.mjs} +49 -46
- package/CgformModal-21c5c387.mjs +671 -0
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-edefa8e3.mjs} +153 -129
- package/CheckDictTable-1bc8322d.mjs +229 -0
- package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-24601898.mjs} +5 -4
- package/CodeFileViewModal-2fe911f4.mjs +253 -0
- package/CodeGeneratorModal-f09fe903.mjs +282 -0
- package/CustomButtonList-f07bc695.mjs +397 -0
- package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-285d40db.mjs} +118 -89
- package/DbToOnlineModal-5dcb67c3.mjs +169 -0
- package/DetailForm-deecbf3d.mjs +486 -0
- package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-45c66cd5.mjs} +3 -3
- package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-fab3102e.mjs} +2 -2
- package/EnhanceJsModal-175357a1.mjs +548 -0
- package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-7ea1b300.mjs} +3 -3
- package/ExtendConfigModal-a89ae052.mjs +117 -0
- package/FieldExtendJsonModal-32135634.mjs +277 -0
- package/{FileSelectModal-9a02560b.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
- package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-7f7e28a7.mjs} +3 -3
- package/{IndexTable-f8af9d44.mjs → IndexTable-cdcc2b48.mjs} +28 -20
- package/{JModalTip-33c7dc44.mjs → JModalTip-b055ab60.mjs} +1 -1
- package/JOnlineSearchSelect-22aae934.mjs +128 -0
- package/{LeftDepart-fa85523d.mjs → LeftDepart-d5615ed9.mjs} +1 -1
- package/{LeftRole-8b8dfe21.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
- package/{LeftUser-dc24ef2f.mjs → LeftUser-22baa378.mjs} +3 -3
- package/LinkTableConfigModal-9242d750.mjs +240 -0
- package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +41 -41
- package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
- package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-711418db.mjs} +1 -1
- package/OnlCgformErpList-58acdfa0.mjs +470 -0
- package/OnlCgformErpSubTable-9b1e1938.mjs +426 -0
- package/OnlCgformInnerSubTable-6c23781f.mjs +265 -0
- package/OnlCgformInnerTableList-4b5e14ed.mjs +458 -0
- package/OnlCgformTabList-019ad753.mjs +408 -0
- package/OnlineAutoList-48589d09.mjs +493 -0
- package/OnlineAutoModal-c2928847.mjs +239 -0
- package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3baa1d00.mjs} +207 -204
- package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-9e17b6ce.mjs} +16 -12
- package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-d5895734.mjs} +74 -64
- package/OnlineForm-9f1153ba.mjs +985 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-022ca117.mjs +342 -0
- package/OnlineFormUrlAdd-9715d70a.mjs +115 -0
- package/OnlineFormUrlDetail-8f864b1a.mjs +119 -0
- package/OnlineFormUrlEdit-ac985b36.mjs +113 -0
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +59 -0
- package/OnlineQueryForm-eedb9a60.mjs +466 -0
- package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
- package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
- package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-58e896ce.mjs} +30 -28
- package/OnlineTabAutoModal-47b18ad6.mjs +306 -0
- package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-82de1465.mjs} +22 -20
- package/OnlineTabForm-27655c83.mjs +817 -0
- package/OnlineTabFormDetail-8d0c40c0.mjs +327 -0
- package/PageAttributeTable-25e3b7da.mjs +466 -0
- package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-148632fe.mjs} +66 -56
- package/QueryTable-f7bfca7f.mjs +147 -0
- package/SetSwitchOptions-b2af757f.mjs +62 -0
- package/SuperQuery-a8592995.mjs +967 -0
- package/auth.api-ea1d33d4.mjs +41 -0
- package/auth.data-511e5197.mjs +217 -0
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-a67572e1.mjs} +11 -10
- package/index-1d1a6e56.mjs +57 -0
- package/{index-b7a05eef.mjs → index-30e0e923.mjs} +396 -362
- package/{index-49508cad.mjs → index-f30613d1.mjs} +29 -27
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-f41d4dc1.mjs +426 -0
- package/useExtendComponent-dcae5c78.mjs +4399 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-bfac4ecf.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-a9c75b0f.mjs} +191 -101
- package/useTableSync-d7e9f18d.mjs +89 -0
- 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/CgformModal-eccfc38e.mjs +0 -611
- package/CgreportModal-2065f5a9.mjs +0 -13
- package/CheckDictTable-134cbb83.mjs +0 -211
- package/CodeFileViewModal-373e8058.mjs +0 -244
- package/CodeGeneratorModal-f08a89cd.mjs +0 -233
- package/CustomButtonList-02e3d897.mjs +0 -363
- package/DbToOnlineModal-9f13956f.mjs +0 -160
- 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/JOnlineSearchSelect-c287af12.mjs +0 -95
- 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/auth.api-d3a6c4b3.mjs +0 -39
- package/auth.data-8be5c9e3.mjs +0 -141
- 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
- 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
|
+
};
|