@jeecg/online 3.6.2-beta → 3.7.1-RC
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AiModal-6de335e3.mjs +84 -0
- package/AuthButtonConfig-89763932.mjs +154 -0
- package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
- package/AuthDataConfig-5c3a8e6b.mjs +238 -0
- package/{AuthDataTree-94e026e3.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
- package/AuthFieldConfig-9f6fa06c.mjs +245 -0
- package/{AuthFieldTree-69864163.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
- package/AuthManagerDrawer-76f15e8d.mjs +119 -0
- package/AuthSetterModal-f5d2e87f.mjs +274 -0
- package/{CgformCopyList-14b76108.mjs → CgformCopyList-365b3e8f.mjs} +49 -46
- package/CgformModal-21c5c387.mjs +671 -0
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-edefa8e3.mjs} +153 -129
- package/CheckDictTable-1bc8322d.mjs +229 -0
- package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-24601898.mjs} +5 -4
- package/CodeFileViewModal-2fe911f4.mjs +253 -0
- package/CodeGeneratorModal-f09fe903.mjs +282 -0
- package/CustomButtonList-f07bc695.mjs +397 -0
- package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-285d40db.mjs} +118 -89
- package/DbToOnlineModal-5dcb67c3.mjs +169 -0
- package/DetailForm-deecbf3d.mjs +486 -0
- package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-45c66cd5.mjs} +3 -3
- package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-fab3102e.mjs} +2 -2
- package/EnhanceJsModal-175357a1.mjs +548 -0
- package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-7ea1b300.mjs} +3 -3
- package/ExtendConfigModal-a89ae052.mjs +117 -0
- package/FieldExtendJsonModal-32135634.mjs +277 -0
- package/{FileSelectModal-9a02560b.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
- package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-7f7e28a7.mjs} +3 -3
- package/{IndexTable-f8af9d44.mjs → IndexTable-cdcc2b48.mjs} +28 -20
- package/{JModalTip-33c7dc44.mjs → JModalTip-b055ab60.mjs} +1 -1
- package/JOnlineSearchSelect-22aae934.mjs +128 -0
- package/{LeftDepart-fa85523d.mjs → LeftDepart-d5615ed9.mjs} +1 -1
- package/{LeftRole-8b8dfe21.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
- package/{LeftUser-dc24ef2f.mjs → LeftUser-22baa378.mjs} +3 -3
- package/LinkTableConfigModal-9242d750.mjs +240 -0
- package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +41 -41
- package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
- package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-711418db.mjs} +1 -1
- package/OnlCgformErpList-58acdfa0.mjs +470 -0
- package/OnlCgformErpSubTable-9b1e1938.mjs +426 -0
- package/OnlCgformInnerSubTable-6c23781f.mjs +265 -0
- package/OnlCgformInnerTableList-4b5e14ed.mjs +458 -0
- package/OnlCgformTabList-019ad753.mjs +408 -0
- package/OnlineAutoList-48589d09.mjs +493 -0
- package/OnlineAutoModal-c2928847.mjs +239 -0
- package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3baa1d00.mjs} +207 -204
- package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-9e17b6ce.mjs} +16 -12
- package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-d5895734.mjs} +74 -64
- package/OnlineForm-9f1153ba.mjs +985 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-022ca117.mjs +342 -0
- package/OnlineFormUrlAdd-9715d70a.mjs +115 -0
- package/OnlineFormUrlDetail-8f864b1a.mjs +119 -0
- package/OnlineFormUrlEdit-ac985b36.mjs +113 -0
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +59 -0
- package/OnlineQueryForm-eedb9a60.mjs +466 -0
- package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
- package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
- package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-58e896ce.mjs} +30 -28
- package/OnlineTabAutoModal-47b18ad6.mjs +306 -0
- package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-82de1465.mjs} +22 -20
- package/OnlineTabForm-27655c83.mjs +817 -0
- package/OnlineTabFormDetail-8d0c40c0.mjs +327 -0
- package/PageAttributeTable-25e3b7da.mjs +466 -0
- package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-148632fe.mjs} +66 -56
- package/QueryTable-f7bfca7f.mjs +147 -0
- package/SetSwitchOptions-b2af757f.mjs +62 -0
- package/SuperQuery-a8592995.mjs +967 -0
- package/auth.api-ea1d33d4.mjs +41 -0
- package/auth.data-511e5197.mjs +217 -0
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-a67572e1.mjs} +11 -10
- package/index-1d1a6e56.mjs +57 -0
- package/{index-b7a05eef.mjs → index-30e0e923.mjs} +396 -362
- package/{index-49508cad.mjs → index-f30613d1.mjs} +29 -27
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-f41d4dc1.mjs +426 -0
- package/useExtendComponent-dcae5c78.mjs +4399 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-bfac4ecf.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-a9c75b0f.mjs} +191 -101
- package/useTableSync-d7e9f18d.mjs +89 -0
- package/AuthButtonConfig-244ec09f.mjs +0 -125
- package/AuthDataConfig-83891eea.mjs +0 -212
- package/AuthFieldConfig-6b21915c.mjs +0 -139
- package/AuthManagerDrawer-300dd4e4.mjs +0 -114
- package/AuthSetterModal-a414fb35.mjs +0 -267
- package/CgformModal-eccfc38e.mjs +0 -611
- package/CgreportModal-2065f5a9.mjs +0 -13
- package/CheckDictTable-134cbb83.mjs +0 -211
- package/CodeFileViewModal-373e8058.mjs +0 -244
- package/CodeGeneratorModal-f08a89cd.mjs +0 -233
- package/CustomButtonList-02e3d897.mjs +0 -363
- package/DbToOnlineModal-9f13956f.mjs +0 -160
- package/DetailForm-424638eb.mjs +0 -462
- package/EnhanceJsModal-05c73a59.mjs +0 -311
- package/ExtendConfigModal-1dde390a.mjs +0 -111
- package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
- package/JOnlineSearchSelect-c287af12.mjs +0 -95
- package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
- package/OnlCgformErpList-db45e22b.mjs +0 -454
- package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
- package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
- package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
- package/OnlCgformTabList-a9e1e36a.mjs +0 -395
- package/OnlineAutoList-0583a910.mjs +0 -479
- package/OnlineAutoModal-510991eb.mjs +0 -207
- package/OnlineForm-1fa2d893.mjs +0 -750
- package/OnlineFormDetail-0e7294ca.mjs +0 -297
- package/OnlineQueryForm-1bfc8320.mjs +0 -386
- package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
- package/OnlineTabForm-512d3951.mjs +0 -766
- package/OnlineTabFormDetail-5a70219d.mjs +0 -324
- package/PageAttributeTable-965dc58e.mjs +0 -404
- package/QueryTable-eb9a5b21.mjs +0 -115
- package/SuperQuery-5d1ca957.mjs +0 -843
- package/auth.api-d3a6c4b3.mjs +0 -39
- package/auth.data-8be5c9e3.mjs +0 -141
- package/constant-754f1a9d.mjs +0 -9
- package/index-0e3ab3af.mjs +0 -56
- package/useCgformList-423282b7.mjs +0 -400
- package/useExtendComponent-325fe3f1.mjs +0 -3926
- package/useListButton-cdbab702.mjs +0 -676
- package/useTableSync-774c3774.mjs +0 -87
|
@@ -0,0 +1,967 @@
|
|
|
1
|
+
var Oe = Object.defineProperty, xe = Object.defineProperties;
|
|
2
|
+
var Me = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ge = Object.getOwnPropertySymbols;
|
|
4
|
+
var Pe = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Se = (m, f, F) => f in m ? Oe(m, f, { enumerable: !0, configurable: !0, writable: !0, value: F }) : m[f] = F, X = (m, f) => {
|
|
6
|
+
for (var F in f || (f = {}))
|
|
7
|
+
Pe.call(f, F) && Se(m, F, f[F]);
|
|
8
|
+
if (ge)
|
|
9
|
+
for (var F of ge(f))
|
|
10
|
+
Be.call(f, F) && Se(m, F, f[F]);
|
|
11
|
+
return m;
|
|
12
|
+
}, Z = (m, f) => xe(m, Me(f));
|
|
13
|
+
import { ref as M, reactive as Ce, watch as se, toRaw as Fe, computed as Ae, resolveComponent as y, openBlock as O, createElementBlock as ve, Fragment as ye, createElementVNode as D, createBlock as V, withCtx as s, createVNode as c, createTextVNode as Y, Teleport as Ie, createCommentVNode as Ve, normalizeClass as _e, withDirectives as we, vShow as be, normalizeStyle as Re, renderList as ke, toDisplayString as Ee, pushScopeId as Qe, popScopeId as Ne } from "vue";
|
|
14
|
+
import { useModalInner as je, BasicModal as Le, useModal as qe } from "/@/components/Modal";
|
|
15
|
+
import { randomString as de } from "/@/utils/common/compUtils";
|
|
16
|
+
import { useMessage as De } from "/@/hooks/web/useMessage";
|
|
17
|
+
import { Modal as Ye, Divider as Je, Popconfirm as He, Empty as Ue } from "ant-design-vue";
|
|
18
|
+
import { createLocalStorage as Ke } from "/@/utils/cache";
|
|
19
|
+
import { useRoute as ze } from "vue-router";
|
|
20
|
+
import { i as We, F as Ge, j as he } from "./useExtendComponent-dcae5c78.mjs";
|
|
21
|
+
import { cloneDeep as fe } from "lodash-es";
|
|
22
|
+
import { _ as Xe } from "./SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs";
|
|
23
|
+
import { MinusCircleOutlined as Ze, PlusOutlined as $e, FileTextOutlined as et, CloseCircleOutlined as tt, AppstoreTwoTone as lt } from "@ant-design/icons-vue";
|
|
24
|
+
import { useConditionFilter as ot } from "/@/utils/index";
|
|
25
|
+
import { useDesign as nt } from "/@/hooks/web/useDesign";
|
|
26
|
+
import { _ as at } from "./index-1d1a6e56.mjs";
|
|
27
|
+
import "/@/components/Form/src/componentMap";
|
|
28
|
+
import "/@/utils/propTypes";
|
|
29
|
+
import "/@/components/Form/index";
|
|
30
|
+
import "/@/utils/http/axios";
|
|
31
|
+
import "./constant-fa63bd66.mjs";
|
|
32
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
33
|
+
import "/@/utils/is";
|
|
34
|
+
import "/@/views/system/user/user.api";
|
|
35
|
+
import "/@/store/modules/user";
|
|
36
|
+
import "/@/utils";
|
|
37
|
+
import "/@/utils/desform/customExpression";
|
|
38
|
+
import "/@/store/modules/permission";
|
|
39
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
40
|
+
import "/@/components/Table";
|
|
41
|
+
import "/@/hooks/system/useListPage";
|
|
42
|
+
import "/@/components/Form/src/utils/Area";
|
|
43
|
+
import "/@/components/Preview/index";
|
|
44
|
+
import "./LinkTableListPiece-f3a8e0d7.mjs";
|
|
45
|
+
import "/@/utils/auth";
|
|
46
|
+
import "/@/api/common/api";
|
|
47
|
+
import "/@/hooks/web/useAppInject";
|
|
48
|
+
import "/@/assets/images/placeholderImage.png";
|
|
49
|
+
import "./OnlineSelectCascade-05c40fef.mjs";
|
|
50
|
+
import "/@/components/Loading";
|
|
51
|
+
import "./JModalTip-b055ab60.mjs";
|
|
52
|
+
import "@vueuse/core";
|
|
53
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
54
|
+
const it = {
|
|
55
|
+
password: "text",
|
|
56
|
+
file: "text",
|
|
57
|
+
image: "text",
|
|
58
|
+
textarea: "text",
|
|
59
|
+
umeditor: "text",
|
|
60
|
+
markdown: "text",
|
|
61
|
+
checkbox: "list_multi",
|
|
62
|
+
radio: "list"
|
|
63
|
+
}, rt = "JSuperQuerySaved_";
|
|
64
|
+
function ut(m) {
|
|
65
|
+
const { linkTableCard2Select: f } = We(), { createMessage: F } = De(), l = M(), k = Ce({
|
|
66
|
+
values: []
|
|
67
|
+
}), R = M("and"), A = M(!1), [$, { setModalProps: T }] = je(() => {
|
|
68
|
+
T({ confirmLoading: !1 });
|
|
69
|
+
}), Q = Object.assign({}, { link_down: "text" }, it);
|
|
70
|
+
function j() {
|
|
71
|
+
}
|
|
72
|
+
function ee() {
|
|
73
|
+
}
|
|
74
|
+
function U(t, o, a) {
|
|
75
|
+
a.val = o;
|
|
76
|
+
}
|
|
77
|
+
const P = M({}), J = M([]), I = (t) => {
|
|
78
|
+
const { properties: o = {} } = t;
|
|
79
|
+
Object.entries(o).forEach(([a, n]) => {
|
|
80
|
+
n.view === "table" && I(n), ["image", "password", "file", "link_down"].includes(n.originView || n.view) && delete o[a];
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
function L(t) {
|
|
84
|
+
var i;
|
|
85
|
+
I(t);
|
|
86
|
+
let { allFields: o, treeData: a } = re(t);
|
|
87
|
+
P.value = o;
|
|
88
|
+
const n = (i = t.properties) != null ? i : {}, v = [], p = t.table;
|
|
89
|
+
if (Object.entries(n).forEach(([h, e]) => {
|
|
90
|
+
e.view === "table" && v.push(h);
|
|
91
|
+
}), v.length) {
|
|
92
|
+
let h = [];
|
|
93
|
+
h = a.filter((e) => !v.includes(e.value));
|
|
94
|
+
for (let e = 0, r = a.length; e < r; e++) {
|
|
95
|
+
const d = a[e];
|
|
96
|
+
v.includes(d.value) || (a.splice(e, 1), e--, r--);
|
|
97
|
+
}
|
|
98
|
+
a.unshift({ title: "主表", value: p, disabled: !0, order: 200, children: h, view: "table" });
|
|
99
|
+
}
|
|
100
|
+
J.value = a;
|
|
101
|
+
}
|
|
102
|
+
function K(t) {
|
|
103
|
+
let o = {
|
|
104
|
+
field: void 0,
|
|
105
|
+
rule: "eq",
|
|
106
|
+
val: "",
|
|
107
|
+
key: de(16)
|
|
108
|
+
};
|
|
109
|
+
t === !1 ? (k.values = [], k.values.push(o)) : t === !0 ? k.values.length == 0 && k.values.push(o) : k.values.splice(++t, 0, o);
|
|
110
|
+
}
|
|
111
|
+
function te(t) {
|
|
112
|
+
let o = Fe(k.values), a = -1;
|
|
113
|
+
for (let n = 0; n < o.length; n++)
|
|
114
|
+
if (t.key == o[n].key) {
|
|
115
|
+
a = n;
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
a != -1 && k.values.splice(a, 1);
|
|
119
|
+
}
|
|
120
|
+
const le = {
|
|
121
|
+
field: "val",
|
|
122
|
+
label: "测试",
|
|
123
|
+
component: "Input"
|
|
124
|
+
};
|
|
125
|
+
function oe(t, o) {
|
|
126
|
+
var h, e, r;
|
|
127
|
+
let n = P.value[t.field];
|
|
128
|
+
if (!n)
|
|
129
|
+
return le;
|
|
130
|
+
Q[n.view] && (n.view = Q[n.view]);
|
|
131
|
+
let v = Ge.createFormSchema(t.field, n);
|
|
132
|
+
v.noChange(), v.asSearchForm(), v.updateField(t.field + o);
|
|
133
|
+
const p = (d) => {
|
|
134
|
+
t.val = d[t.field];
|
|
135
|
+
};
|
|
136
|
+
v.setFunctionForFieldValue(p);
|
|
137
|
+
let i = v.getFormItemSchema();
|
|
138
|
+
if (["empty", "not_empty"].includes(t.rule) && (i.componentProps = Z(X({}, i.componentProps), { disabled: !0 })), f(i), i.component === "LinkTableSelect") {
|
|
139
|
+
let d = (h = i.componentProps) != null ? h : {};
|
|
140
|
+
i.componentProps = Z(X({}, d), { editBtnShow: !1 });
|
|
141
|
+
}
|
|
142
|
+
if (i && i.component === "InputNumber" && (t.curLineAlign = "start"), (i == null ? void 0 : i.component) === "JTreeSelect") {
|
|
143
|
+
let d = i.componentProps;
|
|
144
|
+
d ? d.getPopupContainer = () => document.body : i.componentProps = { getPopupContainer: () => document.body };
|
|
145
|
+
}
|
|
146
|
+
if ((i == null ? void 0 : i.component) === "JSwitch") {
|
|
147
|
+
const d = (e = i.componentProps) != null ? e : {};
|
|
148
|
+
i.componentProps = Z(X({}, d), { query: !0 });
|
|
149
|
+
}
|
|
150
|
+
if ((i == null ? void 0 : i.component) === "JSelectUser") {
|
|
151
|
+
const d = (r = i.componentProps) != null ? r : {};
|
|
152
|
+
i.componentProps = Z(X({}, d), { showButton: !1 });
|
|
153
|
+
}
|
|
154
|
+
return i;
|
|
155
|
+
}
|
|
156
|
+
const H = M(""), N = Ke(), E = Ce({
|
|
157
|
+
visible: !1,
|
|
158
|
+
title: "",
|
|
159
|
+
content: "",
|
|
160
|
+
saveCode: ""
|
|
161
|
+
}), ne = M(!1), z = ze();
|
|
162
|
+
m.isCustomSave ? se(m.saveSearchData, () => {
|
|
163
|
+
w.value = m.saveSearchData;
|
|
164
|
+
}) : se(() => z.fullPath, (t) => {
|
|
165
|
+
W();
|
|
166
|
+
});
|
|
167
|
+
const w = M([]);
|
|
168
|
+
se(() => w.value, (t) => {
|
|
169
|
+
let o = [];
|
|
170
|
+
t && t.length > 0 && t.map((a) => {
|
|
171
|
+
let n = de(16);
|
|
172
|
+
o.push({
|
|
173
|
+
title: a.title,
|
|
174
|
+
slots: { icon: "custom" },
|
|
175
|
+
value: n
|
|
176
|
+
});
|
|
177
|
+
}), H.value = o;
|
|
178
|
+
}, { immediate: !0, deep: !0 });
|
|
179
|
+
function W() {
|
|
180
|
+
if (m.isCustomSave)
|
|
181
|
+
w.value = fe(m.saveSearchData);
|
|
182
|
+
else {
|
|
183
|
+
let t = rt + z.fullPath;
|
|
184
|
+
E.saveCode = t;
|
|
185
|
+
let o = N.get(t);
|
|
186
|
+
o && o instanceof Array && (w.value = o);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
W();
|
|
190
|
+
function G() {
|
|
191
|
+
let t = q();
|
|
192
|
+
if (!t) {
|
|
193
|
+
F.warning("空条件不能保存");
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
let o = JSON.stringify(t);
|
|
197
|
+
ae(o);
|
|
198
|
+
}
|
|
199
|
+
function ae(t) {
|
|
200
|
+
E.visible = !0, E.title = "", E.content = t;
|
|
201
|
+
}
|
|
202
|
+
function ie() {
|
|
203
|
+
let { title: t, content: o, saveCode: a } = E, n = B(t);
|
|
204
|
+
const v = (p) => {
|
|
205
|
+
const i = fe(w.value);
|
|
206
|
+
A.value = !0, p ? i.splice(n, 1, {
|
|
207
|
+
content: o,
|
|
208
|
+
title: t,
|
|
209
|
+
type: R.value
|
|
210
|
+
}) : i.push({
|
|
211
|
+
content: o,
|
|
212
|
+
title: t,
|
|
213
|
+
type: R.value
|
|
214
|
+
});
|
|
215
|
+
const h = () => {
|
|
216
|
+
E.visible = !1, F.success("保存成功"), w.value = i, A.value = !1;
|
|
217
|
+
};
|
|
218
|
+
m.isCustomSave ? m.save(i, 0).then(() => {
|
|
219
|
+
h();
|
|
220
|
+
}).catch((e) => {
|
|
221
|
+
A.value = !1;
|
|
222
|
+
}) : (N.set(a, i, 2592e3), h());
|
|
223
|
+
};
|
|
224
|
+
n >= 0 ? Ye.confirm({
|
|
225
|
+
title: "提示",
|
|
226
|
+
content: `${t} 已存在,是否覆盖?`,
|
|
227
|
+
okText: "确认",
|
|
228
|
+
cancelText: "取消",
|
|
229
|
+
onOk: () => {
|
|
230
|
+
v(1);
|
|
231
|
+
}
|
|
232
|
+
}) : v(0);
|
|
233
|
+
}
|
|
234
|
+
function B(t) {
|
|
235
|
+
let o = w.value, a = -1;
|
|
236
|
+
for (let n = 0; n < o.length; n++)
|
|
237
|
+
if (o[n].title == t) {
|
|
238
|
+
a = n;
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
return a;
|
|
242
|
+
}
|
|
243
|
+
function q(t = !1) {
|
|
244
|
+
var v;
|
|
245
|
+
let o = k.values;
|
|
246
|
+
if (!o || o.length == 0)
|
|
247
|
+
return !1;
|
|
248
|
+
let a = [], n = P.value;
|
|
249
|
+
for (let p of o) {
|
|
250
|
+
let i = ["empty", "not_empty"].includes(p.rule);
|
|
251
|
+
if (p.field && (i || p.val || p.val === 0) && p.rule) {
|
|
252
|
+
let h = n[p.field], e = (v = h == null ? void 0 : h.formatValue) != null ? v : (_) => _, r = Fe(p.val);
|
|
253
|
+
r instanceof Array ? r = r.map((_) => e(_)).join(",") : r = e(r);
|
|
254
|
+
let S = {
|
|
255
|
+
field: u(p),
|
|
256
|
+
rule: p.rule,
|
|
257
|
+
val: r,
|
|
258
|
+
fileType: p.fileType
|
|
259
|
+
};
|
|
260
|
+
if (t === !0) {
|
|
261
|
+
let _ = n[p.field];
|
|
262
|
+
_ && (S.type = _.view, S.dbType = _.type);
|
|
263
|
+
}
|
|
264
|
+
a.push(S);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return a.length == 0 ? !1 : a;
|
|
268
|
+
}
|
|
269
|
+
function u(t) {
|
|
270
|
+
let o = t.field;
|
|
271
|
+
return o.indexOf("@") > 0 && (o = o.replace("@", ",")), o;
|
|
272
|
+
}
|
|
273
|
+
function x(t, { node: o }) {
|
|
274
|
+
let a = o.dataRef.title, n = w.value.filter((v) => v.title == a);
|
|
275
|
+
if (n && n.length > 0) {
|
|
276
|
+
let { content: v, type: p } = n[0], i = JSON.parse(v), h = [];
|
|
277
|
+
for (let e of i)
|
|
278
|
+
e.field = e.field.replace(",", "@"), h.push(Object.assign({}, { key: de(16) }, e));
|
|
279
|
+
k.values = h, R.value = p;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
function b(t) {
|
|
283
|
+
let o = B(t);
|
|
284
|
+
if (o >= 0)
|
|
285
|
+
if (m.isCustomSave) {
|
|
286
|
+
const a = fe(w.value);
|
|
287
|
+
a.splice(o, 1), m.save(a, 1).then(() => {
|
|
288
|
+
w.value = a;
|
|
289
|
+
}).catch((n) => {
|
|
290
|
+
});
|
|
291
|
+
} else
|
|
292
|
+
w.value.splice(o, 1), N.set(E.saveCode, w.value);
|
|
293
|
+
}
|
|
294
|
+
function re(t) {
|
|
295
|
+
let o = {}, a = 1, n = [];
|
|
296
|
+
return t.properties && (t = t.properties), Object.keys(t).map((v) => {
|
|
297
|
+
let p = t[v];
|
|
298
|
+
if (p.view == "table") {
|
|
299
|
+
let i = p.properties || p.fields, h = a * 100, e = {
|
|
300
|
+
title: p.title,
|
|
301
|
+
value: v,
|
|
302
|
+
disabled: !0,
|
|
303
|
+
children: [],
|
|
304
|
+
order: h,
|
|
305
|
+
// update-begin--author:liaozhiyang---date:20240306---for:【TV360X-461】字段类型是string,则默认模糊查询
|
|
306
|
+
fieldType: p.type
|
|
307
|
+
// update-end--author:liaozhiyang---date:20240306---for:【TV360X-461】字段类型是string,则默认模糊查询
|
|
308
|
+
};
|
|
309
|
+
Object.keys(i).map((r) => {
|
|
310
|
+
let d = i[r];
|
|
311
|
+
d.order = h + d.order;
|
|
312
|
+
let S = v + "@" + r;
|
|
313
|
+
o[S] = d, e.children.push({
|
|
314
|
+
title: d.title,
|
|
315
|
+
value: S,
|
|
316
|
+
isLeaf: !0,
|
|
317
|
+
order: d.order,
|
|
318
|
+
// update-begin--author:liaozhiyang---date:20240306---for:【TV360X-461】字段类型是string,则默认模糊查询
|
|
319
|
+
fieldType: d.type,
|
|
320
|
+
view: d.view,
|
|
321
|
+
originView: d.view
|
|
322
|
+
// update-end--author:liaozhiyang---date:20240306---for:【TV360X-461】字段类型是string,则默认模糊查询
|
|
323
|
+
});
|
|
324
|
+
}), ue(e), n.push(e), a++;
|
|
325
|
+
} else {
|
|
326
|
+
let i = v;
|
|
327
|
+
o[i] = p, n.push({
|
|
328
|
+
title: p.title,
|
|
329
|
+
value: i,
|
|
330
|
+
isLeaf: !0,
|
|
331
|
+
order: p.order,
|
|
332
|
+
// update-begin--author:liaozhiyang---date:20240306---for:【TV360X-461】字段类型是string,则默认模糊查询
|
|
333
|
+
fieldType: p.type,
|
|
334
|
+
view: p.view,
|
|
335
|
+
originView: p.view
|
|
336
|
+
// update-end--author:liaozhiyang---date:20240306---for:【TV360X-461】字段类型是string,则默认模糊查询
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
}), ue(n), { allFields: o, treeData: n };
|
|
340
|
+
}
|
|
341
|
+
function ue(t) {
|
|
342
|
+
(t.children || t).sort(function(a, n) {
|
|
343
|
+
return a.order - n.order;
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
function me(t) {
|
|
347
|
+
const { params: o, matchType: a } = t;
|
|
348
|
+
if (o) {
|
|
349
|
+
let n = [];
|
|
350
|
+
for (let v of o)
|
|
351
|
+
n.push(Object.assign({}, { key: de(16) }, v));
|
|
352
|
+
k.values = n, a.value = a;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
return {
|
|
356
|
+
formRef: l,
|
|
357
|
+
init: L,
|
|
358
|
+
dynamicRowValues: k,
|
|
359
|
+
matchType: R,
|
|
360
|
+
registerModal: $,
|
|
361
|
+
handleSubmit: j,
|
|
362
|
+
handleCancel: ee,
|
|
363
|
+
handleSave: G,
|
|
364
|
+
doSaveQueryInfo: ie,
|
|
365
|
+
saveInfo: E,
|
|
366
|
+
saveTreeData: H,
|
|
367
|
+
handleRemoveSaveInfo: b,
|
|
368
|
+
handleTreeSelect: x,
|
|
369
|
+
fieldTreeData: J,
|
|
370
|
+
addOne: K,
|
|
371
|
+
removeOne: te,
|
|
372
|
+
setFormModel: U,
|
|
373
|
+
getSchema: oe,
|
|
374
|
+
loading: ne,
|
|
375
|
+
getQueryInfo: q,
|
|
376
|
+
initDefaultValues: me,
|
|
377
|
+
saveModalLoading: A,
|
|
378
|
+
fieldProperties: P
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
const st = {
|
|
382
|
+
name: "OnlineSuperQuery",
|
|
383
|
+
props: {
|
|
384
|
+
config: {
|
|
385
|
+
type: Object,
|
|
386
|
+
default: []
|
|
387
|
+
},
|
|
388
|
+
status: {
|
|
389
|
+
type: Boolean,
|
|
390
|
+
default: !1
|
|
391
|
+
},
|
|
392
|
+
online: {
|
|
393
|
+
type: Boolean,
|
|
394
|
+
default: !1
|
|
395
|
+
},
|
|
396
|
+
// update-begin--author:liaozhiyang---date:20240514---for:【issues/6205】高级查询组件增加保存条件自定义存储方式
|
|
397
|
+
isCustomSave: {
|
|
398
|
+
type: Boolean,
|
|
399
|
+
default: !1
|
|
400
|
+
},
|
|
401
|
+
saveSearchData: {
|
|
402
|
+
type: Array,
|
|
403
|
+
default: () => []
|
|
404
|
+
},
|
|
405
|
+
save: {
|
|
406
|
+
type: Function
|
|
407
|
+
}
|
|
408
|
+
// update-end--author:liaozhiyang---date:20240514---for:【issues/6205】高级查询组件增加保存条件自定义存储方式
|
|
409
|
+
},
|
|
410
|
+
components: {
|
|
411
|
+
BasicModal: Le,
|
|
412
|
+
MinusCircleOutlined: Ze,
|
|
413
|
+
PlusOutlined: $e,
|
|
414
|
+
OnlineSuperQueryValComponent: Xe,
|
|
415
|
+
FileTextOutlined: et,
|
|
416
|
+
CloseCircleOutlined: tt,
|
|
417
|
+
AppstoreTwoTone: lt,
|
|
418
|
+
Divider: Je,
|
|
419
|
+
Popconfirm: He
|
|
420
|
+
},
|
|
421
|
+
emits: ["search"],
|
|
422
|
+
setup(m, { emit: f }) {
|
|
423
|
+
const [F, l] = qe(), { createMessage: k } = De(), R = M({}), A = M(180), { prefixCls: $ } = nt("super-query"), T = `${$}-tree-popup`, Q = M(!0);
|
|
424
|
+
let j = null;
|
|
425
|
+
const { filterCondition: ee } = ot(), U = (e) => {
|
|
426
|
+
var d, S;
|
|
427
|
+
const r = (_, g) => {
|
|
428
|
+
var ce;
|
|
429
|
+
const C = (ce = _.find((Te) => Te.value === g)) != null ? ce : {};
|
|
430
|
+
return ee({ view: C.originView || C.view, fieldType: C.fieldType });
|
|
431
|
+
};
|
|
432
|
+
if (((d = e.field) == null ? void 0 : d.indexOf("@")) == -1 || !e.field)
|
|
433
|
+
return r(B.value, e.field);
|
|
434
|
+
{
|
|
435
|
+
const _ = e.field.split("@")[0], g = B.value.find((C) => C.value === _);
|
|
436
|
+
if ((S = g == null ? void 0 : g.children) != null && S.length)
|
|
437
|
+
return r(g.children, e.field);
|
|
438
|
+
}
|
|
439
|
+
};
|
|
440
|
+
function P() {
|
|
441
|
+
l.closeModal();
|
|
442
|
+
}
|
|
443
|
+
function J() {
|
|
444
|
+
if (m.online === !0) {
|
|
445
|
+
let e = ue(!0);
|
|
446
|
+
e && e.length > 0 ? (I(e), f("search", e, E.value), P(), j = e) : k.warning("空条件无法查询!");
|
|
447
|
+
} else {
|
|
448
|
+
let e = ue(!0);
|
|
449
|
+
if (e && e.length > 0) {
|
|
450
|
+
let r = L(e);
|
|
451
|
+
f("search", r);
|
|
452
|
+
} else
|
|
453
|
+
k.warning("空条件无法查询!");
|
|
454
|
+
}
|
|
455
|
+
Q.value = !0;
|
|
456
|
+
}
|
|
457
|
+
const I = (e) => {
|
|
458
|
+
e.forEach((r) => {
|
|
459
|
+
const d = r.val;
|
|
460
|
+
if (r.type === "date" && typeof d == "string" && d != "") {
|
|
461
|
+
const S = o.value[r.field];
|
|
462
|
+
if (S) {
|
|
463
|
+
let _ = S.fieldExtendJson;
|
|
464
|
+
if (_ && (_ = JSON.parse(_), _.picker && _.picker !== "default")) {
|
|
465
|
+
const g = _.picker;
|
|
466
|
+
g === "year" ? r.val = he(d).set("month", 0).set("date", 1).format("YYYY-MM-DD") : g === "month" ? r.val = he(d).set("date", 1).format("YYYY-MM-DD") : g === "week" && (r.val = he(d).startOf("week").format("YYYY-MM-DD"));
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
};
|
|
472
|
+
function L(e) {
|
|
473
|
+
let r = [];
|
|
474
|
+
for (let S of e) {
|
|
475
|
+
let _ = S.field, g = S.val;
|
|
476
|
+
g instanceof Array && (g = g.join(",")), r.push(Z(X({}, S), {
|
|
477
|
+
field: _,
|
|
478
|
+
val: g
|
|
479
|
+
}));
|
|
480
|
+
}
|
|
481
|
+
return r.length > 0 ? a.value = !0 : a.value = !1, {
|
|
482
|
+
superQueryMatchType: E.value,
|
|
483
|
+
superQueryParams: encodeURI(JSON.stringify(r))
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
function K() {
|
|
487
|
+
let e = L([]);
|
|
488
|
+
f("search", e);
|
|
489
|
+
}
|
|
490
|
+
function te() {
|
|
491
|
+
N.values = [], q(!1);
|
|
492
|
+
let e = L([]);
|
|
493
|
+
j = null, Q.value = !0, f("search", e);
|
|
494
|
+
}
|
|
495
|
+
const le = (e) => {
|
|
496
|
+
if (e) {
|
|
497
|
+
const r = document.documentElement.clientHeight - 165;
|
|
498
|
+
R.value = { maxHeight: `${r}px` }, A.value = r * 0.62;
|
|
499
|
+
} else
|
|
500
|
+
R.value = {}, A.value = 180;
|
|
501
|
+
}, {
|
|
502
|
+
formRef: oe,
|
|
503
|
+
init: H,
|
|
504
|
+
dynamicRowValues: N,
|
|
505
|
+
matchType: E,
|
|
506
|
+
registerModal: ne,
|
|
507
|
+
handleSave: z,
|
|
508
|
+
doSaveQueryInfo: w,
|
|
509
|
+
saveInfo: W,
|
|
510
|
+
saveTreeData: G,
|
|
511
|
+
handleTreeSelect: ae,
|
|
512
|
+
handleRemoveSaveInfo: ie,
|
|
513
|
+
fieldTreeData: B,
|
|
514
|
+
addOne: q,
|
|
515
|
+
removeOne: u,
|
|
516
|
+
setFormModel: x,
|
|
517
|
+
getSchema: b,
|
|
518
|
+
loading: re,
|
|
519
|
+
getQueryInfo: ue,
|
|
520
|
+
initDefaultValues: me,
|
|
521
|
+
saveModalLoading: t,
|
|
522
|
+
fieldProperties: o
|
|
523
|
+
} = ut(m), a = M(!1);
|
|
524
|
+
se(() => m.status, (e) => {
|
|
525
|
+
a.value = e;
|
|
526
|
+
}, { immediate: !0 });
|
|
527
|
+
function n() {
|
|
528
|
+
a.value && j && (N.values = fe(j)), l.openModal(), Q.value = !0, q(!0);
|
|
529
|
+
}
|
|
530
|
+
function v() {
|
|
531
|
+
return document.getElementsByClassName("jee-super-query-form")[0];
|
|
532
|
+
}
|
|
533
|
+
function p(e) {
|
|
534
|
+
}
|
|
535
|
+
function i(e) {
|
|
536
|
+
var d, S;
|
|
537
|
+
e.val = "";
|
|
538
|
+
const r = (_, g) => {
|
|
539
|
+
const C = _.find((ce) => ce.value === g);
|
|
540
|
+
(C == null ? void 0 : C.fieldType) === "string" && ["text"].includes((C == null ? void 0 : C.originView) || (C == null ? void 0 : C.view)) ? e.rule = "like" : e.rule = "eq";
|
|
541
|
+
};
|
|
542
|
+
if (((d = e.field) == null ? void 0 : d.indexOf("@")) == -1)
|
|
543
|
+
r(B.value, e.field);
|
|
544
|
+
else {
|
|
545
|
+
const _ = e.field.split("@")[0], g = B.value.find((C) => C.value === _);
|
|
546
|
+
(S = g == null ? void 0 : g.children) != null && S.length && r(g.children, e.field);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
se(() => m.config, (e) => {
|
|
550
|
+
e && H(e);
|
|
551
|
+
}, { immediate: !0 });
|
|
552
|
+
const h = Ae(() => B.value.find((r) => r.children) ? `${T} containTable` : `${T} noTable`);
|
|
553
|
+
return {
|
|
554
|
+
formRef: oe,
|
|
555
|
+
registerFormModal: F,
|
|
556
|
+
init: H,
|
|
557
|
+
handleChangeField: i,
|
|
558
|
+
dynamicRowValues: N,
|
|
559
|
+
matchType: E,
|
|
560
|
+
historyCollapsed: Q,
|
|
561
|
+
registerModal: ne,
|
|
562
|
+
handleSubmit: J,
|
|
563
|
+
handleCancel: P,
|
|
564
|
+
handleSave: z,
|
|
565
|
+
handleReset: te,
|
|
566
|
+
doSaveQueryInfo: w,
|
|
567
|
+
saveInfo: W,
|
|
568
|
+
saveTreeData: G,
|
|
569
|
+
handleTreeSelect: ae,
|
|
570
|
+
handleRemoveSaveInfo: ie,
|
|
571
|
+
fieldTreeData: B,
|
|
572
|
+
addOne: q,
|
|
573
|
+
removeOne: u,
|
|
574
|
+
setFormModel: x,
|
|
575
|
+
getSchema: b,
|
|
576
|
+
loading: re,
|
|
577
|
+
onFinish: p,
|
|
578
|
+
getPopupContainer: v,
|
|
579
|
+
superQueryFlag: a,
|
|
580
|
+
handleOpen: n,
|
|
581
|
+
initDefaultValues: me,
|
|
582
|
+
simpleImage: Ue.PRESENTED_IMAGE_SIMPLE,
|
|
583
|
+
saveModalLoading: t,
|
|
584
|
+
queryFormStyle: R,
|
|
585
|
+
handleFullScreen: le,
|
|
586
|
+
fieldTreeSelectHeight: A,
|
|
587
|
+
getTreePopupClass: h,
|
|
588
|
+
handleStop: K,
|
|
589
|
+
getQueryCondition: U
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
const pe = (m) => (Qe("data-v-93b8c028"), m = m(), Ne(), m), ct = { class: "j-super-query-button" }, dt = /* @__PURE__ */ pe(() => /* @__PURE__ */ D("span", null, "执行查询中...", -1)), ft = /* @__PURE__ */ pe(() => /* @__PURE__ */ D("span", null, "高级查询", -1)), pt = { style: { float: "left" } }, mt = { slot: "description" }, vt = /* @__PURE__ */ pe(() => /* @__PURE__ */ D("span", null, "没有任何查询条件", -1)), yt = /* @__PURE__ */ pe(() => /* @__PURE__ */ D("div", null, "保存的查询", -1)), _t = ["title"], ht = { style: { height: "80px", "line-height": "75px", width: "100%", "text-align": "center" } };
|
|
594
|
+
function gt(m, f, F, l, k, R) {
|
|
595
|
+
const A = y("divider"), $ = y("AppstoreTwoTone"), T = y("a-button"), Q = y("a-button-group"), j = y("a-tooltip"), ee = y("a-divider"), U = y("a-empty"), P = y("a-select-option"), J = y("a-select"), I = y("a-form-item"), L = y("a-col"), K = y("a-row"), te = y("a-tree-select"), le = y("online-super-query-val-component"), oe = y("PlusOutlined"), H = y("MinusCircleOutlined"), N = y("a-space"), E = y("a-form"), ne = y("close-circle-outlined"), z = y("a-popconfirm"), w = y("file-text-outlined"), W = y("a-tree"), G = y("Icon"), ae = y("a-card"), ie = y("BasicModal"), B = y("a-input"), q = y("a-modal");
|
|
596
|
+
return O(), ve(ye, null, [
|
|
597
|
+
D("div", ct, [
|
|
598
|
+
l.superQueryFlag ? (O(), V(j, {
|
|
599
|
+
key: 0,
|
|
600
|
+
mouseLeaveDelay: 0.2
|
|
601
|
+
}, {
|
|
602
|
+
title: s(() => [
|
|
603
|
+
dt,
|
|
604
|
+
c(A, {
|
|
605
|
+
type: "vertical",
|
|
606
|
+
style: { "background-color": "#fff" }
|
|
607
|
+
}),
|
|
608
|
+
D("a", {
|
|
609
|
+
onClick: f[0] || (f[0] = (...u) => l.handleStop && l.handleStop(...u))
|
|
610
|
+
}, "取消查询")
|
|
611
|
+
]),
|
|
612
|
+
default: s(() => [
|
|
613
|
+
c(Q, null, {
|
|
614
|
+
default: s(() => [
|
|
615
|
+
c(T, {
|
|
616
|
+
type: "primary",
|
|
617
|
+
onClick: l.handleOpen
|
|
618
|
+
}, {
|
|
619
|
+
default: s(() => [
|
|
620
|
+
c($, { spin: !0 }),
|
|
621
|
+
ft
|
|
622
|
+
]),
|
|
623
|
+
_: 1
|
|
624
|
+
}, 8, ["onClick"])
|
|
625
|
+
]),
|
|
626
|
+
_: 1
|
|
627
|
+
})
|
|
628
|
+
]),
|
|
629
|
+
_: 1
|
|
630
|
+
})) : (O(), V(T, {
|
|
631
|
+
key: 1,
|
|
632
|
+
type: "primary",
|
|
633
|
+
preIcon: "ant-design:filter-outlined",
|
|
634
|
+
onClick: l.handleOpen
|
|
635
|
+
}, {
|
|
636
|
+
default: s(() => [
|
|
637
|
+
Y(" 高级查询 ")
|
|
638
|
+
]),
|
|
639
|
+
_: 1
|
|
640
|
+
}, 8, ["onClick"]))
|
|
641
|
+
]),
|
|
642
|
+
(O(), V(Ie, { to: "body" }, [
|
|
643
|
+
c(ie, {
|
|
644
|
+
title: "高级查询构造器",
|
|
645
|
+
"wrap-class-name": "j-super-query-modal",
|
|
646
|
+
canFullscreen: !0,
|
|
647
|
+
width: 850,
|
|
648
|
+
onRegister: l.registerFormModal,
|
|
649
|
+
onOk: l.handleSubmit,
|
|
650
|
+
onFullScreen: l.handleFullScreen
|
|
651
|
+
}, {
|
|
652
|
+
footer: s(() => [
|
|
653
|
+
D("div", pt, [
|
|
654
|
+
c(T, {
|
|
655
|
+
loading: l.loading,
|
|
656
|
+
onClick: l.handleReset
|
|
657
|
+
}, {
|
|
658
|
+
default: s(() => [
|
|
659
|
+
Y("清空")
|
|
660
|
+
]),
|
|
661
|
+
_: 1
|
|
662
|
+
}, 8, ["loading", "onClick"]),
|
|
663
|
+
c(T, {
|
|
664
|
+
loading: l.loading,
|
|
665
|
+
onClick: l.handleSave
|
|
666
|
+
}, {
|
|
667
|
+
default: s(() => [
|
|
668
|
+
Y("保存查询")
|
|
669
|
+
]),
|
|
670
|
+
_: 1
|
|
671
|
+
}, 8, ["loading", "onClick"])
|
|
672
|
+
]),
|
|
673
|
+
c(T, {
|
|
674
|
+
key: "submit",
|
|
675
|
+
type: "primary",
|
|
676
|
+
onClick: l.handleSubmit
|
|
677
|
+
}, {
|
|
678
|
+
default: s(() => [
|
|
679
|
+
Y("执行查询")
|
|
680
|
+
]),
|
|
681
|
+
_: 1
|
|
682
|
+
}, 8, ["onClick"]),
|
|
683
|
+
c(T, {
|
|
684
|
+
key: "back",
|
|
685
|
+
onClick: l.handleCancel
|
|
686
|
+
}, {
|
|
687
|
+
default: s(() => [
|
|
688
|
+
Y("关闭")
|
|
689
|
+
]),
|
|
690
|
+
_: 1
|
|
691
|
+
}, 8, ["onClick"])
|
|
692
|
+
]),
|
|
693
|
+
default: s(() => [
|
|
694
|
+
l.dynamicRowValues.values.length == 0 ? (O(), V(U, { key: 0 }, {
|
|
695
|
+
default: s(() => [
|
|
696
|
+
D("div", mt, [
|
|
697
|
+
vt,
|
|
698
|
+
c(ee, { type: "vertical" }),
|
|
699
|
+
D("a", {
|
|
700
|
+
onClick: f[1] || (f[1] = (u) => l.addOne(-1))
|
|
701
|
+
}, "点击新增")
|
|
702
|
+
])
|
|
703
|
+
]),
|
|
704
|
+
_: 1
|
|
705
|
+
})) : Ve("", !0),
|
|
706
|
+
c(K, {
|
|
707
|
+
class: _e("j-super-query-modal-content")
|
|
708
|
+
}, {
|
|
709
|
+
default: s(() => [
|
|
710
|
+
c(L, {
|
|
711
|
+
sm: 24,
|
|
712
|
+
md: 24
|
|
713
|
+
}, {
|
|
714
|
+
default: s(() => [
|
|
715
|
+
we(c(K, null, {
|
|
716
|
+
default: s(() => [
|
|
717
|
+
c(L, {
|
|
718
|
+
md: 12,
|
|
719
|
+
xs: 24
|
|
720
|
+
}, {
|
|
721
|
+
default: s(() => [
|
|
722
|
+
c(I, {
|
|
723
|
+
label: "匹配模式",
|
|
724
|
+
labelCol: { md: 6, xs: 24 },
|
|
725
|
+
wrapperCol: { md: 18, xs: 24 },
|
|
726
|
+
style: { width: "100%" }
|
|
727
|
+
}, {
|
|
728
|
+
default: s(() => [
|
|
729
|
+
c(J, {
|
|
730
|
+
value: l.matchType,
|
|
731
|
+
"onUpdate:value": f[2] || (f[2] = (u) => l.matchType = u),
|
|
732
|
+
getPopupContainer: (u) => u == null ? void 0 : u.parentNode,
|
|
733
|
+
style: { width: "100%" }
|
|
734
|
+
}, {
|
|
735
|
+
default: s(() => [
|
|
736
|
+
c(P, { value: "and" }, {
|
|
737
|
+
default: s(() => [
|
|
738
|
+
Y("AND(所有条件匹配)")
|
|
739
|
+
]),
|
|
740
|
+
_: 1
|
|
741
|
+
}),
|
|
742
|
+
c(P, { value: "or" }, {
|
|
743
|
+
default: s(() => [
|
|
744
|
+
Y("OR(任意一个匹配)")
|
|
745
|
+
]),
|
|
746
|
+
_: 1
|
|
747
|
+
})
|
|
748
|
+
]),
|
|
749
|
+
_: 1
|
|
750
|
+
}, 8, ["value", "getPopupContainer"])
|
|
751
|
+
]),
|
|
752
|
+
_: 1
|
|
753
|
+
})
|
|
754
|
+
]),
|
|
755
|
+
_: 1
|
|
756
|
+
})
|
|
757
|
+
]),
|
|
758
|
+
_: 1
|
|
759
|
+
}, 512), [
|
|
760
|
+
[be, l.dynamicRowValues.values.length > 0]
|
|
761
|
+
]),
|
|
762
|
+
we(c(E, {
|
|
763
|
+
ref: "formRef",
|
|
764
|
+
class: _e("jee-super-query-form"),
|
|
765
|
+
model: l.dynamicRowValues,
|
|
766
|
+
onFinish: l.onFinish,
|
|
767
|
+
style: Re(l.queryFormStyle)
|
|
768
|
+
}, {
|
|
769
|
+
default: s(() => [
|
|
770
|
+
(O(!0), ve(ye, null, ke(l.dynamicRowValues.values, (u, x) => (O(), V(N, {
|
|
771
|
+
key: u.key,
|
|
772
|
+
style: { display: "flex", "margin-bottom": "8px" },
|
|
773
|
+
align: u.curLineAlign ? u.align : "baseline"
|
|
774
|
+
}, {
|
|
775
|
+
default: s(() => [
|
|
776
|
+
c(I, {
|
|
777
|
+
class: "field-clos",
|
|
778
|
+
name: ["values", x, "field"]
|
|
779
|
+
}, {
|
|
780
|
+
default: s(() => [
|
|
781
|
+
c(te, {
|
|
782
|
+
popupClassName: l.getTreePopupClass,
|
|
783
|
+
style: { width: "100%" },
|
|
784
|
+
placeholder: "请选择字段",
|
|
785
|
+
value: u.field,
|
|
786
|
+
"onUpdate:value": (b) => u.field = b,
|
|
787
|
+
"show-search": "",
|
|
788
|
+
"tree-node-filter-prop": "title",
|
|
789
|
+
"allow-clear": "",
|
|
790
|
+
"tree-default-expand-all": "",
|
|
791
|
+
"dropdown-style": { maxHeight: `${l.fieldTreeSelectHeight}px`, overflow: "auto" },
|
|
792
|
+
listHeight: l.fieldTreeSelectHeight - 20,
|
|
793
|
+
onChange: (b) => l.handleChangeField(u),
|
|
794
|
+
"tree-data": l.fieldTreeData
|
|
795
|
+
}, null, 8, ["popupClassName", "value", "onUpdate:value", "dropdown-style", "listHeight", "onChange", "tree-data"])
|
|
796
|
+
]),
|
|
797
|
+
_: 2
|
|
798
|
+
}, 1032, ["name"]),
|
|
799
|
+
c(I, {
|
|
800
|
+
class: "rule-clos",
|
|
801
|
+
name: ["values", x, "rule"]
|
|
802
|
+
}, {
|
|
803
|
+
default: s(() => [
|
|
804
|
+
c(J, {
|
|
805
|
+
style: { width: "100%" },
|
|
806
|
+
placeholder: "请选择匹配规则",
|
|
807
|
+
value: u.rule,
|
|
808
|
+
"onUpdate:value": (b) => u.rule = b
|
|
809
|
+
}, {
|
|
810
|
+
default: s(() => [
|
|
811
|
+
(O(!0), ve(ye, null, ke(l.getQueryCondition(u), (b) => (O(), V(P, {
|
|
812
|
+
value: b.value,
|
|
813
|
+
key: b.value
|
|
814
|
+
}, {
|
|
815
|
+
default: s(() => [
|
|
816
|
+
Y(Ee(b.label), 1)
|
|
817
|
+
]),
|
|
818
|
+
_: 2
|
|
819
|
+
}, 1032, ["value"]))), 128))
|
|
820
|
+
]),
|
|
821
|
+
_: 2
|
|
822
|
+
}, 1032, ["value", "onUpdate:value"])
|
|
823
|
+
]),
|
|
824
|
+
_: 2
|
|
825
|
+
}, 1032, ["name"]),
|
|
826
|
+
c(I, {
|
|
827
|
+
class: "component-clos",
|
|
828
|
+
name: ["values", x, "val"]
|
|
829
|
+
}, {
|
|
830
|
+
default: s(() => [
|
|
831
|
+
c(le, {
|
|
832
|
+
style: { width: "100%" },
|
|
833
|
+
schema: l.getSchema(u, x),
|
|
834
|
+
formModel: u,
|
|
835
|
+
setFormModel: (b, re) => {
|
|
836
|
+
l.setFormModel(b, re, u);
|
|
837
|
+
},
|
|
838
|
+
onSubmit: l.handleSubmit
|
|
839
|
+
}, null, 8, ["schema", "formModel", "setFormModel", "onSubmit"])
|
|
840
|
+
]),
|
|
841
|
+
_: 2
|
|
842
|
+
}, 1032, ["name"]),
|
|
843
|
+
c(I, null, {
|
|
844
|
+
default: s(() => [
|
|
845
|
+
c(T, {
|
|
846
|
+
onClick: (b) => l.addOne(x),
|
|
847
|
+
style: { "margin-right": "6px" }
|
|
848
|
+
}, {
|
|
849
|
+
default: s(() => [
|
|
850
|
+
c(oe)
|
|
851
|
+
]),
|
|
852
|
+
_: 2
|
|
853
|
+
}, 1032, ["onClick"]),
|
|
854
|
+
c(T, {
|
|
855
|
+
onClick: (b) => l.removeOne(u)
|
|
856
|
+
}, {
|
|
857
|
+
default: s(() => [
|
|
858
|
+
c(H)
|
|
859
|
+
]),
|
|
860
|
+
_: 2
|
|
861
|
+
}, 1032, ["onClick"])
|
|
862
|
+
]),
|
|
863
|
+
_: 2
|
|
864
|
+
}, 1024)
|
|
865
|
+
]),
|
|
866
|
+
_: 2
|
|
867
|
+
}, 1032, ["align"]))), 128))
|
|
868
|
+
]),
|
|
869
|
+
_: 1
|
|
870
|
+
}, 8, ["model", "onFinish", "style"]), [
|
|
871
|
+
[be, l.dynamicRowValues.values.length > 0]
|
|
872
|
+
])
|
|
873
|
+
]),
|
|
874
|
+
_: 1
|
|
875
|
+
})
|
|
876
|
+
]),
|
|
877
|
+
_: 1
|
|
878
|
+
}),
|
|
879
|
+
c(ae, {
|
|
880
|
+
class: _e(["j-super-query-history-card", { collapsed: l.historyCollapsed }]),
|
|
881
|
+
bordered: !1
|
|
882
|
+
}, {
|
|
883
|
+
title: s(() => [
|
|
884
|
+
yt
|
|
885
|
+
]),
|
|
886
|
+
default: s(() => [
|
|
887
|
+
l.saveTreeData.length === 0 ? (O(), V(U, {
|
|
888
|
+
key: 0,
|
|
889
|
+
class: "j-super-query-history-empty",
|
|
890
|
+
image: l.simpleImage,
|
|
891
|
+
description: "没有保存的查询"
|
|
892
|
+
}, null, 8, ["image"])) : (O(), V(W, {
|
|
893
|
+
key: 1,
|
|
894
|
+
class: "j-super-query-history-tree",
|
|
895
|
+
treeData: l.saveTreeData,
|
|
896
|
+
selectedKeys: [],
|
|
897
|
+
"show-icon": !0,
|
|
898
|
+
onSelect: l.handleTreeSelect
|
|
899
|
+
}, {
|
|
900
|
+
title: s(({ title: u }) => [
|
|
901
|
+
D("div", null, [
|
|
902
|
+
D("span", { title: u }, Ee(u.length > 10 ? u.substring(0, 10) + "..." : u), 9, _t),
|
|
903
|
+
c(z, {
|
|
904
|
+
title: "确定删除吗?",
|
|
905
|
+
onConfirm: (x) => l.handleRemoveSaveInfo(u)
|
|
906
|
+
}, {
|
|
907
|
+
default: s(() => [
|
|
908
|
+
D("span", {
|
|
909
|
+
class: "icon-cancle",
|
|
910
|
+
onClick: f[3] || (f[3] = (x) => x.stopPropagation())
|
|
911
|
+
}, [
|
|
912
|
+
c(ne)
|
|
913
|
+
])
|
|
914
|
+
]),
|
|
915
|
+
_: 2
|
|
916
|
+
}, 1032, ["onConfirm"])
|
|
917
|
+
])
|
|
918
|
+
]),
|
|
919
|
+
custom: s(() => [
|
|
920
|
+
c(w)
|
|
921
|
+
]),
|
|
922
|
+
_: 1
|
|
923
|
+
}, 8, ["treeData", "onSelect"])),
|
|
924
|
+
D("div", {
|
|
925
|
+
class: "collapse-box",
|
|
926
|
+
onClick: f[4] || (f[4] = (u) => l.historyCollapsed = !l.historyCollapsed)
|
|
927
|
+
}, [
|
|
928
|
+
l.historyCollapsed ? (O(), V(G, {
|
|
929
|
+
key: 0,
|
|
930
|
+
icon: "ant-design:caret-left"
|
|
931
|
+
})) : (O(), V(G, {
|
|
932
|
+
key: 1,
|
|
933
|
+
icon: "ant-design:caret-right"
|
|
934
|
+
}))
|
|
935
|
+
])
|
|
936
|
+
]),
|
|
937
|
+
_: 1
|
|
938
|
+
}, 8, ["class"])
|
|
939
|
+
]),
|
|
940
|
+
_: 1
|
|
941
|
+
}, 8, ["onRegister", "onOk", "onFullScreen"])
|
|
942
|
+
])),
|
|
943
|
+
c(q, {
|
|
944
|
+
title: "请输入保存的名称",
|
|
945
|
+
open: l.saveInfo.visible,
|
|
946
|
+
onCancel: f[6] || (f[6] = (u) => l.saveInfo.visible = !1),
|
|
947
|
+
onOk: l.doSaveQueryInfo,
|
|
948
|
+
confirmLoading: l.saveModalLoading
|
|
949
|
+
}, {
|
|
950
|
+
default: s(() => [
|
|
951
|
+
D("div", ht, [
|
|
952
|
+
c(B, {
|
|
953
|
+
value: l.saveInfo.title,
|
|
954
|
+
"onUpdate:value": f[5] || (f[5] = (u) => l.saveInfo.title = u),
|
|
955
|
+
style: { width: "90%" },
|
|
956
|
+
placeholder: "请输入保存的名称"
|
|
957
|
+
}, null, 8, ["value"])
|
|
958
|
+
])
|
|
959
|
+
]),
|
|
960
|
+
_: 1
|
|
961
|
+
}, 8, ["open", "onOk", "confirmLoading"])
|
|
962
|
+
], 64);
|
|
963
|
+
}
|
|
964
|
+
const ul = /* @__PURE__ */ at(st, [["render", gt], ["__scopeId", "data-v-93b8c028"]]);
|
|
965
|
+
export {
|
|
966
|
+
ul as default
|
|
967
|
+
};
|