st-comp 0.0.111 → 0.0.112
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/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +323 -322
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-a506dbba.js → index-a301a9d6.js} +5 -4
- package/lib/{python-f575acc3.js → python-ce6bece2.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/components/CommonIndicator/index.vue +5 -3
package/es/VarietySearch.js
CHANGED
|
@@ -62,38 +62,38 @@ const xt = me({
|
|
|
62
62
|
...Ot,
|
|
63
63
|
props: xt,
|
|
64
64
|
setup(r, { expose: c }) {
|
|
65
|
-
const n = r,
|
|
66
|
-
var e, q, R, F,
|
|
65
|
+
const n = r, u = Me("badge"), p = B(() => n.isDot ? "" : ee(n.value) && ee(n.max) ? n.max < n.value ? `${n.max}+` : `${n.value}` : `${n.value}`), x = B(() => {
|
|
66
|
+
var e, q, R, F, y;
|
|
67
67
|
return [
|
|
68
68
|
{
|
|
69
69
|
backgroundColor: n.color,
|
|
70
70
|
marginRight: Oe(-((q = (e = n.offset) == null ? void 0 : e[0]) != null ? q : 0)),
|
|
71
71
|
marginTop: Oe((F = (R = n.offset) == null ? void 0 : R[1]) != null ? F : 0)
|
|
72
72
|
},
|
|
73
|
-
(
|
|
73
|
+
(y = n.badgeStyle) != null ? y : {}
|
|
74
74
|
];
|
|
75
75
|
});
|
|
76
76
|
return c({
|
|
77
77
|
content: p
|
|
78
78
|
}), (e, q) => (o(), b("div", {
|
|
79
|
-
class: J(V(
|
|
79
|
+
class: J(V(u).b())
|
|
80
80
|
}, [
|
|
81
81
|
ae(e.$slots, "default"),
|
|
82
82
|
s(De, {
|
|
83
|
-
name: `${V(
|
|
83
|
+
name: `${V(u).namespace.value}-zoom-in-center`,
|
|
84
84
|
persisted: ""
|
|
85
85
|
}, {
|
|
86
86
|
default: f(() => [
|
|
87
87
|
Re(k("sup", {
|
|
88
88
|
class: J([
|
|
89
|
-
V(
|
|
90
|
-
V(
|
|
91
|
-
V(
|
|
92
|
-
V(
|
|
93
|
-
V(
|
|
89
|
+
V(u).e("content"),
|
|
90
|
+
V(u).em("content", e.type),
|
|
91
|
+
V(u).is("fixed", !!e.$slots.default),
|
|
92
|
+
V(u).is("dot", e.isDot),
|
|
93
|
+
V(u).is("hide-zero", !e.showZero && n.value === 0),
|
|
94
94
|
e.badgeClass
|
|
95
95
|
]),
|
|
96
|
-
style: be(V(
|
|
96
|
+
style: be(V(x))
|
|
97
97
|
}, [
|
|
98
98
|
ae(e.$slots, "content", { value: V(p) }, () => [
|
|
99
99
|
z(Y(V(p)), 1)
|
|
@@ -133,31 +133,31 @@ const It = Ue($t), wt = me({
|
|
|
133
133
|
...Tt,
|
|
134
134
|
props: wt,
|
|
135
135
|
setup(r) {
|
|
136
|
-
const c = r, n = H(),
|
|
136
|
+
const c = r, n = H(), u = mt(), p = Me("text"), x = B(() => [
|
|
137
137
|
p.b(),
|
|
138
138
|
p.m(c.type),
|
|
139
|
-
p.m(
|
|
139
|
+
p.m(u.value),
|
|
140
140
|
p.is("truncated", c.truncated),
|
|
141
141
|
p.is("line-clamp", !Ve(c.lineClamp))
|
|
142
142
|
]), e = st().title, q = () => {
|
|
143
|
-
var R, F,
|
|
143
|
+
var R, F, y, d, E;
|
|
144
144
|
if (e)
|
|
145
145
|
return;
|
|
146
146
|
let v = !1;
|
|
147
147
|
const l = ((R = n.value) == null ? void 0 : R.textContent) || "";
|
|
148
148
|
if (c.truncated) {
|
|
149
|
-
const
|
|
150
|
-
|
|
149
|
+
const i = (F = n.value) == null ? void 0 : F.offsetWidth, _ = (y = n.value) == null ? void 0 : y.scrollWidth;
|
|
150
|
+
i && _ && _ > i && (v = !0);
|
|
151
151
|
} else if (!Ve(c.lineClamp)) {
|
|
152
|
-
const
|
|
153
|
-
|
|
152
|
+
const i = (d = n.value) == null ? void 0 : d.offsetHeight, _ = (E = n.value) == null ? void 0 : E.scrollHeight;
|
|
153
|
+
i && _ && _ > i && (v = !0);
|
|
154
154
|
}
|
|
155
155
|
v ? n.value.setAttribute("title", l) : n.value.removeAttribute("title");
|
|
156
156
|
};
|
|
157
157
|
return Fe(q), rt(q), (R, F) => (o(), M(ze(R.tag), {
|
|
158
158
|
ref_key: "textRef",
|
|
159
159
|
ref: n,
|
|
160
|
-
class: J(V(
|
|
160
|
+
class: J(V(x)),
|
|
161
161
|
style: be({ "-webkit-line-clamp": R.lineClamp })
|
|
162
162
|
}, {
|
|
163
163
|
default: f(() => [
|
|
@@ -255,28 +255,28 @@ const Mt = Ue(St), He = ["success", "info", "warning", "error"], P = kt({
|
|
|
255
255
|
destroy: () => !0
|
|
256
256
|
}, G = ut([]), qt = (r) => {
|
|
257
257
|
const c = G.findIndex((p) => p.id === r), n = G[c];
|
|
258
|
-
let
|
|
259
|
-
return c > 0 && (
|
|
258
|
+
let u;
|
|
259
|
+
return c > 0 && (u = G[c - 1]), { current: n, prev: u };
|
|
260
260
|
}, Dt = (r) => {
|
|
261
261
|
const { prev: c } = qt(r);
|
|
262
262
|
return c ? c.vm.exposed.bottom.value : 0;
|
|
263
|
-
}, Rt = (r, c) => G.findIndex((
|
|
263
|
+
}, Rt = (r, c) => G.findIndex((u) => u.id === r) > 0 ? 16 : c, Lt = X({
|
|
264
264
|
name: "ElMessage"
|
|
265
265
|
}), Ft = /* @__PURE__ */ X({
|
|
266
266
|
...Lt,
|
|
267
267
|
props: Ut,
|
|
268
268
|
emits: Et,
|
|
269
269
|
setup(r, { expose: c }) {
|
|
270
|
-
const n = r, { Close:
|
|
270
|
+
const n = r, { Close: u } = gt, { ns: p, zIndex: x } = _t("message"), { currentZIndex: e, nextZIndex: q } = x, R = H(), F = H(!1), y = H(0);
|
|
271
271
|
let d;
|
|
272
272
|
const E = B(() => n.type ? n.type === "error" ? "danger" : n.type : "info"), v = B(() => {
|
|
273
|
-
const
|
|
274
|
-
return { [p.bm("icon",
|
|
275
|
-
}), l = B(() => n.icon || Te[n.type] || ""),
|
|
276
|
-
top: `${
|
|
273
|
+
const h = n.type;
|
|
274
|
+
return { [p.bm("icon", h)]: h && Te[h] };
|
|
275
|
+
}), l = B(() => n.icon || Te[n.type] || ""), i = B(() => Dt(n.id)), _ = B(() => Rt(n.id, n.offset) + i.value), m = B(() => y.value + _.value), g = B(() => ({
|
|
276
|
+
top: `${_.value}px`,
|
|
277
277
|
zIndex: e.value
|
|
278
278
|
}));
|
|
279
|
-
function
|
|
279
|
+
function I() {
|
|
280
280
|
n.duration !== 0 && ({ stop: d } = Je(() => {
|
|
281
281
|
a();
|
|
282
282
|
}, n.duration));
|
|
@@ -287,46 +287,46 @@ const Mt = Ue(St), He = ["success", "info", "warning", "error"], P = kt({
|
|
|
287
287
|
function a() {
|
|
288
288
|
F.value = !1;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
|
|
290
|
+
function w({ code: h }) {
|
|
291
|
+
h === ht.esc && a();
|
|
292
292
|
}
|
|
293
293
|
return Fe(() => {
|
|
294
|
-
|
|
294
|
+
I(), q(), F.value = !0;
|
|
295
295
|
}), oe(() => n.repeatNum, () => {
|
|
296
|
-
T(),
|
|
297
|
-
}), ct(document, "keydown",
|
|
298
|
-
|
|
296
|
+
T(), I();
|
|
297
|
+
}), ct(document, "keydown", w), dt(R, () => {
|
|
298
|
+
y.value = R.value.getBoundingClientRect().height;
|
|
299
299
|
}), c({
|
|
300
300
|
visible: F,
|
|
301
301
|
bottom: m,
|
|
302
302
|
close: a
|
|
303
|
-
}), (
|
|
303
|
+
}), (h, S) => (o(), M(De, {
|
|
304
304
|
name: V(p).b("fade"),
|
|
305
|
-
onBeforeLeave:
|
|
306
|
-
onAfterLeave: (t) =>
|
|
305
|
+
onBeforeLeave: h.onClose,
|
|
306
|
+
onAfterLeave: (t) => h.$emit("destroy"),
|
|
307
307
|
persisted: ""
|
|
308
308
|
}, {
|
|
309
309
|
default: f(() => [
|
|
310
310
|
Re(k("div", {
|
|
311
|
-
id:
|
|
311
|
+
id: h.id,
|
|
312
312
|
ref_key: "messageRef",
|
|
313
313
|
ref: R,
|
|
314
314
|
class: J([
|
|
315
315
|
V(p).b(),
|
|
316
|
-
{ [V(p).m(
|
|
317
|
-
V(p).is("center",
|
|
318
|
-
V(p).is("closable",
|
|
319
|
-
V(p).is("plain",
|
|
320
|
-
|
|
316
|
+
{ [V(p).m(h.type)]: h.type },
|
|
317
|
+
V(p).is("center", h.center),
|
|
318
|
+
V(p).is("closable", h.showClose),
|
|
319
|
+
V(p).is("plain", h.plain),
|
|
320
|
+
h.customClass
|
|
321
321
|
]),
|
|
322
|
-
style: be(V(
|
|
322
|
+
style: be(V(g)),
|
|
323
323
|
role: "alert",
|
|
324
324
|
onMouseenter: T,
|
|
325
|
-
onMouseleave:
|
|
325
|
+
onMouseleave: I
|
|
326
326
|
}, [
|
|
327
|
-
|
|
327
|
+
h.repeatNum > 1 ? (o(), M(V(It), {
|
|
328
328
|
key: 0,
|
|
329
|
-
value:
|
|
329
|
+
value: h.repeatNum,
|
|
330
330
|
type: V(E),
|
|
331
331
|
class: J(V(p).e("badge"))
|
|
332
332
|
}, null, 8, ["value", "type", "class"])) : D("v-if", !0),
|
|
@@ -339,25 +339,25 @@ const Mt = Ue(St), He = ["success", "info", "warning", "error"], P = kt({
|
|
|
339
339
|
]),
|
|
340
340
|
_: 1
|
|
341
341
|
}, 8, ["class"])) : D("v-if", !0),
|
|
342
|
-
ae(
|
|
343
|
-
|
|
342
|
+
ae(h.$slots, "default", {}, () => [
|
|
343
|
+
h.dangerouslyUseHTMLString ? (o(), b(U, { key: 1 }, [
|
|
344
344
|
D(" Caution here, message could've been compromised, never use user's input as message "),
|
|
345
345
|
k("p", {
|
|
346
346
|
class: J(V(p).e("content")),
|
|
347
|
-
innerHTML:
|
|
347
|
+
innerHTML: h.message
|
|
348
348
|
}, null, 10, ["innerHTML"])
|
|
349
349
|
], 2112)) : (o(), b("p", {
|
|
350
350
|
key: 0,
|
|
351
351
|
class: J(V(p).e("content"))
|
|
352
|
-
}, Y(
|
|
352
|
+
}, Y(h.message), 3))
|
|
353
353
|
]),
|
|
354
|
-
|
|
354
|
+
h.showClose ? (o(), M(V(fe), {
|
|
355
355
|
key: 2,
|
|
356
356
|
class: J(V(p).e("closeBtn")),
|
|
357
357
|
onClick: it(a, ["stop"])
|
|
358
358
|
}, {
|
|
359
359
|
default: f(() => [
|
|
360
|
-
s(V(
|
|
360
|
+
s(V(u))
|
|
361
361
|
]),
|
|
362
362
|
_: 1
|
|
363
363
|
}, 8, ["class", "onClick"])) : D("v-if", !0)
|
|
@@ -379,8 +379,8 @@ const Ge = (r) => {
|
|
|
379
379
|
if (!n.appendTo)
|
|
380
380
|
n.appendTo = document.body;
|
|
381
381
|
else if ($e(n.appendTo)) {
|
|
382
|
-
let
|
|
383
|
-
We(
|
|
382
|
+
let u = document.querySelector(n.appendTo);
|
|
383
|
+
We(u) || (Ze("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body."), u = document.body), n.appendTo = u;
|
|
384
384
|
}
|
|
385
385
|
return Ie(Q.grouping) && !n.grouping && (n.grouping = Q.grouping), ee(Q.duration) && n.duration === 3e3 && (n.duration = Q.duration), ee(Q.offset) && n.offset === 16 && (n.offset = Q.offset), Ie(Q.showClose) && !n.showClose && (n.showClose = Q.showClose), n;
|
|
386
386
|
}, Pt = (r) => {
|
|
@@ -391,21 +391,21 @@ const Ge = (r) => {
|
|
|
391
391
|
const { handler: n } = r;
|
|
392
392
|
n.close();
|
|
393
393
|
}, Bt = ({ appendTo: r, ...c }, n) => {
|
|
394
|
-
const
|
|
394
|
+
const u = `message_${Nt++}`, p = c.onClose, x = document.createElement("div"), e = {
|
|
395
395
|
...c,
|
|
396
|
-
id:
|
|
396
|
+
id: u,
|
|
397
397
|
onClose: () => {
|
|
398
|
-
p == null || p(), Pt(
|
|
398
|
+
p == null || p(), Pt(y);
|
|
399
399
|
},
|
|
400
400
|
onDestroy: () => {
|
|
401
|
-
we(null,
|
|
401
|
+
we(null, x);
|
|
402
402
|
}
|
|
403
403
|
}, q = s(zt, e, pe(e.message) || Ne(e.message) ? {
|
|
404
404
|
default: pe(e.message) ? e.message : () => e.message
|
|
405
405
|
} : null);
|
|
406
|
-
q.appContext = n || K._context, we(q,
|
|
407
|
-
const R = q.component,
|
|
408
|
-
id:
|
|
406
|
+
q.appContext = n || K._context, we(q, x), r.appendChild(x.firstElementChild);
|
|
407
|
+
const R = q.component, y = {
|
|
408
|
+
id: u,
|
|
409
409
|
vnode: q,
|
|
410
410
|
vm: R,
|
|
411
411
|
handler: {
|
|
@@ -415,16 +415,16 @@ const Ge = (r) => {
|
|
|
415
415
|
},
|
|
416
416
|
props: q.component.props
|
|
417
417
|
};
|
|
418
|
-
return
|
|
418
|
+
return y;
|
|
419
419
|
}, K = (r = {}, c) => {
|
|
420
420
|
if (!Ee)
|
|
421
421
|
return { close: () => {
|
|
422
422
|
} };
|
|
423
423
|
const n = Ge(r);
|
|
424
424
|
if (n.grouping && G.length) {
|
|
425
|
-
const p = G.find(({ vnode:
|
|
425
|
+
const p = G.find(({ vnode: x }) => {
|
|
426
426
|
var e;
|
|
427
|
-
return ((e =
|
|
427
|
+
return ((e = x.props) == null ? void 0 : e.message) === n.message;
|
|
428
428
|
});
|
|
429
429
|
if (p)
|
|
430
430
|
return p.props.repeatNum += 1, p.props.type = n.type, p.handler;
|
|
@@ -432,13 +432,13 @@ const Ge = (r) => {
|
|
|
432
432
|
if (ee(Q.max) && G.length >= Q.max)
|
|
433
433
|
return { close: () => {
|
|
434
434
|
} };
|
|
435
|
-
const
|
|
436
|
-
return G.push(
|
|
435
|
+
const u = Bt(n, c);
|
|
436
|
+
return G.push(u), u.handler;
|
|
437
437
|
};
|
|
438
438
|
He.forEach((r) => {
|
|
439
439
|
K[r] = (c = {}, n) => {
|
|
440
|
-
const
|
|
441
|
-
return K({ ...
|
|
440
|
+
const u = Ge(c);
|
|
441
|
+
return K({ ...u, type: r }, n);
|
|
442
442
|
};
|
|
443
443
|
});
|
|
444
444
|
function jt(r) {
|
|
@@ -990,18 +990,18 @@ const At = (r, c, n) => {
|
|
|
990
990
|
emits: ["update:visible"],
|
|
991
991
|
setup(r) {
|
|
992
992
|
const c = re(r, "visible");
|
|
993
|
-
return (n,
|
|
994
|
-
const p = lt,
|
|
993
|
+
return (n, u) => {
|
|
994
|
+
const p = lt, x = nt, e = he;
|
|
995
995
|
return o(), M(e, {
|
|
996
996
|
modelValue: c.value,
|
|
997
|
-
"onUpdate:modelValue":
|
|
997
|
+
"onUpdate:modelValue": u[0] || (u[0] = (q) => c.value = q),
|
|
998
998
|
title: "因子使用说明",
|
|
999
999
|
width: "1000",
|
|
1000
1000
|
"align-center": "",
|
|
1001
1001
|
"destroy-on-close": ""
|
|
1002
1002
|
}, {
|
|
1003
1003
|
default: f(() => [
|
|
1004
|
-
s(
|
|
1004
|
+
s(x, {
|
|
1005
1005
|
data: r.data,
|
|
1006
1006
|
border: "",
|
|
1007
1007
|
height: "500"
|
|
@@ -1061,7 +1061,7 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1061
1061
|
}),
|
|
1062
1062
|
emits: ["update:data"],
|
|
1063
1063
|
setup(r) {
|
|
1064
|
-
const c = r, n = re(r, "data"),
|
|
1064
|
+
const c = r, n = re(r, "data"), u = H(!1), p = H(!1), x = H(null), e = H({
|
|
1065
1065
|
// 筛选因子列表
|
|
1066
1066
|
list: [
|
|
1067
1067
|
{
|
|
@@ -1078,33 +1078,33 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1078
1078
|
// SQL语句
|
|
1079
1079
|
sqlValue: null
|
|
1080
1080
|
}), q = () => {
|
|
1081
|
-
const { list: l, sqlEnable:
|
|
1081
|
+
const { list: l, sqlEnable: i, sqlValue: _ } = n.value;
|
|
1082
1082
|
e.value = {
|
|
1083
1083
|
list: JSON.parse(JSON.stringify(l)),
|
|
1084
|
-
sqlEnable:
|
|
1085
|
-
sqlValue:
|
|
1086
|
-
}, e.value.list.length ||
|
|
1084
|
+
sqlEnable: i,
|
|
1085
|
+
sqlValue: _
|
|
1086
|
+
}, e.value.list.length || y(), u.value = !0;
|
|
1087
1087
|
}, R = () => {
|
|
1088
|
-
|
|
1089
|
-
const { list:
|
|
1088
|
+
x.value.validate((l) => {
|
|
1089
|
+
const { list: i, sqlEnable: _, sqlValue: m } = e.value;
|
|
1090
1090
|
if (l) {
|
|
1091
|
-
if (
|
|
1091
|
+
if (_) {
|
|
1092
1092
|
if (!m)
|
|
1093
1093
|
return W.error("SQL语句不能为空");
|
|
1094
|
-
const
|
|
1094
|
+
const g = Se(m), I = i.map((a, w) => `条件${w + 1}`), T = g.filter((a) => !I.includes(a));
|
|
1095
1095
|
if (T.length)
|
|
1096
1096
|
return W.error(`请检查SQL语句, 不存在[${T}]`);
|
|
1097
1097
|
}
|
|
1098
1098
|
n.value = {
|
|
1099
|
-
list: JSON.parse(JSON.stringify(
|
|
1100
|
-
sqlEnable:
|
|
1099
|
+
list: JSON.parse(JSON.stringify(i)),
|
|
1100
|
+
sqlEnable: _,
|
|
1101
1101
|
sqlValue: m
|
|
1102
|
-
},
|
|
1102
|
+
}, u.value = !1;
|
|
1103
1103
|
}
|
|
1104
1104
|
});
|
|
1105
1105
|
}, F = (l) => {
|
|
1106
1106
|
e.value.list.splice(l, 1);
|
|
1107
|
-
},
|
|
1107
|
+
}, y = (l) => {
|
|
1108
1108
|
switch (l) {
|
|
1109
1109
|
case "compare": {
|
|
1110
1110
|
e.value.list.push({
|
|
@@ -1127,28 +1127,28 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
1129
|
}, d = () => {
|
|
1130
|
-
|
|
1130
|
+
x.value.validate((l) => {
|
|
1131
1131
|
if (l)
|
|
1132
1132
|
if (e.value.sqlValue) {
|
|
1133
|
-
const
|
|
1134
|
-
e.value.sqlValue = e.value.list.reduce((
|
|
1133
|
+
const i = Se(e.value.sqlValue);
|
|
1134
|
+
e.value.sqlValue = e.value.list.reduce((_, m, g) => (i.includes(`条件${g + 1}`) || (_ += `&& 条件${g + 1} `), _), e.value.sqlValue);
|
|
1135
1135
|
} else
|
|
1136
|
-
e.value.sqlValue = e.value.list.reduce((
|
|
1136
|
+
e.value.sqlValue = e.value.list.reduce((i, _, m) => (m === 0 ? i += `条件${m + 1} ` : i += `&& 条件${m + 1} `, i), "");
|
|
1137
1137
|
});
|
|
1138
1138
|
}, E = (l) => {
|
|
1139
1139
|
switch (l.key) {
|
|
1140
1140
|
case "compare": {
|
|
1141
|
-
const { cycle:
|
|
1141
|
+
const { cycle: i, factor: _, compareType: m, cycle2: g, factor2: I } = l;
|
|
1142
1142
|
let T = "";
|
|
1143
|
-
return T += ` ${c.config.cycleOptions.find(({ value: a }) => a ===
|
|
1143
|
+
return T += ` ${c.config.cycleOptions.find(({ value: a }) => a === i).label}`, T += ` ${c.config.factorOptions.find(({ value: a }) => a === _).label}`, T += ` ${m}`, T += ` ${c.config.cycleOptions.find(({ value: a }) => a === g).label}`, T += ` ${c.config.factorOptions.find(({ value: a }) => a === I).label}`, T;
|
|
1144
1144
|
}
|
|
1145
1145
|
default: {
|
|
1146
|
-
const { cycle:
|
|
1147
|
-
let
|
|
1148
|
-
return
|
|
1146
|
+
const { cycle: i, factor: _, score: m } = l;
|
|
1147
|
+
let g = "";
|
|
1148
|
+
return g += ` ${c.config.cycleOptions.find(({ value: I }) => I === i).label}`, g += ` ${c.config.factorOptions.find(({ value: I }) => I === _).label}`, g += ` ${m[0] || m[0] === 0 ? `${m[0]}分` : "∞"}`, g += " ~", g += ` ${m[1] || m[1] === 0 ? `${m[1]}分` : "∞"}`, g;
|
|
1149
1149
|
}
|
|
1150
1150
|
}
|
|
1151
|
-
}, v = (l,
|
|
1151
|
+
}, v = (l, i) => {
|
|
1152
1152
|
switch (l) {
|
|
1153
1153
|
case "sqlTag": {
|
|
1154
1154
|
n.value = {
|
|
@@ -1159,13 +1159,13 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1159
1159
|
break;
|
|
1160
1160
|
}
|
|
1161
1161
|
case "factorTag": {
|
|
1162
|
-
n.value.list.splice(
|
|
1162
|
+
n.value.list.splice(i, 1);
|
|
1163
1163
|
break;
|
|
1164
1164
|
}
|
|
1165
1165
|
}
|
|
1166
1166
|
};
|
|
1167
|
-
return (l,
|
|
1168
|
-
const
|
|
1167
|
+
return (l, i) => {
|
|
1168
|
+
const _ = Mt, m = Be, g = Ye, I = fe, T = pt, a = je, w = Ae, h = Xe, S = qe, t = ge, L = ye, Z = Pe, ie = et, le = he;
|
|
1169
1169
|
return o(), b(U, null, [
|
|
1170
1170
|
k("div", Ht, [
|
|
1171
1171
|
k("div", null, [
|
|
@@ -1174,10 +1174,10 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1174
1174
|
closable: "",
|
|
1175
1175
|
type: "info",
|
|
1176
1176
|
title: n.value.sqlValue,
|
|
1177
|
-
onClose:
|
|
1177
|
+
onClose: i[0] || (i[0] = ($) => v("sqlTag"))
|
|
1178
1178
|
}, {
|
|
1179
1179
|
default: f(() => [
|
|
1180
|
-
s(
|
|
1180
|
+
s(_, {
|
|
1181
1181
|
type: "info",
|
|
1182
1182
|
truncated: "",
|
|
1183
1183
|
style: { "max-width": "500px" }
|
|
@@ -1193,14 +1193,14 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1193
1193
|
!n.value.sqlEnable && n.value.list.length ? (o(!0), b(U, { key: 1 }, N(n.value.list, ($, j) => (o(), M(m, {
|
|
1194
1194
|
closable: "",
|
|
1195
1195
|
type: "info",
|
|
1196
|
-
onClose: (
|
|
1196
|
+
onClose: (O) => v("factorTag", j)
|
|
1197
1197
|
}, {
|
|
1198
1198
|
default: f(() => [
|
|
1199
1199
|
z(Y(E($)), 1)
|
|
1200
1200
|
]),
|
|
1201
1201
|
_: 2
|
|
1202
1202
|
}, 1032, ["onClose"]))), 256)) : D("", !0),
|
|
1203
|
-
s(
|
|
1203
|
+
s(g, {
|
|
1204
1204
|
class: "screen-btn",
|
|
1205
1205
|
type: "primary",
|
|
1206
1206
|
plain: "",
|
|
@@ -1215,8 +1215,8 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1215
1215
|
}, 8, ["icon"])
|
|
1216
1216
|
]),
|
|
1217
1217
|
s(le, {
|
|
1218
|
-
modelValue:
|
|
1219
|
-
"onUpdate:modelValue":
|
|
1218
|
+
modelValue: u.value,
|
|
1219
|
+
"onUpdate:modelValue": i[5] || (i[5] = ($) => u.value = $),
|
|
1220
1220
|
width: "602",
|
|
1221
1221
|
"align-center": "",
|
|
1222
1222
|
"destroy-on-close": ""
|
|
@@ -1233,8 +1233,8 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1233
1233
|
placement: "right"
|
|
1234
1234
|
}, {
|
|
1235
1235
|
default: f(() => [
|
|
1236
|
-
s(
|
|
1237
|
-
onClick:
|
|
1236
|
+
s(I, {
|
|
1237
|
+
onClick: i[1] || (i[1] = (O) => p.value = !0)
|
|
1238
1238
|
}, {
|
|
1239
1239
|
default: f(() => [
|
|
1240
1240
|
s(V(yt))
|
|
@@ -1248,7 +1248,7 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1248
1248
|
]),
|
|
1249
1249
|
footer: f(() => [
|
|
1250
1250
|
k("div", el, [
|
|
1251
|
-
s(
|
|
1251
|
+
s(g, {
|
|
1252
1252
|
type: "primary",
|
|
1253
1253
|
onClick: R
|
|
1254
1254
|
}, {
|
|
@@ -1262,29 +1262,29 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1262
1262
|
default: f(() => [
|
|
1263
1263
|
s(ie, {
|
|
1264
1264
|
ref_key: "dialogFormRef",
|
|
1265
|
-
ref:
|
|
1265
|
+
ref: x,
|
|
1266
1266
|
model: e.value
|
|
1267
1267
|
}, {
|
|
1268
1268
|
default: f(() => [
|
|
1269
1269
|
(o(!0), b(U, null, N(e.value.list, ($, j) => (o(), b("div", Jt, [
|
|
1270
1270
|
k("span", Wt, Y(`条件${j + 1}`), 1),
|
|
1271
1271
|
$.key === "compare" ? (o(), b(U, { key: 0 }, [
|
|
1272
|
-
r.config.cycleShow ? (o(), M(
|
|
1272
|
+
r.config.cycleShow ? (o(), M(h, {
|
|
1273
1273
|
key: 0,
|
|
1274
1274
|
prop: "list." + j + ".cycle",
|
|
1275
1275
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
1276
1276
|
style: { width: "100px", "margin-right": "10px" }
|
|
1277
1277
|
}, {
|
|
1278
1278
|
default: f(() => [
|
|
1279
|
-
s(
|
|
1279
|
+
s(w, {
|
|
1280
1280
|
modelValue: $.cycle,
|
|
1281
|
-
"onUpdate:modelValue": (
|
|
1281
|
+
"onUpdate:modelValue": (O) => $.cycle = O,
|
|
1282
1282
|
placeholder: "选择周期",
|
|
1283
1283
|
size: "small"
|
|
1284
1284
|
}, {
|
|
1285
1285
|
default: f(() => [
|
|
1286
|
-
(o(!0), b(U, null, N(r.config.cycleOptions, ({ label:
|
|
1287
|
-
label:
|
|
1286
|
+
(o(!0), b(U, null, N(r.config.cycleOptions, ({ label: O, value: C }) => (o(), M(a, {
|
|
1287
|
+
label: O,
|
|
1288
1288
|
value: C,
|
|
1289
1289
|
key: C
|
|
1290
1290
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -1294,23 +1294,23 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1294
1294
|
]),
|
|
1295
1295
|
_: 2
|
|
1296
1296
|
}, 1032, ["prop"])) : D("", !0),
|
|
1297
|
-
s(
|
|
1297
|
+
s(h, {
|
|
1298
1298
|
prop: "list." + j + ".factor",
|
|
1299
1299
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
1300
1300
|
style: { width: "100px", "margin-right": "10px" }
|
|
1301
1301
|
}, {
|
|
1302
1302
|
default: f(() => [
|
|
1303
|
-
s(
|
|
1303
|
+
s(w, {
|
|
1304
1304
|
modelValue: $.factor,
|
|
1305
|
-
"onUpdate:modelValue": (
|
|
1305
|
+
"onUpdate:modelValue": (O) => $.factor = O,
|
|
1306
1306
|
placeholder: "选择因子",
|
|
1307
1307
|
filterable: "",
|
|
1308
1308
|
size: "small",
|
|
1309
1309
|
"no-match-text": "无匹配数据"
|
|
1310
1310
|
}, {
|
|
1311
1311
|
default: f(() => [
|
|
1312
|
-
(o(!0), b(U, null, N(r.config.factorOptions, ({ label:
|
|
1313
|
-
label:
|
|
1312
|
+
(o(!0), b(U, null, N(r.config.factorOptions, ({ label: O, value: C }) => (o(), M(a, {
|
|
1313
|
+
label: O,
|
|
1314
1314
|
value: C,
|
|
1315
1315
|
key: C
|
|
1316
1316
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -1320,18 +1320,18 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1320
1320
|
]),
|
|
1321
1321
|
_: 2
|
|
1322
1322
|
}, 1032, ["prop"]),
|
|
1323
|
-
s(
|
|
1323
|
+
s(h, { style: { width: "52px", "margin-right": "10px" } }, {
|
|
1324
1324
|
default: f(() => [
|
|
1325
|
-
s(
|
|
1325
|
+
s(w, {
|
|
1326
1326
|
modelValue: $.compareType,
|
|
1327
|
-
"onUpdate:modelValue": (
|
|
1327
|
+
"onUpdate:modelValue": (O) => $.compareType = O,
|
|
1328
1328
|
size: "small"
|
|
1329
1329
|
}, {
|
|
1330
1330
|
default: f(() => [
|
|
1331
|
-
(o(), b(U, null, N([">", ">=", "<", "<="], (
|
|
1332
|
-
label:
|
|
1333
|
-
value:
|
|
1334
|
-
key:
|
|
1331
|
+
(o(), b(U, null, N([">", ">=", "<", "<="], (O) => s(a, {
|
|
1332
|
+
label: O,
|
|
1333
|
+
value: O,
|
|
1334
|
+
key: O
|
|
1335
1335
|
}, null, 8, ["label", "value"])), 64))
|
|
1336
1336
|
]),
|
|
1337
1337
|
_: 2
|
|
@@ -1339,22 +1339,22 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1339
1339
|
]),
|
|
1340
1340
|
_: 2
|
|
1341
1341
|
}, 1024),
|
|
1342
|
-
r.config.cycleShow ? (o(), M(
|
|
1342
|
+
r.config.cycleShow ? (o(), M(h, {
|
|
1343
1343
|
key: 1,
|
|
1344
1344
|
prop: "list." + j + ".cycle2",
|
|
1345
1345
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
1346
1346
|
style: { width: "100px", "margin-right": "10px" }
|
|
1347
1347
|
}, {
|
|
1348
1348
|
default: f(() => [
|
|
1349
|
-
s(
|
|
1349
|
+
s(w, {
|
|
1350
1350
|
modelValue: $.cycle2,
|
|
1351
|
-
"onUpdate:modelValue": (
|
|
1351
|
+
"onUpdate:modelValue": (O) => $.cycle2 = O,
|
|
1352
1352
|
placeholder: "选择周期",
|
|
1353
1353
|
size: "small"
|
|
1354
1354
|
}, {
|
|
1355
1355
|
default: f(() => [
|
|
1356
|
-
(o(!0), b(U, null, N(r.config.cycleOptions, ({ label:
|
|
1357
|
-
label:
|
|
1356
|
+
(o(!0), b(U, null, N(r.config.cycleOptions, ({ label: O, value: C }) => (o(), M(a, {
|
|
1357
|
+
label: O,
|
|
1358
1358
|
value: C,
|
|
1359
1359
|
key: C
|
|
1360
1360
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -1364,23 +1364,23 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1364
1364
|
]),
|
|
1365
1365
|
_: 2
|
|
1366
1366
|
}, 1032, ["prop"])) : D("", !0),
|
|
1367
|
-
s(
|
|
1367
|
+
s(h, {
|
|
1368
1368
|
prop: "list." + j + ".factor2",
|
|
1369
1369
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
1370
1370
|
style: { width: "100px", "margin-right": "10px" }
|
|
1371
1371
|
}, {
|
|
1372
1372
|
default: f(() => [
|
|
1373
|
-
s(
|
|
1373
|
+
s(w, {
|
|
1374
1374
|
modelValue: $.factor2,
|
|
1375
|
-
"onUpdate:modelValue": (
|
|
1375
|
+
"onUpdate:modelValue": (O) => $.factor2 = O,
|
|
1376
1376
|
placeholder: "选择因子",
|
|
1377
1377
|
filterable: "",
|
|
1378
1378
|
size: "small",
|
|
1379
1379
|
"no-match-text": "无匹配数据"
|
|
1380
1380
|
}, {
|
|
1381
1381
|
default: f(() => [
|
|
1382
|
-
(o(!0), b(U, null, N(r.config.factorOptions, ({ label:
|
|
1383
|
-
label:
|
|
1382
|
+
(o(!0), b(U, null, N(r.config.factorOptions, ({ label: O, value: C }) => (o(), M(a, {
|
|
1383
|
+
label: O,
|
|
1384
1384
|
value: C,
|
|
1385
1385
|
key: C
|
|
1386
1386
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -1391,22 +1391,22 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1391
1391
|
_: 2
|
|
1392
1392
|
}, 1032, ["prop"])
|
|
1393
1393
|
], 64)) : (o(), b(U, { key: 1 }, [
|
|
1394
|
-
r.config.cycleShow ? (o(), M(
|
|
1394
|
+
r.config.cycleShow ? (o(), M(h, {
|
|
1395
1395
|
key: 0,
|
|
1396
1396
|
prop: "list." + j + ".cycle",
|
|
1397
1397
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
1398
1398
|
style: { width: "100px", "margin-right": "10px" }
|
|
1399
1399
|
}, {
|
|
1400
1400
|
default: f(() => [
|
|
1401
|
-
s(
|
|
1401
|
+
s(w, {
|
|
1402
1402
|
modelValue: $.cycle,
|
|
1403
|
-
"onUpdate:modelValue": (
|
|
1403
|
+
"onUpdate:modelValue": (O) => $.cycle = O,
|
|
1404
1404
|
placeholder: "选择周期",
|
|
1405
1405
|
size: "small"
|
|
1406
1406
|
}, {
|
|
1407
1407
|
default: f(() => [
|
|
1408
|
-
(o(!0), b(U, null, N(r.config.cycleOptions, ({ label:
|
|
1409
|
-
label:
|
|
1408
|
+
(o(!0), b(U, null, N(r.config.cycleOptions, ({ label: O, value: C }) => (o(), M(a, {
|
|
1409
|
+
label: O,
|
|
1410
1410
|
value: C,
|
|
1411
1411
|
key: C
|
|
1412
1412
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -1416,23 +1416,23 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1416
1416
|
]),
|
|
1417
1417
|
_: 2
|
|
1418
1418
|
}, 1032, ["prop"])) : D("", !0),
|
|
1419
|
-
s(
|
|
1419
|
+
s(h, {
|
|
1420
1420
|
prop: "list." + j + ".factor",
|
|
1421
1421
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
1422
1422
|
style: { width: "100px", "margin-right": "10px" }
|
|
1423
1423
|
}, {
|
|
1424
1424
|
default: f(() => [
|
|
1425
|
-
s(
|
|
1425
|
+
s(w, {
|
|
1426
1426
|
modelValue: $.factor,
|
|
1427
|
-
"onUpdate:modelValue": (
|
|
1427
|
+
"onUpdate:modelValue": (O) => $.factor = O,
|
|
1428
1428
|
placeholder: "选择因子",
|
|
1429
1429
|
filterable: "",
|
|
1430
1430
|
size: "small",
|
|
1431
1431
|
"no-match-text": "无匹配数据"
|
|
1432
1432
|
}, {
|
|
1433
1433
|
default: f(() => [
|
|
1434
|
-
(o(!0), b(U, null, N(r.config.factorOptions, ({ label:
|
|
1435
|
-
label:
|
|
1434
|
+
(o(!0), b(U, null, N(r.config.factorOptions, ({ label: O, value: C }) => (o(), M(a, {
|
|
1435
|
+
label: O,
|
|
1436
1436
|
value: C,
|
|
1437
1437
|
key: C
|
|
1438
1438
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -1442,7 +1442,7 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1442
1442
|
]),
|
|
1443
1443
|
_: 2
|
|
1444
1444
|
}, 1032, ["prop"]),
|
|
1445
|
-
s(
|
|
1445
|
+
s(h, {
|
|
1446
1446
|
prop: "list." + j + ".score",
|
|
1447
1447
|
rules: { validator: V(At), trigger: "blur" },
|
|
1448
1448
|
style: { width: "200px", "margin-right": "10px" }
|
|
@@ -1451,14 +1451,14 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1451
1451
|
k("div", Zt, [
|
|
1452
1452
|
s(S, {
|
|
1453
1453
|
modelValue: $.score[0],
|
|
1454
|
-
"onUpdate:modelValue": (
|
|
1454
|
+
"onUpdate:modelValue": (O) => $.score[0] = O,
|
|
1455
1455
|
size: "small",
|
|
1456
1456
|
"controls-position": "right"
|
|
1457
1457
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
1458
1458
|
Kt,
|
|
1459
1459
|
s(S, {
|
|
1460
1460
|
modelValue: $.score[1],
|
|
1461
|
-
"onUpdate:modelValue": (
|
|
1461
|
+
"onUpdate:modelValue": (O) => $.score[1] = O,
|
|
1462
1462
|
size: "small",
|
|
1463
1463
|
"controls-position": "right"
|
|
1464
1464
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1467,8 +1467,8 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1467
1467
|
_: 2
|
|
1468
1468
|
}, 1032, ["prop", "rules"])
|
|
1469
1469
|
], 64)),
|
|
1470
|
-
s(
|
|
1471
|
-
onClick: (
|
|
1470
|
+
s(I, {
|
|
1471
|
+
onClick: (O) => F(j)
|
|
1472
1472
|
}, {
|
|
1473
1473
|
default: f(() => [
|
|
1474
1474
|
s(V(bt))
|
|
@@ -1476,12 +1476,12 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1476
1476
|
_: 2
|
|
1477
1477
|
}, 1032, ["onClick"])
|
|
1478
1478
|
]))), 256)),
|
|
1479
|
-
s(
|
|
1479
|
+
s(g, {
|
|
1480
1480
|
type: "primary",
|
|
1481
1481
|
plain: "",
|
|
1482
1482
|
size: "small",
|
|
1483
1483
|
icon: V(de),
|
|
1484
|
-
onClick:
|
|
1484
|
+
onClick: y,
|
|
1485
1485
|
style: { "margin-bottom": "10px" }
|
|
1486
1486
|
}, {
|
|
1487
1487
|
default: f(() => [
|
|
@@ -1489,12 +1489,12 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1489
1489
|
]),
|
|
1490
1490
|
_: 1
|
|
1491
1491
|
}, 8, ["icon"]),
|
|
1492
|
-
s(
|
|
1492
|
+
s(g, {
|
|
1493
1493
|
type: "primary",
|
|
1494
1494
|
plain: "",
|
|
1495
1495
|
size: "small",
|
|
1496
1496
|
icon: V(de),
|
|
1497
|
-
onClick:
|
|
1497
|
+
onClick: i[2] || (i[2] = ($) => y("compare")),
|
|
1498
1498
|
style: { "margin-bottom": "10px" }
|
|
1499
1499
|
}, {
|
|
1500
1500
|
default: f(() => [
|
|
@@ -1503,11 +1503,11 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1503
1503
|
_: 1
|
|
1504
1504
|
}, 8, ["icon"]),
|
|
1505
1505
|
r.config.sqlShow ? (o(), b(U, { key: 0 }, [
|
|
1506
|
-
s(
|
|
1506
|
+
s(h, { label: "SQL功能: " }, {
|
|
1507
1507
|
default: f(() => [
|
|
1508
1508
|
s(L, {
|
|
1509
1509
|
modelValue: e.value.sqlEnable,
|
|
1510
|
-
"onUpdate:modelValue":
|
|
1510
|
+
"onUpdate:modelValue": i[3] || (i[3] = ($) => e.value.sqlEnable = $)
|
|
1511
1511
|
}, {
|
|
1512
1512
|
default: f(() => [
|
|
1513
1513
|
s(t, {
|
|
@@ -1521,7 +1521,7 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1521
1521
|
]),
|
|
1522
1522
|
_: 1
|
|
1523
1523
|
}, 8, ["modelValue"]),
|
|
1524
|
-
e.value.sqlEnable ? (o(), M(
|
|
1524
|
+
e.value.sqlEnable ? (o(), M(g, {
|
|
1525
1525
|
key: 0,
|
|
1526
1526
|
type: "primary",
|
|
1527
1527
|
size: "small",
|
|
@@ -1539,7 +1539,7 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1539
1539
|
e.value.sqlEnable ? (o(), b(U, { key: 0 }, [
|
|
1540
1540
|
s(Z, {
|
|
1541
1541
|
modelValue: e.value.sqlValue,
|
|
1542
|
-
"onUpdate:modelValue":
|
|
1542
|
+
"onUpdate:modelValue": i[4] || (i[4] = ($) => e.value.sqlValue = $),
|
|
1543
1543
|
autosize: { minRows: 4 },
|
|
1544
1544
|
type: "textarea",
|
|
1545
1545
|
style: { "margin-bottom": "10px" }
|
|
@@ -1556,14 +1556,14 @@ const Qe = (r) => (ke("data-v-3cac46e2"), r = r(), _e(), r), Ht = { class: "fact
|
|
|
1556
1556
|
]),
|
|
1557
1557
|
s(Yt, {
|
|
1558
1558
|
visible: p.value,
|
|
1559
|
-
"onUpdate:visible":
|
|
1559
|
+
"onUpdate:visible": i[6] || (i[6] = ($) => p.value = $),
|
|
1560
1560
|
data: r.config.factorDescriptions
|
|
1561
1561
|
}, null, 8, ["visible", "data"])
|
|
1562
1562
|
], 64);
|
|
1563
1563
|
};
|
|
1564
1564
|
}
|
|
1565
1565
|
}, ll = /* @__PURE__ */ xe(tl, [["__scopeId", "data-v-3cac46e2"]]);
|
|
1566
|
-
const ue = (r) => (ke("data-v-
|
|
1566
|
+
const ue = (r) => (ke("data-v-87221c7d"), r = r(), _e(), r), nl = {
|
|
1567
1567
|
key: 0,
|
|
1568
1568
|
class: "common-indicator"
|
|
1569
1569
|
}, al = { class: "indicator" }, ol = /* @__PURE__ */ ue(() => /* @__PURE__ */ k("div", { class: "title" }, [
|
|
@@ -1590,14 +1590,14 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1590
1590
|
}),
|
|
1591
1591
|
emits: ["update:data"],
|
|
1592
1592
|
setup(r) {
|
|
1593
|
-
const c = re(r, "data"), n = r,
|
|
1593
|
+
const c = re(r, "data"), n = r, u = H(!1), p = B(() => {
|
|
1594
1594
|
let v = [];
|
|
1595
1595
|
return n.varietyMarket === null && !n.commonOption.length ? v = n.config.options : (v = n.config.options, n.varietyMarket && (v = v.filter(({ parent: l }) => l.varietyMarketIds.includes(n.varietyMarket))), n.commonOption.length && (v = v.filter(({ parent: l }) => {
|
|
1596
|
-
const { commonOptionIds:
|
|
1597
|
-
return [.../* @__PURE__ */ new Set([...
|
|
1596
|
+
const { commonOptionIds: i } = l;
|
|
1597
|
+
return [.../* @__PURE__ */ new Set([...i, ...n.commonOption])].length !== [...i, ...n.commonOption].length;
|
|
1598
1598
|
}))), v;
|
|
1599
|
-
}),
|
|
1600
|
-
|
|
1599
|
+
}), x = H({}), e = H({}), q = (v) => {
|
|
1600
|
+
x.value = v;
|
|
1601
1601
|
const l = {
|
|
1602
1602
|
key: v.key,
|
|
1603
1603
|
type: v.type,
|
|
@@ -1646,56 +1646,57 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1646
1646
|
// 默认排名
|
|
1647
1647
|
};
|
|
1648
1648
|
}
|
|
1649
|
-
|
|
1649
|
+
u.value = !0;
|
|
1650
1650
|
}, R = () => {
|
|
1651
1651
|
switch (e.value.key) {
|
|
1652
1652
|
case "st": {
|
|
1653
|
-
const { label: l, st:
|
|
1654
|
-
if (
|
|
1653
|
+
const { label: l, st: i } = e.value;
|
|
1654
|
+
if (i === null)
|
|
1655
1655
|
return W.warning("格式错误: 请至少选择一个值");
|
|
1656
|
-
e.value.tagText = `${l}: ${
|
|
1656
|
+
e.value.tagText = `${l}: ${i ? "是" : "否"}`;
|
|
1657
1657
|
break;
|
|
1658
1658
|
}
|
|
1659
1659
|
case "tFeaturelncomes": {
|
|
1660
|
-
const { label: l, rule:
|
|
1661
|
-
if (["", null].includes(
|
|
1660
|
+
const { label: l, rule: i, withFewYears: _, yearsCount: m, netProfit: g } = e.value;
|
|
1661
|
+
if (["", null].includes(_) || ["", null].includes(m) || ["", null].includes(g))
|
|
1662
1662
|
return W.warning("格式错误: 请填写完整");
|
|
1663
|
-
e.value.tagText = `${l}: ${
|
|
1663
|
+
e.value.tagText = `${l}: ${_}年内${m}年以上盈利${i === 1 ? "超" : "跌"}过${g}亿`;
|
|
1664
1664
|
break;
|
|
1665
1665
|
}
|
|
1666
1666
|
case "priceLevels": {
|
|
1667
|
-
const { label: l, priceLevels:
|
|
1668
|
-
if (!
|
|
1667
|
+
const { label: l, priceLevels: i } = e.value;
|
|
1668
|
+
if (!i || i.length === 0)
|
|
1669
1669
|
return W.warning("格式错误: 请至少选择一个值");
|
|
1670
|
-
e.value.tagText = `${l}: 已选${
|
|
1670
|
+
e.value.tagText = `${l}: 已选${i}分位`;
|
|
1671
1671
|
break;
|
|
1672
1672
|
}
|
|
1673
1673
|
case "peTtmLevels": {
|
|
1674
|
-
const { label: l, peTtmLevels:
|
|
1675
|
-
if (!
|
|
1674
|
+
const { label: l, peTtmLevels: i } = e.value;
|
|
1675
|
+
if (!i || i.length === 0)
|
|
1676
1676
|
return W.warning("格式错误: 请至少选择一个值");
|
|
1677
|
-
e.value.tagText = `${l}: 已选${
|
|
1677
|
+
e.value.tagText = `${l}: 已选${i}分位`;
|
|
1678
1678
|
break;
|
|
1679
1679
|
}
|
|
1680
1680
|
case "optionsCpType": {
|
|
1681
|
-
const { label: l, optionsCpType:
|
|
1682
|
-
if (
|
|
1681
|
+
const { label: l, optionsCpType: i } = e.value;
|
|
1682
|
+
if (i === null)
|
|
1683
1683
|
return W.warning("格式错误: 请至少选择一个值");
|
|
1684
|
-
e.value.tagText = `${l}: ${
|
|
1684
|
+
e.value.tagText = `${l}: ${i === 1 ? "看涨" : "看跌"}`;
|
|
1685
1685
|
break;
|
|
1686
1686
|
}
|
|
1687
1687
|
default: {
|
|
1688
|
-
const { label: l, unit:
|
|
1688
|
+
const { label: l, unit: i, radioType: _ } = e.value, m = _ === "1" ? e.value.rankRange : e.value.range;
|
|
1689
1689
|
if (["", null].includes(m[0]) && ["", null].includes(m[1]))
|
|
1690
1690
|
return W.warning("格式错误: 请至少填写一个值");
|
|
1691
|
-
|
|
1691
|
+
const g = _ === "1" ? "" : i[0] ?? "", I = _ === "1" ? "" : i[1] ?? "";
|
|
1692
|
+
!["", null].includes(m[0]) && !["", null].includes(m[1]) ? e.value.tagText = `${l}${_ === "1" ? "排名" : ""}: ${m[0]}${g} ~ ${m[1]}${I}` : ["", null].includes(m[0]) ? e.value.tagText = `${l}${_ === "1" ? "排名" : ""}: ≤${m[1]}${I}` : e.value.tagText = `${l}${_ === "1" ? "排名" : ""}: ≥${m[0]}${g}`;
|
|
1692
1693
|
}
|
|
1693
1694
|
}
|
|
1694
1695
|
const v = c.value.findIndex(({ key: l }) => l === e.value.key);
|
|
1695
|
-
v === -1 ? c.value.push(e.value) : c.value.splice(v, 1, e.value),
|
|
1696
|
+
v === -1 ? c.value.push(e.value) : c.value.splice(v, 1, e.value), u.value = !1;
|
|
1696
1697
|
}, F = (v) => {
|
|
1697
|
-
|
|
1698
|
-
},
|
|
1698
|
+
x.value = p.value.find(({ key: l }) => l === v.key), e.value = JSON.parse(JSON.stringify(v)), u.value = !0;
|
|
1699
|
+
}, y = (v) => {
|
|
1699
1700
|
c.value.splice(v, 1);
|
|
1700
1701
|
}, d = (v) => {
|
|
1701
1702
|
e.value.range = [...v.range], e.value.unit = [...v.unit];
|
|
@@ -1750,7 +1751,7 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1750
1751
|
c.value.length && (c.value = c.value.filter(({ key: v }) => p.value.find((l) => l.key === v)));
|
|
1751
1752
|
}
|
|
1752
1753
|
), (v, l) => {
|
|
1753
|
-
const
|
|
1754
|
+
const i = Be, _ = tt, m = ye, g = Pe, I = Ye, T = je, a = Ae, w = ge, h = qe, S = he;
|
|
1754
1755
|
return r.config.show && p.value.length ? (o(), b("div", nl, [
|
|
1755
1756
|
k("div", al, [
|
|
1756
1757
|
ol,
|
|
@@ -1762,10 +1763,10 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1762
1763
|
])
|
|
1763
1764
|
]),
|
|
1764
1765
|
k("div", ul, [
|
|
1765
|
-
(o(!0), b(U, null, N(c.value, (t, L) => (o(), M(
|
|
1766
|
+
(o(!0), b(U, null, N(c.value, (t, L) => (o(), M(i, {
|
|
1766
1767
|
closable: "",
|
|
1767
1768
|
type: "info",
|
|
1768
|
-
onClose: (Z) =>
|
|
1769
|
+
onClose: (Z) => y(L)
|
|
1769
1770
|
}, {
|
|
1770
1771
|
default: f(() => [
|
|
1771
1772
|
k("span", null, Y(t.tagText), 1),
|
|
@@ -1778,16 +1779,16 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1778
1779
|
}, 1032, ["onClose"]))), 256))
|
|
1779
1780
|
]),
|
|
1780
1781
|
s(S, {
|
|
1781
|
-
modelValue:
|
|
1782
|
-
"onUpdate:modelValue": l[19] || (l[19] = (t) =>
|
|
1783
|
-
title:
|
|
1782
|
+
modelValue: u.value,
|
|
1783
|
+
"onUpdate:modelValue": l[19] || (l[19] = (t) => u.value = t),
|
|
1784
|
+
title: x.value.label,
|
|
1784
1785
|
width: "600",
|
|
1785
1786
|
"align-center": "",
|
|
1786
1787
|
"destroy-on-close": ""
|
|
1787
1788
|
}, ce({
|
|
1788
1789
|
footer: f(() => [
|
|
1789
1790
|
k("div", Il, [
|
|
1790
|
-
s(
|
|
1791
|
+
s(I, {
|
|
1791
1792
|
type: "primary",
|
|
1792
1793
|
onClick: R
|
|
1793
1794
|
}, {
|
|
@@ -1799,22 +1800,22 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1799
1800
|
])
|
|
1800
1801
|
]),
|
|
1801
1802
|
default: f(() => [
|
|
1802
|
-
|
|
1803
|
+
x.value.type === void 0 && e.value.radioType === "1" ? (o(), b("div", dl, [
|
|
1803
1804
|
pl,
|
|
1804
|
-
s(
|
|
1805
|
+
s(g, {
|
|
1805
1806
|
modelValue: e.value.rankRange[0],
|
|
1806
1807
|
"onUpdate:modelValue": l[1] || (l[1] = (t) => e.value.rankRange[0] = t),
|
|
1807
1808
|
style: { flex: "1" }
|
|
1808
1809
|
}, null, 8, ["modelValue"]),
|
|
1809
1810
|
z(" ~ "),
|
|
1810
|
-
s(
|
|
1811
|
+
s(g, {
|
|
1811
1812
|
modelValue: e.value.rankRange[1],
|
|
1812
1813
|
"onUpdate:modelValue": l[2] || (l[2] = (t) => e.value.rankRange[1] = t),
|
|
1813
1814
|
style: { flex: "1" }
|
|
1814
1815
|
}, null, 8, ["modelValue"])
|
|
1815
|
-
])) :
|
|
1816
|
-
|
|
1817
|
-
(o(!0), b(U, null, N(
|
|
1816
|
+
])) : x.value.type === void 0 ? (o(), b(U, { key: 1 }, [
|
|
1817
|
+
x.value.convenientOptions.length ? (o(), b("div", fl, [
|
|
1818
|
+
(o(!0), b(U, null, N(x.value.convenientOptions, (t) => (o(), M(I, {
|
|
1818
1819
|
key: t.text,
|
|
1819
1820
|
onClick: (L) => d(t)
|
|
1820
1821
|
}, {
|
|
@@ -1826,22 +1827,22 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1826
1827
|
])) : D("", !0),
|
|
1827
1828
|
k("div", ml, [
|
|
1828
1829
|
vl,
|
|
1829
|
-
s(
|
|
1830
|
+
s(g, {
|
|
1830
1831
|
modelValue: e.value.range[0],
|
|
1831
1832
|
"onUpdate:modelValue": l[4] || (l[4] = (t) => e.value.range[0] = t),
|
|
1832
1833
|
style: { flex: "1" }
|
|
1833
1834
|
}, ce({ _: 2 }, [
|
|
1834
|
-
|
|
1835
|
+
x.value.unitOptions.length ? {
|
|
1835
1836
|
name: "append",
|
|
1836
1837
|
fn: f(() => [
|
|
1837
|
-
|
|
1838
|
+
x.value.unitOptions.length === 1 ? (o(), b("span", gl, Y(e.value.unit[0]), 1)) : (o(), M(a, {
|
|
1838
1839
|
key: 1,
|
|
1839
1840
|
modelValue: e.value.unit[0],
|
|
1840
1841
|
"onUpdate:modelValue": l[3] || (l[3] = (t) => e.value.unit[0] = t),
|
|
1841
1842
|
style: { width: "72px" }
|
|
1842
1843
|
}, {
|
|
1843
1844
|
default: f(() => [
|
|
1844
|
-
(o(!0), b(U, null, N(
|
|
1845
|
+
(o(!0), b(U, null, N(x.value.unitOptions, (t) => (o(), M(T, {
|
|
1845
1846
|
label: t,
|
|
1846
1847
|
value: t
|
|
1847
1848
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -1853,22 +1854,22 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1853
1854
|
} : void 0
|
|
1854
1855
|
]), 1032, ["modelValue"]),
|
|
1855
1856
|
z(" ~ "),
|
|
1856
|
-
s(
|
|
1857
|
+
s(g, {
|
|
1857
1858
|
modelValue: e.value.range[1],
|
|
1858
1859
|
"onUpdate:modelValue": l[6] || (l[6] = (t) => e.value.range[1] = t),
|
|
1859
1860
|
style: { flex: "1" }
|
|
1860
1861
|
}, ce({ _: 2 }, [
|
|
1861
|
-
|
|
1862
|
+
x.value.unitOptions.length ? {
|
|
1862
1863
|
name: "append",
|
|
1863
1864
|
fn: f(() => [
|
|
1864
|
-
|
|
1865
|
+
x.value.unitOptions.length === 1 ? (o(), b("span", yl, Y(e.value.unit[1]), 1)) : (o(), M(a, {
|
|
1865
1866
|
key: 1,
|
|
1866
1867
|
modelValue: e.value.unit[1],
|
|
1867
1868
|
"onUpdate:modelValue": l[5] || (l[5] = (t) => e.value.unit[1] = t),
|
|
1868
1869
|
style: { width: "72px" }
|
|
1869
1870
|
}, {
|
|
1870
1871
|
default: f(() => [
|
|
1871
|
-
(o(!0), b(U, null, N(
|
|
1872
|
+
(o(!0), b(U, null, N(x.value.unitOptions, (t) => (o(), M(T, {
|
|
1872
1873
|
label: t,
|
|
1873
1874
|
value: t
|
|
1874
1875
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -1881,17 +1882,17 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1881
1882
|
]), 1032, ["modelValue"])
|
|
1882
1883
|
])
|
|
1883
1884
|
], 64)) : (o(), b(U, { key: 2 }, [
|
|
1884
|
-
|
|
1885
|
+
x.value.key === "st" ? (o(), b("div", bl, [
|
|
1885
1886
|
s(m, {
|
|
1886
1887
|
modelValue: e.value.st,
|
|
1887
1888
|
"onUpdate:modelValue": l[7] || (l[7] = (t) => e.value.st = t)
|
|
1888
1889
|
}, {
|
|
1889
1890
|
default: f(() => [
|
|
1890
|
-
s(
|
|
1891
|
+
s(w, {
|
|
1891
1892
|
label: "是",
|
|
1892
1893
|
value: 1
|
|
1893
1894
|
}),
|
|
1894
|
-
s(
|
|
1895
|
+
s(w, {
|
|
1895
1896
|
label: "否",
|
|
1896
1897
|
value: 0
|
|
1897
1898
|
})
|
|
@@ -1899,9 +1900,9 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1899
1900
|
_: 1
|
|
1900
1901
|
}, 8, ["modelValue"])
|
|
1901
1902
|
])) : D("", !0),
|
|
1902
|
-
|
|
1903
|
+
x.value.key === "tFeaturelncomes" ? (o(), b("div", kl, [
|
|
1903
1904
|
k("div", _l, [
|
|
1904
|
-
s(
|
|
1905
|
+
s(I, {
|
|
1905
1906
|
onClick: l[8] || (l[8] = (t) => E("≤0"))
|
|
1906
1907
|
}, {
|
|
1907
1908
|
default: f(() => [
|
|
@@ -1909,7 +1910,7 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1909
1910
|
]),
|
|
1910
1911
|
_: 1
|
|
1911
1912
|
}),
|
|
1912
|
-
s(
|
|
1913
|
+
s(I, {
|
|
1913
1914
|
onClick: l[9] || (l[9] = (t) => E("≥0"))
|
|
1914
1915
|
}, {
|
|
1915
1916
|
default: f(() => [
|
|
@@ -1917,7 +1918,7 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1917
1918
|
]),
|
|
1918
1919
|
_: 1
|
|
1919
1920
|
}),
|
|
1920
|
-
s(
|
|
1921
|
+
s(I, {
|
|
1921
1922
|
onClick: l[10] || (l[10] = (t) => E("五年内有四年以上盈利超过5千万"))
|
|
1922
1923
|
}, {
|
|
1923
1924
|
default: f(() => [
|
|
@@ -1925,7 +1926,7 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1925
1926
|
]),
|
|
1926
1927
|
_: 1
|
|
1927
1928
|
}),
|
|
1928
|
-
s(
|
|
1929
|
+
s(I, {
|
|
1929
1930
|
onClick: l[11] || (l[11] = (t) => E("≥10亿"))
|
|
1930
1931
|
}, {
|
|
1931
1932
|
default: f(() => [
|
|
@@ -1933,7 +1934,7 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1933
1934
|
]),
|
|
1934
1935
|
_: 1
|
|
1935
1936
|
}),
|
|
1936
|
-
s(
|
|
1937
|
+
s(I, {
|
|
1937
1938
|
onClick: l[12] || (l[12] = (t) => E("≥20亿"))
|
|
1938
1939
|
}, {
|
|
1939
1940
|
default: f(() => [
|
|
@@ -1945,19 +1946,19 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1945
1946
|
k("div", hl, [
|
|
1946
1947
|
xl,
|
|
1947
1948
|
k("div", null, [
|
|
1948
|
-
s(
|
|
1949
|
+
s(h, {
|
|
1949
1950
|
modelValue: e.value.withFewYears,
|
|
1950
1951
|
"onUpdate:modelValue": l[13] || (l[13] = (t) => e.value.withFewYears = t),
|
|
1951
1952
|
"controls-position": "right"
|
|
1952
1953
|
}, null, 8, ["modelValue"]),
|
|
1953
1954
|
z(" 年内 "),
|
|
1954
|
-
s(
|
|
1955
|
+
s(h, {
|
|
1955
1956
|
modelValue: e.value.yearsCount,
|
|
1956
1957
|
"onUpdate:modelValue": l[14] || (l[14] = (t) => e.value.yearsCount = t),
|
|
1957
1958
|
"controls-position": "right"
|
|
1958
1959
|
}, null, 8, ["modelValue"]),
|
|
1959
1960
|
z(" 年以上盈利" + Y(e.value.rule === 1 ? "超" : "跌") + "过 ", 1),
|
|
1960
|
-
s(
|
|
1961
|
+
s(h, {
|
|
1961
1962
|
modelValue: e.value.netProfit,
|
|
1962
1963
|
"onUpdate:modelValue": l[15] || (l[15] = (t) => e.value.netProfit = t),
|
|
1963
1964
|
"controls-position": "right"
|
|
@@ -1966,7 +1967,7 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1966
1967
|
])
|
|
1967
1968
|
])
|
|
1968
1969
|
])) : D("", !0),
|
|
1969
|
-
|
|
1970
|
+
x.value.key === "priceLevels" ? (o(), b("div", Ol, [
|
|
1970
1971
|
s(a, {
|
|
1971
1972
|
modelValue: e.value.priceLevels,
|
|
1972
1973
|
"onUpdate:modelValue": l[16] || (l[16] = (t) => e.value.priceLevels = t),
|
|
@@ -1985,7 +1986,7 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
1985
1986
|
_: 1
|
|
1986
1987
|
}, 8, ["modelValue"])
|
|
1987
1988
|
])) : D("", !0),
|
|
1988
|
-
|
|
1989
|
+
x.value.key === "peTtmLevels" ? (o(), b("div", Vl, [
|
|
1989
1990
|
s(a, {
|
|
1990
1991
|
modelValue: e.value.peTtmLevels,
|
|
1991
1992
|
"onUpdate:modelValue": l[17] || (l[17] = (t) => e.value.peTtmLevels = t),
|
|
@@ -2004,17 +2005,17 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
2004
2005
|
_: 1
|
|
2005
2006
|
}, 8, ["modelValue"])
|
|
2006
2007
|
])) : D("", !0),
|
|
2007
|
-
|
|
2008
|
+
x.value.key === "optionsCpType" ? (o(), b("div", $l, [
|
|
2008
2009
|
s(m, {
|
|
2009
2010
|
modelValue: e.value.optionsCpType,
|
|
2010
2011
|
"onUpdate:modelValue": l[18] || (l[18] = (t) => e.value.optionsCpType = t)
|
|
2011
2012
|
}, {
|
|
2012
2013
|
default: f(() => [
|
|
2013
|
-
s(
|
|
2014
|
+
s(w, {
|
|
2014
2015
|
label: "看涨",
|
|
2015
2016
|
value: 1
|
|
2016
2017
|
}),
|
|
2017
|
-
s(
|
|
2018
|
+
s(w, {
|
|
2018
2019
|
label: "看跌",
|
|
2019
2020
|
value: 2
|
|
2020
2021
|
})
|
|
@@ -2026,21 +2027,21 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
2026
2027
|
]),
|
|
2027
2028
|
_: 2
|
|
2028
2029
|
}, [
|
|
2029
|
-
|
|
2030
|
+
x.value.showRankType ? {
|
|
2030
2031
|
name: "header",
|
|
2031
2032
|
fn: f(() => [
|
|
2032
|
-
k("span", cl, Y(
|
|
2033
|
+
k("span", cl, Y(x.value.label), 1),
|
|
2033
2034
|
s(m, {
|
|
2034
2035
|
modelValue: e.value.radioType,
|
|
2035
2036
|
"onUpdate:modelValue": l[0] || (l[0] = (t) => e.value.radioType = t),
|
|
2036
2037
|
style: { "vertical-align": "4px", "margin-left": "12px" }
|
|
2037
2038
|
}, {
|
|
2038
2039
|
default: f(() => [
|
|
2039
|
-
s(
|
|
2040
|
+
s(_, {
|
|
2040
2041
|
label: "数值",
|
|
2041
2042
|
value: "0"
|
|
2042
2043
|
}),
|
|
2043
|
-
s(
|
|
2044
|
+
s(_, {
|
|
2044
2045
|
label: "排名",
|
|
2045
2046
|
value: "1"
|
|
2046
2047
|
})
|
|
@@ -2054,7 +2055,7 @@ const ue = (r) => (ke("data-v-7cb706a5"), r = r(), _e(), r), nl = {
|
|
|
2054
2055
|
])) : D("", !0);
|
|
2055
2056
|
};
|
|
2056
2057
|
}
|
|
2057
|
-
}, Tl = /* @__PURE__ */ xe(wl, [["__scopeId", "data-v-
|
|
2058
|
+
}, Tl = /* @__PURE__ */ xe(wl, [["__scopeId", "data-v-87221c7d"]]);
|
|
2058
2059
|
const te = (r) => (ke("data-v-1be324b2"), r = r(), _e(), r), Cl = { class: "variety-search" }, Sl = {
|
|
2059
2060
|
key: 0,
|
|
2060
2061
|
class: "variety-search-row"
|
|
@@ -2078,8 +2079,8 @@ const te = (r) => (ke("data-v-1be324b2"), r = r(), _e(), r), Cl = { class: "vari
|
|
|
2078
2079
|
}),
|
|
2079
2080
|
emits: ["update:searchData"],
|
|
2080
2081
|
setup(r, { expose: c }) {
|
|
2081
|
-
const n = r,
|
|
2082
|
-
|
|
2082
|
+
const n = r, u = re(r, "searchData");
|
|
2083
|
+
u.value = Object.assign(u.value, {
|
|
2083
2084
|
// 品种市场
|
|
2084
2085
|
varietyMarket: null,
|
|
2085
2086
|
// 常用选项
|
|
@@ -2098,101 +2099,101 @@ const te = (r) => (ke("data-v-1be324b2"), r = r(), _e(), r), Cl = { class: "vari
|
|
|
2098
2099
|
commonIndicator: []
|
|
2099
2100
|
});
|
|
2100
2101
|
const p = B(() => {
|
|
2101
|
-
const
|
|
2102
|
+
const y = {};
|
|
2102
2103
|
return Object.keys(Ce).forEach((d) => {
|
|
2103
2104
|
const E = Ce[d], v = n.config[d] ?? {}, l = { ...E, ...v };
|
|
2104
|
-
|
|
2105
|
-
}),
|
|
2106
|
-
}),
|
|
2107
|
-
const { varietyMarket:
|
|
2108
|
-
if (
|
|
2109
|
-
const d =
|
|
2105
|
+
y[d] = l;
|
|
2106
|
+
}), y;
|
|
2107
|
+
}), x = B(() => p.value.varietyMarket.options), e = B(() => {
|
|
2108
|
+
const { varietyMarket: y } = u.value;
|
|
2109
|
+
if (y) {
|
|
2110
|
+
const d = x.value.find(({ value: E }) => E === y).memo;
|
|
2110
2111
|
return p.value.commonOption.options.filter(({ value: E }) => d.includes(E));
|
|
2111
2112
|
} else
|
|
2112
2113
|
return p.value.commonOption.options;
|
|
2113
2114
|
}), q = B(() => {
|
|
2114
|
-
const { varietyMarket:
|
|
2115
|
-
return
|
|
2116
|
-
}), R = B(() => p.value.customTag.options), F = (
|
|
2117
|
-
["commonOption", "marketIds", "customTag", "factorScreen", "commonIndicator"].includes(
|
|
2115
|
+
const { varietyMarket: y } = u.value;
|
|
2116
|
+
return y ? p.value.marketIds.options.filter((d) => d.varietyMarketIds.includes(y)) : p.value.marketIds.options;
|
|
2117
|
+
}), R = B(() => p.value.customTag.options), F = (y) => {
|
|
2118
|
+
["commonOption", "marketIds", "customTag", "factorScreen", "commonIndicator"].includes(y) ? u.value[y] = [] : u.value[y] = null;
|
|
2118
2119
|
};
|
|
2119
2120
|
return oe(
|
|
2120
2121
|
() => e.value,
|
|
2121
|
-
(
|
|
2122
|
+
(y) => {
|
|
2122
2123
|
var d;
|
|
2123
|
-
(d =
|
|
2124
|
+
(d = u.value.commonOption) != null && d.length && (u.value.commonOption = u.value.commonOption.filter((E) => y.find(({ value: v }) => v === E)));
|
|
2124
2125
|
}
|
|
2125
2126
|
), oe(
|
|
2126
2127
|
() => q.value,
|
|
2127
|
-
(
|
|
2128
|
+
(y) => {
|
|
2128
2129
|
var d;
|
|
2129
|
-
(d =
|
|
2130
|
+
(d = u.value.marketIds) != null && d.length && (u.value.marketIds = u.value.marketIds.filter((E) => y.find(({ value: v }) => v === E)));
|
|
2130
2131
|
}
|
|
2131
2132
|
), c({
|
|
2132
2133
|
// 生成接口传参结构的数据
|
|
2133
|
-
formatData: (
|
|
2134
|
-
var E, v, l,
|
|
2134
|
+
formatData: (y) => {
|
|
2135
|
+
var E, v, l, i, _;
|
|
2135
2136
|
console.log("%c[st-varietySearch]: 正在生成接口传参结构的数据...", "color: tomato");
|
|
2136
2137
|
const d = {};
|
|
2137
|
-
if (
|
|
2138
|
-
const { factorScreen: m } =
|
|
2139
|
-
if ((
|
|
2140
|
-
switch (
|
|
2138
|
+
if (y.varietyMarket && (d.exchangeId = String(y.varietyMarket)), (E = y.commonOption) != null && E.length && (d.optionId = y.commonOption.join(",")), (v = y.marketIds) != null && v.length && (d.marketIds = y.marketIds), (l = y.customTag) != null && l.length && (d.tagIds = y.customTag), (i = p.value.factorScreen) != null && i.show) {
|
|
2139
|
+
const { factorScreen: m } = y;
|
|
2140
|
+
if ((_ = m == null ? void 0 : m.list) != null && _.length && (d.tbFeatureFactorScores = m.list.map((g) => {
|
|
2141
|
+
switch (g.key) {
|
|
2141
2142
|
case "compare":
|
|
2142
2143
|
return {
|
|
2143
|
-
freqId:
|
|
2144
|
-
factorId:
|
|
2145
|
-
compareType:
|
|
2146
|
-
freqId2:
|
|
2147
|
-
factorId2:
|
|
2144
|
+
freqId: g.cycle,
|
|
2145
|
+
factorId: g.factor,
|
|
2146
|
+
compareType: g.compareType,
|
|
2147
|
+
freqId2: g.cycle2,
|
|
2148
|
+
factorId2: g.factor2
|
|
2148
2149
|
};
|
|
2149
2150
|
default:
|
|
2150
2151
|
return {
|
|
2151
|
-
freqId:
|
|
2152
|
-
factorId:
|
|
2153
|
-
startScore:
|
|
2154
|
-
endScore:
|
|
2152
|
+
freqId: g.cycle,
|
|
2153
|
+
factorId: g.factor,
|
|
2154
|
+
startScore: g.score[0],
|
|
2155
|
+
endScore: g.score[1]
|
|
2155
2156
|
};
|
|
2156
2157
|
}
|
|
2157
2158
|
})), m.sqlEnable) {
|
|
2158
|
-
const
|
|
2159
|
+
const g = m.list.reduce((T, a, w) => {
|
|
2159
2160
|
var S, t;
|
|
2160
|
-
const
|
|
2161
|
+
const h = `条件${w + 1}`;
|
|
2161
2162
|
switch (a.key) {
|
|
2162
2163
|
case "compare": {
|
|
2163
2164
|
let L = "";
|
|
2164
|
-
(S = p.value.factorScreen) != null && S.cycleShow ? L = `freq_id = ${a.cycle} and factor_id = ${a.factor} ${a.compareType} freq_id = ${a.cycle2} and factor_id = ${a.factor2}` : L = `factor_id = ${a.factor} ${a.compareType} factor_id = ${a.factor2}`, T.set(
|
|
2165
|
+
(S = p.value.factorScreen) != null && S.cycleShow ? L = `freq_id = ${a.cycle} and factor_id = ${a.factor} ${a.compareType} freq_id = ${a.cycle2} and factor_id = ${a.factor2}` : L = `factor_id = ${a.factor} ${a.compareType} factor_id = ${a.factor2}`, T.set(h, `(${L})`);
|
|
2165
2166
|
break;
|
|
2166
2167
|
}
|
|
2167
2168
|
default: {
|
|
2168
2169
|
let L = `factor_id = ${a.factor} and `;
|
|
2169
|
-
(t = p.value.factorScreen) != null && t.cycleShow && (L = `freq_id = ${a.cycle} and factor_id = ${a.factor} and `), (a.score[0] || a.score[0] === 0) && (a.score[1] || a.score[1] === 0) ? L += `score >= ${a.score[0]} and score <= ${a.score[1]}` : a.score[0] || a.score[0] === 0 ? L += `score >= ${a.score[0]}` : (a.score[1] || a.score[1] === 0) && (L += `score <= ${a.score[1]}`), T.set(
|
|
2170
|
+
(t = p.value.factorScreen) != null && t.cycleShow && (L = `freq_id = ${a.cycle} and factor_id = ${a.factor} and `), (a.score[0] || a.score[0] === 0) && (a.score[1] || a.score[1] === 0) ? L += `score >= ${a.score[0]} and score <= ${a.score[1]}` : a.score[0] || a.score[0] === 0 ? L += `score >= ${a.score[0]}` : (a.score[1] || a.score[1] === 0) && (L += `score <= ${a.score[1]}`), T.set(h, `(${L})`);
|
|
2170
2171
|
}
|
|
2171
2172
|
}
|
|
2172
2173
|
return T;
|
|
2173
2174
|
}, /* @__PURE__ */ new Map([]));
|
|
2174
|
-
let
|
|
2175
|
-
for (const [T, a] of
|
|
2176
|
-
const
|
|
2177
|
-
|
|
2175
|
+
let I = m.sqlValue;
|
|
2176
|
+
for (const [T, a] of g) {
|
|
2177
|
+
const w = new RegExp(T, "g");
|
|
2178
|
+
I = I.replace(w, a);
|
|
2178
2179
|
}
|
|
2179
|
-
d.sql =
|
|
2180
|
+
d.sql = I;
|
|
2180
2181
|
}
|
|
2181
2182
|
d.enableSql = m.sqlEnable === 1 ? 2 : 1;
|
|
2182
2183
|
}
|
|
2183
2184
|
{
|
|
2184
|
-
const m = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"],
|
|
2185
|
-
const { key: Z, type: ie, range: le, unit: $, radioType: j, rankRange:
|
|
2185
|
+
const m = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"], g = [], I = y.commonIndicator.reduce((t, L) => {
|
|
2186
|
+
const { key: Z, type: ie, range: le, unit: $, radioType: j, rankRange: O } = L;
|
|
2186
2187
|
if (j === "1")
|
|
2187
|
-
m.includes(Z) ?
|
|
2188
|
+
m.includes(Z) ? g.push({
|
|
2188
2189
|
column: L.key,
|
|
2189
|
-
start:
|
|
2190
|
-
end:
|
|
2190
|
+
start: O[0] || null,
|
|
2191
|
+
end: O[1] || null
|
|
2191
2192
|
}) : t.push({
|
|
2192
2193
|
column: L.key,
|
|
2193
2194
|
type: "1",
|
|
2194
|
-
start:
|
|
2195
|
-
end:
|
|
2195
|
+
start: O[0] || null,
|
|
2196
|
+
end: O[1] || null
|
|
2196
2197
|
});
|
|
2197
2198
|
else if (Z === "dividendYield") {
|
|
2198
2199
|
let [C, A] = le;
|
|
@@ -2235,17 +2236,17 @@ const te = (r) => (ke("data-v-1be324b2"), r = r(), _e(), r), Cl = { class: "vari
|
|
|
2235
2236
|
}
|
|
2236
2237
|
return t;
|
|
2237
2238
|
}, []);
|
|
2238
|
-
|
|
2239
|
-
const T =
|
|
2239
|
+
g.length && (d.searchOptionDto = { rangeDtoList: g }), I.length && (d.query = I);
|
|
2240
|
+
const T = y.commonIndicator.find(({ key: t }) => t === "st");
|
|
2240
2241
|
T && (d.st = T.st);
|
|
2241
|
-
const a =
|
|
2242
|
+
const a = y.commonIndicator.find(({ key: t }) => t === "tFeaturelncomes");
|
|
2242
2243
|
a && (d.netProfitQueryDto = { ...a, netProfit: a.netProfit * 1e8 });
|
|
2243
|
-
const
|
|
2244
|
-
|
|
2245
|
-
const
|
|
2246
|
-
|
|
2244
|
+
const w = y.commonIndicator.find(({ key: t }) => t === "priceLevels");
|
|
2245
|
+
w && (d.priceLevels = w.priceLevels);
|
|
2246
|
+
const h = y.commonIndicator.find(({ key: t }) => t === "peTtmLevels");
|
|
2247
|
+
h && (d.peTtmLevels = h.peTtmLevels);
|
|
2247
2248
|
const S = {};
|
|
2248
|
-
|
|
2249
|
+
y.commonIndicator.forEach((t) => {
|
|
2249
2250
|
const { key: L } = t;
|
|
2250
2251
|
switch (L) {
|
|
2251
2252
|
case "expireDays":
|
|
@@ -2288,7 +2289,7 @@ const te = (r) => (ke("data-v-1be324b2"), r = r(), _e(), r), Cl = { class: "vari
|
|
|
2288
2289
|
},
|
|
2289
2290
|
// 重置函数
|
|
2290
2291
|
reset: () => {
|
|
2291
|
-
|
|
2292
|
+
u.value = {
|
|
2292
2293
|
// 品种市场
|
|
2293
2294
|
varietyMarket: null,
|
|
2294
2295
|
// 常用选项
|
|
@@ -2307,11 +2308,11 @@ const te = (r) => (ke("data-v-1be324b2"), r = r(), _e(), r), Cl = { class: "vari
|
|
|
2307
2308
|
commonIndicator: []
|
|
2308
2309
|
};
|
|
2309
2310
|
}
|
|
2310
|
-
}), (
|
|
2311
|
-
var
|
|
2312
|
-
const E = ge, v = ye, l = at,
|
|
2311
|
+
}), (y, d) => {
|
|
2312
|
+
var _, m, g, I, T;
|
|
2313
|
+
const E = ge, v = ye, l = at, i = ot;
|
|
2313
2314
|
return o(), b("div", Cl, [
|
|
2314
|
-
(
|
|
2315
|
+
(_ = p.value.varietyMarket) != null && _.show ? (o(), b("div", Sl, [
|
|
2315
2316
|
k("div", Ml, [
|
|
2316
2317
|
Ul,
|
|
2317
2318
|
k("span", {
|
|
@@ -2319,15 +2320,15 @@ const te = (r) => (ke("data-v-1be324b2"), r = r(), _e(), r), Cl = { class: "vari
|
|
|
2319
2320
|
}, "不限")
|
|
2320
2321
|
]),
|
|
2321
2322
|
s(v, {
|
|
2322
|
-
modelValue:
|
|
2323
|
-
"onUpdate:modelValue": d[1] || (d[1] = (a) =>
|
|
2323
|
+
modelValue: u.value.varietyMarket,
|
|
2324
|
+
"onUpdate:modelValue": d[1] || (d[1] = (a) => u.value.varietyMarket = a),
|
|
2324
2325
|
size: "small"
|
|
2325
2326
|
}, {
|
|
2326
2327
|
default: f(() => [
|
|
2327
|
-
(o(!0), b(U, null, N(
|
|
2328
|
+
(o(!0), b(U, null, N(x.value, ({ label: a, value: w }) => (o(), M(E, {
|
|
2328
2329
|
label: a,
|
|
2329
|
-
value:
|
|
2330
|
-
key:
|
|
2330
|
+
value: w,
|
|
2331
|
+
key: w
|
|
2331
2332
|
}, null, 8, ["label", "value"]))), 128))
|
|
2332
2333
|
]),
|
|
2333
2334
|
_: 1
|
|
@@ -2340,60 +2341,60 @@ const te = (r) => (ke("data-v-1be324b2"), r = r(), _e(), r), Cl = { class: "vari
|
|
|
2340
2341
|
onClick: d[2] || (d[2] = (a) => F("commonOption"))
|
|
2341
2342
|
}, "不限")
|
|
2342
2343
|
]),
|
|
2343
|
-
s(
|
|
2344
|
-
modelValue:
|
|
2345
|
-
"onUpdate:modelValue": d[3] || (d[3] = (a) =>
|
|
2344
|
+
s(i, {
|
|
2345
|
+
modelValue: u.value.commonOption,
|
|
2346
|
+
"onUpdate:modelValue": d[3] || (d[3] = (a) => u.value.commonOption = a),
|
|
2346
2347
|
size: "small"
|
|
2347
2348
|
}, {
|
|
2348
2349
|
default: f(() => [
|
|
2349
|
-
(o(!0), b(U, null, N(e.value, ({ label: a, value:
|
|
2350
|
+
(o(!0), b(U, null, N(e.value, ({ label: a, value: w }) => (o(), M(l, {
|
|
2350
2351
|
label: a,
|
|
2351
|
-
value:
|
|
2352
|
-
key:
|
|
2352
|
+
value: w,
|
|
2353
|
+
key: w
|
|
2353
2354
|
}, null, 8, ["label", "value"]))), 128))
|
|
2354
2355
|
]),
|
|
2355
2356
|
_: 1
|
|
2356
2357
|
}, 8, ["modelValue"])
|
|
2357
2358
|
])) : D("", !0),
|
|
2358
|
-
(
|
|
2359
|
+
(g = p.value.marketIds) != null && g.show && q.value.length ? (o(), b("div", Rl, [
|
|
2359
2360
|
k("div", Ll, [
|
|
2360
2361
|
Fl,
|
|
2361
2362
|
k("span", {
|
|
2362
2363
|
onClick: d[4] || (d[4] = (a) => F("marketIds"))
|
|
2363
2364
|
}, "不限")
|
|
2364
2365
|
]),
|
|
2365
|
-
s(
|
|
2366
|
-
modelValue:
|
|
2367
|
-
"onUpdate:modelValue": d[5] || (d[5] = (a) =>
|
|
2366
|
+
s(i, {
|
|
2367
|
+
modelValue: u.value.marketIds,
|
|
2368
|
+
"onUpdate:modelValue": d[5] || (d[5] = (a) => u.value.marketIds = a),
|
|
2368
2369
|
size: "small"
|
|
2369
2370
|
}, {
|
|
2370
2371
|
default: f(() => [
|
|
2371
|
-
(o(!0), b(U, null, N(q.value, ({ label: a, value:
|
|
2372
|
+
(o(!0), b(U, null, N(q.value, ({ label: a, value: w }) => (o(), M(l, {
|
|
2372
2373
|
label: a,
|
|
2373
|
-
value:
|
|
2374
|
-
key:
|
|
2374
|
+
value: w,
|
|
2375
|
+
key: w
|
|
2375
2376
|
}, null, 8, ["label", "value"]))), 128))
|
|
2376
2377
|
]),
|
|
2377
2378
|
_: 1
|
|
2378
2379
|
}, 8, ["modelValue"])
|
|
2379
2380
|
])) : D("", !0),
|
|
2380
|
-
(
|
|
2381
|
+
(I = p.value.customTag) != null && I.show && R.value.length ? (o(), b("div", zl, [
|
|
2381
2382
|
k("div", Nl, [
|
|
2382
2383
|
Pl,
|
|
2383
2384
|
k("span", {
|
|
2384
2385
|
onClick: d[6] || (d[6] = (a) => F("customTag"))
|
|
2385
2386
|
}, "不限")
|
|
2386
2387
|
]),
|
|
2387
|
-
s(
|
|
2388
|
-
modelValue:
|
|
2389
|
-
"onUpdate:modelValue": d[7] || (d[7] = (a) =>
|
|
2388
|
+
s(i, {
|
|
2389
|
+
modelValue: u.value.customTag,
|
|
2390
|
+
"onUpdate:modelValue": d[7] || (d[7] = (a) => u.value.customTag = a),
|
|
2390
2391
|
size: "small"
|
|
2391
2392
|
}, {
|
|
2392
2393
|
default: f(() => [
|
|
2393
|
-
(o(!0), b(U, null, N(R.value, ({ label: a, value:
|
|
2394
|
+
(o(!0), b(U, null, N(R.value, ({ label: a, value: w }) => (o(), M(l, {
|
|
2394
2395
|
label: a,
|
|
2395
|
-
value:
|
|
2396
|
-
key:
|
|
2396
|
+
value: w,
|
|
2397
|
+
key: w
|
|
2397
2398
|
}, null, 8, ["label", "value"]))), 128))
|
|
2398
2399
|
]),
|
|
2399
2400
|
_: 1
|
|
@@ -2407,16 +2408,16 @@ const te = (r) => (ke("data-v-1be324b2"), r = r(), _e(), r), Cl = { class: "vari
|
|
|
2407
2408
|
}, "不限")
|
|
2408
2409
|
]),
|
|
2409
2410
|
s(ll, {
|
|
2410
|
-
data:
|
|
2411
|
-
"onUpdate:data": d[9] || (d[9] = (a) =>
|
|
2411
|
+
data: u.value.factorScreen,
|
|
2412
|
+
"onUpdate:data": d[9] || (d[9] = (a) => u.value.factorScreen = a),
|
|
2412
2413
|
config: p.value.factorScreen
|
|
2413
2414
|
}, null, 8, ["data", "config"])
|
|
2414
2415
|
])) : D("", !0),
|
|
2415
2416
|
s(Tl, {
|
|
2416
|
-
data:
|
|
2417
|
-
"onUpdate:data": d[10] || (d[10] = (a) =>
|
|
2418
|
-
varietyMarket:
|
|
2419
|
-
commonOption:
|
|
2417
|
+
data: u.value.commonIndicator,
|
|
2418
|
+
"onUpdate:data": d[10] || (d[10] = (a) => u.value.commonIndicator = a),
|
|
2419
|
+
varietyMarket: u.value.varietyMarket,
|
|
2420
|
+
commonOption: u.value.commonOption,
|
|
2420
2421
|
config: p.value.commonIndicator
|
|
2421
2422
|
}, null, 8, ["data", "varietyMarket", "commonOption", "config"])
|
|
2422
2423
|
]);
|