@jeecg/online 3.5.3-vite4 → 3.6.2-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-2f71787c.mjs → AuthButtonConfig-244ec09f.mjs} +1 -1
- package/{AuthButtonTree-d73bccf5.mjs → AuthButtonTree-3aa0ed49.mjs} +1 -1
- package/{AuthDataConfig-32cf23d2.mjs → AuthDataConfig-83891eea.mjs} +1 -1
- package/{AuthDataTree-03d62d3f.mjs → AuthDataTree-94e026e3.mjs} +1 -1
- package/{AuthFieldConfig-b1217a0c.mjs → AuthFieldConfig-6b21915c.mjs} +1 -1
- package/{AuthFieldTree-888e04a9.mjs → AuthFieldTree-69864163.mjs} +1 -1
- package/{AuthManagerDrawer-f127b8a2.mjs → AuthManagerDrawer-300dd4e4.mjs} +4 -4
- package/{AuthSetterModal-37da78ed.mjs → AuthSetterModal-a414fb35.mjs} +58 -52
- package/{CgformCopyList-3adab58f.mjs → CgformCopyList-14b76108.mjs} +42 -39
- package/CgformModal-eccfc38e.mjs +611 -0
- package/{CgreportModal-77ec8c17.mjs → CgreportModal-2065f5a9.mjs} +2 -1
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs → CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs} +170 -171
- package/{CheckDictTable-414313f2.mjs → CheckDictTable-134cbb83.mjs} +3 -3
- package/{CodeFileListModal-4831ce3d.mjs → CodeFileListModal-a6d3290d.mjs} +2 -2
- package/{CodeFileViewModal-5990dac4.mjs → CodeFileViewModal-373e8058.mjs} +2 -2
- package/{CodeGeneratorModal-7df9e25d.mjs → CodeGeneratorModal-f08a89cd.mjs} +5 -6
- package/{CustomButtonList-1c9bd859.mjs → CustomButtonList-02e3d897.mjs} +2 -2
- package/{DBAttributeTable-cd1c41e5.mjs → DBAttributeTable-370de07b.mjs} +2 -2
- package/{DbToOnlineModal-dc5d2030.mjs → DbToOnlineModal-9f13956f.mjs} +35 -35
- package/{DetailForm-e4538e7a.mjs → DetailForm-424638eb.mjs} +179 -163
- package/{EnhanceJavaModal-7f53d2ca.mjs → EnhanceJavaModal-f63aa2d3.mjs} +17 -13
- package/{EnhanceJsHistory-c30805ce.mjs → EnhanceJsHistory-352b46b1.mjs} +1 -1
- package/EnhanceJsModal-05c73a59.mjs +311 -0
- package/{EnhanceSqlModal-33a94c83.mjs → EnhanceSqlModal-5e4ae84f.mjs} +55 -46
- package/{ExtendConfigModal-60f2cf86.mjs → ExtendConfigModal-1dde390a.mjs} +2 -2
- package/FieldExtendJsonModal-a70a9ccd.mjs +219 -0
- package/FileSelectModal-9a02560b.mjs +103 -0
- package/{ForeignKeyTable-cb1abd1d.mjs → ForeignKeyTable-6a843c4b.mjs} +2 -2
- package/{IndexTable-4e94cd1f.mjs → IndexTable-f8af9d44.mjs} +2 -2
- package/JModalTip-33c7dc44.mjs +49 -0
- package/{JOnlineSearchSelect-5608a5cf.mjs → JOnlineSearchSelect-c287af12.mjs} +17 -16
- package/{LeftDepart-ca7a7375.mjs → LeftDepart-fa85523d.mjs} +1 -1
- package/{LeftRole-d0fa8398.mjs → LeftRole-8b8dfe21.mjs} +1 -1
- package/{LeftUser-0c88c240.mjs → LeftUser-dc24ef2f.mjs} +1 -1
- package/{LinkTableConfigModal-77d7c0b9.mjs → LinkTableConfigModal-d4fbdef2.mjs} +23 -23
- package/{LinkTableFieldConfigModal-c5689ab0.mjs → LinkTableFieldConfigModal-787bc55c.mjs} +44 -46
- package/LinkTableListPiece-8499a318.mjs +34 -0
- package/{ModalFormDemo-0eeea994.mjs → ModalFormDemo-977a49eb.mjs} +1 -1
- package/OnlCgformErpList-db45e22b.mjs +454 -0
- package/OnlCgformErpSubTable-54b50eec.mjs +403 -0
- package/OnlCgformInnerSubTable-fbca73e0.mjs +253 -0
- package/OnlCgformInnerTableList-782eaf04.mjs +444 -0
- package/OnlCgformTabList-a9e1e36a.mjs +395 -0
- package/OnlineAutoList-0583a910.mjs +479 -0
- package/{OnlineAutoModal-2a146238.mjs → OnlineAutoModal-510991eb.mjs} +59 -58
- package/{OnlineAutoTreeList-f8d0e100.mjs → OnlineAutoTreeList-89265688.mjs} +158 -153
- package/{OnlineCustomModal-456a85a6.mjs → OnlineCustomModal-518ad33c.mjs} +67 -66
- package/{OnlineDetailModal-f967f080.mjs → OnlineDetailModal-9675390d.mjs} +40 -39
- package/OnlineForm-1fa2d893.mjs +750 -0
- package/{OnlineFormDetail-1b216792.mjs → OnlineFormDetail-0e7294ca.mjs} +56 -55
- package/OnlineQueryForm-1bfc8320.mjs +386 -0
- package/{OnlineSearchFormItem-7c2ea9ed.mjs → OnlineSearchFormItem-0cc85a8a.mjs} +83 -87
- package/{OnlineSelectCascade-c7baf52b.mjs → OnlineSelectCascade-4265c95d.mjs} +31 -32
- package/{OnlineSubFormDetail-0aa4966c.mjs → OnlineSubFormDetail-f0d2c016.mjs} +53 -50
- package/OnlineTabAutoModal-6f636ee2.mjs +254 -0
- package/OnlineTabDetailModal-7356d3a8.mjs +223 -0
- package/OnlineTabForm-512d3951.mjs +766 -0
- package/OnlineTabFormDetail-5a70219d.mjs +324 -0
- package/{PageAttributeTable-811185fd.mjs → PageAttributeTable-965dc58e.mjs} +20 -20
- package/{ProcessOnlineForm-27be6f6f.mjs → ProcessOnlineForm-67558898.mjs} +39 -38
- package/{QueryTable-4ba771ef.mjs → QueryTable-eb9a5b21.mjs} +2 -2
- package/README.md +5 -2
- package/{SuperQuery-3821f984.mjs → SuperQuery-5d1ca957.mjs} +171 -173
- package/{SuperQueryValComponent-471110b5.mjs → SuperQueryValComponent-7ad86d4b.mjs} +1 -1
- package/SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs +101 -0
- package/cgformState-d9f8ec42.mjs +28 -0
- package/constant-754f1a9d.mjs +9 -0
- package/index-0e3ab3af.mjs +56 -0
- package/{index-074b92e5.mjs → index-49508cad.mjs} +4 -3
- package/index-b7a05eef.mjs +1496 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-423282b7.mjs +400 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-325fe3f1.mjs +3926 -0
- package/useListButton-cdbab702.mjs +676 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/{useSchemas-fc8d97ce.mjs → useSchemas-0433a403.mjs} +129 -109
- package/{useTableSync-dc333087.mjs → useTableSync-774c3774.mjs} +17 -13
- package/CgformModal-6938d8c2.mjs +0 -613
- package/EnhanceJsModal-0b133341.mjs +0 -233
- package/FieldExtendJsonModal-48f7d67f.mjs +0 -220
- package/FileSelectModal-64aaf623.mjs +0 -91
- package/JModalTip-abe1515a.mjs +0 -46
- package/LinkTableListPiece-34266919.mjs +0 -34
- package/OnlCgformErpList-7a0388d8.mjs +0 -425
- package/OnlCgformErpSubTable-fc6ade76.mjs +0 -388
- package/OnlineAutoList-85e6a30d.mjs +0 -472
- package/OnlineForm-630a22c2.mjs +0 -778
- package/OnlineQueryForm-1c5949a7.mjs +0 -378
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +0 -101
- package/constant-fe20103a.mjs +0 -6
- package/index-6a09a912.mjs +0 -58
- package/index-9d32ae88.mjs +0 -313
- package/useCgformList-2d6a5955.mjs +0 -388
- package/useExtendComponent-48d37d9b.mjs +0 -3919
- package/useListButton-cef1371a.mjs +0 -656
- package/useOnlinePopEvent-e9a042f8.mjs +0 -19
- package/useOnlineTest-0df0ae86.mjs +0 -43
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
var q = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var O = Object.getOwnPropertySymbols;
|
|
3
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,
|
|
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
5
|
for (var n in i || (i = {}))
|
|
6
6
|
G.call(i, n) && J(a, n, i[n]);
|
|
7
|
-
if (
|
|
8
|
-
for (var n of
|
|
7
|
+
if (O)
|
|
8
|
+
for (var n of O(i))
|
|
9
9
|
X.call(i, n) && J(a, n, i[n]);
|
|
10
10
|
return a;
|
|
11
11
|
};
|
|
12
|
-
var T = (a, i, n) => new Promise((o,
|
|
12
|
+
var T = (a, i, n) => new Promise((o, g) => {
|
|
13
13
|
var S = (m) => {
|
|
14
14
|
try {
|
|
15
15
|
s(n.next(m));
|
|
16
16
|
} catch (u) {
|
|
17
|
-
|
|
17
|
+
g(u);
|
|
18
18
|
}
|
|
19
19
|
}, b = (m) => {
|
|
20
20
|
try {
|
|
21
21
|
s(n.throw(m));
|
|
22
22
|
} catch (u) {
|
|
23
|
-
|
|
23
|
+
g(u);
|
|
24
24
|
}
|
|
25
25
|
}, s = (m) => m.done ? o(m.value) : Promise.resolve(m.value).then(S, b);
|
|
26
26
|
s((n = n.apply(a, i)).next());
|
|
27
27
|
});
|
|
28
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
|
|
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
30
|
import { Loading as ne } from "/@/components/Loading";
|
|
31
31
|
import { getToken as re } from "/@/utils/auth";
|
|
32
32
|
import { goJmReportViewPage as ie } from "/@/utils";
|
|
33
33
|
import { PrinterOutlined as ae } from "@ant-design/icons-vue";
|
|
34
|
-
import le from "./DetailForm-
|
|
35
|
-
import me from "./OnlineSubFormDetail-
|
|
36
|
-
import {
|
|
34
|
+
import le from "./DetailForm-424638eb.mjs";
|
|
35
|
+
import me from "./OnlineSubFormDetail-f0d2c016.mjs";
|
|
36
|
+
import { i as se } from "./useExtendComponent-325fe3f1.mjs";
|
|
37
37
|
import { defHttp as pe } from "/@/utils/http/axios";
|
|
38
|
-
import { E as ce } from "./constant-
|
|
39
|
-
import { _ as ue } from "./index-
|
|
38
|
+
import { E as ce } from "./constant-754f1a9d.mjs";
|
|
39
|
+
import { _ as ue } from "./index-0e3ab3af.mjs";
|
|
40
40
|
import "/@/utils/propTypes";
|
|
41
41
|
import "/@/utils/dict";
|
|
42
42
|
import "/@/utils/dict/JDictSelectUtil";
|
|
@@ -45,6 +45,7 @@ import "/@/api/common/api";
|
|
|
45
45
|
import "/@/components/Form/src/utils/Area";
|
|
46
46
|
import "/@/utils/common/compUtils";
|
|
47
47
|
import "/@/components/Preview/index";
|
|
48
|
+
import "/@/components/Markdown";
|
|
48
49
|
import "/@/components/Form/index";
|
|
49
50
|
import "/@/components/Form/src/componentMap";
|
|
50
51
|
import "/@/components/Modal";
|
|
@@ -57,9 +58,10 @@ import "/@/store/modules/permission";
|
|
|
57
58
|
import "/@/components/Table";
|
|
58
59
|
import "/@/hooks/system/useListPage";
|
|
59
60
|
import "vue-router";
|
|
60
|
-
import "./LinkTableListPiece-
|
|
61
|
-
import "./OnlineSelectCascade-
|
|
62
|
-
import "./JModalTip-
|
|
61
|
+
import "./LinkTableListPiece-8499a318.mjs";
|
|
62
|
+
import "./OnlineSelectCascade-4265c95d.mjs";
|
|
63
|
+
import "./JModalTip-33c7dc44.mjs";
|
|
64
|
+
import "/@/hooks/web/useAppInject";
|
|
63
65
|
import "ant-design-vue";
|
|
64
66
|
import "@vueuse/core";
|
|
65
67
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
@@ -107,31 +109,30 @@ const fe = {
|
|
|
107
109
|
},
|
|
108
110
|
emits: ["success", "rendered"],
|
|
109
111
|
setup(a, { emit: i }) {
|
|
110
|
-
|
|
111
|
-
const { createMessage: n } = Y(), o = d(""), h = d(!0), S = d(!1), b = d(1), s = d({}), m = d(300), u = d(340), g = Z({
|
|
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({
|
|
112
113
|
reportPrintShow: 0,
|
|
113
114
|
reportPrintUrl: "",
|
|
114
115
|
joinQuery: 0,
|
|
115
116
|
modelFullscreen: 0,
|
|
116
117
|
modalMinWidth: ""
|
|
117
|
-
}), { detailFormSchemas: P, hasSubTable: x, subTabInfo: C, refMap: l, showStatus: _, subDataSource: F, createFormSchemas:
|
|
118
|
-
function
|
|
118
|
+
}), { detailFormSchemas: P, hasSubTable: x, subTabInfo: C, refMap: l, showStatus: _, subDataSource: F, createFormSchemas: E, formSpan: N } = se(a);
|
|
119
|
+
function M(e) {
|
|
119
120
|
let t = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 1, modalMinWidth: "" };
|
|
120
121
|
e && (t = JSON.parse(e)), Object.keys(t).map((r) => {
|
|
121
|
-
|
|
122
|
+
h[r] = t[r];
|
|
122
123
|
});
|
|
123
124
|
}
|
|
124
|
-
function
|
|
125
|
+
function H(e) {
|
|
125
126
|
return T(this, null, function* () {
|
|
126
|
-
b.value = e.head.tableType, o.value = e.head.tableName,
|
|
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);
|
|
127
128
|
});
|
|
128
129
|
}
|
|
129
|
-
function
|
|
130
|
+
function L(e, t) {
|
|
130
131
|
return T(this, null, function* () {
|
|
131
|
-
|
|
132
|
+
yield z(t), v(!0);
|
|
132
133
|
});
|
|
133
134
|
}
|
|
134
|
-
function
|
|
135
|
+
function j(e) {
|
|
135
136
|
let t = `/online/cgform/api/detail/${a.id}/${e}`;
|
|
136
137
|
return new Promise((r, f) => {
|
|
137
138
|
pe.get({ url: t }, { isTransformResponse: !1 }).then((D) => {
|
|
@@ -153,11 +154,11 @@ const fe = {
|
|
|
153
154
|
}
|
|
154
155
|
function z(e) {
|
|
155
156
|
return T(this, null, function* () {
|
|
156
|
-
let t = yield
|
|
157
|
-
s.value =
|
|
157
|
+
let t = yield j(e.id);
|
|
158
|
+
s.value = V({}, t), I(t);
|
|
158
159
|
});
|
|
159
160
|
}
|
|
160
|
-
function
|
|
161
|
+
function I(e) {
|
|
161
162
|
e || (e = {});
|
|
162
163
|
let t = Object.keys(F.value);
|
|
163
164
|
if (t && t.length > 0) {
|
|
@@ -167,21 +168,21 @@ const fe = {
|
|
|
167
168
|
F.value = r;
|
|
168
169
|
}
|
|
169
170
|
}
|
|
170
|
-
function
|
|
171
|
+
function K(e) {
|
|
171
172
|
return "online_" + e + ":";
|
|
172
173
|
}
|
|
173
|
-
function
|
|
174
|
-
let e =
|
|
174
|
+
function A() {
|
|
175
|
+
let e = h.reportPrintUrl, t = s.value;
|
|
175
176
|
if (t) {
|
|
176
177
|
let r = t.id, f = re();
|
|
177
178
|
ie(e, r, f);
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
|
-
function
|
|
181
|
+
function Q(e) {
|
|
181
182
|
let t = s.value;
|
|
182
|
-
return
|
|
183
|
+
return W(t, e);
|
|
183
184
|
}
|
|
184
|
-
function
|
|
185
|
+
function W(e, t) {
|
|
185
186
|
if (e) {
|
|
186
187
|
let r = e[t];
|
|
187
188
|
return !r && r !== 0 && (r = e[t.toLowerCase()], !r && r !== 0 && (r = e[t.toUpperCase()])), r;
|
|
@@ -191,7 +192,7 @@ const fe = {
|
|
|
191
192
|
return {
|
|
192
193
|
detailFormSchemas: P,
|
|
193
194
|
formData: s,
|
|
194
|
-
formSpan:
|
|
195
|
+
formSpan: N,
|
|
195
196
|
//主表
|
|
196
197
|
tableName: o,
|
|
197
198
|
loading: S,
|
|
@@ -204,34 +205,34 @@ const fe = {
|
|
|
204
205
|
onTabChange: U,
|
|
205
206
|
//一对多子表
|
|
206
207
|
subDataSource: F,
|
|
207
|
-
getSubTableAuthPre:
|
|
208
|
+
getSubTableAuthPre: K,
|
|
208
209
|
//父组件调用
|
|
209
|
-
show:
|
|
210
|
-
createRootProperties:
|
|
210
|
+
show: L,
|
|
211
|
+
createRootProperties: H,
|
|
211
212
|
// 扩展配置
|
|
212
|
-
onOpenReportPrint:
|
|
213
|
-
onlineExtConfigJson:
|
|
214
|
-
getSubTableForeignKeyValue:
|
|
213
|
+
onOpenReportPrint: A,
|
|
214
|
+
onlineExtConfigJson: h,
|
|
215
|
+
getSubTableForeignKeyValue: Q,
|
|
215
216
|
showStatus: _,
|
|
216
217
|
ERP: ce
|
|
217
218
|
};
|
|
218
219
|
}
|
|
219
|
-
}, de = ["id"],
|
|
220
|
+
}, de = ["id"], he = {
|
|
220
221
|
key: 0,
|
|
221
222
|
style: { "text-align": "right", position: "absolute", top: "15px", right: "20px", "z-index": "999" }
|
|
222
|
-
},
|
|
223
|
-
function be(a, i, n, o,
|
|
224
|
-
const b = c("PrinterOutlined"), s = c("detail-form"), m = c("online-sub-form-detail"), u = c("JVxeTable"),
|
|
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");
|
|
225
226
|
return p(), y("div", {
|
|
226
227
|
id: o.tableName + "_form"
|
|
227
228
|
}, [
|
|
228
|
-
o.formData.id && o.onlineExtConfigJson.reportPrintShow ? (p(), y("div",
|
|
229
|
+
o.formData.id && o.onlineExtConfigJson.reportPrintShow ? (p(), y("div", he, [
|
|
229
230
|
k(b, {
|
|
230
231
|
title: "打印",
|
|
231
232
|
onClick: o.onOpenReportPrint,
|
|
232
233
|
style: { "font-size": "16px" }
|
|
233
234
|
}, null, 8, ["onClick"])
|
|
234
|
-
])) :
|
|
235
|
+
])) : R("", !0),
|
|
235
236
|
k(s, {
|
|
236
237
|
schemas: o.detailFormSchemas,
|
|
237
238
|
data: o.formData,
|
|
@@ -241,13 +242,13 @@ function be(a, i, n, o, h, S) {
|
|
|
241
242
|
key: 1,
|
|
242
243
|
onChange: o.onTabChange
|
|
243
244
|
}, {
|
|
244
|
-
default:
|
|
245
|
+
default: B(() => [
|
|
245
246
|
(p(!0), y($, null, ee(o.subTabInfo, (l, _) => (p(), w(P, {
|
|
246
247
|
tab: l.describe,
|
|
247
248
|
key: _ + "",
|
|
248
249
|
forceRender: !0
|
|
249
250
|
}, {
|
|
250
|
-
default:
|
|
251
|
+
default: B(() => [
|
|
251
252
|
l.relationType == 1 ? (p(), y("div", {
|
|
252
253
|
key: 0,
|
|
253
254
|
style: te({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": o.subFormHeight + "px" })
|
|
@@ -258,7 +259,7 @@ function be(a, i, n, o, h, S) {
|
|
|
258
259
|
"main-id": o.getSubTableForeignKeyValue(l.foreignKey),
|
|
259
260
|
properties: l.properties
|
|
260
261
|
}, null, 8, ["table", "form-template", "main-id", "properties"])
|
|
261
|
-
], 4)) : (p(), y("div",
|
|
262
|
+
], 4)) : (p(), y("div", ge, [
|
|
262
263
|
o.showStatus[l.key] ? (p(), w(u, {
|
|
263
264
|
key: 0,
|
|
264
265
|
ref_for: !0,
|
|
@@ -272,7 +273,7 @@ function be(a, i, n, o, h, S) {
|
|
|
272
273
|
columns: l.columns,
|
|
273
274
|
dataSource: o.subDataSource[l.key],
|
|
274
275
|
authPre: o.getSubTableAuthPre(l.key)
|
|
275
|
-
}, null, 8, ["height", "columns", "dataSource", "authPre"])) : (p(), w(
|
|
276
|
+
}, null, 8, ["height", "columns", "dataSource", "authPre"])) : (p(), w(h, {
|
|
276
277
|
key: 1,
|
|
277
278
|
spinning: !0
|
|
278
279
|
}))
|
|
@@ -282,7 +283,7 @@ function be(a, i, n, o, h, S) {
|
|
|
282
283
|
}, 1032, ["tab"]))), 128))
|
|
283
284
|
]),
|
|
284
285
|
_: 1
|
|
285
|
-
}, 8, ["onChange"])) :
|
|
286
|
+
}, 8, ["onChange"])) : R("", !0),
|
|
286
287
|
k(C, {
|
|
287
288
|
loading: o.loading,
|
|
288
289
|
absolute: !1
|
|
@@ -290,7 +291,7 @@ function be(a, i, n, o, h, S) {
|
|
|
290
291
|
oe(a.$slots, "bottom")
|
|
291
292
|
], 8, de);
|
|
292
293
|
}
|
|
293
|
-
const
|
|
294
|
+
const it = /* @__PURE__ */ ue(fe, [["render", be]]);
|
|
294
295
|
export {
|
|
295
|
-
|
|
296
|
+
it as default
|
|
296
297
|
};
|
|
@@ -0,0 +1,386 @@
|
|
|
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-325fe3f1.mjs";
|
|
33
|
+
import { L as ke } from "./constant-754f1a9d.mjs";
|
|
34
|
+
import { _ as Oe } from "./index-0e3ab3af.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-8499a318.mjs";
|
|
54
|
+
import "./OnlineSelectCascade-4265c95d.mjs";
|
|
55
|
+
import "/@/components/Loading";
|
|
56
|
+
import "/@/utils/auth";
|
|
57
|
+
import "./JModalTip-33c7dc44.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
|
+
};
|