@jeecg/online 3.5.3-vite4 → 3.6.2-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{AuthButtonConfig-2f71787c.mjs → AuthButtonConfig-244ec09f.mjs} +1 -1
- package/{AuthButtonTree-d73bccf5.mjs → AuthButtonTree-3aa0ed49.mjs} +1 -1
- package/{AuthDataConfig-32cf23d2.mjs → AuthDataConfig-83891eea.mjs} +1 -1
- package/{AuthDataTree-03d62d3f.mjs → AuthDataTree-94e026e3.mjs} +1 -1
- package/{AuthFieldConfig-b1217a0c.mjs → AuthFieldConfig-6b21915c.mjs} +1 -1
- package/{AuthFieldTree-888e04a9.mjs → AuthFieldTree-69864163.mjs} +1 -1
- package/{AuthManagerDrawer-f127b8a2.mjs → AuthManagerDrawer-300dd4e4.mjs} +4 -4
- package/{AuthSetterModal-37da78ed.mjs → AuthSetterModal-a414fb35.mjs} +58 -52
- package/{CgformCopyList-3adab58f.mjs → CgformCopyList-14b76108.mjs} +42 -39
- package/CgformModal-eccfc38e.mjs +611 -0
- package/{CgreportModal-77ec8c17.mjs → CgreportModal-2065f5a9.mjs} +2 -1
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs → CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs} +170 -171
- package/{CheckDictTable-414313f2.mjs → CheckDictTable-134cbb83.mjs} +3 -3
- package/{CodeFileListModal-4831ce3d.mjs → CodeFileListModal-a6d3290d.mjs} +2 -2
- package/{CodeFileViewModal-5990dac4.mjs → CodeFileViewModal-373e8058.mjs} +2 -2
- package/{CodeGeneratorModal-7df9e25d.mjs → CodeGeneratorModal-f08a89cd.mjs} +5 -6
- package/{CustomButtonList-1c9bd859.mjs → CustomButtonList-02e3d897.mjs} +2 -2
- package/{DBAttributeTable-cd1c41e5.mjs → DBAttributeTable-370de07b.mjs} +2 -2
- package/{DbToOnlineModal-dc5d2030.mjs → DbToOnlineModal-9f13956f.mjs} +35 -35
- package/{DetailForm-e4538e7a.mjs → DetailForm-424638eb.mjs} +179 -163
- package/{EnhanceJavaModal-7f53d2ca.mjs → EnhanceJavaModal-f63aa2d3.mjs} +17 -13
- package/{EnhanceJsHistory-c30805ce.mjs → EnhanceJsHistory-352b46b1.mjs} +1 -1
- package/EnhanceJsModal-05c73a59.mjs +311 -0
- package/{EnhanceSqlModal-33a94c83.mjs → EnhanceSqlModal-5e4ae84f.mjs} +55 -46
- package/{ExtendConfigModal-60f2cf86.mjs → ExtendConfigModal-1dde390a.mjs} +2 -2
- package/FieldExtendJsonModal-a70a9ccd.mjs +219 -0
- package/FileSelectModal-9a02560b.mjs +103 -0
- package/{ForeignKeyTable-cb1abd1d.mjs → ForeignKeyTable-6a843c4b.mjs} +2 -2
- package/{IndexTable-4e94cd1f.mjs → IndexTable-f8af9d44.mjs} +2 -2
- package/JModalTip-33c7dc44.mjs +49 -0
- package/{JOnlineSearchSelect-5608a5cf.mjs → JOnlineSearchSelect-c287af12.mjs} +17 -16
- package/{LeftDepart-ca7a7375.mjs → LeftDepart-fa85523d.mjs} +1 -1
- package/{LeftRole-d0fa8398.mjs → LeftRole-8b8dfe21.mjs} +1 -1
- package/{LeftUser-0c88c240.mjs → LeftUser-dc24ef2f.mjs} +1 -1
- package/{LinkTableConfigModal-77d7c0b9.mjs → LinkTableConfigModal-d4fbdef2.mjs} +23 -23
- package/{LinkTableFieldConfigModal-c5689ab0.mjs → LinkTableFieldConfigModal-787bc55c.mjs} +44 -46
- package/LinkTableListPiece-8499a318.mjs +34 -0
- package/{ModalFormDemo-0eeea994.mjs → ModalFormDemo-977a49eb.mjs} +1 -1
- package/OnlCgformErpList-db45e22b.mjs +454 -0
- package/OnlCgformErpSubTable-54b50eec.mjs +403 -0
- package/OnlCgformInnerSubTable-fbca73e0.mjs +253 -0
- package/OnlCgformInnerTableList-782eaf04.mjs +444 -0
- package/OnlCgformTabList-a9e1e36a.mjs +395 -0
- package/OnlineAutoList-0583a910.mjs +479 -0
- package/{OnlineAutoModal-2a146238.mjs → OnlineAutoModal-510991eb.mjs} +59 -58
- package/{OnlineAutoTreeList-f8d0e100.mjs → OnlineAutoTreeList-89265688.mjs} +158 -153
- package/{OnlineCustomModal-456a85a6.mjs → OnlineCustomModal-518ad33c.mjs} +67 -66
- package/{OnlineDetailModal-f967f080.mjs → OnlineDetailModal-9675390d.mjs} +40 -39
- package/OnlineForm-1fa2d893.mjs +750 -0
- package/{OnlineFormDetail-1b216792.mjs → OnlineFormDetail-0e7294ca.mjs} +56 -55
- package/OnlineQueryForm-1bfc8320.mjs +386 -0
- package/{OnlineSearchFormItem-7c2ea9ed.mjs → OnlineSearchFormItem-0cc85a8a.mjs} +83 -87
- package/{OnlineSelectCascade-c7baf52b.mjs → OnlineSelectCascade-4265c95d.mjs} +31 -32
- package/{OnlineSubFormDetail-0aa4966c.mjs → OnlineSubFormDetail-f0d2c016.mjs} +53 -50
- package/OnlineTabAutoModal-6f636ee2.mjs +254 -0
- package/OnlineTabDetailModal-7356d3a8.mjs +223 -0
- package/OnlineTabForm-512d3951.mjs +766 -0
- package/OnlineTabFormDetail-5a70219d.mjs +324 -0
- package/{PageAttributeTable-811185fd.mjs → PageAttributeTable-965dc58e.mjs} +20 -20
- package/{ProcessOnlineForm-27be6f6f.mjs → ProcessOnlineForm-67558898.mjs} +39 -38
- package/{QueryTable-4ba771ef.mjs → QueryTable-eb9a5b21.mjs} +2 -2
- package/README.md +5 -2
- package/{SuperQuery-3821f984.mjs → SuperQuery-5d1ca957.mjs} +171 -173
- package/{SuperQueryValComponent-471110b5.mjs → SuperQueryValComponent-7ad86d4b.mjs} +1 -1
- package/SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs +101 -0
- package/cgformState-d9f8ec42.mjs +28 -0
- package/constant-754f1a9d.mjs +9 -0
- package/index-0e3ab3af.mjs +56 -0
- package/{index-074b92e5.mjs → index-49508cad.mjs} +4 -3
- package/index-b7a05eef.mjs +1496 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-423282b7.mjs +400 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-325fe3f1.mjs +3926 -0
- package/useListButton-cdbab702.mjs +676 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/{useSchemas-fc8d97ce.mjs → useSchemas-0433a403.mjs} +129 -109
- package/{useTableSync-dc333087.mjs → useTableSync-774c3774.mjs} +17 -13
- package/CgformModal-6938d8c2.mjs +0 -613
- package/EnhanceJsModal-0b133341.mjs +0 -233
- package/FieldExtendJsonModal-48f7d67f.mjs +0 -220
- package/FileSelectModal-64aaf623.mjs +0 -91
- package/JModalTip-abe1515a.mjs +0 -46
- package/LinkTableListPiece-34266919.mjs +0 -34
- package/OnlCgformErpList-7a0388d8.mjs +0 -425
- package/OnlCgformErpSubTable-fc6ade76.mjs +0 -388
- package/OnlineAutoList-85e6a30d.mjs +0 -472
- package/OnlineForm-630a22c2.mjs +0 -778
- package/OnlineQueryForm-1c5949a7.mjs +0 -378
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +0 -101
- package/constant-fe20103a.mjs +0 -6
- package/index-6a09a912.mjs +0 -58
- package/index-9d32ae88.mjs +0 -313
- package/useCgformList-2d6a5955.mjs +0 -388
- package/useExtendComponent-48d37d9b.mjs +0 -3919
- package/useListButton-cef1371a.mjs +0 -656
- package/useOnlinePopEvent-e9a042f8.mjs +0 -19
- package/useOnlineTest-0df0ae86.mjs +0 -43
|
@@ -2,30 +2,31 @@ var he = Object.defineProperty, ge = Object.defineProperties;
|
|
|
2
2
|
var Ee = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var se = Object.getOwnPropertySymbols;
|
|
4
4
|
var Fe = Object.prototype.hasOwnProperty, Ce = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var de = (f,
|
|
6
|
-
for (var
|
|
7
|
-
Fe.call(
|
|
5
|
+
var de = (f, i, y) => i in f ? he(f, i, { enumerable: !0, configurable: !0, writable: !0, value: y }) : f[i] = y, ue = (f, i) => {
|
|
6
|
+
for (var y in i || (i = {}))
|
|
7
|
+
Fe.call(i, y) && de(f, y, i[y]);
|
|
8
8
|
if (se)
|
|
9
|
-
for (var
|
|
10
|
-
Ce.call(
|
|
9
|
+
for (var y of se(i))
|
|
10
|
+
Ce.call(i, y) && de(f, y, i[y]);
|
|
11
11
|
return f;
|
|
12
|
-
}, ie = (f,
|
|
12
|
+
}, ie = (f, i) => ge(f, Ee(i));
|
|
13
13
|
import { ref as x, reactive as ce, watch as ne, toRaw as fe, resolveComponent as d, openBlock as k, createElementBlock as me, Fragment as pe, createElementVNode as g, createBlock as B, withCtx as n, createVNode as o, createTextVNode as _, Teleport as ke, createCommentVNode as be, normalizeClass as re, withDirectives as _e, vShow as ve, renderList as Se, toDisplayString as we, pushScopeId as De, popScopeId as Oe } from "vue";
|
|
14
14
|
import { useModalInner as Be, BasicModal as xe, useModal as Ie } from "/@/components/Modal";
|
|
15
15
|
import { randomString as oe } from "/@/utils/common/compUtils";
|
|
16
16
|
import { useMessage as ye } from "/@/hooks/web/useMessage";
|
|
17
|
-
import { Modal as
|
|
17
|
+
import { Modal as Ae, Divider as Te, Empty as Me } from "ant-design-vue";
|
|
18
18
|
import { createLocalStorage as Re } from "/@/utils/cache";
|
|
19
19
|
import { useRoute as Ve } from "vue-router";
|
|
20
|
-
import {
|
|
21
|
-
import { _ as
|
|
22
|
-
import { MinusCircleOutlined as
|
|
23
|
-
import { _ as Ke } from "./index-
|
|
20
|
+
import { j as Pe, F as Qe } from "./useExtendComponent-325fe3f1.mjs";
|
|
21
|
+
import { _ as je } from "./SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs";
|
|
22
|
+
import { MinusCircleOutlined as Ne, PlusOutlined as qe, FileTextOutlined as Le, CloseCircleOutlined as Ue, AppstoreTwoTone as Je } from "@ant-design/icons-vue";
|
|
23
|
+
import { _ as Ke } from "./index-0e3ab3af.mjs";
|
|
24
24
|
import "/@/components/Form/src/componentMap";
|
|
25
25
|
import "/@/utils/propTypes";
|
|
26
26
|
import "/@/components/Form/index";
|
|
27
27
|
import "/@/utils/http/axios";
|
|
28
28
|
import "lodash-es";
|
|
29
|
+
import "./constant-754f1a9d.mjs";
|
|
29
30
|
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
30
31
|
import "/@/views/system/user/user.api";
|
|
31
32
|
import "/@/store/modules/user";
|
|
@@ -37,15 +38,16 @@ import "/@/components/Table";
|
|
|
37
38
|
import "/@/hooks/system/useListPage";
|
|
38
39
|
import "/@/components/Form/src/utils/Area";
|
|
39
40
|
import "/@/components/Preview/index";
|
|
40
|
-
import "./LinkTableListPiece-
|
|
41
|
-
import "./OnlineSelectCascade-
|
|
41
|
+
import "./LinkTableListPiece-8499a318.mjs";
|
|
42
|
+
import "./OnlineSelectCascade-4265c95d.mjs";
|
|
42
43
|
import "/@/components/Loading";
|
|
43
44
|
import "/@/utils/auth";
|
|
44
|
-
import "./JModalTip-
|
|
45
|
+
import "./JModalTip-33c7dc44.mjs";
|
|
46
|
+
import "/@/hooks/web/useAppInject";
|
|
45
47
|
import "@vueuse/core";
|
|
46
48
|
import "/@/utils/is";
|
|
47
49
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
48
|
-
const
|
|
50
|
+
const He = {
|
|
49
51
|
password: "text",
|
|
50
52
|
file: "text",
|
|
51
53
|
image: "text",
|
|
@@ -54,26 +56,24 @@ const We = {
|
|
|
54
56
|
markdown: "text",
|
|
55
57
|
checkbox: "list_multi",
|
|
56
58
|
radio: "list"
|
|
57
|
-
},
|
|
58
|
-
function
|
|
59
|
-
const { linkTableCard2Select: f } = Pe(), { createMessage:
|
|
59
|
+
}, We = "JSuperQuerySaved_";
|
|
60
|
+
function ze() {
|
|
61
|
+
const { linkTableCard2Select: f } = Pe(), { createMessage: i } = ye(), y = x(), e = ce({
|
|
60
62
|
values: []
|
|
61
|
-
}), I = x("and"), [le, { setModalProps:
|
|
62
|
-
|
|
63
|
-
}),
|
|
63
|
+
}), I = x("and"), [le, { setModalProps: j }] = Be(() => {
|
|
64
|
+
j({ confirmLoading: !1 });
|
|
65
|
+
}), N = Object.assign({}, { link_down: "text" }, He);
|
|
64
66
|
function E() {
|
|
65
|
-
console.log("handleSubmit", e.values);
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
+
function G() {
|
|
68
69
|
}
|
|
69
70
|
function Y(t, l, r) {
|
|
70
|
-
|
|
71
|
+
r.val = l;
|
|
71
72
|
}
|
|
72
|
-
const
|
|
73
|
+
const A = x({}), T = x([]);
|
|
73
74
|
function p(t) {
|
|
74
|
-
console.log("============="), console.log("=============", t), console.log("=============");
|
|
75
75
|
let { allFields: l, treeData: r } = b(t);
|
|
76
|
-
|
|
76
|
+
A.value = l, T.value = r;
|
|
77
77
|
}
|
|
78
78
|
function q(t) {
|
|
79
79
|
let l = {
|
|
@@ -93,36 +93,36 @@ function Ge() {
|
|
|
93
93
|
}
|
|
94
94
|
r != -1 && e.values.splice(r, 1);
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const L = {
|
|
97
97
|
field: "val",
|
|
98
98
|
label: "测试",
|
|
99
99
|
component: "Input"
|
|
100
100
|
};
|
|
101
|
-
function
|
|
102
|
-
let a =
|
|
101
|
+
function U(t, l) {
|
|
102
|
+
let a = A.value[t.field];
|
|
103
103
|
if (!a)
|
|
104
|
-
return
|
|
105
|
-
|
|
104
|
+
return L;
|
|
105
|
+
N[a.view] && (a.view = N[a.view]);
|
|
106
106
|
let m = Qe.createFormSchema(t.field, a);
|
|
107
107
|
m.noChange(), m.asSearchForm(), m.updateField(t.field + l);
|
|
108
108
|
const c = (C) => {
|
|
109
109
|
t.val = C[t.field];
|
|
110
110
|
};
|
|
111
111
|
m.setFunctionForFieldValue(c);
|
|
112
|
-
let
|
|
113
|
-
return ["empty", "not_empty"].includes(t.rule) && (
|
|
112
|
+
let v = m.getFormItemSchema();
|
|
113
|
+
return ["empty", "not_empty"].includes(t.rule) && (v.componentProps = ie(ue({}, v.componentProps), { disabled: !0 })), f(v), v && v.component === "InputNumber" && (t.curLineAlign = "start"), v;
|
|
114
114
|
}
|
|
115
|
-
const J = x(""),
|
|
115
|
+
const J = x(""), M = Re(), F = ce({
|
|
116
116
|
visible: !1,
|
|
117
117
|
title: "",
|
|
118
118
|
content: "",
|
|
119
119
|
saveCode: ""
|
|
120
120
|
}), X = x(!1), R = Ve();
|
|
121
121
|
ne(() => R.fullPath, (t) => {
|
|
122
|
-
|
|
122
|
+
K();
|
|
123
123
|
});
|
|
124
|
-
const
|
|
125
|
-
ne(() =>
|
|
124
|
+
const h = x([]);
|
|
125
|
+
ne(() => h.value, (t) => {
|
|
126
126
|
let l = [];
|
|
127
127
|
t && t.length > 0 && t.map((r) => {
|
|
128
128
|
let a = oe(16);
|
|
@@ -134,16 +134,16 @@ function Ge() {
|
|
|
134
134
|
}), J.value = l;
|
|
135
135
|
}, { immediate: !0, deep: !0 });
|
|
136
136
|
function K() {
|
|
137
|
-
let t =
|
|
137
|
+
let t = We + R.fullPath;
|
|
138
138
|
F.saveCode = t;
|
|
139
|
-
let l =
|
|
140
|
-
l && l instanceof Array && (
|
|
139
|
+
let l = M.get(t);
|
|
140
|
+
l && l instanceof Array && (h.value = l);
|
|
141
141
|
}
|
|
142
142
|
K();
|
|
143
143
|
function Z() {
|
|
144
144
|
let t = w();
|
|
145
145
|
if (!t) {
|
|
146
|
-
|
|
146
|
+
i.warning("空条件不能保存");
|
|
147
147
|
return;
|
|
148
148
|
}
|
|
149
149
|
let l = JSON.stringify(t);
|
|
@@ -153,27 +153,27 @@ function Ge() {
|
|
|
153
153
|
F.visible = !0, F.title = "", F.content = t;
|
|
154
154
|
}
|
|
155
155
|
function P() {
|
|
156
|
-
let { title: t, content: l, saveCode: r } = F, a =
|
|
157
|
-
a >= 0 ?
|
|
156
|
+
let { title: t, content: l, saveCode: r } = F, a = H(t);
|
|
157
|
+
a >= 0 ? Ae.confirm({
|
|
158
158
|
title: "提示",
|
|
159
159
|
content: `${t} 已存在,是否覆盖?`,
|
|
160
160
|
okText: "确认",
|
|
161
161
|
cancelText: "取消",
|
|
162
162
|
onOk: () => {
|
|
163
|
-
|
|
163
|
+
h.value.splice(a, 1, {
|
|
164
164
|
content: l,
|
|
165
165
|
title: t,
|
|
166
166
|
type: I.value
|
|
167
|
-
}),
|
|
167
|
+
}), M.set(r, h.value), F.visible = !1, i.success("保存成功");
|
|
168
168
|
}
|
|
169
|
-
}) : (
|
|
169
|
+
}) : (h.value.push({
|
|
170
170
|
content: l,
|
|
171
171
|
title: t,
|
|
172
172
|
type: I.value
|
|
173
|
-
}),
|
|
173
|
+
}), M.set(r, h.value), F.visible = !1, i.success("保存成功"));
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
let l =
|
|
175
|
+
function H(t) {
|
|
176
|
+
let l = h.value, r = -1;
|
|
177
177
|
for (let a = 0; a < l.length; a++)
|
|
178
178
|
if (l[a].title == t) {
|
|
179
179
|
r = a;
|
|
@@ -186,22 +186,22 @@ function Ge() {
|
|
|
186
186
|
let l = e.values;
|
|
187
187
|
if (!l || l.length == 0)
|
|
188
188
|
return !1;
|
|
189
|
-
let r = [], a =
|
|
189
|
+
let r = [], a = A.value;
|
|
190
190
|
for (let c of l) {
|
|
191
|
-
let
|
|
192
|
-
if (c.field && (
|
|
191
|
+
let v = ["empty", "not_empty"].includes(c.rule);
|
|
192
|
+
if (c.field && (v || c.val || c.val === 0) && c.rule) {
|
|
193
193
|
let C = a[c.field], V = (m = C == null ? void 0 : C.formatValue) != null ? m : (Q) => Q, O = fe(c.val);
|
|
194
194
|
O instanceof Array ? O = O.map((Q) => V(Q)).join(",") : O = V(O);
|
|
195
|
-
let
|
|
195
|
+
let z = {
|
|
196
196
|
field: ee(c),
|
|
197
197
|
rule: c.rule,
|
|
198
198
|
val: O
|
|
199
199
|
};
|
|
200
200
|
if (t === !0) {
|
|
201
201
|
let Q = a[c.field];
|
|
202
|
-
Q && (
|
|
202
|
+
Q && (z.type = Q.view, z.dbType = Q.type);
|
|
203
203
|
}
|
|
204
|
-
r.push(
|
|
204
|
+
r.push(z);
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
return r.length == 0 ? !1 : r;
|
|
@@ -211,55 +211,53 @@ function Ge() {
|
|
|
211
211
|
return l.indexOf("@") > 0 && (l = l.replace("@", ",")), l;
|
|
212
212
|
}
|
|
213
213
|
function te(t, { node: l }) {
|
|
214
|
-
|
|
215
|
-
let r = l.dataRef.title, a = y.value.filter((m) => m.title == r);
|
|
214
|
+
let r = l.dataRef.title, a = h.value.filter((m) => m.title == r);
|
|
216
215
|
if (a && a.length > 0) {
|
|
217
|
-
let { content: m, type: c } = a[0],
|
|
218
|
-
for (let V of
|
|
216
|
+
let { content: m, type: c } = a[0], v = JSON.parse(m), C = [];
|
|
217
|
+
for (let V of v)
|
|
219
218
|
C.push(Object.assign({}, { key: oe(16) }, V));
|
|
220
219
|
e.values = C, I.value = c;
|
|
221
220
|
}
|
|
222
221
|
}
|
|
223
|
-
function
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
l >= 0 && (y.value.splice(l, 1), A.set(F.saveCode, y.value));
|
|
222
|
+
function u(t) {
|
|
223
|
+
let l = H(t);
|
|
224
|
+
l >= 0 && (h.value.splice(l, 1), M.set(F.saveCode, h.value));
|
|
227
225
|
}
|
|
228
226
|
function b(t) {
|
|
229
227
|
let l = {}, r = 1, a = [];
|
|
230
228
|
return t.properties && (t = t.properties), Object.keys(t).map((m) => {
|
|
231
229
|
let c = t[m];
|
|
232
230
|
if (c.view == "table") {
|
|
233
|
-
let
|
|
231
|
+
let v = c.properties || c.fields, C = r * 100, V = {
|
|
234
232
|
title: c.title,
|
|
235
233
|
value: m,
|
|
236
234
|
disabled: !0,
|
|
237
235
|
children: [],
|
|
238
236
|
order: C
|
|
239
237
|
};
|
|
240
|
-
Object.keys(
|
|
241
|
-
let
|
|
242
|
-
|
|
243
|
-
let
|
|
244
|
-
l[
|
|
245
|
-
title:
|
|
246
|
-
value:
|
|
238
|
+
Object.keys(v).map((O) => {
|
|
239
|
+
let W = v[O];
|
|
240
|
+
W.order = C + W.order;
|
|
241
|
+
let z = m + "@" + O;
|
|
242
|
+
l[z] = W, V.children.push({
|
|
243
|
+
title: W.title,
|
|
244
|
+
value: z,
|
|
247
245
|
isLeaf: !0,
|
|
248
|
-
order:
|
|
246
|
+
order: W.order
|
|
249
247
|
});
|
|
250
|
-
}),
|
|
248
|
+
}), s(V), a.push(V), r++;
|
|
251
249
|
} else {
|
|
252
|
-
let
|
|
253
|
-
l[
|
|
250
|
+
let v = m;
|
|
251
|
+
l[v] = c, a.push({
|
|
254
252
|
title: c.title,
|
|
255
|
-
value:
|
|
253
|
+
value: v,
|
|
256
254
|
isLeaf: !0,
|
|
257
255
|
order: c.order
|
|
258
256
|
});
|
|
259
257
|
}
|
|
260
|
-
}),
|
|
258
|
+
}), s(a), { allFields: l, treeData: a };
|
|
261
259
|
}
|
|
262
|
-
function
|
|
260
|
+
function s(t) {
|
|
263
261
|
(t.children || t).sort(function(r, a) {
|
|
264
262
|
return r.order - a.order;
|
|
265
263
|
});
|
|
@@ -274,30 +272,30 @@ function Ge() {
|
|
|
274
272
|
}
|
|
275
273
|
}
|
|
276
274
|
return {
|
|
277
|
-
formRef:
|
|
275
|
+
formRef: y,
|
|
278
276
|
init: p,
|
|
279
277
|
dynamicRowValues: e,
|
|
280
278
|
matchType: I,
|
|
281
279
|
registerModal: le,
|
|
282
280
|
handleSubmit: E,
|
|
283
|
-
handleCancel:
|
|
281
|
+
handleCancel: G,
|
|
284
282
|
handleSave: Z,
|
|
285
283
|
doSaveQueryInfo: P,
|
|
286
284
|
saveInfo: F,
|
|
287
285
|
saveTreeData: J,
|
|
288
|
-
handleRemoveSaveInfo:
|
|
286
|
+
handleRemoveSaveInfo: u,
|
|
289
287
|
handleTreeSelect: te,
|
|
290
288
|
fieldTreeData: T,
|
|
291
289
|
addOne: q,
|
|
292
290
|
removeOne: S,
|
|
293
291
|
setFormModel: Y,
|
|
294
|
-
getSchema:
|
|
292
|
+
getSchema: U,
|
|
295
293
|
loading: X,
|
|
296
294
|
getQueryInfo: w,
|
|
297
295
|
initDefaultValues: D
|
|
298
296
|
};
|
|
299
297
|
}
|
|
300
|
-
const
|
|
298
|
+
const Ge = {
|
|
301
299
|
name: "OnlineSuperQuery",
|
|
302
300
|
props: {
|
|
303
301
|
config: {
|
|
@@ -315,36 +313,36 @@ const He = {
|
|
|
315
313
|
},
|
|
316
314
|
components: {
|
|
317
315
|
BasicModal: xe,
|
|
318
|
-
MinusCircleOutlined:
|
|
316
|
+
MinusCircleOutlined: Ne,
|
|
319
317
|
PlusOutlined: qe,
|
|
320
|
-
OnlineSuperQueryValComponent:
|
|
321
|
-
FileTextOutlined:
|
|
322
|
-
CloseCircleOutlined:
|
|
318
|
+
OnlineSuperQueryValComponent: je,
|
|
319
|
+
FileTextOutlined: Le,
|
|
320
|
+
CloseCircleOutlined: Ue,
|
|
323
321
|
AppstoreTwoTone: Je,
|
|
324
322
|
Divider: Te
|
|
325
323
|
},
|
|
326
324
|
emits: ["search"],
|
|
327
|
-
setup(f, { emit:
|
|
328
|
-
const [
|
|
329
|
-
function
|
|
325
|
+
setup(f, { emit: i }) {
|
|
326
|
+
const [y, e] = Ie(), { createMessage: I } = ye(), le = x(!0);
|
|
327
|
+
function j() {
|
|
330
328
|
e.closeModal();
|
|
331
329
|
}
|
|
332
|
-
function
|
|
330
|
+
function N() {
|
|
333
331
|
if (f.online === !0) {
|
|
334
|
-
let
|
|
335
|
-
|
|
332
|
+
let s = P(!0);
|
|
333
|
+
s && s.length > 0 ? (i("search", s, p.value), j()) : I.warning("空条件无法查询!");
|
|
336
334
|
} else {
|
|
337
|
-
let
|
|
338
|
-
if (
|
|
339
|
-
let D = E(
|
|
340
|
-
|
|
335
|
+
let s = P(!0);
|
|
336
|
+
if (s && s.length > 0) {
|
|
337
|
+
let D = E(s);
|
|
338
|
+
i("search", D);
|
|
341
339
|
} else
|
|
342
340
|
I.warning("空条件无法查询!");
|
|
343
341
|
}
|
|
344
342
|
}
|
|
345
|
-
function E(
|
|
343
|
+
function E(s) {
|
|
346
344
|
let D = [];
|
|
347
|
-
for (let l of
|
|
345
|
+
for (let l of s) {
|
|
348
346
|
let r = l.field, a = l.val;
|
|
349
347
|
a instanceof Array && (a = a.join(",")), D.push(ie(ue({}, l), {
|
|
350
348
|
field: r,
|
|
@@ -356,34 +354,34 @@ const He = {
|
|
|
356
354
|
superQueryParams: encodeURI(JSON.stringify(D))
|
|
357
355
|
};
|
|
358
356
|
}
|
|
359
|
-
function
|
|
357
|
+
function G() {
|
|
360
358
|
T.values = [], R(!1);
|
|
361
|
-
let
|
|
362
|
-
|
|
359
|
+
let s = E([]);
|
|
360
|
+
i("search", s);
|
|
363
361
|
}
|
|
364
362
|
const {
|
|
365
363
|
formRef: Y,
|
|
366
|
-
init:
|
|
364
|
+
init: A,
|
|
367
365
|
dynamicRowValues: T,
|
|
368
366
|
matchType: p,
|
|
369
367
|
registerModal: q,
|
|
370
368
|
handleSave: S,
|
|
371
|
-
doSaveQueryInfo:
|
|
372
|
-
saveInfo:
|
|
369
|
+
doSaveQueryInfo: L,
|
|
370
|
+
saveInfo: U,
|
|
373
371
|
saveTreeData: J,
|
|
374
|
-
handleTreeSelect:
|
|
372
|
+
handleTreeSelect: M,
|
|
375
373
|
handleRemoveSaveInfo: F,
|
|
376
374
|
fieldTreeData: X,
|
|
377
375
|
addOne: R,
|
|
378
|
-
removeOne:
|
|
376
|
+
removeOne: h,
|
|
379
377
|
setFormModel: K,
|
|
380
378
|
getSchema: Z,
|
|
381
379
|
loading: $,
|
|
382
380
|
getQueryInfo: P,
|
|
383
|
-
initDefaultValues:
|
|
384
|
-
} =
|
|
385
|
-
ne(() => f.status, (
|
|
386
|
-
w.value =
|
|
381
|
+
initDefaultValues: H
|
|
382
|
+
} = ze(), w = x(!1);
|
|
383
|
+
ne(() => f.status, (s) => {
|
|
384
|
+
w.value = s;
|
|
387
385
|
}, { immediate: !0 });
|
|
388
386
|
function ee() {
|
|
389
387
|
e.openModal(), R(!0);
|
|
@@ -391,50 +389,49 @@ const He = {
|
|
|
391
389
|
function te() {
|
|
392
390
|
return document.getElementsByClassName("jee-super-query-form")[0];
|
|
393
391
|
}
|
|
394
|
-
function s
|
|
395
|
-
console.log("onfinish", i);
|
|
392
|
+
function u(s) {
|
|
396
393
|
}
|
|
397
|
-
function b(
|
|
398
|
-
|
|
394
|
+
function b(s) {
|
|
395
|
+
s.val = "";
|
|
399
396
|
}
|
|
400
|
-
return ne(() => f.config, (
|
|
401
|
-
|
|
397
|
+
return ne(() => f.config, (s) => {
|
|
398
|
+
s && A(s);
|
|
402
399
|
}, { immediate: !0 }), {
|
|
403
400
|
formRef: Y,
|
|
404
|
-
registerFormModal:
|
|
405
|
-
init:
|
|
401
|
+
registerFormModal: y,
|
|
402
|
+
init: A,
|
|
406
403
|
handleChangeField: b,
|
|
407
404
|
dynamicRowValues: T,
|
|
408
405
|
matchType: p,
|
|
409
406
|
historyCollapsed: le,
|
|
410
407
|
registerModal: q,
|
|
411
|
-
handleSubmit:
|
|
412
|
-
handleCancel:
|
|
408
|
+
handleSubmit: N,
|
|
409
|
+
handleCancel: j,
|
|
413
410
|
handleSave: S,
|
|
414
|
-
handleReset:
|
|
415
|
-
doSaveQueryInfo:
|
|
416
|
-
saveInfo:
|
|
411
|
+
handleReset: G,
|
|
412
|
+
doSaveQueryInfo: L,
|
|
413
|
+
saveInfo: U,
|
|
417
414
|
saveTreeData: J,
|
|
418
|
-
handleTreeSelect:
|
|
415
|
+
handleTreeSelect: M,
|
|
419
416
|
handleRemoveSaveInfo: F,
|
|
420
417
|
fieldTreeData: X,
|
|
421
418
|
addOne: R,
|
|
422
|
-
removeOne:
|
|
419
|
+
removeOne: h,
|
|
423
420
|
setFormModel: K,
|
|
424
421
|
getSchema: Z,
|
|
425
422
|
loading: $,
|
|
426
|
-
onFinish:
|
|
423
|
+
onFinish: u,
|
|
427
424
|
getPopupContainer: te,
|
|
428
425
|
superQueryFlag: w,
|
|
429
426
|
handleOpen: ee,
|
|
430
|
-
initDefaultValues:
|
|
431
|
-
simpleImage:
|
|
427
|
+
initDefaultValues: H,
|
|
428
|
+
simpleImage: Me.PRESENTED_IMAGE_SIMPLE
|
|
432
429
|
};
|
|
433
430
|
}
|
|
434
431
|
};
|
|
435
|
-
const ae = (f) => (De("data-v-
|
|
436
|
-
function ut(f,
|
|
437
|
-
const
|
|
432
|
+
const ae = (f) => (De("data-v-bc498f51"), f = f(), Oe(), f), Ye = { class: "j-super-query-button" }, Xe = /* @__PURE__ */ ae(() => /* @__PURE__ */ g("span", null, "已有高级查询条件生效", -1)), Ze = /* @__PURE__ */ ae(() => /* @__PURE__ */ g("span", null, "高级查询", -1)), $e = { style: { float: "left" } }, et = { slot: "description" }, tt = /* @__PURE__ */ ae(() => /* @__PURE__ */ g("span", null, "没有任何查询条件", -1)), lt = /* @__PURE__ */ ae(() => /* @__PURE__ */ g("div", null, "保存的查询", -1)), ot = ["title"], nt = { class: "icon-cancle" }, at = { style: { height: "80px", "line-height": "75px", width: "100%", "text-align": "center" } };
|
|
433
|
+
function ut(f, i, y, e, I, le) {
|
|
434
|
+
const j = d("divider"), N = d("AppstoreTwoTone"), E = d("a-button"), G = d("a-button-group"), Y = d("a-tooltip"), A = d("a-divider"), T = d("a-empty"), p = d("a-select-option"), q = d("a-select"), S = d("a-form-item"), L = d("a-col"), U = d("a-row"), J = d("a-tree-select"), M = d("online-super-query-val-component"), F = d("PlusOutlined"), X = d("MinusCircleOutlined"), R = d("a-space"), h = d("a-form"), K = d("close-circle-outlined"), Z = d("file-text-outlined"), $ = d("a-tree"), P = d("Icon"), H = d("a-card"), w = d("BasicModal"), ee = d("a-input"), te = d("a-modal");
|
|
438
435
|
return k(), me(pe, null, [
|
|
439
436
|
g("div", Ye, [
|
|
440
437
|
e.superQueryFlag ? (k(), B(Y, {
|
|
@@ -443,23 +440,23 @@ function ut(f, u, v, e, I, le) {
|
|
|
443
440
|
}, {
|
|
444
441
|
title: n(() => [
|
|
445
442
|
Xe,
|
|
446
|
-
o(
|
|
443
|
+
o(j, {
|
|
447
444
|
type: "vertical",
|
|
448
445
|
style: { "background-color": "#fff" }
|
|
449
446
|
}),
|
|
450
447
|
g("a", {
|
|
451
|
-
onClick:
|
|
448
|
+
onClick: i[0] || (i[0] = (...u) => e.handleReset && e.handleReset(...u))
|
|
452
449
|
}, "清空")
|
|
453
450
|
]),
|
|
454
451
|
default: n(() => [
|
|
455
|
-
o(
|
|
452
|
+
o(G, null, {
|
|
456
453
|
default: n(() => [
|
|
457
454
|
o(E, {
|
|
458
455
|
type: "primary",
|
|
459
456
|
onClick: e.handleOpen
|
|
460
457
|
}, {
|
|
461
458
|
default: n(() => [
|
|
462
|
-
o(
|
|
459
|
+
o(N, { spin: !0 }),
|
|
463
460
|
Ze
|
|
464
461
|
]),
|
|
465
462
|
_: 1
|
|
@@ -535,26 +532,26 @@ function ut(f, u, v, e, I, le) {
|
|
|
535
532
|
default: n(() => [
|
|
536
533
|
g("div", et, [
|
|
537
534
|
tt,
|
|
538
|
-
o(
|
|
535
|
+
o(A, { type: "vertical" }),
|
|
539
536
|
g("a", {
|
|
540
|
-
onClick:
|
|
537
|
+
onClick: i[1] || (i[1] = (u) => e.addOne(-1))
|
|
541
538
|
}, "点击新增")
|
|
542
539
|
])
|
|
543
540
|
]),
|
|
544
541
|
_: 1
|
|
545
542
|
})) : be("", !0),
|
|
546
|
-
o(
|
|
543
|
+
o(U, {
|
|
547
544
|
class: re("j-super-query-modal-content")
|
|
548
545
|
}, {
|
|
549
546
|
default: n(() => [
|
|
550
|
-
o(
|
|
547
|
+
o(L, {
|
|
551
548
|
sm: 24,
|
|
552
549
|
md: 24
|
|
553
550
|
}, {
|
|
554
551
|
default: n(() => [
|
|
555
|
-
_e(o(
|
|
552
|
+
_e(o(U, null, {
|
|
556
553
|
default: n(() => [
|
|
557
|
-
o(
|
|
554
|
+
o(L, {
|
|
558
555
|
md: 12,
|
|
559
556
|
xs: 24
|
|
560
557
|
}, {
|
|
@@ -568,8 +565,8 @@ function ut(f, u, v, e, I, le) {
|
|
|
568
565
|
default: n(() => [
|
|
569
566
|
o(q, {
|
|
570
567
|
value: e.matchType,
|
|
571
|
-
"onUpdate:value":
|
|
572
|
-
getPopupContainer: (
|
|
568
|
+
"onUpdate:value": i[2] || (i[2] = (u) => e.matchType = u),
|
|
569
|
+
getPopupContainer: (u) => u == null ? void 0 : u.parentNode,
|
|
573
570
|
style: { width: "100%" }
|
|
574
571
|
}, {
|
|
575
572
|
default: n(() => [
|
|
@@ -599,17 +596,17 @@ function ut(f, u, v, e, I, le) {
|
|
|
599
596
|
}, 512), [
|
|
600
597
|
[ve, e.dynamicRowValues.values.length > 0]
|
|
601
598
|
]),
|
|
602
|
-
_e(o(
|
|
599
|
+
_e(o(h, {
|
|
603
600
|
ref: "formRef",
|
|
604
601
|
class: re("jee-super-query-form"),
|
|
605
602
|
model: e.dynamicRowValues,
|
|
606
603
|
onFinish: e.onFinish
|
|
607
604
|
}, {
|
|
608
605
|
default: n(() => [
|
|
609
|
-
(k(!0), me(pe, null, Se(e.dynamicRowValues.values, (
|
|
610
|
-
key:
|
|
606
|
+
(k(!0), me(pe, null, Se(e.dynamicRowValues.values, (u, b) => (k(), B(R, {
|
|
607
|
+
key: u.key,
|
|
611
608
|
style: { display: "flex", "margin-bottom": "8px" },
|
|
612
|
-
align: "baseline"
|
|
609
|
+
align: u.curLineAlign ? u.align : "baseline"
|
|
613
610
|
}, {
|
|
614
611
|
default: n(() => [
|
|
615
612
|
o(S, {
|
|
@@ -620,14 +617,15 @@ function ut(f, u, v, e, I, le) {
|
|
|
620
617
|
o(J, {
|
|
621
618
|
style: { width: "100%" },
|
|
622
619
|
placeholder: "请选择字段",
|
|
623
|
-
value:
|
|
624
|
-
"onUpdate:value": (
|
|
620
|
+
value: u.field,
|
|
621
|
+
"onUpdate:value": (s) => u.field = s,
|
|
625
622
|
"show-search": "",
|
|
626
623
|
"tree-node-filter-prop": "title",
|
|
627
624
|
"allow-clear": "",
|
|
628
625
|
"tree-default-expand-all": "",
|
|
629
626
|
"dropdown-style": { maxHeight: "180px", overflow: "auto" },
|
|
630
|
-
|
|
627
|
+
listHeight: 160,
|
|
628
|
+
onChange: (s) => e.handleChangeField(u),
|
|
631
629
|
"tree-data": e.fieldTreeData
|
|
632
630
|
}, null, 8, ["value", "onUpdate:value", "onChange", "tree-data"])
|
|
633
631
|
]),
|
|
@@ -641,8 +639,8 @@ function ut(f, u, v, e, I, le) {
|
|
|
641
639
|
o(q, {
|
|
642
640
|
style: { width: "100%" },
|
|
643
641
|
placeholder: "请选择匹配规则",
|
|
644
|
-
value:
|
|
645
|
-
"onUpdate:value": (
|
|
642
|
+
value: u.rule,
|
|
643
|
+
"onUpdate:value": (s) => u.rule = s
|
|
646
644
|
}, {
|
|
647
645
|
default: n(() => [
|
|
648
646
|
o(p, { value: "eq" }, {
|
|
@@ -716,12 +714,12 @@ function ut(f, u, v, e, I, le) {
|
|
|
716
714
|
style: { width: "300px" }
|
|
717
715
|
}, {
|
|
718
716
|
default: n(() => [
|
|
719
|
-
o(
|
|
717
|
+
o(M, {
|
|
720
718
|
style: { width: "100%" },
|
|
721
|
-
schema: e.getSchema(
|
|
722
|
-
formModel:
|
|
723
|
-
setFormModel: (
|
|
724
|
-
e.setFormModel(
|
|
719
|
+
schema: e.getSchema(u, b),
|
|
720
|
+
formModel: u,
|
|
721
|
+
setFormModel: (s, D) => {
|
|
722
|
+
e.setFormModel(s, D, u);
|
|
725
723
|
},
|
|
726
724
|
onSubmit: e.handleSubmit
|
|
727
725
|
}, null, 8, ["schema", "formModel", "setFormModel", "onSubmit"])
|
|
@@ -731,7 +729,7 @@ function ut(f, u, v, e, I, le) {
|
|
|
731
729
|
o(S, null, {
|
|
732
730
|
default: n(() => [
|
|
733
731
|
o(E, {
|
|
734
|
-
onClick: (
|
|
732
|
+
onClick: (s) => e.addOne(b),
|
|
735
733
|
style: { "margin-right": "6px" }
|
|
736
734
|
}, {
|
|
737
735
|
default: n(() => [
|
|
@@ -740,7 +738,7 @@ function ut(f, u, v, e, I, le) {
|
|
|
740
738
|
_: 2
|
|
741
739
|
}, 1032, ["onClick"]),
|
|
742
740
|
o(E, {
|
|
743
|
-
onClick: (
|
|
741
|
+
onClick: (s) => e.removeOne(u)
|
|
744
742
|
}, {
|
|
745
743
|
default: n(() => [
|
|
746
744
|
o(X)
|
|
@@ -752,7 +750,7 @@ function ut(f, u, v, e, I, le) {
|
|
|
752
750
|
}, 1024)
|
|
753
751
|
]),
|
|
754
752
|
_: 2
|
|
755
|
-
},
|
|
753
|
+
}, 1032, ["align"]))), 128))
|
|
756
754
|
]),
|
|
757
755
|
_: 1
|
|
758
756
|
}, 8, ["model", "onFinish"]), [
|
|
@@ -764,7 +762,7 @@ function ut(f, u, v, e, I, le) {
|
|
|
764
762
|
]),
|
|
765
763
|
_: 1
|
|
766
764
|
}),
|
|
767
|
-
o(
|
|
765
|
+
o(H, {
|
|
768
766
|
class: re(["j-super-query-history-card", { collapsed: e.historyCollapsed }]),
|
|
769
767
|
bordered: !1
|
|
770
768
|
}, {
|
|
@@ -785,12 +783,12 @@ function ut(f, u, v, e, I, le) {
|
|
|
785
783
|
"show-icon": !0,
|
|
786
784
|
onSelect: e.handleTreeSelect
|
|
787
785
|
}, {
|
|
788
|
-
title: n(({ title:
|
|
786
|
+
title: n(({ title: u }) => [
|
|
789
787
|
g("div", null, [
|
|
790
|
-
g("span", { title:
|
|
788
|
+
g("span", { title: u }, we(u.length > 10 ? u.substring(0, 10) + "..." : u), 9, ot),
|
|
791
789
|
g("span", nt, [
|
|
792
790
|
o(K, {
|
|
793
|
-
onClick: (b) => e.handleRemoveSaveInfo(
|
|
791
|
+
onClick: (b) => e.handleRemoveSaveInfo(u)
|
|
794
792
|
}, null, 8, ["onClick"])
|
|
795
793
|
])
|
|
796
794
|
])
|
|
@@ -802,7 +800,7 @@ function ut(f, u, v, e, I, le) {
|
|
|
802
800
|
}, 8, ["treeData", "onSelect"])),
|
|
803
801
|
g("div", {
|
|
804
802
|
class: "collapse-box",
|
|
805
|
-
onClick:
|
|
803
|
+
onClick: i[3] || (i[3] = (u) => e.historyCollapsed = !e.historyCollapsed)
|
|
806
804
|
}, [
|
|
807
805
|
e.historyCollapsed ? (k(), B(P, {
|
|
808
806
|
key: 0,
|
|
@@ -821,25 +819,25 @@ function ut(f, u, v, e, I, le) {
|
|
|
821
819
|
])),
|
|
822
820
|
o(te, {
|
|
823
821
|
title: "请输入保存的名称",
|
|
824
|
-
|
|
825
|
-
onCancel:
|
|
822
|
+
open: e.saveInfo.visible,
|
|
823
|
+
onCancel: i[5] || (i[5] = (u) => e.saveInfo.visible = !1),
|
|
826
824
|
onOk: e.doSaveQueryInfo
|
|
827
825
|
}, {
|
|
828
826
|
default: n(() => [
|
|
829
827
|
g("div", at, [
|
|
830
828
|
o(ee, {
|
|
831
829
|
value: e.saveInfo.title,
|
|
832
|
-
"onUpdate:value":
|
|
830
|
+
"onUpdate:value": i[4] || (i[4] = (u) => e.saveInfo.title = u),
|
|
833
831
|
style: { width: "90%" },
|
|
834
832
|
placeholder: "请输入保存的名称"
|
|
835
833
|
}, null, 8, ["value"])
|
|
836
834
|
])
|
|
837
835
|
]),
|
|
838
836
|
_: 1
|
|
839
|
-
}, 8, ["
|
|
837
|
+
}, 8, ["open", "onOk"])
|
|
840
838
|
], 64);
|
|
841
839
|
}
|
|
842
|
-
const
|
|
840
|
+
const Kt = /* @__PURE__ */ Ke(Ge, [["render", ut], ["__scopeId", "data-v-bc498f51"]]);
|
|
843
841
|
export {
|
|
844
|
-
|
|
842
|
+
Kt as default
|
|
845
843
|
};
|