@jeecg/online 3.6.2-GA → 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-c2602a7c.mjs → AuthButtonTree-589395ed.mjs} +2 -2
- package/AuthDataConfig-7bb0cd85.mjs +237 -0
- package/{AuthDataTree-9dc58b20.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
- package/AuthFieldConfig-490fc0ab.mjs +139 -0
- package/{AuthFieldTree-d836be59.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
- package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
- package/AuthSetterModal-6f74449c.mjs +273 -0
- package/{CgformCopyList-86157923.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
- package/{CgformModal-5cf02d51.mjs → CgformModal-36faf29a.mjs} +256 -246
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs → CgreportModal-5a23d089.mjs} +140 -117
- package/CheckDictTable-b5cb0e2b.mjs +226 -0
- package/{CodeFileListModal-f747daae.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
- package/{CodeFileViewModal-a9fb2900.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
- package/CodeGeneratorModal-b722d976.mjs +238 -0
- package/{CustomButtonList-b9b27a93.mjs → CustomButtonList-37639061.mjs} +118 -100
- package/{DBAttributeTable-6bdcb1e8.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
- package/{DbToOnlineModal-3705e91a.mjs → DbToOnlineModal-f49b9530.mjs} +56 -50
- package/DetailForm-4aa2570b.mjs +485 -0
- package/{EnhanceJavaModal-c13de6e0.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
- package/{EnhanceJsHistory-154101f0.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
- package/EnhanceJsModal-247f640d.mjs +532 -0
- package/{EnhanceSqlModal-221c22dc.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
- package/ExtendConfigModal-00f2fb55.mjs +117 -0
- package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
- package/{FileSelectModal-de40a706.mjs → FileSelectModal-38660e3c.mjs} +1 -1
- package/{ForeignKeyTable-22989042.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
- package/{IndexTable-833d34ff.mjs → IndexTable-1b496559.mjs} +10 -10
- package/{JModalTip-0413ad6a.mjs → JModalTip-4a83aaed.mjs} +1 -1
- package/{JOnlineSearchSelect-9ea89e13.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
- package/{LeftDepart-b0a535c0.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
- package/{LeftRole-22c90d6b.mjs → LeftRole-7d8c5acc.mjs} +1 -1
- package/{LeftUser-a44d63dd.mjs → LeftUser-b4d1372a.mjs} +3 -3
- package/LinkTableConfigModal-a138c85e.mjs +240 -0
- package/{LinkTableFieldConfigModal-06693eaa.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
- package/{LinkTableListPiece-46e8af51.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
- package/{ModalFormDemo-d107fa87.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-ec27d271.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
- package/{OnlineCustomModal-3e6792d3.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
- package/{OnlineDetailModal-f40e37e1.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-fe308194.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
- package/{OnlineSelectCascade-abc345f9.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
- package/{OnlineSubFormDetail-02326a8c.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
- package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
- package/{OnlineTabDetailModal-d23bd4c9.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-84f4d02d.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-0a93652b.mjs → index-581bef24.mjs} +29 -27
- package/{index-e1bda35b.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-f142147a.mjs +0 -125
- package/AuthDataConfig-8e5c7b0c.mjs +0 -212
- package/AuthFieldConfig-e9a45f94.mjs +0 -139
- package/AuthManagerDrawer-5b558c23.mjs +0 -114
- package/AuthSetterModal-0cc557cf.mjs +0 -267
- package/CgreportModal-2eb9c9e1.mjs +0 -13
- package/CheckDictTable-27102064.mjs +0 -211
- package/CodeGeneratorModal-3a0e9f0e.mjs +0 -233
- package/DetailForm-cdeb54e3.mjs +0 -462
- package/EnhanceJsModal-6158804c.mjs +0 -311
- package/ExtendConfigModal-0564ef83.mjs +0 -111
- package/FieldExtendJsonModal-40d961c1.mjs +0 -219
- package/LinkTableConfigModal-5edaa08d.mjs +0 -230
- package/OnlCgformErpList-4c51cdb3.mjs +0 -454
- package/OnlCgformErpSubTable-d7081b9f.mjs +0 -403
- package/OnlCgformInnerSubTable-4c3925bb.mjs +0 -253
- package/OnlCgformInnerTableList-1e5014fa.mjs +0 -444
- package/OnlCgformTabList-c59c7cc7.mjs +0 -395
- package/OnlineAutoList-a7a9de5d.mjs +0 -479
- package/OnlineAutoModal-a33f1a63.mjs +0 -207
- package/OnlineForm-fb3a2379.mjs +0 -750
- package/OnlineFormDetail-52b1c303.mjs +0 -297
- package/OnlineQueryForm-7c70734e.mjs +0 -386
- package/OnlineTabAutoModal-6d9da8b0.mjs +0 -254
- package/OnlineTabForm-29ca07f7.mjs +0 -766
- package/OnlineTabFormDetail-aa7e1144.mjs +0 -324
- package/PageAttributeTable-d82946c5.mjs +0 -404
- package/QueryTable-d4599fca.mjs +0 -115
- package/SuperQuery-07162778.mjs +0 -843
- package/constant-754f1a9d.mjs +0 -9
- package/index-73993b18.mjs +0 -56
- package/useCgformList-b135794d.mjs +0 -400
- package/useExtendComponent-f4e29152.mjs +0 -3926
- package/useListButton-4dd33e7a.mjs +0 -676
|
@@ -1,297 +0,0 @@
|
|
|
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-cdeb54e3.mjs";
|
|
35
|
-
import me from "./OnlineSubFormDetail-02326a8c.mjs";
|
|
36
|
-
import { i as se } from "./useExtendComponent-f4e29152.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-73993b18.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-46e8af51.mjs";
|
|
62
|
-
import "./OnlineSelectCascade-abc345f9.mjs";
|
|
63
|
-
import "./JModalTip-0413ad6a.mjs";
|
|
64
|
-
import "/@/hooks/web/useAppInject";
|
|
65
|
-
import "ant-design-vue";
|
|
66
|
-
import "@vueuse/core";
|
|
67
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
68
|
-
const fe = {
|
|
69
|
-
name: "OnlineFormDetail",
|
|
70
|
-
components: {
|
|
71
|
-
DetailForm: le,
|
|
72
|
-
Loading: ne,
|
|
73
|
-
PrinterOutlined: ae,
|
|
74
|
-
OnlineSubFormDetail: me
|
|
75
|
-
},
|
|
76
|
-
props: {
|
|
77
|
-
id: {
|
|
78
|
-
type: String,
|
|
79
|
-
default: ""
|
|
80
|
-
},
|
|
81
|
-
formTemplate: {
|
|
82
|
-
type: Number,
|
|
83
|
-
default: 1
|
|
84
|
-
},
|
|
85
|
-
disabled: {
|
|
86
|
-
type: Boolean,
|
|
87
|
-
default: !1
|
|
88
|
-
},
|
|
89
|
-
isTree: {
|
|
90
|
-
type: Boolean,
|
|
91
|
-
default: !1
|
|
92
|
-
},
|
|
93
|
-
pidField: {
|
|
94
|
-
type: String,
|
|
95
|
-
default: ""
|
|
96
|
-
},
|
|
97
|
-
submitTip: {
|
|
98
|
-
type: Boolean,
|
|
99
|
-
default: !0
|
|
100
|
-
},
|
|
101
|
-
showSub: {
|
|
102
|
-
type: Boolean,
|
|
103
|
-
default: !0
|
|
104
|
-
},
|
|
105
|
-
themeTemplate: {
|
|
106
|
-
type: String,
|
|
107
|
-
default: ""
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
emits: ["success", "rendered"],
|
|
111
|
-
setup(a, { emit: i }) {
|
|
112
|
-
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({
|
|
113
|
-
reportPrintShow: 0,
|
|
114
|
-
reportPrintUrl: "",
|
|
115
|
-
joinQuery: 0,
|
|
116
|
-
modelFullscreen: 0,
|
|
117
|
-
modalMinWidth: ""
|
|
118
|
-
}), { detailFormSchemas: P, hasSubTable: x, subTabInfo: C, refMap: l, showStatus: _, subDataSource: F, createFormSchemas: E, formSpan: N } = se(a);
|
|
119
|
-
function M(e) {
|
|
120
|
-
let t = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 1, modalMinWidth: "" };
|
|
121
|
-
e && (t = JSON.parse(e)), Object.keys(t).map((r) => {
|
|
122
|
-
h[r] = t[r];
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
function H(e) {
|
|
126
|
-
return T(this, null, function* () {
|
|
127
|
-
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);
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
function L(e, t) {
|
|
131
|
-
return T(this, null, function* () {
|
|
132
|
-
yield z(t), v(!0);
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
function j(e) {
|
|
136
|
-
let t = `/online/cgform/api/detail/${a.id}/${e}`;
|
|
137
|
-
return new Promise((r, f) => {
|
|
138
|
-
pe.get({ url: t }, { isTransformResponse: !1 }).then((D) => {
|
|
139
|
-
D.success ? r(D.result) : (f(), n.warning(D.message));
|
|
140
|
-
}).catch(() => {
|
|
141
|
-
f();
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
function v(e) {
|
|
146
|
-
Object.keys(_).map((t) => {
|
|
147
|
-
_[t] = e;
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
function U() {
|
|
151
|
-
v(!1), setTimeout(() => {
|
|
152
|
-
v(!0);
|
|
153
|
-
}, 300);
|
|
154
|
-
}
|
|
155
|
-
function z(e) {
|
|
156
|
-
return T(this, null, function* () {
|
|
157
|
-
let t = yield j(e.id);
|
|
158
|
-
s.value = V({}, t), I(t);
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
function I(e) {
|
|
162
|
-
e || (e = {});
|
|
163
|
-
let t = Object.keys(F.value);
|
|
164
|
-
if (t && t.length > 0) {
|
|
165
|
-
let r = {};
|
|
166
|
-
for (let f of t)
|
|
167
|
-
r[f] = e[f] || [];
|
|
168
|
-
F.value = r;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
function K(e) {
|
|
172
|
-
return "online_" + e + ":";
|
|
173
|
-
}
|
|
174
|
-
function A() {
|
|
175
|
-
let e = h.reportPrintUrl, t = s.value;
|
|
176
|
-
if (t) {
|
|
177
|
-
let r = t.id, f = re();
|
|
178
|
-
ie(e, r, f);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
function Q(e) {
|
|
182
|
-
let t = s.value;
|
|
183
|
-
return W(t, e);
|
|
184
|
-
}
|
|
185
|
-
function W(e, t) {
|
|
186
|
-
if (e) {
|
|
187
|
-
let r = e[t];
|
|
188
|
-
return !r && r !== 0 && (r = e[t.toLowerCase()], !r && r !== 0 && (r = e[t.toUpperCase()])), r;
|
|
189
|
-
}
|
|
190
|
-
return "";
|
|
191
|
-
}
|
|
192
|
-
return {
|
|
193
|
-
detailFormSchemas: P,
|
|
194
|
-
formData: s,
|
|
195
|
-
formSpan: N,
|
|
196
|
-
//主表
|
|
197
|
-
tableName: o,
|
|
198
|
-
loading: S,
|
|
199
|
-
//子表
|
|
200
|
-
hasSubTable: x,
|
|
201
|
-
subTabInfo: C,
|
|
202
|
-
subFormHeight: m,
|
|
203
|
-
subTableHeight: u,
|
|
204
|
-
refMap: l,
|
|
205
|
-
onTabChange: U,
|
|
206
|
-
//一对多子表
|
|
207
|
-
subDataSource: F,
|
|
208
|
-
getSubTableAuthPre: K,
|
|
209
|
-
//父组件调用
|
|
210
|
-
show: L,
|
|
211
|
-
createRootProperties: H,
|
|
212
|
-
// 扩展配置
|
|
213
|
-
onOpenReportPrint: A,
|
|
214
|
-
onlineExtConfigJson: h,
|
|
215
|
-
getSubTableForeignKeyValue: Q,
|
|
216
|
-
showStatus: _,
|
|
217
|
-
ERP: ce
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
}, de = ["id"], he = {
|
|
221
|
-
key: 0,
|
|
222
|
-
style: { "text-align": "right", position: "absolute", top: "15px", right: "20px", "z-index": "999" }
|
|
223
|
-
}, ge = { key: 1 };
|
|
224
|
-
function be(a, i, n, o, g, S) {
|
|
225
|
-
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");
|
|
226
|
-
return p(), y("div", {
|
|
227
|
-
id: o.tableName + "_form"
|
|
228
|
-
}, [
|
|
229
|
-
o.formData.id && o.onlineExtConfigJson.reportPrintShow ? (p(), y("div", he, [
|
|
230
|
-
k(b, {
|
|
231
|
-
title: "打印",
|
|
232
|
-
onClick: o.onOpenReportPrint,
|
|
233
|
-
style: { "font-size": "16px" }
|
|
234
|
-
}, null, 8, ["onClick"])
|
|
235
|
-
])) : R("", !0),
|
|
236
|
-
k(s, {
|
|
237
|
-
schemas: o.detailFormSchemas,
|
|
238
|
-
data: o.formData,
|
|
239
|
-
span: o.formSpan
|
|
240
|
-
}, null, 8, ["schemas", "data", "span"]),
|
|
241
|
-
n.themeTemplate !== o.ERP && o.hasSubTable && n.showSub ? (p(), w(x, {
|
|
242
|
-
key: 1,
|
|
243
|
-
onChange: o.onTabChange
|
|
244
|
-
}, {
|
|
245
|
-
default: B(() => [
|
|
246
|
-
(p(!0), y($, null, ee(o.subTabInfo, (l, _) => (p(), w(P, {
|
|
247
|
-
tab: l.describe,
|
|
248
|
-
key: _ + "",
|
|
249
|
-
forceRender: !0
|
|
250
|
-
}, {
|
|
251
|
-
default: B(() => [
|
|
252
|
-
l.relationType == 1 ? (p(), y("div", {
|
|
253
|
-
key: 0,
|
|
254
|
-
style: te({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": o.subFormHeight + "px" })
|
|
255
|
-
}, [
|
|
256
|
-
k(m, {
|
|
257
|
-
table: l.key,
|
|
258
|
-
"form-template": n.formTemplate,
|
|
259
|
-
"main-id": o.getSubTableForeignKeyValue(l.foreignKey),
|
|
260
|
-
properties: l.properties
|
|
261
|
-
}, null, 8, ["table", "form-template", "main-id", "properties"])
|
|
262
|
-
], 4)) : (p(), y("div", ge, [
|
|
263
|
-
o.showStatus[l.key] ? (p(), w(u, {
|
|
264
|
-
key: 0,
|
|
265
|
-
ref_for: !0,
|
|
266
|
-
ref: o.refMap[l.key],
|
|
267
|
-
toolbar: "",
|
|
268
|
-
"keep-source": "",
|
|
269
|
-
"row-number": "",
|
|
270
|
-
"row-selection": "",
|
|
271
|
-
height: o.subTableHeight,
|
|
272
|
-
disabled: !0,
|
|
273
|
-
columns: l.columns,
|
|
274
|
-
dataSource: o.subDataSource[l.key],
|
|
275
|
-
authPre: o.getSubTableAuthPre(l.key)
|
|
276
|
-
}, null, 8, ["height", "columns", "dataSource", "authPre"])) : (p(), w(h, {
|
|
277
|
-
key: 1,
|
|
278
|
-
spinning: !0
|
|
279
|
-
}))
|
|
280
|
-
]))
|
|
281
|
-
]),
|
|
282
|
-
_: 2
|
|
283
|
-
}, 1032, ["tab"]))), 128))
|
|
284
|
-
]),
|
|
285
|
-
_: 1
|
|
286
|
-
}, 8, ["onChange"])) : R("", !0),
|
|
287
|
-
k(C, {
|
|
288
|
-
loading: o.loading,
|
|
289
|
-
absolute: !1
|
|
290
|
-
}, null, 8, ["loading"]),
|
|
291
|
-
oe(a.$slots, "bottom")
|
|
292
|
-
], 8, de);
|
|
293
|
-
}
|
|
294
|
-
const it = /* @__PURE__ */ ue(fe, [["render", be]]);
|
|
295
|
-
export {
|
|
296
|
-
it as default
|
|
297
|
-
};
|
|
@@ -1,386 +0,0 @@
|
|
|
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-f4e29152.mjs";
|
|
33
|
-
import { L as ke } from "./constant-754f1a9d.mjs";
|
|
34
|
-
import { _ as Oe } from "./index-73993b18.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-46e8af51.mjs";
|
|
54
|
-
import "./OnlineSelectCascade-abc345f9.mjs";
|
|
55
|
-
import "/@/components/Loading";
|
|
56
|
-
import "/@/utils/auth";
|
|
57
|
-
import "./JModalTip-0413ad6a.mjs";
|
|
58
|
-
import "/@/hooks/web/useAppInject";
|
|
59
|
-
import "ant-design-vue";
|
|
60
|
-
import "@vueuse/core";
|
|
61
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
62
|
-
const Le = {
|
|
63
|
-
name: "OnlineQueryForm",
|
|
64
|
-
components: {
|
|
65
|
-
BasicForm: pe
|
|
66
|
-
},
|
|
67
|
-
props: {
|
|
68
|
-
id: {
|
|
69
|
-
type: String,
|
|
70
|
-
default: ""
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
emits: ["search", "loaded"],
|
|
74
|
-
setup(i, { emit: s }) {
|
|
75
|
-
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({
|
|
76
|
-
config: {},
|
|
77
|
-
cache: {},
|
|
78
|
-
param: {},
|
|
79
|
-
status: !1
|
|
80
|
-
});
|
|
81
|
-
Q(
|
|
82
|
-
() => o.status,
|
|
83
|
-
(t) => D(this, null, function* () {
|
|
84
|
-
const { config: e, cache: n, param: y } = R(o);
|
|
85
|
-
let u = Object.assign({}, e, n, y);
|
|
86
|
-
yield $(u);
|
|
87
|
-
}),
|
|
88
|
-
{ immediate: !0, deep: !0 }
|
|
89
|
-
);
|
|
90
|
-
function m(t, e) {
|
|
91
|
-
return D(this, null, function* () {
|
|
92
|
-
o.cache = E({}, t), o.param = E({}, e), o.status = !o.status;
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
Q(
|
|
96
|
-
() => i.id,
|
|
97
|
-
(t) => {
|
|
98
|
-
t ? Z() : w.value = [];
|
|
99
|
-
},
|
|
100
|
-
{ immediate: !0 }
|
|
101
|
-
);
|
|
102
|
-
function d(t) {
|
|
103
|
-
return D(this, null, function* () {
|
|
104
|
-
let e = [], n = {}, y = Object.keys(t), u = -1;
|
|
105
|
-
for (let a of y) {
|
|
106
|
-
const r = t[a];
|
|
107
|
-
a === "sys_org_code" && (r.fieldExtendJson || (r.fieldExtendJson = '{"store":"orgCode"}'));
|
|
108
|
-
let h = r.view;
|
|
109
|
-
if (z[h] && (r.view = z[h]), yield Fe(a, r, n), r.mode == "group" && (h == "date" || h == "datetime" || h == "number")) {
|
|
110
|
-
let L = B.createSlotFormSchema(a, r);
|
|
111
|
-
e.push(L);
|
|
112
|
-
} else if (r.view === Se) {
|
|
113
|
-
let L = xe(r, a);
|
|
114
|
-
for (let k of L) {
|
|
115
|
-
let C = B.createFormSchema(k.key, k), H = X(e, k.key);
|
|
116
|
-
H == -1 ? e.push(C) : e[H] = C;
|
|
117
|
-
}
|
|
118
|
-
} else if (X(e, a) == -1) {
|
|
119
|
-
let k = B.createFormSchema(a, r);
|
|
120
|
-
e.push(k);
|
|
121
|
-
}
|
|
122
|
-
let x = r.fieldExtendJson;
|
|
123
|
-
x && (x = JSON.parse(x), x.labelLength && (u > -1 ? u = x.labelLength > u ? x.labelLength : u : u = x.labelLength));
|
|
124
|
-
}
|
|
125
|
-
u == -1 && (u = ke), e.sort(function(a, r) {
|
|
126
|
-
return a.order - r.order;
|
|
127
|
-
});
|
|
128
|
-
let g = [];
|
|
129
|
-
e.length > 2 && (F.value = !0);
|
|
130
|
-
let v = [];
|
|
131
|
-
for (let a = 0; a < e.length; a++) {
|
|
132
|
-
let r = e[a];
|
|
133
|
-
r.setFormRef(c), r.noChange(), r.asSearchForm(), a > 1 && (v.push(r.field), r.isHidden());
|
|
134
|
-
let h = r.getFormItemSchema();
|
|
135
|
-
r.slot == "groupDatetime" && (h.colProps = { xs: 24, sm: 24, md: 12, lg: 8, xl: 8 }), N(h), g.push(h);
|
|
136
|
-
}
|
|
137
|
-
S.value = v, w.value = g, o.config = E({}, n), o.status = !o.status, setTimeout(() => {
|
|
138
|
-
const a = u * 14 + u + 24;
|
|
139
|
-
j.value = a;
|
|
140
|
-
}, 0);
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
function Z() {
|
|
144
|
-
return D(this, null, function* () {
|
|
145
|
-
let t = yield ae(), e = te(t);
|
|
146
|
-
s("loaded", t);
|
|
147
|
-
let { formProperties: n, hasField: y } = ee(e, t);
|
|
148
|
-
if (y == !1) {
|
|
149
|
-
w.value = [];
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
yield d(n);
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
function $(t) {
|
|
156
|
-
return D(this, null, function* () {
|
|
157
|
-
yield we(c), yield A(t), Object.keys(t).length > 0 && M();
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
function ee(t, e) {
|
|
161
|
-
const { searchFieldList: n, joinQuery: y, table: u } = e;
|
|
162
|
-
let g = !1, v = {};
|
|
163
|
-
return t && Object.keys(t).map((a) => {
|
|
164
|
-
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));
|
|
165
|
-
}), {
|
|
166
|
-
formProperties: v,
|
|
167
|
-
hasField: g
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
function te(t) {
|
|
171
|
-
const { properties: e, searchFieldList: n, joinQuery: y, table: u } = t;
|
|
172
|
-
let g = {}, v = 1;
|
|
173
|
-
return Object.keys(e).map((a) => {
|
|
174
|
-
let r = e[a];
|
|
175
|
-
if (r.view == "table") {
|
|
176
|
-
let h = r.properties, x = v * 100;
|
|
177
|
-
Object.keys(h).map((L) => {
|
|
178
|
-
let k = h[L];
|
|
179
|
-
k.order = x + Number(k.order);
|
|
180
|
-
let C = a + "@" + L;
|
|
181
|
-
g[C] = k;
|
|
182
|
-
}), v++;
|
|
183
|
-
} else
|
|
184
|
-
r.order = Number(r.order), g[a] = r;
|
|
185
|
-
}), g;
|
|
186
|
-
}
|
|
187
|
-
function ae() {
|
|
188
|
-
let t = `${l}${i.id}`;
|
|
189
|
-
return new Promise((e) => {
|
|
190
|
-
ye.get({ url: t }, { isTransformResponse: !1 }).then((n) => {
|
|
191
|
-
n.success ? e(n.result) : (e(!1), Y.warning(n.message));
|
|
192
|
-
}).catch(() => {
|
|
193
|
-
Y.warning("获取查询条件失败!"), e(!1);
|
|
194
|
-
});
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
const [oe, { resetFields: re, setFieldsValue: A, updateSchema: ne, getFieldsValue: se }] = de({
|
|
198
|
-
schemas: w,
|
|
199
|
-
showActionButtonGroup: !1,
|
|
200
|
-
baseColProps: V,
|
|
201
|
-
autoSubmitOnEnter: !0,
|
|
202
|
-
labelWidth: j,
|
|
203
|
-
wrapperCol: null,
|
|
204
|
-
submitFunc() {
|
|
205
|
-
M();
|
|
206
|
-
}
|
|
207
|
-
/* labelCol: ONL_QUERY_LABEL_COL,
|
|
208
|
-
wrapperCol: ONL_QUERY_WRAPPER_COL*/
|
|
209
|
-
});
|
|
210
|
-
function M() {
|
|
211
|
-
let t = se(), e = Object.assign({}, R(o.param), ie(t));
|
|
212
|
-
s("search", e, !0);
|
|
213
|
-
}
|
|
214
|
-
function le() {
|
|
215
|
-
return D(this, null, function* () {
|
|
216
|
-
yield re();
|
|
217
|
-
const { config: t, param: e } = R(o);
|
|
218
|
-
let n = Object.assign({}, t, e);
|
|
219
|
-
Object.keys(n).length > 0 && (yield A(n)), s("search", n, !1);
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
function ie(t) {
|
|
223
|
-
return Object.keys(t).map((e) => {
|
|
224
|
-
t[e] && t[e] instanceof Array && (t[e] = t[e].join(","));
|
|
225
|
-
}), t;
|
|
226
|
-
}
|
|
227
|
-
return Q(
|
|
228
|
-
() => _.value,
|
|
229
|
-
(t) => {
|
|
230
|
-
let e = S.value;
|
|
231
|
-
if (e && e.length > 0) {
|
|
232
|
-
let n = [];
|
|
233
|
-
for (let y of e)
|
|
234
|
-
n.push({
|
|
235
|
-
field: y,
|
|
236
|
-
show: t
|
|
237
|
-
});
|
|
238
|
-
ne(n);
|
|
239
|
-
}
|
|
240
|
-
},
|
|
241
|
-
{ immediate: !1 }
|
|
242
|
-
), {
|
|
243
|
-
onlineQueryFormRef: c,
|
|
244
|
-
registerForm: oe,
|
|
245
|
-
initDefaultValues: m,
|
|
246
|
-
toggleButtonShow: F,
|
|
247
|
-
toggleSearchStatus: _,
|
|
248
|
-
doSearch: M,
|
|
249
|
-
resetSearch: le,
|
|
250
|
-
queryParams: f,
|
|
251
|
-
formSchemas: w
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
}, P = (i) => (ge("data-v-3e6e229f"), i = i(), _e(), i), De = {
|
|
255
|
-
key: 0,
|
|
256
|
-
class: "jeecg-basic-table-form-container online-query-form p-0"
|
|
257
|
-
}, 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 = {
|
|
258
|
-
style: { float: "left", overflow: "hidden", "margin-left": "10px" },
|
|
259
|
-
class: "table-page-search-submitButtons"
|
|
260
|
-
};
|
|
261
|
-
function Ce(i, s, l, c, w, V) {
|
|
262
|
-
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");
|
|
263
|
-
return c.formSchemas && c.formSchemas.length > 0 ? (W(), G("div", De, [
|
|
264
|
-
p(j, {
|
|
265
|
-
ref: "onlineQueryFormRef",
|
|
266
|
-
onRegister: c.registerForm
|
|
267
|
-
}, {
|
|
268
|
-
groupDate: b(({ model: o, field: m }) => [
|
|
269
|
-
p(F, {
|
|
270
|
-
showTime: !1,
|
|
271
|
-
valueFormat: "YYYY-MM-DD",
|
|
272
|
-
placeholder: "开始日期",
|
|
273
|
-
value: o[m + "_begin"],
|
|
274
|
-
"onUpdate:value": (d) => o[m + "_begin"] = d,
|
|
275
|
-
style: { width: "calc(50% - 15px)", "min-width": "100px" }
|
|
276
|
-
}, null, 8, ["value", "onUpdate:value"]),
|
|
277
|
-
Ie,
|
|
278
|
-
p(_, null, {
|
|
279
|
-
default: b(() => [
|
|
280
|
-
p(F, {
|
|
281
|
-
showTime: !1,
|
|
282
|
-
valueFormat: "YYYY-MM-DD",
|
|
283
|
-
placeholder: "结束日期",
|
|
284
|
-
value: o[m + "_end"],
|
|
285
|
-
"onUpdate:value": (d) => o[m + "_end"] = d,
|
|
286
|
-
style: { width: "calc(50% - 15px)", "min-width": "100px" }
|
|
287
|
-
}, null, 8, ["value", "onUpdate:value"])
|
|
288
|
-
]),
|
|
289
|
-
_: 2
|
|
290
|
-
}, 1024)
|
|
291
|
-
]),
|
|
292
|
-
groupDatetime: b(({ model: o, field: m }) => [
|
|
293
|
-
p(F, {
|
|
294
|
-
showTime: !0,
|
|
295
|
-
valueFormat: "YYYY-MM-DD HH:mm:ss",
|
|
296
|
-
placeholder: "开始时间",
|
|
297
|
-
value: o[m + "_begin"],
|
|
298
|
-
"onUpdate:value": (d) => o[m + "_begin"] = d,
|
|
299
|
-
style: { "min-width": "100px", width: "calc(50% - 15px)" }
|
|
300
|
-
}, null, 8, ["value", "onUpdate:value"]),
|
|
301
|
-
Ve,
|
|
302
|
-
p(_, null, {
|
|
303
|
-
default: b(() => [
|
|
304
|
-
p(F, {
|
|
305
|
-
showTime: !0,
|
|
306
|
-
valueFormat: "YYYY-MM-DD HH:mm:ss",
|
|
307
|
-
placeholder: "结束时间",
|
|
308
|
-
value: o[m + "_end"],
|
|
309
|
-
"onUpdate:value": (d) => o[m + "_end"] = d,
|
|
310
|
-
style: { "min-width": "100px", width: "calc(50% - 15px)" }
|
|
311
|
-
}, null, 8, ["value", "onUpdate:value"])
|
|
312
|
-
]),
|
|
313
|
-
_: 2
|
|
314
|
-
}, 1024)
|
|
315
|
-
]),
|
|
316
|
-
groupNumber: b(({ model: o, field: m }) => [
|
|
317
|
-
p(f, {
|
|
318
|
-
placeholder: "开始值",
|
|
319
|
-
value: o[m + "_begin"],
|
|
320
|
-
"onUpdate:value": (d) => o[m + "_begin"] = d,
|
|
321
|
-
style: { width: "calc(50% - 15px)" }
|
|
322
|
-
}, null, 8, ["value", "onUpdate:value"]),
|
|
323
|
-
Ye,
|
|
324
|
-
p(_, null, {
|
|
325
|
-
default: b(() => [
|
|
326
|
-
p(f, {
|
|
327
|
-
placeholder: "结束值",
|
|
328
|
-
value: o[m + "_end"],
|
|
329
|
-
"onUpdate:value": (d) => o[m + "_end"] = d,
|
|
330
|
-
style: { width: "calc(50% - 15px)" }
|
|
331
|
-
}, null, 8, ["value", "onUpdate:value"])
|
|
332
|
-
]),
|
|
333
|
-
_: 2
|
|
334
|
-
}, 1024)
|
|
335
|
-
]),
|
|
336
|
-
formFooter: b(() => [
|
|
337
|
-
p(N, {
|
|
338
|
-
md: 6,
|
|
339
|
-
sm: 8
|
|
340
|
-
}, {
|
|
341
|
-
default: b(() => [
|
|
342
|
-
U("span", je, [
|
|
343
|
-
p(S, {
|
|
344
|
-
preIcon: "ant-design:search",
|
|
345
|
-
type: "primary",
|
|
346
|
-
onClick: c.doSearch
|
|
347
|
-
}, {
|
|
348
|
-
default: b(() => [
|
|
349
|
-
T("查询")
|
|
350
|
-
]),
|
|
351
|
-
_: 1
|
|
352
|
-
}, 8, ["onClick"]),
|
|
353
|
-
p(S, {
|
|
354
|
-
preIcon: "ant-design:reload",
|
|
355
|
-
type: "primary",
|
|
356
|
-
onClick: c.resetSearch,
|
|
357
|
-
style: { "margin-left": "8px" }
|
|
358
|
-
}, {
|
|
359
|
-
default: b(() => [
|
|
360
|
-
T("重置")
|
|
361
|
-
]),
|
|
362
|
-
_: 1
|
|
363
|
-
}, 8, ["onClick"]),
|
|
364
|
-
c.toggleButtonShow ? (W(), G("a", {
|
|
365
|
-
key: 0,
|
|
366
|
-
onClick: s[0] || (s[0] = (o) => c.toggleSearchStatus = !c.toggleSearchStatus),
|
|
367
|
-
style: { "margin-left": "8px" }
|
|
368
|
-
}, [
|
|
369
|
-
T(he(c.toggleSearchStatus ? "收起" : "展开") + " ", 1),
|
|
370
|
-
p(Y, {
|
|
371
|
-
type: c.toggleSearchStatus ? "up" : "down"
|
|
372
|
-
}, null, 8, ["type"])
|
|
373
|
-
])) : K("", !0)
|
|
374
|
-
])
|
|
375
|
-
]),
|
|
376
|
-
_: 1
|
|
377
|
-
})
|
|
378
|
-
]),
|
|
379
|
-
_: 1
|
|
380
|
-
}, 8, ["onRegister"])
|
|
381
|
-
])) : K("", !0);
|
|
382
|
-
}
|
|
383
|
-
const ht = /* @__PURE__ */ Oe(Le, [["render", Ce], ["__scopeId", "data-v-3e6e229f"]]);
|
|
384
|
-
export {
|
|
385
|
-
ht as default
|
|
386
|
-
};
|