@jeecg/online 3.5.3-beta3 → 3.6.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/AuthButtonConfig-b6a674fa.mjs +125 -0
- package/AuthButtonTree-09e57bc4.mjs +156 -0
- package/AuthDataConfig-6e7e61ec.mjs +212 -0
- package/AuthDataTree-e83286c5.mjs +139 -0
- package/AuthFieldConfig-f1ec2708.mjs +139 -0
- package/AuthFieldTree-bb72e21f.mjs +232 -0
- package/AuthManagerDrawer-28a2d108.mjs +114 -0
- package/AuthSetterModal-2990d553.mjs +261 -0
- package/CgformCopyList-36a4cbf0.mjs +246 -0
- package/CgformModal-7399a5ac.mjs +611 -0
- package/CgreportModal-2eb9c9e1.mjs +13 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs +566 -0
- package/CheckDictTable-3a8a54b3.mjs +211 -0
- package/CodeFileListModal-72f0d3bb.mjs +158 -0
- package/CodeFileViewModal-9eb88c47.mjs +244 -0
- package/CodeGeneratorModal-a89958f5.mjs +233 -0
- package/CustomButtonList-c44aec5a.mjs +363 -0
- package/DBAttributeTable-7d285e8d.mjs +473 -0
- package/DbToOnlineModal-d23cbeb1.mjs +160 -0
- package/DetailForm-2901d215.mjs +461 -0
- package/EnhanceJavaModal-153899a9.mjs +264 -0
- package/EnhanceJsHistory-7f5db3b1.mjs +184 -0
- package/EnhanceJsModal-c2fb75b8.mjs +311 -0
- package/EnhanceSqlModal-965e9b0a.mjs +268 -0
- package/ExtendConfigModal-8f08466f.mjs +111 -0
- package/FieldExtendJsonModal-adfcf5a7.mjs +219 -0
- package/FileSelectModal-432d4521.mjs +103 -0
- package/ForeignKeyTable-faab7ccf.mjs +69 -0
- package/IndexTable-0a2d3718.mjs +89 -0
- package/JModalTip-e1938b49.mjs +46 -0
- package/JOnlineSearchSelect-7e908492.mjs +95 -0
- package/LeftDepart-54f245b3.mjs +82 -0
- package/LeftRole-c138f892.mjs +86 -0
- package/LeftUser-9c812f8a.mjs +105 -0
- package/LinkTableConfigModal-c2c5c7e6.mjs +230 -0
- package/LinkTableFieldConfigModal-a3553b1f.mjs +176 -0
- package/LinkTableListPiece-7f793b08.mjs +34 -0
- package/ModalFormDemo-65685b0e.mjs +78 -0
- package/OnlCgformErpList-52c87ed3.mjs +449 -0
- package/OnlCgformErpSubTable-6e7fb17b.mjs +398 -0
- package/OnlCgformInnerSubTable-f0727b8f.mjs +248 -0
- package/OnlCgformInnerTableList-9f89c173.mjs +430 -0
- package/OnlCgformTabList-15516315.mjs +390 -0
- package/OnlineAutoList-63a0224f.mjs +474 -0
- package/OnlineAutoModal-ffe19c3f.mjs +206 -0
- package/OnlineAutoTreeList-317c7105.mjs +495 -0
- package/OnlineCustomModal-3939ce78.mjs +227 -0
- package/OnlineDetailModal-bfb1375f.mjs +177 -0
- package/OnlineForm-069f6092.mjs +749 -0
- package/OnlineFormDetail-ad5735fb.mjs +296 -0
- package/OnlineQueryForm-0771c80f.mjs +385 -0
- package/OnlineSearchFormItem-0db5834f.mjs +348 -0
- package/OnlineSelectCascade-a05c30f4.mjs +159 -0
- package/OnlineSubFormDetail-583d01eb.mjs +142 -0
- package/OnlineTabAutoModal-747e071d.mjs +253 -0
- package/OnlineTabDetailModal-887f0174.mjs +222 -0
- package/OnlineTabForm-b1dcd4b4.mjs +765 -0
- package/OnlineTabFormDetail-8e494a96.mjs +323 -0
- package/PageAttributeTable-5966b201.mjs +404 -0
- package/ProcessOnlineForm-4382bea7.mjs +177 -0
- package/QueryTable-6e8053ad.mjs +115 -0
- package/README.md +2 -1
- package/SuperQuery-78db6998.mjs +841 -0
- package/SuperQueryValComponent-471110b5.mjs +8 -0
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
- package/auth.api-d3a6c4b3.mjs +39 -0
- package/auth.data-8be5c9e3.mjs +141 -0
- package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
- package/constant-754f1a9d.mjs +9 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-0a93652b.mjs +237 -0
- package/index-7e9a23f2.mjs +1494 -0
- package/index-b70302f2.mjs +56 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-0c603af1.mjs +424 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-aa1cdfc8.mjs +3917 -0
- package/useListButton-0f18bf6a.mjs +671 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/useSchemas-43429d80.mjs +685 -0
- package/useTableSync-774c3774.mjs +87 -0
- package/AuthButtonConfig.js +0 -147
- package/AuthButtonTree.js +0 -183
- package/AuthDataConfig.js +0 -246
- package/AuthDataTree.js +0 -160
- package/AuthFieldConfig.js +0 -170
- package/AuthFieldTree.js +0 -281
- package/AuthManagerDrawer.js +0 -125
- package/AuthSetterModal.js +0 -316
- package/CgformCopyList.js +0 -266
- package/CgformModal.js +0 -780
- package/CgreportModal.js +0 -667
- package/CheckDictTable.js +0 -242
- package/CodeFileListModal.js +0 -175
- package/CodeFileViewModal.js +0 -325
- package/CodeGeneratorModal.js +0 -297
- package/CustomButtonList.js +0 -410
- package/DBAttributeTable.js +0 -526
- package/DbToOnlineModal.js +0 -192
- package/DetailForm.js +0 -608
- package/EnhanceJavaModal.js +0 -298
- package/EnhanceJsHistory.js +0 -229
- package/EnhanceJsModal.js +0 -293
- package/EnhanceSqlModal.js +0 -299
- package/ExtendConfigModal.js +0 -151
- package/FieldExtendJsonModal.js +0 -283
- package/FileSelectModal.js +0 -102
- package/ForeignKeyTable.js +0 -79
- package/IndexTable.js +0 -97
- package/JModalTip.js +0 -54
- package/JOnlineSearchSelect.js +0 -115
- package/LICENSE +0 -9
- package/LeftDepart.js +0 -96
- package/LeftRole.js +0 -98
- package/LeftUser.js +0 -117
- package/LinkTableConfigModal.js +0 -289
- package/LinkTableFieldConfigModal.js +0 -218
- package/LinkTableListPiece.js +0 -36
- package/ModalFormDemo.js +0 -85
- package/OnlineAutoList.js +0 -523
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -552
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1016
- package/OnlineFormDetail.js +0 -347
- package/OnlineQueryForm.js +0 -484
- package/OnlineSearchFormItem.js +0 -436
- package/OnlineSelectCascade.js +0 -228
- package/OnlineSubFormDetail.js +0 -166
- package/PageAttributeTable.js +0 -486
- package/ProcessOnlineForm.js +0 -208
- package/QueryTable.js +0 -129
- package/SuperQuery.js +0 -1020
- package/SuperQueryValComponent.js +0 -8
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -168
- package/_arrayPush.js +0 -278
- package/_baseClone.js +0 -471
- package/_baseSlice.js +0 -18
- package/_commonjsHelpers.js +0 -5
- package/_flatRest.js +0 -174
- package/auth.api.js +0 -43
- package/auth.data.js +0 -142
- package/clipboard.js +0 -565
- package/enhance.api.js +0 -129
- package/enhance.data.js +0 -196
- package/index.js +0 -87
- package/index2.js +0 -340
- package/index3.js +0 -264
- package/isArray.js +0 -47
- package/omit.js +0 -60
- package/pick.js +0 -68
- package/toString.js +0 -31
- package/useCgformList.js +0 -470
- package/useExtendComponent.js +0 -5205
- package/useListButton.js +0 -923
- package/useOnlineTest.js +0 -44
- package/useSchemas.js +0 -653
- package/useTableSync.js +0 -117
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
var q = Object.defineProperty;
|
|
2
|
+
var O = Object.getOwnPropertySymbols;
|
|
3
|
+
var G = Object.prototype.hasOwnProperty, X = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var J = (a, i, n) => i in a ? q(a, i, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[i] = n, V = (a, i) => {
|
|
5
|
+
for (var n in i || (i = {}))
|
|
6
|
+
G.call(i, n) && J(a, n, i[n]);
|
|
7
|
+
if (O)
|
|
8
|
+
for (var n of O(i))
|
|
9
|
+
X.call(i, n) && J(a, n, i[n]);
|
|
10
|
+
return a;
|
|
11
|
+
};
|
|
12
|
+
var T = (a, i, n) => new Promise((o, g) => {
|
|
13
|
+
var S = (m) => {
|
|
14
|
+
try {
|
|
15
|
+
s(n.next(m));
|
|
16
|
+
} catch (u) {
|
|
17
|
+
g(u);
|
|
18
|
+
}
|
|
19
|
+
}, b = (m) => {
|
|
20
|
+
try {
|
|
21
|
+
s(n.throw(m));
|
|
22
|
+
} catch (u) {
|
|
23
|
+
g(u);
|
|
24
|
+
}
|
|
25
|
+
}, s = (m) => m.done ? o(m.value) : Promise.resolve(m.value).then(S, b);
|
|
26
|
+
s((n = n.apply(a, i)).next());
|
|
27
|
+
});
|
|
28
|
+
import { useMessage as Y } from "/@/hooks/web/useMessage";
|
|
29
|
+
import { ref as d, reactive as Z, resolveComponent as c, openBlock as p, createElementBlock as y, createVNode as k, createCommentVNode as R, createBlock as w, withCtx as B, Fragment as $, renderList as ee, normalizeStyle as te, renderSlot as oe } from "vue";
|
|
30
|
+
import { Loading as ne } from "/@/components/Loading";
|
|
31
|
+
import { getToken as re } from "/@/utils/auth";
|
|
32
|
+
import { goJmReportViewPage as ie } from "/@/utils";
|
|
33
|
+
import { PrinterOutlined as ae } from "@ant-design/icons-vue";
|
|
34
|
+
import le from "./DetailForm-2901d215.mjs";
|
|
35
|
+
import me from "./OnlineSubFormDetail-583d01eb.mjs";
|
|
36
|
+
import { i as se } from "./useExtendComponent-aa1cdfc8.mjs";
|
|
37
|
+
import { defHttp as pe } from "/@/utils/http/axios";
|
|
38
|
+
import { E as ce } from "./constant-754f1a9d.mjs";
|
|
39
|
+
import { _ as ue } from "./index-b70302f2.mjs";
|
|
40
|
+
import "/@/utils/propTypes";
|
|
41
|
+
import "/@/utils/dict";
|
|
42
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
43
|
+
import "/@/utils/dict/index";
|
|
44
|
+
import "/@/api/common/api";
|
|
45
|
+
import "/@/components/Form/src/utils/Area";
|
|
46
|
+
import "/@/utils/common/compUtils";
|
|
47
|
+
import "/@/components/Preview/index";
|
|
48
|
+
import "/@/components/Markdown";
|
|
49
|
+
import "/@/components/Form/index";
|
|
50
|
+
import "/@/components/Form/src/componentMap";
|
|
51
|
+
import "/@/components/Modal";
|
|
52
|
+
import "lodash-es";
|
|
53
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
54
|
+
import "/@/views/system/user/user.api";
|
|
55
|
+
import "/@/store/modules/user";
|
|
56
|
+
import "/@/utils/desform/customExpression";
|
|
57
|
+
import "/@/store/modules/permission";
|
|
58
|
+
import "/@/components/Table";
|
|
59
|
+
import "/@/hooks/system/useListPage";
|
|
60
|
+
import "vue-router";
|
|
61
|
+
import "./LinkTableListPiece-7f793b08.mjs";
|
|
62
|
+
import "./OnlineSelectCascade-a05c30f4.mjs";
|
|
63
|
+
import "./JModalTip-e1938b49.mjs";
|
|
64
|
+
import "ant-design-vue";
|
|
65
|
+
import "@vueuse/core";
|
|
66
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
67
|
+
const fe = {
|
|
68
|
+
name: "OnlineFormDetail",
|
|
69
|
+
components: {
|
|
70
|
+
DetailForm: le,
|
|
71
|
+
Loading: ne,
|
|
72
|
+
PrinterOutlined: ae,
|
|
73
|
+
OnlineSubFormDetail: me
|
|
74
|
+
},
|
|
75
|
+
props: {
|
|
76
|
+
id: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: ""
|
|
79
|
+
},
|
|
80
|
+
formTemplate: {
|
|
81
|
+
type: Number,
|
|
82
|
+
default: 1
|
|
83
|
+
},
|
|
84
|
+
disabled: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: !1
|
|
87
|
+
},
|
|
88
|
+
isTree: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: !1
|
|
91
|
+
},
|
|
92
|
+
pidField: {
|
|
93
|
+
type: String,
|
|
94
|
+
default: ""
|
|
95
|
+
},
|
|
96
|
+
submitTip: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: !0
|
|
99
|
+
},
|
|
100
|
+
showSub: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
default: !0
|
|
103
|
+
},
|
|
104
|
+
themeTemplate: {
|
|
105
|
+
type: String,
|
|
106
|
+
default: ""
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
emits: ["success", "rendered"],
|
|
110
|
+
setup(a, { emit: i }) {
|
|
111
|
+
const { createMessage: n } = Y(), o = d(""), g = d(!0), S = d(!1), b = d(1), s = d({}), m = d(300), u = d(340), h = Z({
|
|
112
|
+
reportPrintShow: 0,
|
|
113
|
+
reportPrintUrl: "",
|
|
114
|
+
joinQuery: 0,
|
|
115
|
+
modelFullscreen: 0,
|
|
116
|
+
modalMinWidth: ""
|
|
117
|
+
}), { detailFormSchemas: P, hasSubTable: x, subTabInfo: C, refMap: l, showStatus: _, subDataSource: F, createFormSchemas: E, formSpan: N } = se(a);
|
|
118
|
+
function M(e) {
|
|
119
|
+
let t = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 1, modalMinWidth: "" };
|
|
120
|
+
e && (t = JSON.parse(e)), Object.keys(t).map((r) => {
|
|
121
|
+
h[r] = t[r];
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function H(e) {
|
|
125
|
+
return T(this, null, function* () {
|
|
126
|
+
b.value = e.head.tableType, o.value = e.head.tableName, g.value = e.head.tableType == 1, M(e.head.extConfigJson), E(e.schema.properties), i("rendered", h);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function L(e, t) {
|
|
130
|
+
return T(this, null, function* () {
|
|
131
|
+
yield z(t), v(!0);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
function j(e) {
|
|
135
|
+
let t = `/online/cgform/api/detail/${a.id}/${e}`;
|
|
136
|
+
return new Promise((r, f) => {
|
|
137
|
+
pe.get({ url: t }, { isTransformResponse: !1 }).then((D) => {
|
|
138
|
+
D.success ? r(D.result) : (f(), n.warning(D.message));
|
|
139
|
+
}).catch(() => {
|
|
140
|
+
f();
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function v(e) {
|
|
145
|
+
Object.keys(_).map((t) => {
|
|
146
|
+
_[t] = e;
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
function U() {
|
|
150
|
+
v(!1), setTimeout(() => {
|
|
151
|
+
v(!0);
|
|
152
|
+
}, 300);
|
|
153
|
+
}
|
|
154
|
+
function z(e) {
|
|
155
|
+
return T(this, null, function* () {
|
|
156
|
+
let t = yield j(e.id);
|
|
157
|
+
s.value = V({}, t), I(t);
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
function I(e) {
|
|
161
|
+
e || (e = {});
|
|
162
|
+
let t = Object.keys(F.value);
|
|
163
|
+
if (t && t.length > 0) {
|
|
164
|
+
let r = {};
|
|
165
|
+
for (let f of t)
|
|
166
|
+
r[f] = e[f] || [];
|
|
167
|
+
F.value = r;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
function K(e) {
|
|
171
|
+
return "online_" + e + ":";
|
|
172
|
+
}
|
|
173
|
+
function A() {
|
|
174
|
+
let e = h.reportPrintUrl, t = s.value;
|
|
175
|
+
if (t) {
|
|
176
|
+
let r = t.id, f = re();
|
|
177
|
+
ie(e, r, f);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
function Q(e) {
|
|
181
|
+
let t = s.value;
|
|
182
|
+
return W(t, e);
|
|
183
|
+
}
|
|
184
|
+
function W(e, t) {
|
|
185
|
+
if (e) {
|
|
186
|
+
let r = e[t];
|
|
187
|
+
return !r && r !== 0 && (r = e[t.toLowerCase()], !r && r !== 0 && (r = e[t.toUpperCase()])), r;
|
|
188
|
+
}
|
|
189
|
+
return "";
|
|
190
|
+
}
|
|
191
|
+
return {
|
|
192
|
+
detailFormSchemas: P,
|
|
193
|
+
formData: s,
|
|
194
|
+
formSpan: N,
|
|
195
|
+
//主表
|
|
196
|
+
tableName: o,
|
|
197
|
+
loading: S,
|
|
198
|
+
//子表
|
|
199
|
+
hasSubTable: x,
|
|
200
|
+
subTabInfo: C,
|
|
201
|
+
subFormHeight: m,
|
|
202
|
+
subTableHeight: u,
|
|
203
|
+
refMap: l,
|
|
204
|
+
onTabChange: U,
|
|
205
|
+
//一对多子表
|
|
206
|
+
subDataSource: F,
|
|
207
|
+
getSubTableAuthPre: K,
|
|
208
|
+
//父组件调用
|
|
209
|
+
show: L,
|
|
210
|
+
createRootProperties: H,
|
|
211
|
+
// 扩展配置
|
|
212
|
+
onOpenReportPrint: A,
|
|
213
|
+
onlineExtConfigJson: h,
|
|
214
|
+
getSubTableForeignKeyValue: Q,
|
|
215
|
+
showStatus: _,
|
|
216
|
+
ERP: ce
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
}, de = ["id"], he = {
|
|
220
|
+
key: 0,
|
|
221
|
+
style: { "text-align": "right", position: "absolute", top: "15px", right: "20px", "z-index": "999" }
|
|
222
|
+
}, ge = { key: 1 };
|
|
223
|
+
function be(a, i, n, o, g, S) {
|
|
224
|
+
const b = c("PrinterOutlined"), s = c("detail-form"), m = c("online-sub-form-detail"), u = c("JVxeTable"), h = c("a-spin"), P = c("a-tab-pane"), x = c("a-tabs"), C = c("Loading");
|
|
225
|
+
return p(), y("div", {
|
|
226
|
+
id: o.tableName + "_form"
|
|
227
|
+
}, [
|
|
228
|
+
o.formData.id && o.onlineExtConfigJson.reportPrintShow ? (p(), y("div", he, [
|
|
229
|
+
k(b, {
|
|
230
|
+
title: "打印",
|
|
231
|
+
onClick: o.onOpenReportPrint,
|
|
232
|
+
style: { "font-size": "16px" }
|
|
233
|
+
}, null, 8, ["onClick"])
|
|
234
|
+
])) : R("", !0),
|
|
235
|
+
k(s, {
|
|
236
|
+
schemas: o.detailFormSchemas,
|
|
237
|
+
data: o.formData,
|
|
238
|
+
span: o.formSpan
|
|
239
|
+
}, null, 8, ["schemas", "data", "span"]),
|
|
240
|
+
n.themeTemplate !== o.ERP && o.hasSubTable && n.showSub ? (p(), w(x, {
|
|
241
|
+
key: 1,
|
|
242
|
+
onChange: o.onTabChange
|
|
243
|
+
}, {
|
|
244
|
+
default: B(() => [
|
|
245
|
+
(p(!0), y($, null, ee(o.subTabInfo, (l, _) => (p(), w(P, {
|
|
246
|
+
tab: l.describe,
|
|
247
|
+
key: _ + "",
|
|
248
|
+
forceRender: !0
|
|
249
|
+
}, {
|
|
250
|
+
default: B(() => [
|
|
251
|
+
l.relationType == 1 ? (p(), y("div", {
|
|
252
|
+
key: 0,
|
|
253
|
+
style: te({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": o.subFormHeight + "px" })
|
|
254
|
+
}, [
|
|
255
|
+
k(m, {
|
|
256
|
+
table: l.key,
|
|
257
|
+
"form-template": n.formTemplate,
|
|
258
|
+
"main-id": o.getSubTableForeignKeyValue(l.foreignKey),
|
|
259
|
+
properties: l.properties
|
|
260
|
+
}, null, 8, ["table", "form-template", "main-id", "properties"])
|
|
261
|
+
], 4)) : (p(), y("div", ge, [
|
|
262
|
+
o.showStatus[l.key] ? (p(), w(u, {
|
|
263
|
+
key: 0,
|
|
264
|
+
ref_for: !0,
|
|
265
|
+
ref: o.refMap[l.key],
|
|
266
|
+
toolbar: "",
|
|
267
|
+
"keep-source": "",
|
|
268
|
+
"row-number": "",
|
|
269
|
+
"row-selection": "",
|
|
270
|
+
height: o.subTableHeight,
|
|
271
|
+
disabled: !0,
|
|
272
|
+
columns: l.columns,
|
|
273
|
+
dataSource: o.subDataSource[l.key],
|
|
274
|
+
authPre: o.getSubTableAuthPre(l.key)
|
|
275
|
+
}, null, 8, ["height", "columns", "dataSource", "authPre"])) : (p(), w(h, {
|
|
276
|
+
key: 1,
|
|
277
|
+
spinning: !0
|
|
278
|
+
}))
|
|
279
|
+
]))
|
|
280
|
+
]),
|
|
281
|
+
_: 2
|
|
282
|
+
}, 1032, ["tab"]))), 128))
|
|
283
|
+
]),
|
|
284
|
+
_: 1
|
|
285
|
+
}, 8, ["onChange"])) : R("", !0),
|
|
286
|
+
k(C, {
|
|
287
|
+
loading: o.loading,
|
|
288
|
+
absolute: !1
|
|
289
|
+
}, null, 8, ["loading"]),
|
|
290
|
+
oe(a.$slots, "bottom")
|
|
291
|
+
], 8, de);
|
|
292
|
+
}
|
|
293
|
+
const rt = /* @__PURE__ */ ue(fe, [["render", be]]);
|
|
294
|
+
export {
|
|
295
|
+
rt as default
|
|
296
|
+
};
|
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
var ce = Object.defineProperty;
|
|
2
|
+
var J = Object.getOwnPropertySymbols;
|
|
3
|
+
var me = Object.prototype.hasOwnProperty, ue = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var q = (i, s, l) => s in i ? ce(i, s, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[s] = l, E = (i, s) => {
|
|
5
|
+
for (var l in s || (s = {}))
|
|
6
|
+
me.call(s, l) && q(i, l, s[l]);
|
|
7
|
+
if (J)
|
|
8
|
+
for (var l of J(s))
|
|
9
|
+
ue.call(s, l) && q(i, l, s[l]);
|
|
10
|
+
return i;
|
|
11
|
+
};
|
|
12
|
+
var D = (i, s, l) => new Promise((c, w) => {
|
|
13
|
+
var V = (f) => {
|
|
14
|
+
try {
|
|
15
|
+
_(l.next(f));
|
|
16
|
+
} catch (S) {
|
|
17
|
+
w(S);
|
|
18
|
+
}
|
|
19
|
+
}, F = (f) => {
|
|
20
|
+
try {
|
|
21
|
+
_(l.throw(f));
|
|
22
|
+
} catch (S) {
|
|
23
|
+
w(S);
|
|
24
|
+
}
|
|
25
|
+
}, _ = (f) => f.done ? c(f.value) : Promise.resolve(f.value).then(V, F);
|
|
26
|
+
_((l = l.apply(i, s)).next());
|
|
27
|
+
});
|
|
28
|
+
import { BasicForm as pe, useForm as de } from "/@/components/Form/index";
|
|
29
|
+
import { ref as O, reactive as fe, watch as Q, toRaw as R, resolveComponent as I, openBlock as W, createElementBlock as G, createVNode as p, withCtx as b, createElementVNode as U, createTextVNode as T, toDisplayString as he, createCommentVNode as K, pushScopeId as ge, popScopeId as _e } from "vue";
|
|
30
|
+
import { defHttp as ye } from "/@/utils/http/axios";
|
|
31
|
+
import { useMessage as ve } from "/@/hooks/web/useMessage";
|
|
32
|
+
import { j as be, g as we, k as z, m as Fe, F as B, L as Se, n as xe, o as X } from "./useExtendComponent-aa1cdfc8.mjs";
|
|
33
|
+
import { L as ke } from "./constant-754f1a9d.mjs";
|
|
34
|
+
import { _ as Oe } from "./index-b70302f2.mjs";
|
|
35
|
+
import "/@/components/Form/src/componentMap";
|
|
36
|
+
import "/@/utils/propTypes";
|
|
37
|
+
import "@ant-design/icons-vue";
|
|
38
|
+
import "/@/components/Modal";
|
|
39
|
+
import "lodash-es";
|
|
40
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
41
|
+
import "/@/views/system/user/user.api";
|
|
42
|
+
import "/@/store/modules/user";
|
|
43
|
+
import "/@/utils";
|
|
44
|
+
import "/@/utils/desform/customExpression";
|
|
45
|
+
import "/@/store/modules/permission";
|
|
46
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
47
|
+
import "/@/utils/common/compUtils";
|
|
48
|
+
import "/@/components/Table";
|
|
49
|
+
import "/@/hooks/system/useListPage";
|
|
50
|
+
import "vue-router";
|
|
51
|
+
import "/@/components/Form/src/utils/Area";
|
|
52
|
+
import "/@/components/Preview/index";
|
|
53
|
+
import "./LinkTableListPiece-7f793b08.mjs";
|
|
54
|
+
import "./OnlineSelectCascade-a05c30f4.mjs";
|
|
55
|
+
import "/@/components/Loading";
|
|
56
|
+
import "/@/utils/auth";
|
|
57
|
+
import "./JModalTip-e1938b49.mjs";
|
|
58
|
+
import "ant-design-vue";
|
|
59
|
+
import "@vueuse/core";
|
|
60
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
61
|
+
const Le = {
|
|
62
|
+
name: "OnlineQueryForm",
|
|
63
|
+
components: {
|
|
64
|
+
BasicForm: pe
|
|
65
|
+
},
|
|
66
|
+
props: {
|
|
67
|
+
id: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: ""
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
emits: ["search", "loaded"],
|
|
73
|
+
setup(i, { emit: s }) {
|
|
74
|
+
const l = "/online/cgform/api/getQueryInfoVue3/", c = O(null), w = O([]), V = O({ xs: 24, sm: 24, md: 12, lg: 6, xl: 6 }), F = O(!1), _ = O(!1), f = O({}), S = O([]), { createMessage: Y } = ve(), { linkTableCard2Select: N } = be(), j = O(80), o = fe({
|
|
75
|
+
config: {},
|
|
76
|
+
cache: {},
|
|
77
|
+
param: {},
|
|
78
|
+
status: !1
|
|
79
|
+
});
|
|
80
|
+
Q(
|
|
81
|
+
() => o.status,
|
|
82
|
+
(t) => D(this, null, function* () {
|
|
83
|
+
const { config: e, cache: n, param: y } = R(o);
|
|
84
|
+
let u = Object.assign({}, e, n, y);
|
|
85
|
+
yield $(u);
|
|
86
|
+
}),
|
|
87
|
+
{ immediate: !0, deep: !0 }
|
|
88
|
+
);
|
|
89
|
+
function m(t, e) {
|
|
90
|
+
return D(this, null, function* () {
|
|
91
|
+
o.cache = E({}, t), o.param = E({}, e), o.status = !o.status;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
Q(
|
|
95
|
+
() => i.id,
|
|
96
|
+
(t) => {
|
|
97
|
+
t ? Z() : w.value = [];
|
|
98
|
+
},
|
|
99
|
+
{ immediate: !0 }
|
|
100
|
+
);
|
|
101
|
+
function d(t) {
|
|
102
|
+
return D(this, null, function* () {
|
|
103
|
+
let e = [], n = {}, y = Object.keys(t), u = -1;
|
|
104
|
+
for (let a of y) {
|
|
105
|
+
const r = t[a];
|
|
106
|
+
a === "sys_org_code" && (r.fieldExtendJson || (r.fieldExtendJson = '{"store":"orgCode"}'));
|
|
107
|
+
let h = r.view;
|
|
108
|
+
if (z[h] && (r.view = z[h]), yield Fe(a, r, n), r.mode == "group" && (h == "date" || h == "datetime" || h == "number")) {
|
|
109
|
+
let L = B.createSlotFormSchema(a, r);
|
|
110
|
+
e.push(L);
|
|
111
|
+
} else if (r.view === Se) {
|
|
112
|
+
let L = xe(r, a);
|
|
113
|
+
for (let k of L) {
|
|
114
|
+
let C = B.createFormSchema(k.key, k), H = X(e, k.key);
|
|
115
|
+
H == -1 ? e.push(C) : e[H] = C;
|
|
116
|
+
}
|
|
117
|
+
} else if (X(e, a) == -1) {
|
|
118
|
+
let k = B.createFormSchema(a, r);
|
|
119
|
+
e.push(k);
|
|
120
|
+
}
|
|
121
|
+
let x = r.fieldExtendJson;
|
|
122
|
+
x && (x = JSON.parse(x), x.labelLength && (u > -1 ? u = x.labelLength > u ? x.labelLength : u : u = x.labelLength));
|
|
123
|
+
}
|
|
124
|
+
u == -1 && (u = ke), e.sort(function(a, r) {
|
|
125
|
+
return a.order - r.order;
|
|
126
|
+
});
|
|
127
|
+
let g = [];
|
|
128
|
+
e.length > 2 && (F.value = !0);
|
|
129
|
+
let v = [];
|
|
130
|
+
for (let a = 0; a < e.length; a++) {
|
|
131
|
+
let r = e[a];
|
|
132
|
+
r.setFormRef(c), r.noChange(), r.asSearchForm(), a > 1 && (v.push(r.field), r.isHidden());
|
|
133
|
+
let h = r.getFormItemSchema();
|
|
134
|
+
r.slot == "groupDatetime" && (h.colProps = { xs: 24, sm: 24, md: 12, lg: 8, xl: 8 }), N(h), g.push(h);
|
|
135
|
+
}
|
|
136
|
+
S.value = v, w.value = g, o.config = E({}, n), o.status = !o.status, setTimeout(() => {
|
|
137
|
+
const a = u * 14 + u + 24;
|
|
138
|
+
j.value = a;
|
|
139
|
+
}, 0);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
function Z() {
|
|
143
|
+
return D(this, null, function* () {
|
|
144
|
+
let t = yield ae(), e = te(t);
|
|
145
|
+
s("loaded", t);
|
|
146
|
+
let { formProperties: n, hasField: y } = ee(e, t);
|
|
147
|
+
if (y == !1) {
|
|
148
|
+
w.value = [];
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
yield d(n);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
function $(t) {
|
|
155
|
+
return D(this, null, function* () {
|
|
156
|
+
yield we(c), yield A(t), Object.keys(t).length > 0 && M();
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function ee(t, e) {
|
|
160
|
+
const { searchFieldList: n, joinQuery: y, table: u } = e;
|
|
161
|
+
let g = !1, v = {};
|
|
162
|
+
return t && Object.keys(t).map((a) => {
|
|
163
|
+
n.indexOf(a) >= 0 && (y == !0 ? a.indexOf("@") < 0 ? (v[u + "@" + a] = t[a], g = !0) : (v[a] = t[a], g = !0) : a.indexOf("@") < 0 && (v[a] = t[a], g = !0));
|
|
164
|
+
}), {
|
|
165
|
+
formProperties: v,
|
|
166
|
+
hasField: g
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
function te(t) {
|
|
170
|
+
const { properties: e, searchFieldList: n, joinQuery: y, table: u } = t;
|
|
171
|
+
let g = {}, v = 1;
|
|
172
|
+
return Object.keys(e).map((a) => {
|
|
173
|
+
let r = e[a];
|
|
174
|
+
if (r.view == "table") {
|
|
175
|
+
let h = r.properties, x = v * 100;
|
|
176
|
+
Object.keys(h).map((L) => {
|
|
177
|
+
let k = h[L];
|
|
178
|
+
k.order = x + Number(k.order);
|
|
179
|
+
let C = a + "@" + L;
|
|
180
|
+
g[C] = k;
|
|
181
|
+
}), v++;
|
|
182
|
+
} else
|
|
183
|
+
r.order = Number(r.order), g[a] = r;
|
|
184
|
+
}), g;
|
|
185
|
+
}
|
|
186
|
+
function ae() {
|
|
187
|
+
let t = `${l}${i.id}`;
|
|
188
|
+
return new Promise((e) => {
|
|
189
|
+
ye.get({ url: t }, { isTransformResponse: !1 }).then((n) => {
|
|
190
|
+
n.success ? e(n.result) : (e(!1), Y.warning(n.message));
|
|
191
|
+
}).catch(() => {
|
|
192
|
+
Y.warning("获取查询条件失败!"), e(!1);
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
const [oe, { resetFields: re, setFieldsValue: A, updateSchema: ne, getFieldsValue: se }] = de({
|
|
197
|
+
schemas: w,
|
|
198
|
+
showActionButtonGroup: !1,
|
|
199
|
+
baseColProps: V,
|
|
200
|
+
autoSubmitOnEnter: !0,
|
|
201
|
+
labelWidth: j,
|
|
202
|
+
wrapperCol: null,
|
|
203
|
+
submitFunc() {
|
|
204
|
+
M();
|
|
205
|
+
}
|
|
206
|
+
/* labelCol: ONL_QUERY_LABEL_COL,
|
|
207
|
+
wrapperCol: ONL_QUERY_WRAPPER_COL*/
|
|
208
|
+
});
|
|
209
|
+
function M() {
|
|
210
|
+
let t = se(), e = Object.assign({}, R(o.param), ie(t));
|
|
211
|
+
s("search", e, !0);
|
|
212
|
+
}
|
|
213
|
+
function le() {
|
|
214
|
+
return D(this, null, function* () {
|
|
215
|
+
yield re();
|
|
216
|
+
const { config: t, param: e } = R(o);
|
|
217
|
+
let n = Object.assign({}, t, e);
|
|
218
|
+
Object.keys(n).length > 0 && (yield A(n)), s("search", n, !1);
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
function ie(t) {
|
|
222
|
+
return Object.keys(t).map((e) => {
|
|
223
|
+
t[e] && t[e] instanceof Array && (t[e] = t[e].join(","));
|
|
224
|
+
}), t;
|
|
225
|
+
}
|
|
226
|
+
return Q(
|
|
227
|
+
() => _.value,
|
|
228
|
+
(t) => {
|
|
229
|
+
let e = S.value;
|
|
230
|
+
if (e && e.length > 0) {
|
|
231
|
+
let n = [];
|
|
232
|
+
for (let y of e)
|
|
233
|
+
n.push({
|
|
234
|
+
field: y,
|
|
235
|
+
show: t
|
|
236
|
+
});
|
|
237
|
+
ne(n);
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
{ immediate: !1 }
|
|
241
|
+
), {
|
|
242
|
+
onlineQueryFormRef: c,
|
|
243
|
+
registerForm: oe,
|
|
244
|
+
initDefaultValues: m,
|
|
245
|
+
toggleButtonShow: F,
|
|
246
|
+
toggleSearchStatus: _,
|
|
247
|
+
doSearch: M,
|
|
248
|
+
resetSearch: le,
|
|
249
|
+
queryParams: f,
|
|
250
|
+
formSchemas: w
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
}, P = (i) => (ge("data-v-3e6e229f"), i = i(), _e(), i), De = {
|
|
254
|
+
key: 0,
|
|
255
|
+
class: "jeecg-basic-table-form-container online-query-form p-0"
|
|
256
|
+
}, Ie = /* @__PURE__ */ P(() => /* @__PURE__ */ U("span", { class: "group-query-string" }, "~", -1)), Ve = /* @__PURE__ */ P(() => /* @__PURE__ */ U("span", { class: "group-query-string" }, "~", -1)), Ye = /* @__PURE__ */ P(() => /* @__PURE__ */ U("span", { class: "group-query-string" }, "~", -1)), je = {
|
|
257
|
+
style: { float: "left", overflow: "hidden", "margin-left": "10px" },
|
|
258
|
+
class: "table-page-search-submitButtons"
|
|
259
|
+
};
|
|
260
|
+
function Ce(i, s, l, c, w, V) {
|
|
261
|
+
const F = I("a-date-picker"), _ = I("a-form-item-rest"), f = I("a-input-number"), S = I("a-button"), Y = I("a-icon"), N = I("a-col"), j = I("BasicForm");
|
|
262
|
+
return c.formSchemas && c.formSchemas.length > 0 ? (W(), G("div", De, [
|
|
263
|
+
p(j, {
|
|
264
|
+
ref: "onlineQueryFormRef",
|
|
265
|
+
onRegister: c.registerForm
|
|
266
|
+
}, {
|
|
267
|
+
groupDate: b(({ model: o, field: m }) => [
|
|
268
|
+
p(F, {
|
|
269
|
+
showTime: !1,
|
|
270
|
+
valueFormat: "YYYY-MM-DD",
|
|
271
|
+
placeholder: "开始日期",
|
|
272
|
+
value: o[m + "_begin"],
|
|
273
|
+
"onUpdate:value": (d) => o[m + "_begin"] = d,
|
|
274
|
+
style: { width: "calc(50% - 15px)", "min-width": "100px" }
|
|
275
|
+
}, null, 8, ["value", "onUpdate:value"]),
|
|
276
|
+
Ie,
|
|
277
|
+
p(_, null, {
|
|
278
|
+
default: b(() => [
|
|
279
|
+
p(F, {
|
|
280
|
+
showTime: !1,
|
|
281
|
+
valueFormat: "YYYY-MM-DD",
|
|
282
|
+
placeholder: "结束日期",
|
|
283
|
+
value: o[m + "_end"],
|
|
284
|
+
"onUpdate:value": (d) => o[m + "_end"] = d,
|
|
285
|
+
style: { width: "calc(50% - 15px)", "min-width": "100px" }
|
|
286
|
+
}, null, 8, ["value", "onUpdate:value"])
|
|
287
|
+
]),
|
|
288
|
+
_: 2
|
|
289
|
+
}, 1024)
|
|
290
|
+
]),
|
|
291
|
+
groupDatetime: b(({ model: o, field: m }) => [
|
|
292
|
+
p(F, {
|
|
293
|
+
showTime: !0,
|
|
294
|
+
valueFormat: "YYYY-MM-DD HH:mm:ss",
|
|
295
|
+
placeholder: "开始时间",
|
|
296
|
+
value: o[m + "_begin"],
|
|
297
|
+
"onUpdate:value": (d) => o[m + "_begin"] = d,
|
|
298
|
+
style: { "min-width": "100px", width: "calc(50% - 15px)" }
|
|
299
|
+
}, null, 8, ["value", "onUpdate:value"]),
|
|
300
|
+
Ve,
|
|
301
|
+
p(_, null, {
|
|
302
|
+
default: b(() => [
|
|
303
|
+
p(F, {
|
|
304
|
+
showTime: !0,
|
|
305
|
+
valueFormat: "YYYY-MM-DD HH:mm:ss",
|
|
306
|
+
placeholder: "结束时间",
|
|
307
|
+
value: o[m + "_end"],
|
|
308
|
+
"onUpdate:value": (d) => o[m + "_end"] = d,
|
|
309
|
+
style: { "min-width": "100px", width: "calc(50% - 15px)" }
|
|
310
|
+
}, null, 8, ["value", "onUpdate:value"])
|
|
311
|
+
]),
|
|
312
|
+
_: 2
|
|
313
|
+
}, 1024)
|
|
314
|
+
]),
|
|
315
|
+
groupNumber: b(({ model: o, field: m }) => [
|
|
316
|
+
p(f, {
|
|
317
|
+
placeholder: "开始值",
|
|
318
|
+
value: o[m + "_begin"],
|
|
319
|
+
"onUpdate:value": (d) => o[m + "_begin"] = d,
|
|
320
|
+
style: { width: "calc(50% - 15px)" }
|
|
321
|
+
}, null, 8, ["value", "onUpdate:value"]),
|
|
322
|
+
Ye,
|
|
323
|
+
p(_, null, {
|
|
324
|
+
default: b(() => [
|
|
325
|
+
p(f, {
|
|
326
|
+
placeholder: "结束值",
|
|
327
|
+
value: o[m + "_end"],
|
|
328
|
+
"onUpdate:value": (d) => o[m + "_end"] = d,
|
|
329
|
+
style: { width: "calc(50% - 15px)" }
|
|
330
|
+
}, null, 8, ["value", "onUpdate:value"])
|
|
331
|
+
]),
|
|
332
|
+
_: 2
|
|
333
|
+
}, 1024)
|
|
334
|
+
]),
|
|
335
|
+
formFooter: b(() => [
|
|
336
|
+
p(N, {
|
|
337
|
+
md: 6,
|
|
338
|
+
sm: 8
|
|
339
|
+
}, {
|
|
340
|
+
default: b(() => [
|
|
341
|
+
U("span", je, [
|
|
342
|
+
p(S, {
|
|
343
|
+
preIcon: "ant-design:search",
|
|
344
|
+
type: "primary",
|
|
345
|
+
onClick: c.doSearch
|
|
346
|
+
}, {
|
|
347
|
+
default: b(() => [
|
|
348
|
+
T("查询")
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
}, 8, ["onClick"]),
|
|
352
|
+
p(S, {
|
|
353
|
+
preIcon: "ant-design:reload",
|
|
354
|
+
type: "primary",
|
|
355
|
+
onClick: c.resetSearch,
|
|
356
|
+
style: { "margin-left": "8px" }
|
|
357
|
+
}, {
|
|
358
|
+
default: b(() => [
|
|
359
|
+
T("重置")
|
|
360
|
+
]),
|
|
361
|
+
_: 1
|
|
362
|
+
}, 8, ["onClick"]),
|
|
363
|
+
c.toggleButtonShow ? (W(), G("a", {
|
|
364
|
+
key: 0,
|
|
365
|
+
onClick: s[0] || (s[0] = (o) => c.toggleSearchStatus = !c.toggleSearchStatus),
|
|
366
|
+
style: { "margin-left": "8px" }
|
|
367
|
+
}, [
|
|
368
|
+
T(he(c.toggleSearchStatus ? "收起" : "展开") + " ", 1),
|
|
369
|
+
p(Y, {
|
|
370
|
+
type: c.toggleSearchStatus ? "up" : "down"
|
|
371
|
+
}, null, 8, ["type"])
|
|
372
|
+
])) : K("", !0)
|
|
373
|
+
])
|
|
374
|
+
]),
|
|
375
|
+
_: 1
|
|
376
|
+
})
|
|
377
|
+
]),
|
|
378
|
+
_: 1
|
|
379
|
+
}, 8, ["onRegister"])
|
|
380
|
+
])) : K("", !0);
|
|
381
|
+
}
|
|
382
|
+
const ft = /* @__PURE__ */ Oe(Le, [["render", Ce], ["__scopeId", "data-v-3e6e229f"]]);
|
|
383
|
+
export {
|
|
384
|
+
ft as default
|
|
385
|
+
};
|