@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
|
@@ -0,0 +1,974 @@
|
|
|
1
|
+
var Te = Object.defineProperty, Oe = Object.defineProperties;
|
|
2
|
+
var xe = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var he = Object.getOwnPropertySymbols;
|
|
4
|
+
var Be = Object.prototype.hasOwnProperty, Me = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ce = (y, o, S) => o in y ? Te(y, o, { enumerable: !0, configurable: !0, writable: !0, value: S }) : y[o] = S, X = (y, o) => {
|
|
6
|
+
for (var S in o || (o = {}))
|
|
7
|
+
Be.call(o, S) && Ce(y, S, o[S]);
|
|
8
|
+
if (he)
|
|
9
|
+
for (var S of he(o))
|
|
10
|
+
Me.call(o, S) && Ce(y, S, o[S]);
|
|
11
|
+
return y;
|
|
12
|
+
}, Z = (y, o) => Oe(y, xe(o));
|
|
13
|
+
import { ref as B, reactive as Se, watch as se, toRaw as we, computed as Pe, resolveComponent as v, openBlock as O, createElementBlock as ve, Fragment as ye, createElementVNode as D, createBlock as N, withCtx as c, createVNode as d, toDisplayString as de, Teleport as Ve, createTextVNode as H, createCommentVNode as Ie, normalizeClass as _e, withDirectives as Fe, vShow as be, normalizeStyle as Ne, renderList as ke } from "vue";
|
|
14
|
+
import { useModalInner as Re, BasicModal as Ae, useModal as Qe } from "/@/components/Modal";
|
|
15
|
+
import { randomString as fe } from "/@/utils/common/compUtils";
|
|
16
|
+
import { useMessage as De } from "/@/hooks/web/useMessage";
|
|
17
|
+
import { Modal as je, Divider as qe, Popconfirm as Le, Empty as Ye } from "ant-design-vue";
|
|
18
|
+
import { createLocalStorage as Je } from "/@/utils/cache";
|
|
19
|
+
import { useRoute as He } from "vue-router";
|
|
20
|
+
import { i as Ue, F as Ke, j as ge } from "./useExtendComponent-bb98e568.mjs";
|
|
21
|
+
import { cloneDeep as pe } from "lodash-es";
|
|
22
|
+
import { _ as ze } from "./SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs";
|
|
23
|
+
import { MinusCircleOutlined as We, PlusOutlined as Ge, FileTextOutlined as Xe, CloseCircleOutlined as Ze, AppstoreTwoTone as $e } from "@ant-design/icons-vue";
|
|
24
|
+
import { useConditionFilter as et } from "/@/utils/index";
|
|
25
|
+
import { useDesign as tt } from "/@/hooks/web/useDesign";
|
|
26
|
+
import { _ as lt } from "./index-9e1e1e53.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-e016b8e6.mjs";
|
|
45
|
+
import "/@/utils/auth";
|
|
46
|
+
import "/@/api/common/api";
|
|
47
|
+
import "/@/hooks/web/useAppInject";
|
|
48
|
+
import "/@/assets/images/placeholderImage.png";
|
|
49
|
+
import "./OnlineSelectCascade-d631ed72.mjs";
|
|
50
|
+
import "/@/components/Loading";
|
|
51
|
+
import "./JModalTip-a927f85d.mjs";
|
|
52
|
+
import "@vueuse/core";
|
|
53
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
54
|
+
const nt = {
|
|
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
|
+
}, ot = "JSuperQuerySaved_";
|
|
64
|
+
function at(y) {
|
|
65
|
+
const { linkTableCard2Select: o } = Ue(), { createMessage: S } = De(), l = B(), k = Se({
|
|
66
|
+
values: []
|
|
67
|
+
}), R = B("and"), V = B(!1), [$, { setModalProps: T }] = Re(() => {
|
|
68
|
+
T({ confirmLoading: !1 });
|
|
69
|
+
}), A = Object.assign({}, { link_down: "text" }, nt);
|
|
70
|
+
function j() {
|
|
71
|
+
}
|
|
72
|
+
function ee() {
|
|
73
|
+
}
|
|
74
|
+
function U(t, n, i) {
|
|
75
|
+
i.val = n;
|
|
76
|
+
}
|
|
77
|
+
const M = B({}), Y = B([]), I = (t) => {
|
|
78
|
+
const { properties: n = {} } = t;
|
|
79
|
+
Object.entries(n).forEach(([i, a]) => {
|
|
80
|
+
a.view === "table" && I(a), ["link_down"].includes(a.originView || a.view) && delete n[i];
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
function q(t) {
|
|
84
|
+
var r;
|
|
85
|
+
I(t);
|
|
86
|
+
let { allFields: n, treeData: i } = re(t);
|
|
87
|
+
M.value = n;
|
|
88
|
+
const a = (r = t.properties) != null ? r : {}, m = [], p = t.table;
|
|
89
|
+
if (Object.entries(a).forEach(([h, e]) => {
|
|
90
|
+
e.view === "table" && m.push(h);
|
|
91
|
+
}), m.length) {
|
|
92
|
+
let h = [];
|
|
93
|
+
h = i.filter((e) => !m.includes(e.value));
|
|
94
|
+
for (let e = 0, u = i.length; e < u; e++) {
|
|
95
|
+
const f = i[e];
|
|
96
|
+
m.includes(f.value) || (i.splice(e, 1), e--, u--);
|
|
97
|
+
}
|
|
98
|
+
i.unshift({ title: "主表", value: p, disabled: !0, order: 200, children: h, view: "table" });
|
|
99
|
+
}
|
|
100
|
+
Y.value = i;
|
|
101
|
+
}
|
|
102
|
+
function K(t) {
|
|
103
|
+
let n = {
|
|
104
|
+
field: void 0,
|
|
105
|
+
rule: "eq",
|
|
106
|
+
val: "",
|
|
107
|
+
key: fe(16)
|
|
108
|
+
};
|
|
109
|
+
t === !1 ? (k.values = [], k.values.push(n)) : t === !0 ? k.values.length == 0 && k.values.push(n) : k.values.splice(++t, 0, n);
|
|
110
|
+
}
|
|
111
|
+
function te(t) {
|
|
112
|
+
let n = we(k.values), i = -1;
|
|
113
|
+
for (let a = 0; a < n.length; a++)
|
|
114
|
+
if (t.key == n[a].key) {
|
|
115
|
+
i = a;
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
i != -1 && k.values.splice(i, 1);
|
|
119
|
+
}
|
|
120
|
+
const le = {
|
|
121
|
+
field: "val",
|
|
122
|
+
label: "测试",
|
|
123
|
+
component: "Input"
|
|
124
|
+
};
|
|
125
|
+
function ne(t, n) {
|
|
126
|
+
var h, e, u;
|
|
127
|
+
let a = M.value[t.field];
|
|
128
|
+
if (!a)
|
|
129
|
+
return le;
|
|
130
|
+
A[a.view] && (a.view = A[a.view]);
|
|
131
|
+
let m = Ke.createFormSchema(t.field, a);
|
|
132
|
+
m.noChange(), m.asSearchForm(), m.updateField(t.field + n);
|
|
133
|
+
const p = (f) => {
|
|
134
|
+
t.val = f[t.field];
|
|
135
|
+
};
|
|
136
|
+
m.setFunctionForFieldValue(p);
|
|
137
|
+
let r = m.getFormItemSchema();
|
|
138
|
+
if (["empty", "not_empty"].includes(t.rule) && (r.componentProps = Z(X({}, r.componentProps), { disabled: !0 })), o(r), r.component === "LinkTableSelect") {
|
|
139
|
+
let f = (h = r.componentProps) != null ? h : {};
|
|
140
|
+
r.componentProps = Z(X({}, f), { editBtnShow: !1 });
|
|
141
|
+
}
|
|
142
|
+
if (r && r.component === "InputNumber" && (t.curLineAlign = "start"), (r == null ? void 0 : r.component) === "JTreeSelect") {
|
|
143
|
+
let f = r.componentProps;
|
|
144
|
+
f ? f.getPopupContainer = () => document.body : r.componentProps = { getPopupContainer: () => document.body };
|
|
145
|
+
}
|
|
146
|
+
if ((r == null ? void 0 : r.component) === "JSwitch") {
|
|
147
|
+
const f = (e = r.componentProps) != null ? e : {};
|
|
148
|
+
r.componentProps = Z(X({}, f), { query: !0 });
|
|
149
|
+
}
|
|
150
|
+
if ((r == null ? void 0 : r.component) === "JSelectUser") {
|
|
151
|
+
const f = (u = r.componentProps) != null ? u : {};
|
|
152
|
+
r.componentProps = Z(X({}, f), { showButton: !1 });
|
|
153
|
+
}
|
|
154
|
+
return r;
|
|
155
|
+
}
|
|
156
|
+
const J = B(""), Q = Je(), E = Se({
|
|
157
|
+
visible: !1,
|
|
158
|
+
title: "",
|
|
159
|
+
content: "",
|
|
160
|
+
saveCode: ""
|
|
161
|
+
}), oe = B(!1), z = He();
|
|
162
|
+
y.isCustomSave ? se(y.saveSearchData, () => {
|
|
163
|
+
F.value = y.saveSearchData;
|
|
164
|
+
}) : se(() => z.fullPath, (t) => {
|
|
165
|
+
W();
|
|
166
|
+
});
|
|
167
|
+
const F = B([]);
|
|
168
|
+
se(() => F.value, (t) => {
|
|
169
|
+
let n = [];
|
|
170
|
+
t && t.length > 0 && t.map((i) => {
|
|
171
|
+
let a = fe(16);
|
|
172
|
+
n.push({
|
|
173
|
+
title: i.title,
|
|
174
|
+
slots: { icon: "custom" },
|
|
175
|
+
value: a
|
|
176
|
+
});
|
|
177
|
+
}), J.value = n;
|
|
178
|
+
}, { immediate: !0, deep: !0 });
|
|
179
|
+
function W() {
|
|
180
|
+
if (y.isCustomSave)
|
|
181
|
+
F.value = pe(y.saveSearchData);
|
|
182
|
+
else {
|
|
183
|
+
let t = ot + z.fullPath;
|
|
184
|
+
E.saveCode = t;
|
|
185
|
+
let n = Q.get(t);
|
|
186
|
+
n && n instanceof Array && (F.value = n);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
W();
|
|
190
|
+
function G() {
|
|
191
|
+
let t = L();
|
|
192
|
+
if (!t) {
|
|
193
|
+
S.warning("空条件不能保存");
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
let n = JSON.stringify(t);
|
|
197
|
+
ae(n);
|
|
198
|
+
}
|
|
199
|
+
function ae(t) {
|
|
200
|
+
E.visible = !0, E.title = "", E.content = t;
|
|
201
|
+
}
|
|
202
|
+
function ie() {
|
|
203
|
+
let { title: t, content: n, saveCode: i } = E, a = P(t);
|
|
204
|
+
const m = (p) => {
|
|
205
|
+
const r = pe(F.value);
|
|
206
|
+
V.value = !0, p ? r.splice(a, 1, {
|
|
207
|
+
content: n,
|
|
208
|
+
title: t,
|
|
209
|
+
type: R.value
|
|
210
|
+
}) : r.push({
|
|
211
|
+
content: n,
|
|
212
|
+
title: t,
|
|
213
|
+
type: R.value
|
|
214
|
+
});
|
|
215
|
+
const h = () => {
|
|
216
|
+
E.visible = !1, S.success("保存成功"), F.value = r, V.value = !1;
|
|
217
|
+
};
|
|
218
|
+
y.isCustomSave ? y.save(r, 0).then(() => {
|
|
219
|
+
h();
|
|
220
|
+
}).catch((e) => {
|
|
221
|
+
V.value = !1;
|
|
222
|
+
}) : (Q.set(i, r, 2592e3), h());
|
|
223
|
+
};
|
|
224
|
+
a >= 0 ? je.confirm({
|
|
225
|
+
title: "提示",
|
|
226
|
+
content: `${t} 已存在,是否覆盖?`,
|
|
227
|
+
okText: "确认",
|
|
228
|
+
cancelText: "取消",
|
|
229
|
+
onOk: () => {
|
|
230
|
+
m(1);
|
|
231
|
+
}
|
|
232
|
+
}) : m(0);
|
|
233
|
+
}
|
|
234
|
+
function P(t) {
|
|
235
|
+
let n = F.value, i = -1;
|
|
236
|
+
for (let a = 0; a < n.length; a++)
|
|
237
|
+
if (n[a].title == t) {
|
|
238
|
+
i = a;
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
return i;
|
|
242
|
+
}
|
|
243
|
+
function L(t = !1) {
|
|
244
|
+
var m;
|
|
245
|
+
let n = k.values;
|
|
246
|
+
if (!n || n.length == 0)
|
|
247
|
+
return !1;
|
|
248
|
+
let i = [], a = M.value;
|
|
249
|
+
for (let p of n) {
|
|
250
|
+
let r = ["empty", "not_empty"].includes(p.rule);
|
|
251
|
+
if (p.field && (r || p.val || p.val === 0) && p.rule) {
|
|
252
|
+
let h = a[p.field], e = (m = h == null ? void 0 : h.formatValue) != null ? m : (_) => _, u = we(p.val);
|
|
253
|
+
u instanceof Array ? u = u.map((_) => e(_)).join(",") : u = e(u);
|
|
254
|
+
let w = {
|
|
255
|
+
field: s(p),
|
|
256
|
+
rule: p.rule,
|
|
257
|
+
val: u,
|
|
258
|
+
fileType: p.fileType
|
|
259
|
+
};
|
|
260
|
+
if (t === !0) {
|
|
261
|
+
let _ = a[p.field];
|
|
262
|
+
_ && (w.type = _.view, w.dbType = _.type);
|
|
263
|
+
}
|
|
264
|
+
i.push(w);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return i.length == 0 ? !1 : i;
|
|
268
|
+
}
|
|
269
|
+
function s(t) {
|
|
270
|
+
let n = t.field;
|
|
271
|
+
return n.indexOf("@") > 0 && (n = n.replace("@", ",")), n;
|
|
272
|
+
}
|
|
273
|
+
function x(t, { node: n }) {
|
|
274
|
+
let i = n.dataRef.title, a = F.value.filter((m) => m.title == i);
|
|
275
|
+
if (a && a.length > 0) {
|
|
276
|
+
let { content: m, type: p } = a[0], r = JSON.parse(m), h = [];
|
|
277
|
+
for (let e of r)
|
|
278
|
+
e.field = e.field.replace(",", "@"), h.push(Object.assign({}, { key: fe(16) }, e));
|
|
279
|
+
k.values = h, R.value = p;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
function b(t) {
|
|
283
|
+
let n = P(t);
|
|
284
|
+
if (n >= 0)
|
|
285
|
+
if (y.isCustomSave) {
|
|
286
|
+
const i = pe(F.value);
|
|
287
|
+
i.splice(n, 1), y.save(i, 1).then(() => {
|
|
288
|
+
F.value = i;
|
|
289
|
+
}).catch((a) => {
|
|
290
|
+
});
|
|
291
|
+
} else
|
|
292
|
+
F.value.splice(n, 1), Q.set(E.saveCode, F.value);
|
|
293
|
+
}
|
|
294
|
+
function re(t) {
|
|
295
|
+
let n = {}, i = 1, a = [];
|
|
296
|
+
return t.properties && (t = t.properties), Object.keys(t).map((m) => {
|
|
297
|
+
let p = t[m];
|
|
298
|
+
if (p.view == "table") {
|
|
299
|
+
let r = p.properties || p.fields, h = i * 100, e = {
|
|
300
|
+
title: p.title,
|
|
301
|
+
value: m,
|
|
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(r).map((u) => {
|
|
310
|
+
let f = r[u];
|
|
311
|
+
f.order = h + f.order;
|
|
312
|
+
let w = m + "@" + u;
|
|
313
|
+
n[w] = f, e.children.push({
|
|
314
|
+
title: f.title,
|
|
315
|
+
value: w,
|
|
316
|
+
isLeaf: !0,
|
|
317
|
+
order: f.order,
|
|
318
|
+
// update-begin--author:liaozhiyang---date:20240306---for:【TV360X-461】字段类型是string,则默认模糊查询
|
|
319
|
+
fieldType: f.type,
|
|
320
|
+
view: f.view,
|
|
321
|
+
originView: f.view
|
|
322
|
+
// update-end--author:liaozhiyang---date:20240306---for:【TV360X-461】字段类型是string,则默认模糊查询
|
|
323
|
+
});
|
|
324
|
+
}), ue(e), a.push(e), i++;
|
|
325
|
+
} else {
|
|
326
|
+
let r = m;
|
|
327
|
+
n[r] = p, a.push({
|
|
328
|
+
title: p.title,
|
|
329
|
+
value: r,
|
|
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(a), { allFields: n, treeData: a };
|
|
340
|
+
}
|
|
341
|
+
function ue(t) {
|
|
342
|
+
(t.children || t).sort(function(i, a) {
|
|
343
|
+
return i.order - a.order;
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
function me(t) {
|
|
347
|
+
const { params: n, matchType: i } = t;
|
|
348
|
+
if (n) {
|
|
349
|
+
let a = [];
|
|
350
|
+
for (let m of n)
|
|
351
|
+
a.push(Object.assign({}, { key: fe(16) }, m));
|
|
352
|
+
k.values = a, i.value = i;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
return {
|
|
356
|
+
formRef: l,
|
|
357
|
+
init: q,
|
|
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: J,
|
|
367
|
+
handleRemoveSaveInfo: b,
|
|
368
|
+
handleTreeSelect: x,
|
|
369
|
+
fieldTreeData: Y,
|
|
370
|
+
addOne: K,
|
|
371
|
+
removeOne: te,
|
|
372
|
+
setFormModel: U,
|
|
373
|
+
getSchema: ne,
|
|
374
|
+
loading: oe,
|
|
375
|
+
getQueryInfo: L,
|
|
376
|
+
initDefaultValues: me,
|
|
377
|
+
saveModalLoading: V,
|
|
378
|
+
fieldProperties: M
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
const it = {
|
|
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
|
+
queryBtnCfg: {
|
|
410
|
+
type: Object,
|
|
411
|
+
default: () => ({
|
|
412
|
+
buttonName: "高级查询",
|
|
413
|
+
buttonIcon: "ant-design:filter-outlined"
|
|
414
|
+
})
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
components: {
|
|
418
|
+
BasicModal: Ae,
|
|
419
|
+
MinusCircleOutlined: We,
|
|
420
|
+
PlusOutlined: Ge,
|
|
421
|
+
OnlineSuperQueryValComponent: ze,
|
|
422
|
+
FileTextOutlined: Xe,
|
|
423
|
+
CloseCircleOutlined: Ze,
|
|
424
|
+
AppstoreTwoTone: $e,
|
|
425
|
+
Divider: qe,
|
|
426
|
+
Popconfirm: Le
|
|
427
|
+
},
|
|
428
|
+
emits: ["search"],
|
|
429
|
+
setup(y, { emit: o }) {
|
|
430
|
+
const [S, l] = Qe(), { createMessage: k } = De(), R = B({}), V = B(180), { prefixCls: $ } = tt("super-query"), T = `${$}-tree-popup`, A = B(!0);
|
|
431
|
+
let j = null;
|
|
432
|
+
const { filterCondition: ee } = et(), U = (e) => {
|
|
433
|
+
var f, w;
|
|
434
|
+
const u = (_, C) => {
|
|
435
|
+
var ce;
|
|
436
|
+
const g = (ce = _.find((Ee) => Ee.value === C)) != null ? ce : {};
|
|
437
|
+
return ee({ view: g.originView || g.view, fieldType: g.fieldType });
|
|
438
|
+
};
|
|
439
|
+
if (((f = e.field) == null ? void 0 : f.indexOf("@")) == -1 || !e.field)
|
|
440
|
+
return u(P.value, e.field);
|
|
441
|
+
{
|
|
442
|
+
const _ = e.field.split("@")[0], C = P.value.find((g) => g.value === _);
|
|
443
|
+
if ((w = C == null ? void 0 : C.children) != null && w.length)
|
|
444
|
+
return u(C.children, e.field);
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
function M() {
|
|
448
|
+
l.closeModal();
|
|
449
|
+
}
|
|
450
|
+
function Y() {
|
|
451
|
+
if (y.online === !0) {
|
|
452
|
+
let e = ue(!0);
|
|
453
|
+
e && e.length > 0 ? (I(e), o("search", e, E.value), M(), j = e) : k.warning("空条件无法查询!");
|
|
454
|
+
} else {
|
|
455
|
+
let e = ue(!0);
|
|
456
|
+
if (e && e.length > 0) {
|
|
457
|
+
let u = q(e);
|
|
458
|
+
o("search", u);
|
|
459
|
+
} else
|
|
460
|
+
k.warning("空条件无法查询!");
|
|
461
|
+
}
|
|
462
|
+
A.value = !0;
|
|
463
|
+
}
|
|
464
|
+
const I = (e) => {
|
|
465
|
+
e.forEach((u) => {
|
|
466
|
+
const f = u.val;
|
|
467
|
+
if (u.type === "date" && typeof f == "string" && f != "") {
|
|
468
|
+
const w = n.value[u.field];
|
|
469
|
+
if (w) {
|
|
470
|
+
let _ = w.fieldExtendJson;
|
|
471
|
+
if (_ && (_ = JSON.parse(_), _.picker && _.picker !== "default")) {
|
|
472
|
+
const C = _.picker;
|
|
473
|
+
C === "year" ? u.val = ge(f).set("month", 0).set("date", 1).format("YYYY-MM-DD") : C === "month" ? u.val = ge(f).set("date", 1).format("YYYY-MM-DD") : C === "week" && (u.val = ge(f).startOf("week").format("YYYY-MM-DD"));
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
});
|
|
478
|
+
};
|
|
479
|
+
function q(e) {
|
|
480
|
+
let u = [];
|
|
481
|
+
for (let w of e) {
|
|
482
|
+
let _ = w.field, C = w.val;
|
|
483
|
+
C instanceof Array && (C = C.join(",")), u.push(Z(X({}, w), {
|
|
484
|
+
field: _,
|
|
485
|
+
val: C
|
|
486
|
+
}));
|
|
487
|
+
}
|
|
488
|
+
return u.length > 0 ? i.value = !0 : i.value = !1, {
|
|
489
|
+
superQueryMatchType: E.value,
|
|
490
|
+
superQueryParams: encodeURI(JSON.stringify(u))
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
function K() {
|
|
494
|
+
let e = q([]);
|
|
495
|
+
o("search", e);
|
|
496
|
+
}
|
|
497
|
+
function te() {
|
|
498
|
+
Q.values = [], L(!1);
|
|
499
|
+
let e = q([]);
|
|
500
|
+
j = null, A.value = !0, o("search", e);
|
|
501
|
+
}
|
|
502
|
+
const le = (e) => {
|
|
503
|
+
if (e) {
|
|
504
|
+
const u = document.documentElement.clientHeight - 165;
|
|
505
|
+
R.value = { maxHeight: `${u}px` }, V.value = u * 0.62;
|
|
506
|
+
} else
|
|
507
|
+
R.value = {}, V.value = 180;
|
|
508
|
+
}, {
|
|
509
|
+
formRef: ne,
|
|
510
|
+
init: J,
|
|
511
|
+
dynamicRowValues: Q,
|
|
512
|
+
matchType: E,
|
|
513
|
+
registerModal: oe,
|
|
514
|
+
handleSave: z,
|
|
515
|
+
doSaveQueryInfo: F,
|
|
516
|
+
saveInfo: W,
|
|
517
|
+
saveTreeData: G,
|
|
518
|
+
handleTreeSelect: ae,
|
|
519
|
+
handleRemoveSaveInfo: ie,
|
|
520
|
+
fieldTreeData: P,
|
|
521
|
+
addOne: L,
|
|
522
|
+
removeOne: s,
|
|
523
|
+
setFormModel: x,
|
|
524
|
+
getSchema: b,
|
|
525
|
+
loading: re,
|
|
526
|
+
getQueryInfo: ue,
|
|
527
|
+
initDefaultValues: me,
|
|
528
|
+
saveModalLoading: t,
|
|
529
|
+
fieldProperties: n
|
|
530
|
+
} = at(y), i = B(!1);
|
|
531
|
+
se(() => y.status, (e) => {
|
|
532
|
+
i.value = e;
|
|
533
|
+
}, { immediate: !0 });
|
|
534
|
+
function a() {
|
|
535
|
+
i.value && j && (Q.values = pe(j)), l.openModal(), A.value = !0, L(!0);
|
|
536
|
+
}
|
|
537
|
+
function m() {
|
|
538
|
+
return document.getElementsByClassName("jee-super-query-form")[0];
|
|
539
|
+
}
|
|
540
|
+
function p(e) {
|
|
541
|
+
}
|
|
542
|
+
function r(e) {
|
|
543
|
+
var f, w;
|
|
544
|
+
e.val = "";
|
|
545
|
+
const u = (_, C) => {
|
|
546
|
+
const g = _.find((ce) => ce.value === C);
|
|
547
|
+
(g == null ? void 0 : g.fieldType) === "string" && ["text"].includes((g == null ? void 0 : g.originView) || (g == null ? void 0 : g.view)) ? e.rule = "like" : ["file", "image", "password"].includes((g == null ? void 0 : g.originView) || (g == null ? void 0 : g.view)) ? e.rule = "empty" : e.rule = "eq";
|
|
548
|
+
};
|
|
549
|
+
if (((f = e.field) == null ? void 0 : f.indexOf("@")) == -1)
|
|
550
|
+
u(P.value, e.field);
|
|
551
|
+
else {
|
|
552
|
+
const _ = e.field.split("@")[0], C = P.value.find((g) => g.value === _);
|
|
553
|
+
(w = C == null ? void 0 : C.children) != null && w.length && u(C.children, e.field);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
se(() => y.config, (e) => {
|
|
557
|
+
e && J(e);
|
|
558
|
+
}, { immediate: !0 });
|
|
559
|
+
const h = Pe(() => P.value.find((u) => u.children) ? `${T} containTable` : `${T} noTable`);
|
|
560
|
+
return {
|
|
561
|
+
formRef: ne,
|
|
562
|
+
registerFormModal: S,
|
|
563
|
+
init: J,
|
|
564
|
+
handleChangeField: r,
|
|
565
|
+
dynamicRowValues: Q,
|
|
566
|
+
matchType: E,
|
|
567
|
+
historyCollapsed: A,
|
|
568
|
+
registerModal: oe,
|
|
569
|
+
handleSubmit: Y,
|
|
570
|
+
handleCancel: M,
|
|
571
|
+
handleSave: z,
|
|
572
|
+
handleReset: te,
|
|
573
|
+
doSaveQueryInfo: F,
|
|
574
|
+
saveInfo: W,
|
|
575
|
+
saveTreeData: G,
|
|
576
|
+
handleTreeSelect: ae,
|
|
577
|
+
handleRemoveSaveInfo: ie,
|
|
578
|
+
fieldTreeData: P,
|
|
579
|
+
addOne: L,
|
|
580
|
+
removeOne: s,
|
|
581
|
+
setFormModel: x,
|
|
582
|
+
getSchema: b,
|
|
583
|
+
loading: re,
|
|
584
|
+
onFinish: p,
|
|
585
|
+
getPopupContainer: m,
|
|
586
|
+
superQueryFlag: i,
|
|
587
|
+
handleOpen: a,
|
|
588
|
+
initDefaultValues: me,
|
|
589
|
+
simpleImage: Ye.PRESENTED_IMAGE_SIMPLE,
|
|
590
|
+
saveModalLoading: t,
|
|
591
|
+
queryFormStyle: R,
|
|
592
|
+
handleFullScreen: le,
|
|
593
|
+
fieldTreeSelectHeight: V,
|
|
594
|
+
getTreePopupClass: h,
|
|
595
|
+
handleStop: K,
|
|
596
|
+
getQueryCondition: U
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
};
|
|
600
|
+
const rt = { class: "j-super-query-button" }, ut = { style: { float: "left" } }, st = { slot: "description" }, ct = ["title"], dt = { style: { height: "80px", "line-height": "75px", width: "100%", "text-align": "center" } };
|
|
601
|
+
function ft(y, o, S, l, k, R) {
|
|
602
|
+
const V = v("divider"), $ = v("AppstoreTwoTone"), T = v("a-button"), A = v("a-button-group"), j = v("a-tooltip"), ee = v("a-divider"), U = v("a-empty"), M = v("a-select-option"), Y = v("a-select"), I = v("a-form-item"), q = v("a-col"), K = v("a-row"), te = v("a-tree-select"), le = v("online-super-query-val-component"), ne = v("PlusOutlined"), J = v("MinusCircleOutlined"), Q = v("a-space"), E = v("a-form"), oe = v("close-circle-outlined"), z = v("a-popconfirm"), F = v("file-text-outlined"), W = v("a-tree"), G = v("Icon"), ae = v("a-card"), ie = v("BasicModal"), P = v("a-input"), L = v("a-modal");
|
|
603
|
+
return O(), ve(ye, null, [
|
|
604
|
+
D("div", rt, [
|
|
605
|
+
l.superQueryFlag ? (O(), N(j, {
|
|
606
|
+
key: 0,
|
|
607
|
+
mouseLeaveDelay: 0.2
|
|
608
|
+
}, {
|
|
609
|
+
title: c(() => [
|
|
610
|
+
o[7] || (o[7] = D("span", null, "执行查询中...", -1)),
|
|
611
|
+
d(V, {
|
|
612
|
+
type: "vertical",
|
|
613
|
+
style: { "background-color": "#fff" }
|
|
614
|
+
}),
|
|
615
|
+
D("a", {
|
|
616
|
+
onClick: o[0] || (o[0] = (...s) => l.handleStop && l.handleStop(...s))
|
|
617
|
+
}, "取消查询")
|
|
618
|
+
]),
|
|
619
|
+
default: c(() => [
|
|
620
|
+
d(A, null, {
|
|
621
|
+
default: c(() => [
|
|
622
|
+
d(T, {
|
|
623
|
+
type: "primary",
|
|
624
|
+
onClick: l.handleOpen
|
|
625
|
+
}, {
|
|
626
|
+
default: c(() => [
|
|
627
|
+
d($, { spin: !0 }),
|
|
628
|
+
D("span", null, de(S.queryBtnCfg.buttonName), 1)
|
|
629
|
+
]),
|
|
630
|
+
_: 1
|
|
631
|
+
}, 8, ["onClick"])
|
|
632
|
+
]),
|
|
633
|
+
_: 1
|
|
634
|
+
})
|
|
635
|
+
]),
|
|
636
|
+
_: 1
|
|
637
|
+
})) : (O(), N(T, {
|
|
638
|
+
key: 1,
|
|
639
|
+
type: "primary",
|
|
640
|
+
preIcon: S.queryBtnCfg.buttonIcon,
|
|
641
|
+
onClick: l.handleOpen
|
|
642
|
+
}, {
|
|
643
|
+
default: c(() => [
|
|
644
|
+
D("span", null, de(S.queryBtnCfg.buttonName), 1)
|
|
645
|
+
]),
|
|
646
|
+
_: 1
|
|
647
|
+
}, 8, ["preIcon", "onClick"]))
|
|
648
|
+
]),
|
|
649
|
+
(O(), N(Ve, { to: "body" }, [
|
|
650
|
+
d(ie, {
|
|
651
|
+
title: S.queryBtnCfg.buttonName + "构造器",
|
|
652
|
+
"wrap-class-name": "j-super-query-modal",
|
|
653
|
+
canFullscreen: !0,
|
|
654
|
+
width: 850,
|
|
655
|
+
onRegister: l.registerFormModal,
|
|
656
|
+
onOk: l.handleSubmit,
|
|
657
|
+
onFullScreen: l.handleFullScreen
|
|
658
|
+
}, {
|
|
659
|
+
footer: c(() => [
|
|
660
|
+
D("div", ut, [
|
|
661
|
+
d(T, {
|
|
662
|
+
loading: l.loading,
|
|
663
|
+
onClick: l.handleReset
|
|
664
|
+
}, {
|
|
665
|
+
default: c(() => o[8] || (o[8] = [
|
|
666
|
+
H("清空")
|
|
667
|
+
])),
|
|
668
|
+
_: 1
|
|
669
|
+
}, 8, ["loading", "onClick"]),
|
|
670
|
+
d(T, {
|
|
671
|
+
loading: l.loading,
|
|
672
|
+
onClick: l.handleSave
|
|
673
|
+
}, {
|
|
674
|
+
default: c(() => o[9] || (o[9] = [
|
|
675
|
+
H("保存查询")
|
|
676
|
+
])),
|
|
677
|
+
_: 1
|
|
678
|
+
}, 8, ["loading", "onClick"])
|
|
679
|
+
]),
|
|
680
|
+
d(T, {
|
|
681
|
+
key: "submit",
|
|
682
|
+
type: "primary",
|
|
683
|
+
onClick: l.handleSubmit
|
|
684
|
+
}, {
|
|
685
|
+
default: c(() => o[10] || (o[10] = [
|
|
686
|
+
H("执行查询")
|
|
687
|
+
])),
|
|
688
|
+
_: 1
|
|
689
|
+
}, 8, ["onClick"]),
|
|
690
|
+
d(T, {
|
|
691
|
+
key: "back",
|
|
692
|
+
onClick: l.handleCancel
|
|
693
|
+
}, {
|
|
694
|
+
default: c(() => o[11] || (o[11] = [
|
|
695
|
+
H("关闭")
|
|
696
|
+
])),
|
|
697
|
+
_: 1
|
|
698
|
+
}, 8, ["onClick"])
|
|
699
|
+
]),
|
|
700
|
+
default: c(() => [
|
|
701
|
+
l.dynamicRowValues.values.length == 0 ? (O(), N(U, { key: 0 }, {
|
|
702
|
+
default: c(() => [
|
|
703
|
+
D("div", st, [
|
|
704
|
+
o[12] || (o[12] = D("span", null, "没有任何查询条件", -1)),
|
|
705
|
+
d(ee, { type: "vertical" }),
|
|
706
|
+
D("a", {
|
|
707
|
+
onClick: o[1] || (o[1] = (s) => l.addOne(-1))
|
|
708
|
+
}, "点击新增")
|
|
709
|
+
])
|
|
710
|
+
]),
|
|
711
|
+
_: 1
|
|
712
|
+
})) : Ie("", !0),
|
|
713
|
+
d(K, {
|
|
714
|
+
class: _e("j-super-query-modal-content")
|
|
715
|
+
}, {
|
|
716
|
+
default: c(() => [
|
|
717
|
+
d(q, {
|
|
718
|
+
sm: 24,
|
|
719
|
+
md: 24
|
|
720
|
+
}, {
|
|
721
|
+
default: c(() => [
|
|
722
|
+
Fe(d(K, null, {
|
|
723
|
+
default: c(() => [
|
|
724
|
+
d(q, {
|
|
725
|
+
md: 12,
|
|
726
|
+
xs: 24
|
|
727
|
+
}, {
|
|
728
|
+
default: c(() => [
|
|
729
|
+
d(I, {
|
|
730
|
+
label: "匹配模式",
|
|
731
|
+
labelCol: { md: 6, xs: 24 },
|
|
732
|
+
wrapperCol: { md: 18, xs: 24 },
|
|
733
|
+
style: { width: "100%" }
|
|
734
|
+
}, {
|
|
735
|
+
default: c(() => [
|
|
736
|
+
d(Y, {
|
|
737
|
+
value: l.matchType,
|
|
738
|
+
"onUpdate:value": o[2] || (o[2] = (s) => l.matchType = s),
|
|
739
|
+
getPopupContainer: (s) => s == null ? void 0 : s.parentNode,
|
|
740
|
+
style: { width: "100%" }
|
|
741
|
+
}, {
|
|
742
|
+
default: c(() => [
|
|
743
|
+
d(M, { value: "and" }, {
|
|
744
|
+
default: c(() => o[13] || (o[13] = [
|
|
745
|
+
H("AND(所有条件匹配)")
|
|
746
|
+
])),
|
|
747
|
+
_: 1
|
|
748
|
+
}),
|
|
749
|
+
d(M, { value: "or" }, {
|
|
750
|
+
default: c(() => o[14] || (o[14] = [
|
|
751
|
+
H("OR(任意一个匹配)")
|
|
752
|
+
])),
|
|
753
|
+
_: 1
|
|
754
|
+
})
|
|
755
|
+
]),
|
|
756
|
+
_: 1
|
|
757
|
+
}, 8, ["value", "getPopupContainer"])
|
|
758
|
+
]),
|
|
759
|
+
_: 1
|
|
760
|
+
})
|
|
761
|
+
]),
|
|
762
|
+
_: 1
|
|
763
|
+
})
|
|
764
|
+
]),
|
|
765
|
+
_: 1
|
|
766
|
+
}, 512), [
|
|
767
|
+
[be, l.dynamicRowValues.values.length > 0]
|
|
768
|
+
]),
|
|
769
|
+
Fe(d(E, {
|
|
770
|
+
ref: "formRef",
|
|
771
|
+
class: _e("jee-super-query-form"),
|
|
772
|
+
model: l.dynamicRowValues,
|
|
773
|
+
onFinish: l.onFinish,
|
|
774
|
+
style: Ne(l.queryFormStyle)
|
|
775
|
+
}, {
|
|
776
|
+
default: c(() => [
|
|
777
|
+
(O(!0), ve(ye, null, ke(l.dynamicRowValues.values, (s, x) => (O(), N(Q, {
|
|
778
|
+
key: s.key,
|
|
779
|
+
style: { display: "flex", "margin-bottom": "8px" },
|
|
780
|
+
align: s.curLineAlign ? s.align : "baseline"
|
|
781
|
+
}, {
|
|
782
|
+
default: c(() => [
|
|
783
|
+
d(I, {
|
|
784
|
+
class: "field-clos",
|
|
785
|
+
name: ["values", x, "field"]
|
|
786
|
+
}, {
|
|
787
|
+
default: c(() => [
|
|
788
|
+
d(te, {
|
|
789
|
+
popupClassName: l.getTreePopupClass,
|
|
790
|
+
style: { width: "100%" },
|
|
791
|
+
placeholder: "请选择字段",
|
|
792
|
+
value: s.field,
|
|
793
|
+
"onUpdate:value": (b) => s.field = b,
|
|
794
|
+
"show-search": "",
|
|
795
|
+
"tree-node-filter-prop": "title",
|
|
796
|
+
"allow-clear": "",
|
|
797
|
+
"tree-default-expand-all": "",
|
|
798
|
+
"dropdown-style": { maxHeight: `${l.fieldTreeSelectHeight}px`, overflow: "auto" },
|
|
799
|
+
listHeight: l.fieldTreeSelectHeight - 20,
|
|
800
|
+
onChange: (b) => l.handleChangeField(s),
|
|
801
|
+
"tree-data": l.fieldTreeData
|
|
802
|
+
}, null, 8, ["popupClassName", "value", "onUpdate:value", "dropdown-style", "listHeight", "onChange", "tree-data"])
|
|
803
|
+
]),
|
|
804
|
+
_: 2
|
|
805
|
+
}, 1032, ["name"]),
|
|
806
|
+
d(I, {
|
|
807
|
+
class: "rule-clos",
|
|
808
|
+
name: ["values", x, "rule"]
|
|
809
|
+
}, {
|
|
810
|
+
default: c(() => [
|
|
811
|
+
d(Y, {
|
|
812
|
+
style: { width: "100%" },
|
|
813
|
+
placeholder: "请选择匹配规则",
|
|
814
|
+
value: s.rule,
|
|
815
|
+
"onUpdate:value": (b) => s.rule = b
|
|
816
|
+
}, {
|
|
817
|
+
default: c(() => [
|
|
818
|
+
(O(!0), ve(ye, null, ke(l.getQueryCondition(s), (b) => (O(), N(M, {
|
|
819
|
+
value: b.value,
|
|
820
|
+
key: b.value
|
|
821
|
+
}, {
|
|
822
|
+
default: c(() => [
|
|
823
|
+
H(de(b.label), 1)
|
|
824
|
+
]),
|
|
825
|
+
_: 2
|
|
826
|
+
}, 1032, ["value"]))), 128))
|
|
827
|
+
]),
|
|
828
|
+
_: 2
|
|
829
|
+
}, 1032, ["value", "onUpdate:value"])
|
|
830
|
+
]),
|
|
831
|
+
_: 2
|
|
832
|
+
}, 1032, ["name"]),
|
|
833
|
+
d(I, {
|
|
834
|
+
class: "component-clos",
|
|
835
|
+
name: ["values", x, "val"]
|
|
836
|
+
}, {
|
|
837
|
+
default: c(() => [
|
|
838
|
+
d(le, {
|
|
839
|
+
style: { width: "100%" },
|
|
840
|
+
schema: l.getSchema(s, x),
|
|
841
|
+
formModel: s,
|
|
842
|
+
setFormModel: (b, re) => {
|
|
843
|
+
l.setFormModel(b, re, s);
|
|
844
|
+
},
|
|
845
|
+
onSubmit: l.handleSubmit
|
|
846
|
+
}, null, 8, ["schema", "formModel", "setFormModel", "onSubmit"])
|
|
847
|
+
]),
|
|
848
|
+
_: 2
|
|
849
|
+
}, 1032, ["name"]),
|
|
850
|
+
d(I, null, {
|
|
851
|
+
default: c(() => [
|
|
852
|
+
d(T, {
|
|
853
|
+
onClick: (b) => l.addOne(x),
|
|
854
|
+
style: { "margin-right": "6px" }
|
|
855
|
+
}, {
|
|
856
|
+
default: c(() => [
|
|
857
|
+
d(ne)
|
|
858
|
+
]),
|
|
859
|
+
_: 2
|
|
860
|
+
}, 1032, ["onClick"]),
|
|
861
|
+
d(T, {
|
|
862
|
+
onClick: (b) => l.removeOne(s)
|
|
863
|
+
}, {
|
|
864
|
+
default: c(() => [
|
|
865
|
+
d(J)
|
|
866
|
+
]),
|
|
867
|
+
_: 2
|
|
868
|
+
}, 1032, ["onClick"])
|
|
869
|
+
]),
|
|
870
|
+
_: 2
|
|
871
|
+
}, 1024)
|
|
872
|
+
]),
|
|
873
|
+
_: 2
|
|
874
|
+
}, 1032, ["align"]))), 128))
|
|
875
|
+
]),
|
|
876
|
+
_: 1
|
|
877
|
+
}, 8, ["model", "onFinish", "style"]), [
|
|
878
|
+
[be, l.dynamicRowValues.values.length > 0]
|
|
879
|
+
])
|
|
880
|
+
]),
|
|
881
|
+
_: 1
|
|
882
|
+
})
|
|
883
|
+
]),
|
|
884
|
+
_: 1
|
|
885
|
+
}),
|
|
886
|
+
d(ae, {
|
|
887
|
+
class: _e(["j-super-query-history-card", { collapsed: l.historyCollapsed }]),
|
|
888
|
+
bordered: !1
|
|
889
|
+
}, {
|
|
890
|
+
title: c(() => o[15] || (o[15] = [
|
|
891
|
+
D("div", null, "保存的查询", -1)
|
|
892
|
+
])),
|
|
893
|
+
default: c(() => [
|
|
894
|
+
l.saveTreeData.length === 0 ? (O(), N(U, {
|
|
895
|
+
key: 0,
|
|
896
|
+
class: "j-super-query-history-empty",
|
|
897
|
+
image: l.simpleImage,
|
|
898
|
+
description: "没有保存的查询"
|
|
899
|
+
}, null, 8, ["image"])) : (O(), N(W, {
|
|
900
|
+
key: 1,
|
|
901
|
+
class: "j-super-query-history-tree",
|
|
902
|
+
treeData: l.saveTreeData,
|
|
903
|
+
selectedKeys: [],
|
|
904
|
+
"show-icon": !0,
|
|
905
|
+
onSelect: l.handleTreeSelect
|
|
906
|
+
}, {
|
|
907
|
+
title: c(({ title: s }) => [
|
|
908
|
+
D("div", null, [
|
|
909
|
+
D("span", { title: s }, de(s.length > 10 ? s.substring(0, 10) + "..." : s), 9, ct),
|
|
910
|
+
d(z, {
|
|
911
|
+
title: "确定删除吗?",
|
|
912
|
+
onConfirm: (x) => l.handleRemoveSaveInfo(s)
|
|
913
|
+
}, {
|
|
914
|
+
default: c(() => [
|
|
915
|
+
D("span", {
|
|
916
|
+
class: "icon-cancle",
|
|
917
|
+
onClick: o[3] || (o[3] = (x) => x.stopPropagation())
|
|
918
|
+
}, [
|
|
919
|
+
d(oe)
|
|
920
|
+
])
|
|
921
|
+
]),
|
|
922
|
+
_: 2
|
|
923
|
+
}, 1032, ["onConfirm"])
|
|
924
|
+
])
|
|
925
|
+
]),
|
|
926
|
+
custom: c(() => [
|
|
927
|
+
d(F)
|
|
928
|
+
]),
|
|
929
|
+
_: 1
|
|
930
|
+
}, 8, ["treeData", "onSelect"])),
|
|
931
|
+
D("div", {
|
|
932
|
+
class: "collapse-box",
|
|
933
|
+
onClick: o[4] || (o[4] = (s) => l.historyCollapsed = !l.historyCollapsed)
|
|
934
|
+
}, [
|
|
935
|
+
l.historyCollapsed ? (O(), N(G, {
|
|
936
|
+
key: 0,
|
|
937
|
+
icon: "ant-design:caret-left"
|
|
938
|
+
})) : (O(), N(G, {
|
|
939
|
+
key: 1,
|
|
940
|
+
icon: "ant-design:caret-right"
|
|
941
|
+
}))
|
|
942
|
+
])
|
|
943
|
+
]),
|
|
944
|
+
_: 1
|
|
945
|
+
}, 8, ["class"])
|
|
946
|
+
]),
|
|
947
|
+
_: 1
|
|
948
|
+
}, 8, ["title", "onRegister", "onOk", "onFullScreen"])
|
|
949
|
+
])),
|
|
950
|
+
d(L, {
|
|
951
|
+
title: "请输入保存的名称",
|
|
952
|
+
open: l.saveInfo.visible,
|
|
953
|
+
onCancel: o[6] || (o[6] = (s) => l.saveInfo.visible = !1),
|
|
954
|
+
onOk: l.doSaveQueryInfo,
|
|
955
|
+
confirmLoading: l.saveModalLoading
|
|
956
|
+
}, {
|
|
957
|
+
default: c(() => [
|
|
958
|
+
D("div", dt, [
|
|
959
|
+
d(P, {
|
|
960
|
+
value: l.saveInfo.title,
|
|
961
|
+
"onUpdate:value": o[5] || (o[5] = (s) => l.saveInfo.title = s),
|
|
962
|
+
style: { width: "90%" },
|
|
963
|
+
placeholder: "请输入保存的名称"
|
|
964
|
+
}, null, 8, ["value"])
|
|
965
|
+
])
|
|
966
|
+
]),
|
|
967
|
+
_: 1
|
|
968
|
+
}, 8, ["open", "onOk", "confirmLoading"])
|
|
969
|
+
], 64);
|
|
970
|
+
}
|
|
971
|
+
const tl = /* @__PURE__ */ lt(it, [["render", ft], ["__scopeId", "data-v-c52e7338"]]);
|
|
972
|
+
export {
|
|
973
|
+
tl as default
|
|
974
|
+
};
|