@jeecg/online 3.7.1-RC → 3.7.4-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/AccountLoginForm-84cbd344.mjs +254 -0
- package/AiModal-26903538.mjs +84 -0
- package/AppForgetPassword-52443f23.mjs +310 -0
- package/AppLogin-ecf798fa.mjs +287 -0
- package/AppLoginHeader-4432c584.mjs +27 -0
- package/AppNameEmail-3303a037.mjs +180 -0
- package/AppRegister-79a62c59.mjs +303 -0
- package/AppTenant-f0bef7ca.mjs +373 -0
- package/AppThirdForm-fd8b4604.mjs +189 -0
- package/AuthButtonConfig-d5bffca0.mjs +156 -0
- package/AuthButtonTree-b0bd6c40.mjs +165 -0
- package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-d3b7afa4.mjs} +23 -23
- package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-f14a98d9.mjs} +43 -43
- package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-f1e224cc.mjs} +71 -71
- package/AuthFieldTree-5cc0da05.mjs +232 -0
- package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-32556109.mjs} +6 -6
- package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-364f1f67.mjs} +9 -9
- package/BuiltInButtonList-bb6cf95c.mjs +10 -0
- package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
- package/CgformAddressModal-1131274c.mjs +260 -0
- package/CgformCopyList-5fba0810.mjs +252 -0
- package/{CgformModal-21c5c387.mjs → CgformModal-c4a4e0c2.mjs} +190 -194
- package/{CgreportModal-edefa8e3.mjs → CgreportModal-8a84aae5.mjs} +181 -168
- package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-8a938e3a.mjs} +3 -3
- package/CodeFileListModal-a924902a.mjs +159 -0
- package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-405e2b58.mjs} +66 -66
- package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
- package/CustomButtonList-c453b654.mjs +274 -0
- package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-1a45c7b7.mjs} +3 -3
- package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-f28ff0a3.mjs} +53 -54
- package/{DetailForm-deecbf3d.mjs → DetailForm-c592b8d8.mjs} +5 -5
- package/DropMenuItem-1e49abea.mjs +44 -0
- package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
- package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
- package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-dc4f9ade.mjs} +104 -104
- package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
- package/ErrorTip-bb616e32.mjs +7 -0
- package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
- package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
- package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
- package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
- package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
- package/{IndexTable-cdcc2b48.mjs → IndexTable-2ded2014.mjs} +3 -3
- package/JModalTip-a927f85d.mjs +49 -0
- package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-04ec87d0.mjs} +1 -1
- package/{LeftDepart-d5615ed9.mjs → LeftDepart-52cb6743.mjs} +1 -1
- package/LeftRole-b0e0b496.mjs +86 -0
- package/{LeftUser-22baa378.mjs → LeftUser-dd4b10e2.mjs} +30 -30
- package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
- package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
- package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
- package/{ModalFormDemo-711418db.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
- package/OnlCgformErpList-5c5acdaa.mjs +488 -0
- package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
- package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +38 -38
- package/OnlCgformInnerTableList-b283a525.mjs +474 -0
- package/OnlCgformTabList-91e3dd78.mjs +424 -0
- package/OnlineAutoList-84475f1b.mjs +513 -0
- package/OnlineAutoModal-95f46901.mjs +260 -0
- package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
- package/OnlineCustomModal-c8b1e780.mjs +232 -0
- package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
- package/OnlineForm-58282699.mjs +1012 -0
- package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
- package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +9 -9
- package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-ad912560.mjs} +11 -11
- package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +9 -9
- package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
- package/OnlineQueryForm-9248341f.mjs +484 -0
- package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
- package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
- package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-8be879b9.mjs} +52 -53
- package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
- package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
- package/OnlineTabForm-1940e88b.mjs +814 -0
- package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
- package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-66e7b485.mjs} +108 -108
- package/PhoneLoginForm-86437a9d.mjs +214 -0
- package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-98ede18d.mjs} +32 -32
- package/{QueryTable-f7bfca7f.mjs → QueryTable-65d3f54f.mjs} +3 -3
- package/SetSwitchOptions-f914bc17.mjs +62 -0
- package/ShareAddView-657f0f8b.mjs +86 -0
- package/ShareEditView-1b945fd3.mjs +92 -0
- package/ShareView-222ed3d8.mjs +80 -0
- package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
- package/SingleView-23b0cb4e.mjs +68 -0
- package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
- package/SuperQuery-46032e66.mjs +974 -0
- package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
- package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
- package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
- package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
- package/button.data-fe45d43b.mjs +12 -0
- package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
- package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
- package/index-19eaef11.mjs +11 -0
- package/index-1a2e8832.mjs +135 -0
- package/{index-f30613d1.mjs → index-2fb8e07f.mjs} +59 -59
- package/index-5e89258d.mjs +8 -0
- package/index-9e1e1e53.mjs +57 -0
- package/{index-30e0e923.mjs → index-a039036e.mjs} +272 -262
- package/index-c5a79b0b.mjs +219 -0
- package/index-cce225be.mjs +110 -0
- package/index-f2c2d1cf.mjs +74 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/shareStore-7de6c7a6.mjs +67 -0
- package/style.css +1 -1
- package/useCgformList-f3cb9156.mjs +378 -0
- package/useExtendComponent-bb98e568.mjs +4460 -0
- package/useListButton-98908683.mjs +719 -0
- package/{useSchemas-a9c75b0f.mjs → useSchemas-b074f3a1.mjs} +33 -0
- package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
- package/utils-9fce7606.mjs +16 -0
- package/AiModal-6de335e3.mjs +0 -84
- package/AuthButtonConfig-89763932.mjs +0 -154
- package/AuthButtonTree-2d87d0b3.mjs +0 -157
- package/AuthFieldTree-e326fc38.mjs +0 -232
- package/CgformCopyList-365b3e8f.mjs +0 -251
- package/CodeFileListModal-24601898.mjs +0 -159
- package/CodeGeneratorModal-f09fe903.mjs +0 -282
- package/CustomButtonList-f07bc695.mjs +0 -397
- package/JModalTip-b055ab60.mjs +0 -49
- package/LeftRole-2ed8a2bf.mjs +0 -86
- package/OnlCgformErpList-58acdfa0.mjs +0 -470
- package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
- package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
- package/OnlCgformTabList-019ad753.mjs +0 -408
- package/OnlineAutoList-48589d09.mjs +0 -493
- package/OnlineAutoModal-c2928847.mjs +0 -239
- package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
- package/OnlineCustomModal-9e17b6ce.mjs +0 -232
- package/OnlineForm-9f1153ba.mjs +0 -985
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
- package/OnlineQueryForm-eedb9a60.mjs +0 -466
- package/OnlineTabForm-27655c83.mjs +0 -817
- package/SetSwitchOptions-b2af757f.mjs +0 -62
- package/SuperQuery-a8592995.mjs +0 -967
- package/index-1d1a6e56.mjs +0 -57
- package/useCgformList-f41d4dc1.mjs +0 -426
- package/useExtendComponent-dcae5c78.mjs +0 -4399
- package/useListButton-bfac4ecf.mjs +0 -697
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
package/SuperQuery-a8592995.mjs
DELETED
|
@@ -1,967 +0,0 @@
|
|
|
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
|
-
};
|