st-comp 0.0.154 → 0.0.155
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/User.cjs +1 -1
- package/es/User.js +4 -4
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +333 -333
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-a646e69f.js → index-1e2ed5f3.js} +5 -5
- package/lib/{python-5d221c15.js → python-258cd090.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/components/CommonIndicator/index.vue +14 -4
package/es/VarietySearch.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as ne, i as
|
|
1
|
+
import { b as ne, i as $e, a as Oe, c as Ie, A as we, u as ce, _ as pe, e as Ae, w as Ke, s as Re } from "./base-19787dfb.js";
|
|
2
2
|
import "./el-tag-7414e0c7.js";
|
|
3
3
|
import { E as ve, a as me } from "./el-select-7395562b.js";
|
|
4
4
|
import "./el-scrollbar-29bcab5f.js";
|
|
@@ -53,29 +53,29 @@ const je = ne({
|
|
|
53
53
|
...je,
|
|
54
54
|
border: Boolean
|
|
55
55
|
}), Ne = {
|
|
56
|
-
[Ve]: (
|
|
57
|
-
[bl]: (
|
|
58
|
-
}, ze = Symbol("radioGroupKey"), Pe = (
|
|
59
|
-
const
|
|
56
|
+
[Ve]: (p) => $e(p) || Oe(p) || Ie(p),
|
|
57
|
+
[bl]: (p) => $e(p) || Oe(p) || Ie(p)
|
|
58
|
+
}, ze = Symbol("radioGroupKey"), Pe = (p, R) => {
|
|
59
|
+
const $ = W(), a = tl(ze, void 0), x = G(() => !!a), q = G(() => we(p.value) ? p.label : p.value), h = G({
|
|
60
60
|
get() {
|
|
61
|
-
return x.value ? a.modelValue :
|
|
61
|
+
return x.value ? a.modelValue : p.modelValue;
|
|
62
62
|
},
|
|
63
|
-
set(
|
|
64
|
-
x.value ? a.changeEvent(
|
|
63
|
+
set(d) {
|
|
64
|
+
x.value ? a.changeEvent(d) : R && R(Ve, d), $.value.checked = p.modelValue === q.value;
|
|
65
65
|
}
|
|
66
|
-
}),
|
|
66
|
+
}), O = ml(G(() => a == null ? void 0 : a.size)), e = fl(G(() => a == null ? void 0 : a.disabled)), B = W(!1), j = G(() => e.value || x.value && h.value !== q.value ? -1 : 0);
|
|
67
67
|
return kl({
|
|
68
68
|
from: "label act as value",
|
|
69
69
|
replacement: "value",
|
|
70
70
|
version: "3.0.0",
|
|
71
71
|
scope: "el-radio",
|
|
72
72
|
ref: "https://element-plus.org/en-US/component/radio.html"
|
|
73
|
-
}, G(() => x.value && we(
|
|
74
|
-
radioRef:
|
|
73
|
+
}, G(() => x.value && we(p.value))), {
|
|
74
|
+
radioRef: $,
|
|
75
75
|
isGroup: x,
|
|
76
76
|
radioGroup: a,
|
|
77
77
|
focus: B,
|
|
78
|
-
size:
|
|
78
|
+
size: O,
|
|
79
79
|
disabled: e,
|
|
80
80
|
tabIndex: j,
|
|
81
81
|
modelValue: h,
|
|
@@ -87,9 +87,9 @@ const je = ne({
|
|
|
87
87
|
...hl,
|
|
88
88
|
props: Vl,
|
|
89
89
|
emits: Ne,
|
|
90
|
-
setup(
|
|
91
|
-
const
|
|
92
|
-
function
|
|
90
|
+
setup(p, { emit: R }) {
|
|
91
|
+
const $ = p, a = ce("radio"), { radioRef: x, radioGroup: q, focus: h, size: O, disabled: e, modelValue: B, actualValue: j } = Pe($, R);
|
|
92
|
+
function d() {
|
|
93
93
|
Ee(() => R("change", B.value));
|
|
94
94
|
}
|
|
95
95
|
return (n, M) => {
|
|
@@ -101,7 +101,7 @@ const je = ne({
|
|
|
101
101
|
g(a).is("focus", g(h)),
|
|
102
102
|
g(a).is("bordered", n.border),
|
|
103
103
|
g(a).is("checked", g(B) === g(j)),
|
|
104
|
-
g(a).m(g(
|
|
104
|
+
g(a).m(g(O))
|
|
105
105
|
])
|
|
106
106
|
}, [
|
|
107
107
|
k("span", {
|
|
@@ -114,16 +114,16 @@ const je = ne({
|
|
|
114
114
|
fe(k("input", {
|
|
115
115
|
ref_key: "radioRef",
|
|
116
116
|
ref: x,
|
|
117
|
-
"onUpdate:modelValue": (
|
|
117
|
+
"onUpdate:modelValue": (V) => Se(B) ? B.value = V : null,
|
|
118
118
|
class: H(g(a).e("original")),
|
|
119
119
|
value: g(j),
|
|
120
120
|
name: n.name || ((I = g(q)) == null ? void 0 : I.name),
|
|
121
121
|
disabled: g(e),
|
|
122
122
|
checked: g(B) === g(j),
|
|
123
123
|
type: "radio",
|
|
124
|
-
onFocus: (
|
|
125
|
-
onBlur: (
|
|
126
|
-
onChange:
|
|
124
|
+
onFocus: (V) => h.value = !0,
|
|
125
|
+
onBlur: (V) => h.value = !1,
|
|
126
|
+
onChange: d,
|
|
127
127
|
onClick: te(() => {
|
|
128
128
|
}, ["stop"])
|
|
129
129
|
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
|
|
@@ -146,56 +146,56 @@ const je = ne({
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
|
-
var
|
|
150
|
-
const
|
|
149
|
+
var $l = /* @__PURE__ */ pe(xl, [["__file", "radio.vue"]]);
|
|
150
|
+
const Ol = ne({
|
|
151
151
|
...je
|
|
152
152
|
}), Il = ee({
|
|
153
153
|
name: "ElRadioButton"
|
|
154
154
|
}), wl = /* @__PURE__ */ ee({
|
|
155
155
|
...Il,
|
|
156
|
-
props:
|
|
157
|
-
setup(
|
|
158
|
-
const R =
|
|
156
|
+
props: Ol,
|
|
157
|
+
setup(p) {
|
|
158
|
+
const R = p, $ = ce("radio"), { radioRef: a, focus: x, size: q, disabled: h, modelValue: O, radioGroup: e, actualValue: B } = Pe(R), j = G(() => ({
|
|
159
159
|
backgroundColor: (e == null ? void 0 : e.fill) || "",
|
|
160
160
|
borderColor: (e == null ? void 0 : e.fill) || "",
|
|
161
161
|
boxShadow: e != null && e.fill ? `-1px 0 0 0 ${e.fill}` : "",
|
|
162
162
|
color: (e == null ? void 0 : e.textColor) || ""
|
|
163
163
|
}));
|
|
164
|
-
return (
|
|
164
|
+
return (d, n) => {
|
|
165
165
|
var M;
|
|
166
166
|
return o(), b("label", {
|
|
167
167
|
class: H([
|
|
168
|
-
g(
|
|
169
|
-
g(
|
|
170
|
-
g(
|
|
171
|
-
g(
|
|
172
|
-
g(
|
|
168
|
+
g($).b("button"),
|
|
169
|
+
g($).is("active", g(O) === g(B)),
|
|
170
|
+
g($).is("disabled", g(h)),
|
|
171
|
+
g($).is("focus", g(x)),
|
|
172
|
+
g($).bm("button", g(q))
|
|
173
173
|
])
|
|
174
174
|
}, [
|
|
175
175
|
fe(k("input", {
|
|
176
176
|
ref_key: "radioRef",
|
|
177
177
|
ref: a,
|
|
178
|
-
"onUpdate:modelValue": (I) => Se(
|
|
179
|
-
class: H(g(
|
|
178
|
+
"onUpdate:modelValue": (I) => Se(O) ? O.value = I : null,
|
|
179
|
+
class: H(g($).be("button", "original-radio")),
|
|
180
180
|
value: g(B),
|
|
181
181
|
type: "radio",
|
|
182
|
-
name:
|
|
182
|
+
name: d.name || ((M = g(e)) == null ? void 0 : M.name),
|
|
183
183
|
disabled: g(h),
|
|
184
184
|
onFocus: (I) => x.value = !0,
|
|
185
185
|
onBlur: (I) => x.value = !1,
|
|
186
186
|
onClick: te(() => {
|
|
187
187
|
}, ["stop"])
|
|
188
188
|
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
|
|
189
|
-
[Ue, g(
|
|
189
|
+
[Ue, g(O)]
|
|
190
190
|
]),
|
|
191
191
|
k("span", {
|
|
192
|
-
class: H(g(
|
|
193
|
-
style: al(g(
|
|
192
|
+
class: H(g($).be("button", "inner")),
|
|
193
|
+
style: al(g(O) === g(B) ? g(j) : {}),
|
|
194
194
|
onKeydown: te(() => {
|
|
195
195
|
}, ["stop"])
|
|
196
196
|
}, [
|
|
197
|
-
ye(
|
|
198
|
-
E(Q(
|
|
197
|
+
ye(d.$slots, "default", {}, () => [
|
|
198
|
+
E(Q(d.label), 1)
|
|
199
199
|
])
|
|
200
200
|
], 46, ["onKeydown"])
|
|
201
201
|
], 2);
|
|
@@ -237,38 +237,38 @@ const Tl = ne({
|
|
|
237
237
|
...Rl,
|
|
238
238
|
props: Tl,
|
|
239
239
|
emits: Cl,
|
|
240
|
-
setup(
|
|
241
|
-
const
|
|
240
|
+
setup(p, { emit: R }) {
|
|
241
|
+
const $ = p, a = ce("radio"), x = _l(), q = W(), { formItem: h } = yl(), { inputId: O, isLabeledByFormItem: e } = gl($, {
|
|
242
242
|
formItemContext: h
|
|
243
|
-
}), B = (
|
|
244
|
-
R(Ve,
|
|
243
|
+
}), B = (d) => {
|
|
244
|
+
R(Ve, d), Ee(() => R("change", d));
|
|
245
245
|
};
|
|
246
246
|
nl(() => {
|
|
247
|
-
const
|
|
248
|
-
!Array.from(
|
|
247
|
+
const d = q.value.querySelectorAll("[type=radio]"), n = d[0];
|
|
248
|
+
!Array.from(d).some((M) => M.checked) && n && (n.tabIndex = 0);
|
|
249
249
|
});
|
|
250
|
-
const j = G(() =>
|
|
250
|
+
const j = G(() => $.name || x.value);
|
|
251
251
|
return ol(ze, ul({
|
|
252
|
-
...rl(
|
|
252
|
+
...rl($),
|
|
253
253
|
changeEvent: B,
|
|
254
254
|
name: j
|
|
255
|
-
})), ae(() =>
|
|
256
|
-
|
|
257
|
-
}), (
|
|
258
|
-
id: g(
|
|
255
|
+
})), ae(() => $.modelValue, () => {
|
|
256
|
+
$.validateEvent && (h == null || h.validate("change").catch((d) => Ae(d)));
|
|
257
|
+
}), (d, n) => (o(), b("div", {
|
|
258
|
+
id: g(O),
|
|
259
259
|
ref_key: "radioGroupRef",
|
|
260
260
|
ref: q,
|
|
261
261
|
class: H(g(a).b("group")),
|
|
262
262
|
role: "radiogroup",
|
|
263
|
-
"aria-label": g(e) ? void 0 :
|
|
263
|
+
"aria-label": g(e) ? void 0 : d.ariaLabel || "radio-group",
|
|
264
264
|
"aria-labelledby": g(e) ? g(h).labelId : void 0
|
|
265
265
|
}, [
|
|
266
|
-
ye(
|
|
266
|
+
ye(d.$slots, "default")
|
|
267
267
|
], 10, ["id", "aria-label", "aria-labelledby"]));
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
var Ge = /* @__PURE__ */ pe(Sl, [["__file", "radio-group.vue"]]);
|
|
271
|
-
const he = Ke(
|
|
271
|
+
const he = Ke($l, {
|
|
272
272
|
RadioButton: Be,
|
|
273
273
|
RadioGroup: Ge
|
|
274
274
|
}), xe = Re(Ge), Ul = Re(Be);
|
|
@@ -829,11 +829,11 @@ const Te = {
|
|
|
829
829
|
}
|
|
830
830
|
]
|
|
831
831
|
}
|
|
832
|
-
}, El = (
|
|
833
|
-
!R[0] && R[0] !== 0 && !R[1] && R[1] !== 0 ?
|
|
834
|
-
}, Ce = (
|
|
832
|
+
}, El = (p, R, $) => {
|
|
833
|
+
!R[0] && R[0] !== 0 && !R[1] && R[1] !== 0 ? $(new Error("至少填写一个分数")) : $();
|
|
834
|
+
}, Ce = (p) => {
|
|
835
835
|
const R = /(条件(\d+))/g;
|
|
836
|
-
return
|
|
836
|
+
return p.match(R) || [];
|
|
837
837
|
}, Ml = {
|
|
838
838
|
__name: "FactorDescription",
|
|
839
839
|
props: /* @__PURE__ */ oe({
|
|
@@ -843,13 +843,13 @@ const Te = {
|
|
|
843
843
|
visibleModifiers: {}
|
|
844
844
|
}),
|
|
845
845
|
emits: ["update:visible"],
|
|
846
|
-
setup(
|
|
847
|
-
const R = ue(
|
|
848
|
-
return (
|
|
846
|
+
setup(p) {
|
|
847
|
+
const R = ue(p, "visible");
|
|
848
|
+
return ($, a) => {
|
|
849
849
|
const x = We, q = Xe, h = ke;
|
|
850
850
|
return o(), L(h, {
|
|
851
851
|
modelValue: R.value,
|
|
852
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
852
|
+
"onUpdate:modelValue": a[0] || (a[0] = (O) => R.value = O),
|
|
853
853
|
title: "因子使用说明",
|
|
854
854
|
width: "1000",
|
|
855
855
|
"align-center": "",
|
|
@@ -857,7 +857,7 @@ const Te = {
|
|
|
857
857
|
}, {
|
|
858
858
|
default: s(() => [
|
|
859
859
|
t(q, {
|
|
860
|
-
data:
|
|
860
|
+
data: p.data,
|
|
861
861
|
border: "",
|
|
862
862
|
height: "500"
|
|
863
863
|
}, {
|
|
@@ -884,7 +884,7 @@ const Te = {
|
|
|
884
884
|
};
|
|
885
885
|
}
|
|
886
886
|
};
|
|
887
|
-
const Ye = (
|
|
887
|
+
const Ye = (p) => (ge("data-v-3592dee9"), p = p(), be(), p), ql = { class: "factor-screen" }, Fl = { class: "custom-header" }, Dl = ["id"], Ll = { class: "form-row" }, jl = { class: "index" }, Nl = { style: { display: "flex", "align-items": "center", width: "100%", height: "24px" } }, zl = /* @__PURE__ */ Ye(() => /* @__PURE__ */ k("span", null, "~", -1)), Pl = /* @__PURE__ */ Ye(() => /* @__PURE__ */ k("span", null, "&&代表and,||代表or", -1)), Bl = { class: "dialog-footer" }, Gl = {
|
|
888
888
|
__name: "index",
|
|
889
889
|
props: /* @__PURE__ */ oe({
|
|
890
890
|
config: {
|
|
@@ -915,8 +915,8 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
915
915
|
dataModifiers: {}
|
|
916
916
|
}),
|
|
917
917
|
emits: ["update:data"],
|
|
918
|
-
setup(
|
|
919
|
-
const R =
|
|
918
|
+
setup(p) {
|
|
919
|
+
const R = p, $ = ue(p, "data"), a = W(!1), x = W(!1), q = W(null), h = W({
|
|
920
920
|
// 筛选因子列表
|
|
921
921
|
list: [
|
|
922
922
|
{
|
|
@@ -932,27 +932,27 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
932
932
|
sqlEnable: 0,
|
|
933
933
|
// SQL语句
|
|
934
934
|
sqlValue: null
|
|
935
|
-
}),
|
|
936
|
-
const { list: I, sqlEnable:
|
|
935
|
+
}), O = () => {
|
|
936
|
+
const { list: I, sqlEnable: V, sqlValue: v } = $.value;
|
|
937
937
|
h.value = {
|
|
938
938
|
list: JSON.parse(JSON.stringify(I)),
|
|
939
|
-
sqlEnable:
|
|
940
|
-
sqlValue:
|
|
939
|
+
sqlEnable: V,
|
|
940
|
+
sqlValue: v
|
|
941
941
|
}, h.value.list.length || j(), a.value = !0;
|
|
942
942
|
}, e = () => {
|
|
943
943
|
q.value.validate((I) => {
|
|
944
|
-
const { list:
|
|
944
|
+
const { list: V, sqlEnable: v, sqlValue: l } = h.value;
|
|
945
945
|
if (I) {
|
|
946
|
-
if (
|
|
946
|
+
if (v) {
|
|
947
947
|
if (!l)
|
|
948
948
|
return K.error("SQL语句不能为空");
|
|
949
|
-
const
|
|
950
|
-
if (
|
|
951
|
-
return K.error(`请检查SQL语句, 不存在[${
|
|
949
|
+
const _ = Ce(l), c = V.map((i, T) => `条件${T + 1}`), m = _.filter((i) => !c.includes(i));
|
|
950
|
+
if (m.length)
|
|
951
|
+
return K.error(`请检查SQL语句, 不存在[${m}]`);
|
|
952
952
|
}
|
|
953
|
-
|
|
954
|
-
list: JSON.parse(JSON.stringify(
|
|
955
|
-
sqlEnable:
|
|
953
|
+
$.value = {
|
|
954
|
+
list: JSON.parse(JSON.stringify(V)),
|
|
955
|
+
sqlEnable: v,
|
|
956
956
|
sqlValue: l
|
|
957
957
|
}, a.value = !1;
|
|
958
958
|
}
|
|
@@ -981,32 +981,32 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
981
981
|
break;
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
|
-
},
|
|
984
|
+
}, d = () => {
|
|
985
985
|
q.value.validate((I) => {
|
|
986
986
|
if (I)
|
|
987
987
|
if (h.value.sqlValue) {
|
|
988
|
-
const
|
|
989
|
-
h.value.sqlValue = h.value.list.reduce((
|
|
988
|
+
const V = Ce(h.value.sqlValue);
|
|
989
|
+
h.value.sqlValue = h.value.list.reduce((v, l, _) => (V.includes(`条件${_ + 1}`) || (v += `&& 条件${_ + 1} `), v), h.value.sqlValue);
|
|
990
990
|
} else
|
|
991
|
-
h.value.sqlValue = h.value.list.reduce((
|
|
991
|
+
h.value.sqlValue = h.value.list.reduce((V, v, l) => (l === 0 ? V += `条件${l + 1} ` : V += `&& 条件${l + 1} `, V), "");
|
|
992
992
|
});
|
|
993
993
|
}, n = (I) => {
|
|
994
994
|
switch (I.key) {
|
|
995
995
|
case "compare": {
|
|
996
|
-
const { cycle:
|
|
997
|
-
let
|
|
998
|
-
return
|
|
996
|
+
const { cycle: V, factor: v, compareType: l, cycle2: _, factor2: c } = I;
|
|
997
|
+
let m = "";
|
|
998
|
+
return m += ` ${R.config.cycleOptions.find(({ value: i }) => i === V).label}`, m += ` ${R.config.factorOptions.find(({ value: i }) => i === v).label}`, m += ` ${l}`, m += ` ${R.config.cycleOptions.find(({ value: i }) => i === _).label}`, m += ` ${R.config.factorOptions.find(({ value: i }) => i === c).label}`, m;
|
|
999
999
|
}
|
|
1000
1000
|
default: {
|
|
1001
|
-
const { cycle:
|
|
1002
|
-
let
|
|
1003
|
-
return
|
|
1001
|
+
const { cycle: V, factor: v, score: l } = I;
|
|
1002
|
+
let _ = "";
|
|
1003
|
+
return _ += ` ${R.config.cycleOptions.find(({ value: c }) => c === V).label}`, _ += ` ${R.config.factorOptions.find(({ value: c }) => c === v).label}`, _ += ` ${l[0] || l[0] === 0 ? `${l[0]}分` : "∞"}`, _ += " ~", _ += ` ${l[1] || l[1] === 0 ? `${l[1]}分` : "∞"}`, _;
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
|
-
}, M = (I,
|
|
1006
|
+
}, M = (I, V) => {
|
|
1007
1007
|
switch (I) {
|
|
1008
1008
|
case "sqlTag": {
|
|
1009
|
-
|
|
1009
|
+
$.value = {
|
|
1010
1010
|
list: [],
|
|
1011
1011
|
sqlEnable: 0,
|
|
1012
1012
|
sqlValue: null
|
|
@@ -1014,39 +1014,39 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1014
1014
|
break;
|
|
1015
1015
|
}
|
|
1016
1016
|
case "factorTag": {
|
|
1017
|
-
|
|
1017
|
+
$.value.list.splice(V, 1);
|
|
1018
1018
|
break;
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
1021
|
};
|
|
1022
|
-
return (I,
|
|
1022
|
+
return (I, V) => {
|
|
1023
1023
|
var X;
|
|
1024
|
-
const
|
|
1024
|
+
const v = He, l = De, _ = Fe, c = vl, m = Ze, i = ve, T = me, y = il, F = qe, u = he, D = xe, f = Me, S = dl, r = ke;
|
|
1025
1025
|
return o(), b(U, null, [
|
|
1026
1026
|
k("div", ql, [
|
|
1027
1027
|
k("div", null, [
|
|
1028
|
-
|
|
1028
|
+
$.value.sqlEnable && $.value.sqlValue ? (o(), L(l, {
|
|
1029
1029
|
key: 0,
|
|
1030
1030
|
closable: "",
|
|
1031
1031
|
type: "info",
|
|
1032
|
-
title:
|
|
1033
|
-
onClose:
|
|
1032
|
+
title: $.value.sqlValue,
|
|
1033
|
+
onClose: V[0] || (V[0] = (C) => M("sqlTag"))
|
|
1034
1034
|
}, {
|
|
1035
1035
|
default: s(() => [
|
|
1036
|
-
t(
|
|
1036
|
+
t(v, {
|
|
1037
1037
|
type: "info",
|
|
1038
1038
|
truncated: "",
|
|
1039
1039
|
style: { "max-width": "500px" }
|
|
1040
1040
|
}, {
|
|
1041
1041
|
default: s(() => [
|
|
1042
|
-
E(Q(
|
|
1042
|
+
E(Q($.value.sqlValue), 1)
|
|
1043
1043
|
]),
|
|
1044
1044
|
_: 1
|
|
1045
1045
|
})
|
|
1046
1046
|
]),
|
|
1047
1047
|
_: 1
|
|
1048
1048
|
}, 8, ["title"])) : N("", !0),
|
|
1049
|
-
|
|
1049
|
+
!$.value.sqlEnable && $.value.list.length ? (o(!0), b(U, { key: 1 }, z($.value.list, (C, Y) => (o(), L(l, {
|
|
1050
1050
|
closable: "",
|
|
1051
1051
|
type: "info",
|
|
1052
1052
|
onClose: (w) => M("factorTag", Y)
|
|
@@ -1056,13 +1056,13 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1056
1056
|
]),
|
|
1057
1057
|
_: 2
|
|
1058
1058
|
}, 1032, ["onClose"]))), 256)) : N("", !0),
|
|
1059
|
-
t(
|
|
1059
|
+
t(_, {
|
|
1060
1060
|
class: "screen-btn",
|
|
1061
1061
|
type: "primary",
|
|
1062
1062
|
plain: "",
|
|
1063
1063
|
size: "small",
|
|
1064
1064
|
icon: g(de),
|
|
1065
|
-
onClick:
|
|
1065
|
+
onClick: O
|
|
1066
1066
|
}, {
|
|
1067
1067
|
default: s(() => [
|
|
1068
1068
|
E(" 添加因子 ")
|
|
@@ -1072,7 +1072,7 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1072
1072
|
]),
|
|
1073
1073
|
t(r, {
|
|
1074
1074
|
modelValue: a.value,
|
|
1075
|
-
"onUpdate:modelValue":
|
|
1075
|
+
"onUpdate:modelValue": V[5] || (V[5] = (C) => a.value = C),
|
|
1076
1076
|
width: "680",
|
|
1077
1077
|
"align-center": "",
|
|
1078
1078
|
"destroy-on-close": ""
|
|
@@ -1083,14 +1083,14 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1083
1083
|
id: C,
|
|
1084
1084
|
class: H(Y)
|
|
1085
1085
|
}, " 因子筛选 ", 10, Dl),
|
|
1086
|
-
t(
|
|
1086
|
+
t(m, {
|
|
1087
1087
|
effect: "dark",
|
|
1088
1088
|
content: "点击查看: 因子使用说明",
|
|
1089
1089
|
placement: "right"
|
|
1090
1090
|
}, {
|
|
1091
1091
|
default: s(() => [
|
|
1092
|
-
t(
|
|
1093
|
-
onClick:
|
|
1092
|
+
t(c, {
|
|
1093
|
+
onClick: V[1] || (V[1] = (w) => x.value = !0)
|
|
1094
1094
|
}, {
|
|
1095
1095
|
default: s(() => [
|
|
1096
1096
|
t(g(cl))
|
|
@@ -1104,7 +1104,7 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1104
1104
|
]),
|
|
1105
1105
|
footer: s(() => [
|
|
1106
1106
|
k("div", Bl, [
|
|
1107
|
-
t(
|
|
1107
|
+
t(_, {
|
|
1108
1108
|
type: "primary",
|
|
1109
1109
|
onClick: e
|
|
1110
1110
|
}, {
|
|
@@ -1125,7 +1125,7 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1125
1125
|
(o(!0), b(U, null, z(h.value.list, (C, Y) => (o(), b("div", Ll, [
|
|
1126
1126
|
k("span", jl, Q(`条件${Y + 1}`), 1),
|
|
1127
1127
|
C.key === "compare" ? (o(), b(U, { key: 0 }, [
|
|
1128
|
-
|
|
1128
|
+
p.config.cycleShow ? (o(), L(y, {
|
|
1129
1129
|
key: 0,
|
|
1130
1130
|
prop: "list." + Y + ".cycle",
|
|
1131
1131
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
@@ -1139,7 +1139,7 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1139
1139
|
size: "small"
|
|
1140
1140
|
}, {
|
|
1141
1141
|
default: s(() => [
|
|
1142
|
-
(o(!0), b(U, null, z(
|
|
1142
|
+
(o(!0), b(U, null, z(p.config.cycleOptions, ({ label: w, value: P }) => (o(), L(i, {
|
|
1143
1143
|
label: w,
|
|
1144
1144
|
value: P,
|
|
1145
1145
|
key: P
|
|
@@ -1167,7 +1167,7 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1167
1167
|
default: s(() => {
|
|
1168
1168
|
var w;
|
|
1169
1169
|
return [
|
|
1170
|
-
(o(!0), b(U, null, z((w =
|
|
1170
|
+
(o(!0), b(U, null, z((w = p.config.factorOptions) == null ? void 0 : w.filter((P) => [4].includes(P.type)), ({ label: P, value: Z }) => (o(), L(i, {
|
|
1171
1171
|
label: P,
|
|
1172
1172
|
value: Z,
|
|
1173
1173
|
key: Z
|
|
@@ -1187,7 +1187,7 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1187
1187
|
size: "small"
|
|
1188
1188
|
}, {
|
|
1189
1189
|
default: s(() => [
|
|
1190
|
-
(o(), b(U, null, z([">", ">=", "<", "<="], (w) => t(
|
|
1190
|
+
(o(), b(U, null, z([">", ">=", "<", "<="], (w) => t(i, {
|
|
1191
1191
|
label: w,
|
|
1192
1192
|
value: w,
|
|
1193
1193
|
key: w
|
|
@@ -1198,7 +1198,7 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1198
1198
|
]),
|
|
1199
1199
|
_: 2
|
|
1200
1200
|
}, 1024),
|
|
1201
|
-
|
|
1201
|
+
p.config.cycleShow ? (o(), L(y, {
|
|
1202
1202
|
key: 1,
|
|
1203
1203
|
prop: "list." + Y + ".cycle2",
|
|
1204
1204
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
@@ -1212,7 +1212,7 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1212
1212
|
size: "small"
|
|
1213
1213
|
}, {
|
|
1214
1214
|
default: s(() => [
|
|
1215
|
-
(o(!0), b(U, null, z(
|
|
1215
|
+
(o(!0), b(U, null, z(p.config.cycleOptions, ({ label: w, value: P }) => (o(), L(i, {
|
|
1216
1216
|
label: w,
|
|
1217
1217
|
value: P,
|
|
1218
1218
|
key: P
|
|
@@ -1240,7 +1240,7 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1240
1240
|
default: s(() => {
|
|
1241
1241
|
var w;
|
|
1242
1242
|
return [
|
|
1243
|
-
(o(!0), b(U, null, z((w =
|
|
1243
|
+
(o(!0), b(U, null, z((w = p.config.factorOptions) == null ? void 0 : w.filter((P) => [4].includes(P.type)), ({ label: P, value: Z }) => (o(), L(i, {
|
|
1244
1244
|
label: P,
|
|
1245
1245
|
value: Z,
|
|
1246
1246
|
key: Z
|
|
@@ -1253,7 +1253,7 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1253
1253
|
_: 2
|
|
1254
1254
|
}, 1032, ["prop"])
|
|
1255
1255
|
], 64)) : (o(), b(U, { key: 1 }, [
|
|
1256
|
-
|
|
1256
|
+
p.config.cycleShow ? (o(), L(y, {
|
|
1257
1257
|
key: 0,
|
|
1258
1258
|
prop: "list." + Y + ".cycle",
|
|
1259
1259
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
@@ -1267,7 +1267,7 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1267
1267
|
size: "small"
|
|
1268
1268
|
}, {
|
|
1269
1269
|
default: s(() => [
|
|
1270
|
-
(o(!0), b(U, null, z(
|
|
1270
|
+
(o(!0), b(U, null, z(p.config.cycleOptions, ({ label: w, value: P }) => (o(), L(i, {
|
|
1271
1271
|
label: w,
|
|
1272
1272
|
value: P,
|
|
1273
1273
|
key: P
|
|
@@ -1295,7 +1295,7 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1295
1295
|
default: s(() => {
|
|
1296
1296
|
var w;
|
|
1297
1297
|
return [
|
|
1298
|
-
(o(!0), b(U, null, z((w =
|
|
1298
|
+
(o(!0), b(U, null, z((w = p.config.factorOptions) == null ? void 0 : w.filter((P) => [1, 3].includes(P.type)), ({ label: P, value: Z }) => (o(), L(i, {
|
|
1299
1299
|
label: P,
|
|
1300
1300
|
value: Z,
|
|
1301
1301
|
key: Z
|
|
@@ -1332,7 +1332,7 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1332
1332
|
_: 2
|
|
1333
1333
|
}, 1032, ["prop", "rules"])
|
|
1334
1334
|
], 64)),
|
|
1335
|
-
t(
|
|
1335
|
+
t(c, {
|
|
1336
1336
|
onClick: (w) => B(Y)
|
|
1337
1337
|
}, {
|
|
1338
1338
|
default: s(() => [
|
|
@@ -1341,7 +1341,7 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1341
1341
|
_: 2
|
|
1342
1342
|
}, 1032, ["onClick"])
|
|
1343
1343
|
]))), 256)),
|
|
1344
|
-
t(
|
|
1344
|
+
t(_, {
|
|
1345
1345
|
type: "primary",
|
|
1346
1346
|
plain: "",
|
|
1347
1347
|
size: "small",
|
|
@@ -1354,12 +1354,12 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1354
1354
|
]),
|
|
1355
1355
|
_: 1
|
|
1356
1356
|
}, 8, ["icon"]),
|
|
1357
|
-
t(
|
|
1357
|
+
t(_, {
|
|
1358
1358
|
type: "primary",
|
|
1359
1359
|
plain: "",
|
|
1360
1360
|
size: "small",
|
|
1361
1361
|
icon: g(de),
|
|
1362
|
-
onClick:
|
|
1362
|
+
onClick: V[2] || (V[2] = (C) => j("compare")),
|
|
1363
1363
|
style: { "margin-bottom": "10px" }
|
|
1364
1364
|
}, {
|
|
1365
1365
|
default: s(() => [
|
|
@@ -1367,12 +1367,12 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1367
1367
|
]),
|
|
1368
1368
|
_: 1
|
|
1369
1369
|
}, 8, ["icon"]),
|
|
1370
|
-
|
|
1370
|
+
p.config.sqlShow ? (o(), b(U, { key: 0 }, [
|
|
1371
1371
|
t(y, { label: "SQL功能: " }, {
|
|
1372
1372
|
default: s(() => [
|
|
1373
1373
|
t(D, {
|
|
1374
1374
|
modelValue: h.value.sqlEnable,
|
|
1375
|
-
"onUpdate:modelValue":
|
|
1375
|
+
"onUpdate:modelValue": V[3] || (V[3] = (C) => h.value.sqlEnable = C)
|
|
1376
1376
|
}, {
|
|
1377
1377
|
default: s(() => [
|
|
1378
1378
|
t(u, {
|
|
@@ -1386,11 +1386,11 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1386
1386
|
]),
|
|
1387
1387
|
_: 1
|
|
1388
1388
|
}, 8, ["modelValue"]),
|
|
1389
|
-
h.value.sqlEnable ? (o(), L(
|
|
1389
|
+
h.value.sqlEnable ? (o(), L(_, {
|
|
1390
1390
|
key: 0,
|
|
1391
1391
|
type: "primary",
|
|
1392
1392
|
size: "small",
|
|
1393
|
-
onClick:
|
|
1393
|
+
onClick: d,
|
|
1394
1394
|
style: { "margin-left": "auto" }
|
|
1395
1395
|
}, {
|
|
1396
1396
|
default: s(() => [
|
|
@@ -1402,9 +1402,9 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1402
1402
|
_: 1
|
|
1403
1403
|
}),
|
|
1404
1404
|
h.value.sqlEnable ? (o(), b(U, { key: 0 }, [
|
|
1405
|
-
t(
|
|
1405
|
+
t(f, {
|
|
1406
1406
|
modelValue: h.value.sqlValue,
|
|
1407
|
-
"onUpdate:modelValue":
|
|
1407
|
+
"onUpdate:modelValue": V[4] || (V[4] = (C) => h.value.sqlValue = C),
|
|
1408
1408
|
autosize: { minRows: 4 },
|
|
1409
1409
|
type: "textarea",
|
|
1410
1410
|
style: { "margin-bottom": "10px" }
|
|
@@ -1421,14 +1421,14 @@ const Ye = (d) => (ge("data-v-3592dee9"), d = d(), be(), d), ql = { class: "fact
|
|
|
1421
1421
|
]),
|
|
1422
1422
|
t(Ml, {
|
|
1423
1423
|
visible: x.value,
|
|
1424
|
-
"onUpdate:visible":
|
|
1425
|
-
data: (X =
|
|
1424
|
+
"onUpdate:visible": V[6] || (V[6] = (C) => x.value = C),
|
|
1425
|
+
data: (X = p.config.factorDescriptions) == null ? void 0 : X.filter((C) => [1, 3].includes(C.type))
|
|
1426
1426
|
}, null, 8, ["visible", "data"])
|
|
1427
1427
|
], 64);
|
|
1428
1428
|
};
|
|
1429
1429
|
}
|
|
1430
1430
|
}, Yl = /* @__PURE__ */ _e(Gl, [["__scopeId", "data-v-3592dee9"]]);
|
|
1431
|
-
const re = (
|
|
1431
|
+
const re = (p) => (ge("data-v-781330f8"), p = p(), be(), p), Jl = {
|
|
1432
1432
|
key: 0,
|
|
1433
1433
|
class: "common-indicator"
|
|
1434
1434
|
}, Al = { class: "indicator" }, Kl = /* @__PURE__ */ re(() => /* @__PURE__ */ k("div", { class: "title" }, [
|
|
@@ -1454,30 +1454,30 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1454
1454
|
dataModifiers: {}
|
|
1455
1455
|
}),
|
|
1456
1456
|
emits: ["update:data"],
|
|
1457
|
-
setup(
|
|
1457
|
+
setup(p) {
|
|
1458
1458
|
const R = [
|
|
1459
1459
|
{ label: "近2周", value: "1" },
|
|
1460
1460
|
{ label: "近1个月", value: "2" },
|
|
1461
1461
|
{ label: "近3个月", value: "3" },
|
|
1462
1462
|
{ label: "近6个月", value: "4" },
|
|
1463
1463
|
{ label: "近1年", value: "5" }
|
|
1464
|
-
],
|
|
1465
|
-
var
|
|
1466
|
-
return (
|
|
1464
|
+
], $ = ue(p, "data"), a = p, x = W(!1), q = G(() => {
|
|
1465
|
+
var v;
|
|
1466
|
+
return (v = a.data.find((l) => l.radioType === "1")) == null ? void 0 : v.key;
|
|
1467
1467
|
}), h = G(() => {
|
|
1468
|
-
let
|
|
1469
|
-
return a.varietyMarket === null && !a.commonOption.length ?
|
|
1470
|
-
const { commonOptionIds:
|
|
1471
|
-
return [.../* @__PURE__ */ new Set([...
|
|
1472
|
-
}))),
|
|
1473
|
-
}),
|
|
1474
|
-
|
|
1468
|
+
let v = [];
|
|
1469
|
+
return a.varietyMarket === null && !a.commonOption.length ? v = a.config.options : (v = a.config.options, a.varietyMarket && (v = v.filter(({ parent: l }) => l.varietyMarketIds.includes(a.varietyMarket))), a.commonOption.length && (v = v.filter(({ parent: l }) => {
|
|
1470
|
+
const { commonOptionIds: _ } = l;
|
|
1471
|
+
return [.../* @__PURE__ */ new Set([..._, ...a.commonOption])].length !== [..._, ...a.commonOption].length;
|
|
1472
|
+
}))), v;
|
|
1473
|
+
}), O = W({}), e = W({}), B = (v) => {
|
|
1474
|
+
O.value = v;
|
|
1475
1475
|
const l = {
|
|
1476
|
-
key:
|
|
1477
|
-
type:
|
|
1478
|
-
label:
|
|
1476
|
+
key: v.key,
|
|
1477
|
+
type: v.type,
|
|
1478
|
+
label: v.label
|
|
1479
1479
|
};
|
|
1480
|
-
switch (
|
|
1480
|
+
switch (v.key) {
|
|
1481
1481
|
case "st": {
|
|
1482
1482
|
e.value = { ...l, st: null };
|
|
1483
1483
|
break;
|
|
@@ -1529,10 +1529,10 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1529
1529
|
e.value = {
|
|
1530
1530
|
...l,
|
|
1531
1531
|
range: [null, null],
|
|
1532
|
-
unit:
|
|
1533
|
-
radioType: q.value && q.value !==
|
|
1532
|
+
unit: v.defaultUnit.length ? [...v.defaultUnit] : [null, null],
|
|
1533
|
+
radioType: q.value && q.value !== v.key ? "0" : v.defaultRadioType,
|
|
1534
1534
|
// 0数值 1排名
|
|
1535
|
-
rankRange:
|
|
1535
|
+
rankRange: v.defaultRankRange || [null, null]
|
|
1536
1536
|
// 默认排名
|
|
1537
1537
|
};
|
|
1538
1538
|
}
|
|
@@ -1541,69 +1541,69 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1541
1541
|
var l;
|
|
1542
1542
|
switch (e.value.key) {
|
|
1543
1543
|
case "st": {
|
|
1544
|
-
const { label:
|
|
1545
|
-
if (
|
|
1544
|
+
const { label: _, st: c } = e.value;
|
|
1545
|
+
if (c === null)
|
|
1546
1546
|
return K.warning("格式错误: 请至少选择一个值");
|
|
1547
|
-
e.value.tagText = `${
|
|
1547
|
+
e.value.tagText = `${_}: ${c ? "是" : "否"}`;
|
|
1548
1548
|
break;
|
|
1549
1549
|
}
|
|
1550
1550
|
case "tFeaturelncomes": {
|
|
1551
|
-
const { label:
|
|
1552
|
-
if (["", null].includes(
|
|
1551
|
+
const { label: _, rule: c, withFewYears: m, yearsCount: i, netProfit: T } = e.value;
|
|
1552
|
+
if (["", null].includes(m) || ["", null].includes(i) || ["", null].includes(T))
|
|
1553
1553
|
return K.warning("格式错误: 请填写完整");
|
|
1554
|
-
e.value.tagText = `${
|
|
1554
|
+
e.value.tagText = `${_}: ${m}年内${i}年以上盈利${c === 1 ? "超" : "跌"}过${T}亿`;
|
|
1555
1555
|
break;
|
|
1556
1556
|
}
|
|
1557
1557
|
case "priceLevels": {
|
|
1558
|
-
const { label:
|
|
1559
|
-
if (!
|
|
1558
|
+
const { label: _, priceLevels: c } = e.value;
|
|
1559
|
+
if (!c || c.length === 0)
|
|
1560
1560
|
return K.warning("格式错误: 请至少选择一个值");
|
|
1561
|
-
e.value.tagText = `${
|
|
1561
|
+
e.value.tagText = `${_}: 已选${c}分位`;
|
|
1562
1562
|
break;
|
|
1563
1563
|
}
|
|
1564
1564
|
case "peTtmLevels": {
|
|
1565
|
-
const { label:
|
|
1566
|
-
if (!
|
|
1565
|
+
const { label: _, peTtmLevels: c } = e.value;
|
|
1566
|
+
if (!c || c.length === 0)
|
|
1567
1567
|
return K.warning("格式错误: 请至少选择一个值");
|
|
1568
|
-
e.value.tagText = `${
|
|
1568
|
+
e.value.tagText = `${_}: 已选${c}分位`;
|
|
1569
1569
|
break;
|
|
1570
1570
|
}
|
|
1571
1571
|
case "optionsCpType": {
|
|
1572
|
-
const { label:
|
|
1573
|
-
if (
|
|
1572
|
+
const { label: _, optionsCpType: c } = e.value;
|
|
1573
|
+
if (c === null)
|
|
1574
1574
|
return K.warning("格式错误: 请至少选择一个值");
|
|
1575
|
-
e.value.tagText = `${
|
|
1575
|
+
e.value.tagText = `${_}: ${c === 1 ? "看涨" : "看跌"}`;
|
|
1576
1576
|
break;
|
|
1577
1577
|
}
|
|
1578
1578
|
case "perVolumn": {
|
|
1579
|
-
const { label:
|
|
1580
|
-
if (!
|
|
1579
|
+
const { label: _, radio: c, levels: m } = e.value;
|
|
1580
|
+
if (!c)
|
|
1581
1581
|
return K.warning("格式错误: 请选择时间");
|
|
1582
|
-
if (!(
|
|
1582
|
+
if (!(m != null && m.length))
|
|
1583
1583
|
return K.warning("格式错误: 请选择分位");
|
|
1584
|
-
e.value.tagText = `${
|
|
1584
|
+
e.value.tagText = `${_}: ${(l = R.find((i) => i.value === c)) == null ? void 0 : l.label}${m.map((i) => `${i}分位`).join("、")}`;
|
|
1585
1585
|
break;
|
|
1586
1586
|
}
|
|
1587
1587
|
case "mainFlow": {
|
|
1588
|
-
const { label:
|
|
1588
|
+
const { label: _, mainFlowRadioType: c, radio: m, rankRange: i } = e.value, T = (y) => {
|
|
1589
1589
|
if (y === "" || y === null || y === void 0)
|
|
1590
1590
|
return !1;
|
|
1591
1591
|
const F = Number(y);
|
|
1592
1592
|
return !isNaN(F);
|
|
1593
1593
|
};
|
|
1594
|
-
if (!
|
|
1594
|
+
if (!m)
|
|
1595
1595
|
return K.warning("格式错误: 请选择时间");
|
|
1596
|
-
if (!T(
|
|
1597
|
-
return K.warning(`格式错误: 请填写${
|
|
1598
|
-
e.value.tagText = `${
|
|
1596
|
+
if (!T(i[0]) && !T(i[1]))
|
|
1597
|
+
return K.warning(`格式错误: 请填写${c === "0" ? "涨幅范围" : "排名范围"}`);
|
|
1598
|
+
!["", null].includes(i[0]) && !["", null].includes(i[1]) ? e.value.tagText = `${_}: ${m}日${c === "0" ? "涨幅范围" : "排名范围"}: ${i[0]}${c === "0" ? "%" : ""} ~ ${i[1]}${c === "0" ? "%" : ""}` : ["", null].includes(i[0]) ? e.value.tagText = `${_}: ${m}日${c === "0" ? "涨幅范围" : "排名范围"}: ≤${i[1]}${c === "0" ? "%" : ""}` : e.value.tagText = `${_}: ${m}日${c === "0" ? "涨幅范围" : "排名范围"}: ≥${i[0]}${c === "0" ? "%" : ""}`;
|
|
1599
1599
|
break;
|
|
1600
1600
|
}
|
|
1601
1601
|
default: {
|
|
1602
|
-
const { label:
|
|
1603
|
-
if (["", null].includes(
|
|
1602
|
+
const { label: _, unit: c, radioType: m } = e.value, i = m === "1" ? e.value.rankRange : e.value.range;
|
|
1603
|
+
if (["", null].includes(i[0]) && ["", null].includes(i[1]))
|
|
1604
1604
|
return K.warning("格式错误: 请至少填写一个值");
|
|
1605
|
-
if (
|
|
1606
|
-
const F = Number(
|
|
1605
|
+
if (m === "1") {
|
|
1606
|
+
const F = Number(i[0]), u = Number(i[1]);
|
|
1607
1607
|
if (isNaN(F) || isNaN(u))
|
|
1608
1608
|
return K.warning("格式错误: 请填写数字");
|
|
1609
1609
|
if (F < 0 || u < 0)
|
|
@@ -1611,20 +1611,20 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1611
1611
|
if (F > u)
|
|
1612
1612
|
return K.warning("格式错误: 请填写正确的排名范围");
|
|
1613
1613
|
}
|
|
1614
|
-
const T =
|
|
1615
|
-
!["", null].includes(
|
|
1614
|
+
const T = m === "1" ? "" : c[0] ?? "", y = m === "1" ? "" : c[1] ?? "";
|
|
1615
|
+
!["", null].includes(i[0]) && !["", null].includes(i[1]) ? e.value.tagText = `${_}${m === "1" ? "排名" : ""}: ${i[0]}${T} ~ ${i[1]}${y}` : ["", null].includes(i[0]) ? e.value.tagText = `${_}${m === "1" ? "排名" : ""}: ≤${i[1]}${y}` : e.value.tagText = `${_}${m === "1" ? "排名" : ""}: ≥${i[0]}${T}`;
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
|
-
const
|
|
1619
|
-
|
|
1620
|
-
},
|
|
1621
|
-
|
|
1622
|
-
}, n = (
|
|
1623
|
-
|
|
1624
|
-
}, M = (
|
|
1625
|
-
e.value.range = [...
|
|
1626
|
-
}, I = (
|
|
1627
|
-
switch (
|
|
1618
|
+
const v = $.value.findIndex(({ key: _ }) => _ === e.value.key);
|
|
1619
|
+
v === -1 ? $.value.push(e.value) : $.value.splice(v, 1, e.value), x.value = !1;
|
|
1620
|
+
}, d = (v) => {
|
|
1621
|
+
O.value = h.value.find(({ key: l }) => l === v.key), e.value = JSON.parse(JSON.stringify(v)), x.value = !0;
|
|
1622
|
+
}, n = (v) => {
|
|
1623
|
+
$.value.splice(v, 1);
|
|
1624
|
+
}, M = (v) => {
|
|
1625
|
+
e.value.range = [...v.range], e.value.unit = [...v.unit];
|
|
1626
|
+
}, I = (v) => {
|
|
1627
|
+
switch (v) {
|
|
1628
1628
|
case "≤0":
|
|
1629
1629
|
Object.assign(e.value, {
|
|
1630
1630
|
rule: 2,
|
|
@@ -1671,15 +1671,15 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1671
1671
|
ae(
|
|
1672
1672
|
() => h.value,
|
|
1673
1673
|
() => {
|
|
1674
|
-
|
|
1674
|
+
$.value.length && ($.value = $.value.filter(({ key: v }) => h.value.find((l) => l.key === v)));
|
|
1675
1675
|
}
|
|
1676
1676
|
);
|
|
1677
|
-
const
|
|
1677
|
+
const V = () => {
|
|
1678
1678
|
e.value.radio = null, e.value.rankRange = [null, null];
|
|
1679
1679
|
};
|
|
1680
|
-
return (
|
|
1681
|
-
const
|
|
1682
|
-
return
|
|
1680
|
+
return (v, l) => {
|
|
1681
|
+
const _ = De, c = Ul, m = xe, i = Me, T = Fe, y = ve, F = me, u = he, D = qe, f = ke;
|
|
1682
|
+
return p.config.show && h.value.length ? (o(), b("div", Jl, [
|
|
1683
1683
|
k("div", Al, [
|
|
1684
1684
|
Kl,
|
|
1685
1685
|
k("div", Ql, [
|
|
@@ -1690,7 +1690,7 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1690
1690
|
])
|
|
1691
1691
|
]),
|
|
1692
1692
|
k("div", Hl, [
|
|
1693
|
-
(o(!0), b(U, null, z(
|
|
1693
|
+
(o(!0), b(U, null, z($.value, (S, r) => (o(), L(_, {
|
|
1694
1694
|
closable: "",
|
|
1695
1695
|
type: "info",
|
|
1696
1696
|
onClose: (X) => n(r)
|
|
@@ -1699,16 +1699,16 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1699
1699
|
k("span", null, Q(S.tagText), 1),
|
|
1700
1700
|
k("span", {
|
|
1701
1701
|
class: "edit",
|
|
1702
|
-
onClick: (X) =>
|
|
1702
|
+
onClick: (X) => d(S)
|
|
1703
1703
|
}, "编辑", 8, Wl)
|
|
1704
1704
|
]),
|
|
1705
1705
|
_: 2
|
|
1706
1706
|
}, 1032, ["onClose"]))), 256))
|
|
1707
1707
|
]),
|
|
1708
|
-
t(
|
|
1708
|
+
t(f, {
|
|
1709
1709
|
modelValue: x.value,
|
|
1710
1710
|
"onUpdate:modelValue": l[25] || (l[25] = (S) => x.value = S),
|
|
1711
|
-
title:
|
|
1711
|
+
title: O.value.label,
|
|
1712
1712
|
width: "600",
|
|
1713
1713
|
"align-center": "",
|
|
1714
1714
|
"destroy-on-close": ""
|
|
@@ -1729,22 +1729,22 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1729
1729
|
default: s(() => {
|
|
1730
1730
|
var S;
|
|
1731
1731
|
return [
|
|
1732
|
-
|
|
1732
|
+
O.value.type === void 0 && e.value.radioType === "1" ? (o(), b("div", et, [
|
|
1733
1733
|
lt,
|
|
1734
|
-
t(
|
|
1734
|
+
t(i, {
|
|
1735
1735
|
modelValue: e.value.rankRange[0],
|
|
1736
1736
|
"onUpdate:modelValue": l[2] || (l[2] = (r) => e.value.rankRange[0] = r),
|
|
1737
1737
|
style: { flex: "1" }
|
|
1738
1738
|
}, null, 8, ["modelValue"]),
|
|
1739
1739
|
E(" ~ "),
|
|
1740
|
-
t(
|
|
1740
|
+
t(i, {
|
|
1741
1741
|
modelValue: e.value.rankRange[1],
|
|
1742
1742
|
"onUpdate:modelValue": l[3] || (l[3] = (r) => e.value.rankRange[1] = r),
|
|
1743
1743
|
style: { flex: "1" }
|
|
1744
1744
|
}, null, 8, ["modelValue"])
|
|
1745
|
-
])) :
|
|
1746
|
-
(S =
|
|
1747
|
-
(o(!0), b(U, null, z(
|
|
1745
|
+
])) : O.value.type === void 0 ? (o(), b(U, { key: 1 }, [
|
|
1746
|
+
(S = O.value.convenientOptions) != null && S.length ? (o(), b("div", tt, [
|
|
1747
|
+
(o(!0), b(U, null, z(O.value.convenientOptions, (r) => (o(), L(T, {
|
|
1748
1748
|
key: r.text,
|
|
1749
1749
|
onClick: (X) => M(r)
|
|
1750
1750
|
}, {
|
|
@@ -1756,22 +1756,22 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1756
1756
|
])) : N("", !0),
|
|
1757
1757
|
k("div", at, [
|
|
1758
1758
|
nt,
|
|
1759
|
-
t(
|
|
1759
|
+
t(i, {
|
|
1760
1760
|
modelValue: e.value.range[0],
|
|
1761
1761
|
"onUpdate:modelValue": l[5] || (l[5] = (r) => e.value.range[0] = r),
|
|
1762
1762
|
style: { flex: "1" }
|
|
1763
1763
|
}, ie({ _: 2 }, [
|
|
1764
|
-
|
|
1764
|
+
O.value.unitOptions.length ? {
|
|
1765
1765
|
name: "append",
|
|
1766
1766
|
fn: s(() => [
|
|
1767
|
-
|
|
1767
|
+
O.value.unitOptions.length === 1 ? (o(), b("span", ot, Q(e.value.unit[0]), 1)) : (o(), L(F, {
|
|
1768
1768
|
key: 1,
|
|
1769
1769
|
modelValue: e.value.unit[0],
|
|
1770
1770
|
"onUpdate:modelValue": l[4] || (l[4] = (r) => e.value.unit[0] = r),
|
|
1771
1771
|
style: { width: "72px" }
|
|
1772
1772
|
}, {
|
|
1773
1773
|
default: s(() => [
|
|
1774
|
-
(o(!0), b(U, null, z(
|
|
1774
|
+
(o(!0), b(U, null, z(O.value.unitOptions, (r) => (o(), L(y, {
|
|
1775
1775
|
label: r,
|
|
1776
1776
|
value: r
|
|
1777
1777
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -1783,22 +1783,22 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1783
1783
|
} : void 0
|
|
1784
1784
|
]), 1032, ["modelValue"]),
|
|
1785
1785
|
E(" ~ "),
|
|
1786
|
-
t(
|
|
1786
|
+
t(i, {
|
|
1787
1787
|
modelValue: e.value.range[1],
|
|
1788
1788
|
"onUpdate:modelValue": l[7] || (l[7] = (r) => e.value.range[1] = r),
|
|
1789
1789
|
style: { flex: "1" }
|
|
1790
1790
|
}, ie({ _: 2 }, [
|
|
1791
|
-
|
|
1791
|
+
O.value.unitOptions.length ? {
|
|
1792
1792
|
name: "append",
|
|
1793
1793
|
fn: s(() => [
|
|
1794
|
-
|
|
1794
|
+
O.value.unitOptions.length === 1 ? (o(), b("span", ut, Q(e.value.unit[1]), 1)) : (o(), L(F, {
|
|
1795
1795
|
key: 1,
|
|
1796
1796
|
modelValue: e.value.unit[1],
|
|
1797
1797
|
"onUpdate:modelValue": l[6] || (l[6] = (r) => e.value.unit[1] = r),
|
|
1798
1798
|
style: { width: "72px" }
|
|
1799
1799
|
}, {
|
|
1800
1800
|
default: s(() => [
|
|
1801
|
-
(o(!0), b(U, null, z(
|
|
1801
|
+
(o(!0), b(U, null, z(O.value.unitOptions, (r) => (o(), L(y, {
|
|
1802
1802
|
label: r,
|
|
1803
1803
|
value: r
|
|
1804
1804
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -1811,8 +1811,8 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1811
1811
|
]), 1032, ["modelValue"])
|
|
1812
1812
|
])
|
|
1813
1813
|
], 64)) : (o(), b(U, { key: 2 }, [
|
|
1814
|
-
|
|
1815
|
-
t(
|
|
1814
|
+
O.value.key === "st" ? (o(), b("div", rt, [
|
|
1815
|
+
t(m, {
|
|
1816
1816
|
modelValue: e.value.st,
|
|
1817
1817
|
"onUpdate:modelValue": l[8] || (l[8] = (r) => e.value.st = r)
|
|
1818
1818
|
}, {
|
|
@@ -1829,7 +1829,7 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1829
1829
|
_: 1
|
|
1830
1830
|
}, 8, ["modelValue"])
|
|
1831
1831
|
])) : N("", !0),
|
|
1832
|
-
|
|
1832
|
+
O.value.key === "tFeaturelncomes" ? (o(), b("div", st, [
|
|
1833
1833
|
k("div", it, [
|
|
1834
1834
|
t(T, {
|
|
1835
1835
|
onClick: l[9] || (l[9] = (r) => I("≤0"))
|
|
@@ -1896,7 +1896,7 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1896
1896
|
])
|
|
1897
1897
|
])
|
|
1898
1898
|
])) : N("", !0),
|
|
1899
|
-
|
|
1899
|
+
O.value.key === "priceLevels" ? (o(), b("div", pt, [
|
|
1900
1900
|
t(F, {
|
|
1901
1901
|
modelValue: e.value.priceLevels,
|
|
1902
1902
|
"onUpdate:modelValue": l[17] || (l[17] = (r) => e.value.priceLevels = r),
|
|
@@ -1915,7 +1915,7 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1915
1915
|
_: 1
|
|
1916
1916
|
}, 8, ["modelValue"])
|
|
1917
1917
|
])) : N("", !0),
|
|
1918
|
-
|
|
1918
|
+
O.value.key === "peTtmLevels" ? (o(), b("div", vt, [
|
|
1919
1919
|
t(F, {
|
|
1920
1920
|
modelValue: e.value.peTtmLevels,
|
|
1921
1921
|
"onUpdate:modelValue": l[18] || (l[18] = (r) => e.value.peTtmLevels = r),
|
|
@@ -1934,8 +1934,8 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1934
1934
|
_: 1
|
|
1935
1935
|
}, 8, ["modelValue"])
|
|
1936
1936
|
])) : N("", !0),
|
|
1937
|
-
|
|
1938
|
-
t(
|
|
1937
|
+
O.value.key === "optionsCpType" ? (o(), b("div", mt, [
|
|
1938
|
+
t(m, {
|
|
1939
1939
|
modelValue: e.value.optionsCpType,
|
|
1940
1940
|
"onUpdate:modelValue": l[19] || (l[19] = (r) => e.value.optionsCpType = r)
|
|
1941
1941
|
}, {
|
|
@@ -1952,8 +1952,8 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1952
1952
|
_: 1
|
|
1953
1953
|
}, 8, ["modelValue"])
|
|
1954
1954
|
])) : N("", !0),
|
|
1955
|
-
|
|
1956
|
-
t(
|
|
1955
|
+
O.value.key === "perVolumn" ? (o(), b("div", ft, [
|
|
1956
|
+
t(m, {
|
|
1957
1957
|
modelValue: e.value.radio,
|
|
1958
1958
|
"onUpdate:modelValue": l[20] || (l[20] = (r) => e.value.radio = r)
|
|
1959
1959
|
}, {
|
|
@@ -1988,8 +1988,8 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
1988
1988
|
_: 1
|
|
1989
1989
|
}, 8, ["modelValue"])
|
|
1990
1990
|
])) : N("", !0),
|
|
1991
|
-
|
|
1992
|
-
t(
|
|
1991
|
+
O.value.key === "mainFlow" ? (o(), b("div", yt, [
|
|
1992
|
+
t(m, {
|
|
1993
1993
|
modelValue: e.value.radio,
|
|
1994
1994
|
"onUpdate:modelValue": l[22] || (l[22] = (r) => e.value.radio = r)
|
|
1995
1995
|
}, {
|
|
@@ -2023,13 +2023,13 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
2023
2023
|
}, 8, ["modelValue"]),
|
|
2024
2024
|
k("div", gt, [
|
|
2025
2025
|
k("span", null, Q(e.value.mainFlowRadioType === "0" ? "涨幅范围" : "排名范围") + ": ", 1),
|
|
2026
|
-
t(
|
|
2026
|
+
t(i, {
|
|
2027
2027
|
modelValue: e.value.rankRange[0],
|
|
2028
2028
|
"onUpdate:modelValue": l[23] || (l[23] = (r) => e.value.rankRange[0] = r),
|
|
2029
2029
|
style: { flex: "1" }
|
|
2030
2030
|
}, null, 8, ["modelValue"]),
|
|
2031
2031
|
E(" ~ "),
|
|
2032
|
-
t(
|
|
2032
|
+
t(i, {
|
|
2033
2033
|
modelValue: e.value.rankRange[1],
|
|
2034
2034
|
"onUpdate:modelValue": l[24] || (l[24] = (r) => e.value.rankRange[1] = r),
|
|
2035
2035
|
style: { flex: "1" }
|
|
@@ -2041,22 +2041,22 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
2041
2041
|
}),
|
|
2042
2042
|
_: 2
|
|
2043
2043
|
}, [
|
|
2044
|
-
|
|
2044
|
+
O.value.showRankType ? {
|
|
2045
2045
|
name: "header",
|
|
2046
2046
|
fn: s(() => [
|
|
2047
|
-
k("span", Xl, Q(
|
|
2048
|
-
t(
|
|
2047
|
+
k("span", Xl, Q(O.value.label), 1),
|
|
2048
|
+
t(m, {
|
|
2049
2049
|
modelValue: e.value.radioType,
|
|
2050
2050
|
"onUpdate:modelValue": l[0] || (l[0] = (S) => e.value.radioType = S),
|
|
2051
2051
|
style: { "vertical-align": "4px", "margin-left": "12px" }
|
|
2052
2052
|
}, {
|
|
2053
2053
|
default: s(() => [
|
|
2054
|
-
t(
|
|
2054
|
+
t(c, {
|
|
2055
2055
|
label: "数值",
|
|
2056
2056
|
value: "0"
|
|
2057
2057
|
}),
|
|
2058
|
-
t(
|
|
2059
|
-
disabled: q.value && q.value !==
|
|
2058
|
+
t(c, {
|
|
2059
|
+
disabled: q.value && q.value !== O.value.key,
|
|
2060
2060
|
label: "排名",
|
|
2061
2061
|
value: "1"
|
|
2062
2062
|
}, null, 8, ["disabled"])
|
|
@@ -2065,22 +2065,22 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
2065
2065
|
}, 8, ["modelValue"])
|
|
2066
2066
|
]),
|
|
2067
2067
|
key: "0"
|
|
2068
|
-
} :
|
|
2068
|
+
} : O.value.key === "mainFlow" ? {
|
|
2069
2069
|
name: "header",
|
|
2070
2070
|
fn: s(() => [
|
|
2071
|
-
k("span", { style: { "font-size": "18px" } }, Q(
|
|
2072
|
-
t(
|
|
2071
|
+
k("span", { style: { "font-size": "18px" } }, Q(O.value.label), 1),
|
|
2072
|
+
t(m, {
|
|
2073
2073
|
modelValue: e.value.mainFlowRadioType,
|
|
2074
2074
|
"onUpdate:modelValue": l[1] || (l[1] = (S) => e.value.mainFlowRadioType = S),
|
|
2075
2075
|
style: { "vertical-align": "4px", "margin-left": "12px" },
|
|
2076
|
-
onChange:
|
|
2076
|
+
onChange: V
|
|
2077
2077
|
}, {
|
|
2078
2078
|
default: s(() => [
|
|
2079
|
-
t(
|
|
2079
|
+
t(c, {
|
|
2080
2080
|
label: "涨幅范围",
|
|
2081
2081
|
value: "0"
|
|
2082
2082
|
}),
|
|
2083
|
-
t(
|
|
2083
|
+
t(c, {
|
|
2084
2084
|
label: "排名范围",
|
|
2085
2085
|
value: "1"
|
|
2086
2086
|
})
|
|
@@ -2094,11 +2094,11 @@ const re = (d) => (ge("data-v-b6076567"), d = d(), be(), d), Jl = {
|
|
|
2094
2094
|
])) : N("", !0);
|
|
2095
2095
|
};
|
|
2096
2096
|
}
|
|
2097
|
-
}, _t = /* @__PURE__ */ _e(kt, [["__scopeId", "data-v-
|
|
2098
|
-
const le = (
|
|
2097
|
+
}, _t = /* @__PURE__ */ _e(kt, [["__scopeId", "data-v-781330f8"]]);
|
|
2098
|
+
const le = (p) => (ge("data-v-bdbe35cf"), p = p(), be(), p), Vt = { class: "variety-search" }, ht = {
|
|
2099
2099
|
key: 0,
|
|
2100
2100
|
class: "variety-search-row"
|
|
2101
|
-
}, xt = { class: "title" },
|
|
2101
|
+
}, xt = { class: "title" }, $t = /* @__PURE__ */ le(() => /* @__PURE__ */ k("span", null, "品种市场: ", -1)), Ot = {
|
|
2102
2102
|
key: 1,
|
|
2103
2103
|
class: "variety-search-row"
|
|
2104
2104
|
}, It = { class: "title" }, wt = /* @__PURE__ */ le(() => /* @__PURE__ */ k("span", null, "常用选项: ", -1)), Tt = {
|
|
@@ -2120,8 +2120,8 @@ const le = (d) => (ge("data-v-bdbe35cf"), d = d(), be(), d), Vt = { class: "vari
|
|
|
2120
2120
|
searchDataModifiers: {}
|
|
2121
2121
|
}),
|
|
2122
2122
|
emits: ["update:searchData"],
|
|
2123
|
-
setup(
|
|
2124
|
-
const
|
|
2123
|
+
setup(p, { expose: R }) {
|
|
2124
|
+
const $ = p, a = ue(p, "searchData");
|
|
2125
2125
|
a.value = Object.assign(a.value, {
|
|
2126
2126
|
// 品种市场
|
|
2127
2127
|
varietyMarket: null,
|
|
@@ -2146,43 +2146,43 @@ const le = (d) => (ge("data-v-bdbe35cf"), d = d(), be(), d), Vt = { class: "vari
|
|
|
2146
2146
|
commonIndicator: []
|
|
2147
2147
|
});
|
|
2148
2148
|
const x = G(() => {
|
|
2149
|
-
const
|
|
2149
|
+
const d = {};
|
|
2150
2150
|
return Object.keys(Te).forEach((n) => {
|
|
2151
|
-
const M = Te[n], I =
|
|
2152
|
-
|
|
2153
|
-
}),
|
|
2151
|
+
const M = Te[n], I = $.config[n] ?? {}, V = { ...M, ...I };
|
|
2152
|
+
d[n] = V;
|
|
2153
|
+
}), d;
|
|
2154
2154
|
}), q = G(() => x.value.varietyMarket.options), h = G(() => {
|
|
2155
|
-
const { varietyMarket:
|
|
2156
|
-
return
|
|
2157
|
-
const
|
|
2158
|
-
return
|
|
2155
|
+
const { varietyMarket: d } = a.value;
|
|
2156
|
+
return d ? q.value.find(({ value: M }) => M === d).memo.reduce((M, I) => {
|
|
2157
|
+
const V = x.value.commonOption.options.find((v) => v.value === I);
|
|
2158
|
+
return V && M.push(V), M;
|
|
2159
2159
|
}, []) : x.value.commonOption.options;
|
|
2160
|
-
}),
|
|
2161
|
-
const { varietyMarket:
|
|
2162
|
-
return
|
|
2163
|
-
}), e = G(() => x.value.customTag.options), B = G(() => x.value.jcTranslate.jcOptions), j = (
|
|
2164
|
-
switch (
|
|
2160
|
+
}), O = G(() => {
|
|
2161
|
+
const { varietyMarket: d } = a.value;
|
|
2162
|
+
return d ? x.value.marketIds.options.filter((n) => n.varietyMarketIds.includes(d)) : x.value.marketIds.options;
|
|
2163
|
+
}), e = G(() => x.value.customTag.options), B = G(() => x.value.jcTranslate.jcOptions), j = (d) => {
|
|
2164
|
+
switch (d) {
|
|
2165
2165
|
case "commonOption": {
|
|
2166
|
-
a.value[
|
|
2166
|
+
a.value[d] = [];
|
|
2167
2167
|
break;
|
|
2168
2168
|
}
|
|
2169
2169
|
case "marketIds": {
|
|
2170
|
-
a.value[
|
|
2170
|
+
a.value[d] = [];
|
|
2171
2171
|
break;
|
|
2172
2172
|
}
|
|
2173
2173
|
case "customTag": {
|
|
2174
|
-
a.value[
|
|
2174
|
+
a.value[d] = [];
|
|
2175
2175
|
break;
|
|
2176
2176
|
}
|
|
2177
2177
|
case "jcTranslate": {
|
|
2178
|
-
a.value[
|
|
2178
|
+
a.value[d] = {
|
|
2179
2179
|
type: null,
|
|
2180
2180
|
jcList: []
|
|
2181
2181
|
};
|
|
2182
2182
|
break;
|
|
2183
2183
|
}
|
|
2184
2184
|
case "factorScreen": {
|
|
2185
|
-
a.value[
|
|
2185
|
+
a.value[d] = {
|
|
2186
2186
|
list: [],
|
|
2187
2187
|
sqlEnable: 0,
|
|
2188
2188
|
sqlValue: null
|
|
@@ -2190,38 +2190,38 @@ const le = (d) => (ge("data-v-bdbe35cf"), d = d(), be(), d), Vt = { class: "vari
|
|
|
2190
2190
|
break;
|
|
2191
2191
|
}
|
|
2192
2192
|
case "commonIndicator": {
|
|
2193
|
-
a.value[
|
|
2193
|
+
a.value[d] = [];
|
|
2194
2194
|
break;
|
|
2195
2195
|
}
|
|
2196
2196
|
default: {
|
|
2197
|
-
a.value[
|
|
2197
|
+
a.value[d] = null;
|
|
2198
2198
|
break;
|
|
2199
2199
|
}
|
|
2200
2200
|
}
|
|
2201
2201
|
};
|
|
2202
2202
|
return ae(
|
|
2203
2203
|
() => h.value,
|
|
2204
|
-
(
|
|
2204
|
+
(d) => {
|
|
2205
2205
|
var n;
|
|
2206
|
-
(n = a.value.commonOption) != null && n.length && (a.value.commonOption = a.value.commonOption.filter((M) =>
|
|
2206
|
+
(n = a.value.commonOption) != null && n.length && (a.value.commonOption = a.value.commonOption.filter((M) => d.find(({ value: I }) => I === M)));
|
|
2207
2207
|
}
|
|
2208
2208
|
), ae(
|
|
2209
|
-
() =>
|
|
2210
|
-
(
|
|
2209
|
+
() => O.value,
|
|
2210
|
+
(d) => {
|
|
2211
2211
|
var n;
|
|
2212
|
-
(n = a.value.marketIds) != null && n.length && (a.value.marketIds = a.value.marketIds.filter((M) =>
|
|
2212
|
+
(n = a.value.marketIds) != null && n.length && (a.value.marketIds = a.value.marketIds.filter((M) => d.find(({ value: I }) => I === M)));
|
|
2213
2213
|
}
|
|
2214
2214
|
), R({
|
|
2215
2215
|
// 生成接口传参结构的数据
|
|
2216
|
-
formatData: (
|
|
2217
|
-
var M, I,
|
|
2216
|
+
formatData: (d) => {
|
|
2217
|
+
var M, I, V, v, l, _;
|
|
2218
2218
|
console.log("%c[品种池搜索聚合组件]: 正在生成接口传参...", "color: tomato");
|
|
2219
2219
|
const n = {};
|
|
2220
|
-
if (
|
|
2221
|
-
const { jcTranslate:
|
|
2222
|
-
switch (
|
|
2220
|
+
if (d.varietyMarket && (n.exchangeId = String(d.varietyMarket)), (M = d.commonOption) != null && M.length && (n.optionId = d.commonOption.join(",")), (I = d.marketIds) != null && I.length && (n.marketIds = d.marketIds), (V = d.customTag) != null && V.length && (n.tagIds = d.customTag), (v = x.value.jcTranslate) != null && v.show) {
|
|
2221
|
+
const { jcTranslate: c } = d, { type: m, jcList: i } = c;
|
|
2222
|
+
switch (m) {
|
|
2223
2223
|
case 1: {
|
|
2224
|
-
n.translateType = 1, n.jcType =
|
|
2224
|
+
n.translateType = 1, n.jcType = i.join(",");
|
|
2225
2225
|
break;
|
|
2226
2226
|
}
|
|
2227
2227
|
case 2:
|
|
@@ -2229,28 +2229,28 @@ const le = (d) => (ge("data-v-bdbe35cf"), d = d(), be(), d), Vt = { class: "vari
|
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
2231
|
if ((l = x.value.factorScreen) != null && l.show) {
|
|
2232
|
-
const { factorScreen:
|
|
2233
|
-
if ((
|
|
2234
|
-
switch (
|
|
2232
|
+
const { factorScreen: c } = d;
|
|
2233
|
+
if ((_ = c == null ? void 0 : c.list) != null && _.length && (n.tbFeatureFactorScores = c.list.map((m) => {
|
|
2234
|
+
switch (m.key) {
|
|
2235
2235
|
case "compare":
|
|
2236
2236
|
return {
|
|
2237
|
-
freqId:
|
|
2238
|
-
factorId:
|
|
2239
|
-
compareType:
|
|
2240
|
-
freqId2:
|
|
2241
|
-
factorId2:
|
|
2237
|
+
freqId: m.cycle,
|
|
2238
|
+
factorId: m.factor,
|
|
2239
|
+
compareType: m.compareType,
|
|
2240
|
+
freqId2: m.cycle2,
|
|
2241
|
+
factorId2: m.factor2
|
|
2242
2242
|
};
|
|
2243
2243
|
default:
|
|
2244
2244
|
return {
|
|
2245
|
-
freqId:
|
|
2246
|
-
factorId:
|
|
2247
|
-
startScore:
|
|
2248
|
-
endScore:
|
|
2245
|
+
freqId: m.cycle,
|
|
2246
|
+
factorId: m.factor,
|
|
2247
|
+
startScore: m.score[0],
|
|
2248
|
+
endScore: m.score[1]
|
|
2249
2249
|
};
|
|
2250
2250
|
}
|
|
2251
|
-
})),
|
|
2252
|
-
const
|
|
2253
|
-
var D,
|
|
2251
|
+
})), c.sqlEnable) {
|
|
2252
|
+
const m = c.list.reduce((T, y, F) => {
|
|
2253
|
+
var D, f;
|
|
2254
2254
|
const u = `条件${F + 1}`;
|
|
2255
2255
|
switch (y.key) {
|
|
2256
2256
|
case "compare": {
|
|
@@ -2260,22 +2260,22 @@ const le = (d) => (ge("data-v-bdbe35cf"), d = d(), be(), d), Vt = { class: "vari
|
|
|
2260
2260
|
}
|
|
2261
2261
|
default: {
|
|
2262
2262
|
let S = `factor_id = ${y.factor} and `;
|
|
2263
|
-
(
|
|
2263
|
+
(f = x.value.factorScreen) != null && f.cycleShow && (S = `freq_id = ${y.cycle} and factor_id = ${y.factor} and `), (y.score[0] || y.score[0] === 0) && (y.score[1] || y.score[1] === 0) ? S += `score >= ${y.score[0]} and score <= ${y.score[1]}` : y.score[0] || y.score[0] === 0 ? S += `score >= ${y.score[0]}` : (y.score[1] || y.score[1] === 0) && (S += `score <= ${y.score[1]}`), T.set(u, `(${S})`);
|
|
2264
2264
|
}
|
|
2265
2265
|
}
|
|
2266
2266
|
return T;
|
|
2267
2267
|
}, /* @__PURE__ */ new Map([]));
|
|
2268
|
-
let
|
|
2269
|
-
for (const [T, y] of
|
|
2268
|
+
let i = c.sqlValue;
|
|
2269
|
+
for (const [T, y] of m) {
|
|
2270
2270
|
const F = new RegExp(T, "g");
|
|
2271
|
-
|
|
2271
|
+
i = i.replace(F, y);
|
|
2272
2272
|
}
|
|
2273
|
-
n.sql =
|
|
2273
|
+
n.sql = i, n.sqlExpression = c.sqlValue;
|
|
2274
2274
|
}
|
|
2275
|
-
n.enableSql =
|
|
2275
|
+
n.enableSql = c.sqlEnable === 1 ? 2 : 1;
|
|
2276
2276
|
}
|
|
2277
2277
|
{
|
|
2278
|
-
const
|
|
2278
|
+
const c = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"], m = d.commonIndicator.reduce((f, S) => {
|
|
2279
2279
|
const { key: r, type: X, range: C, unit: Y, radioType: w, mainFlowRadioType: P, radio: Z, rankRange: se } = S;
|
|
2280
2280
|
if (w === "1")
|
|
2281
2281
|
n.sortBy = {
|
|
@@ -2285,15 +2285,15 @@ const le = (d) => (ge("data-v-bdbe35cf"), d = d(), be(), d), Vt = { class: "vari
|
|
|
2285
2285
|
};
|
|
2286
2286
|
else if (r === "dividendYield") {
|
|
2287
2287
|
let [J, A] = C;
|
|
2288
|
-
["", null].includes(J) || (J = J / 100), ["", null].includes(A) || (A = A / 100),
|
|
2288
|
+
["", null].includes(J) || (J = J / 100), ["", null].includes(A) || (A = A / 100), f.push({
|
|
2289
2289
|
column: S.key,
|
|
2290
2290
|
start: J,
|
|
2291
2291
|
end: A
|
|
2292
2292
|
});
|
|
2293
2293
|
} else if (r === "mainFlow") {
|
|
2294
2294
|
let [J, A] = se, Je = P === "0" ? `netInfow${Z}d` : `last${Z}DayMianFlowRank`;
|
|
2295
|
-
|
|
2296
|
-
} else if (X === void 0 && !
|
|
2295
|
+
f.push({ column: Je, start: J, end: A });
|
|
2296
|
+
} else if (X === void 0 && !c.includes(r)) {
|
|
2297
2297
|
let [J, A] = C;
|
|
2298
2298
|
if (!["", null].includes(J))
|
|
2299
2299
|
switch (Y[0]) {
|
|
@@ -2319,60 +2319,60 @@ const le = (d) => (ge("data-v-bdbe35cf"), d = d(), be(), d), Vt = { class: "vari
|
|
|
2319
2319
|
A = A;
|
|
2320
2320
|
break;
|
|
2321
2321
|
}
|
|
2322
|
-
|
|
2322
|
+
f.push({
|
|
2323
2323
|
column: S.key,
|
|
2324
2324
|
start: J,
|
|
2325
2325
|
end: A
|
|
2326
2326
|
});
|
|
2327
2327
|
}
|
|
2328
|
-
return
|
|
2328
|
+
return f;
|
|
2329
2329
|
}, []);
|
|
2330
|
-
|
|
2331
|
-
const
|
|
2332
|
-
|
|
2333
|
-
const T =
|
|
2330
|
+
m.length && (n.query = m);
|
|
2331
|
+
const i = d.commonIndicator.find(({ key: f }) => f === "st");
|
|
2332
|
+
i && (n.st = i.st);
|
|
2333
|
+
const T = d.commonIndicator.find(({ key: f }) => f === "tFeaturelncomes");
|
|
2334
2334
|
T && (n.netProfitQueryDto = { ...T, netProfit: T.netProfit * 1e8 });
|
|
2335
|
-
const y =
|
|
2335
|
+
const y = d.commonIndicator.find(({ key: f }) => f === "priceLevels");
|
|
2336
2336
|
y && (n.priceLevels = y.priceLevels);
|
|
2337
|
-
const F =
|
|
2337
|
+
const F = d.commonIndicator.find(({ key: f }) => f === "peTtmLevels");
|
|
2338
2338
|
F && (n.peTtmLevels = F.peTtmLevels);
|
|
2339
2339
|
const u = {};
|
|
2340
|
-
|
|
2341
|
-
const { key: S } =
|
|
2340
|
+
d.commonIndicator.forEach((f) => {
|
|
2341
|
+
const { key: S } = f;
|
|
2342
2342
|
switch (S) {
|
|
2343
2343
|
case "expireDays":
|
|
2344
|
-
["", null].includes(
|
|
2344
|
+
["", null].includes(f.range[0]) || (u.minExpireDays = f.range[0]), ["", null].includes(f.range[1]) || (u.maxExpireDays = f.range[1]);
|
|
2345
2345
|
break;
|
|
2346
2346
|
case "virtualRealDegree":
|
|
2347
|
-
["", null].includes(
|
|
2347
|
+
["", null].includes(f.range[0]) || (u.minVirtualRealDegree = f.range[0] / 100), ["", null].includes(f.range[1]) || (u.maxVirtualRealDegree = f.range[1] / 100);
|
|
2348
2348
|
break;
|
|
2349
2349
|
case "yearProfitRate":
|
|
2350
|
-
["", null].includes(
|
|
2350
|
+
["", null].includes(f.range[0]) || (u.minYearProfitRate = f.range[0] / 100), ["", null].includes(f.range[1]) || (u.maxYearProfitRate = f.range[1] / 100);
|
|
2351
2351
|
break;
|
|
2352
2352
|
case "impliedVolatility":
|
|
2353
|
-
["", null].includes(
|
|
2353
|
+
["", null].includes(f.range[0]) || (u.minImpliedVolatility = f.range[0] / 100), ["", null].includes(f.range[1]) || (u.maxImpliedVolatility = f.range[1] / 100);
|
|
2354
2354
|
break;
|
|
2355
2355
|
case "levelMultiplier":
|
|
2356
|
-
["", null].includes(
|
|
2356
|
+
["", null].includes(f.range[0]) || (u.minLevelMultiplier = f.range[0]), ["", null].includes(f.range[1]) || (u.maxLevelMultiplier = f.range[1]);
|
|
2357
2357
|
break;
|
|
2358
2358
|
case "turnover":
|
|
2359
|
-
["", null].includes(
|
|
2359
|
+
["", null].includes(f.range[0]) || (u.minTurnover = f.range[0] * 1e4), ["", null].includes(f.range[1]) || (u.maxTurnover = f.range[1] * 1e4);
|
|
2360
2360
|
break;
|
|
2361
2361
|
case "volume":
|
|
2362
|
-
["", null].includes(
|
|
2362
|
+
["", null].includes(f.range[0]) || (u.minVolume = f.range[0]), ["", null].includes(f.range[1]) || (u.maxVolume = f.range[1]);
|
|
2363
2363
|
break;
|
|
2364
2364
|
case "openInterest":
|
|
2365
|
-
["", null].includes(
|
|
2365
|
+
["", null].includes(f.range[0]) || (u.minOpenInterest = f.range[0]), ["", null].includes(f.range[1]) || (u.maxOpenInterest = f.range[1]);
|
|
2366
2366
|
break;
|
|
2367
2367
|
case "optionsCpType":
|
|
2368
|
-
u.optionsCpType =
|
|
2368
|
+
u.optionsCpType = f.optionsCpType;
|
|
2369
2369
|
break;
|
|
2370
2370
|
case "optionGear":
|
|
2371
|
-
["", null].includes(
|
|
2371
|
+
["", null].includes(f.range[0]) || (u.minOptionGear = f.range[0]), ["", null].includes(f.range[1]) || (u.maxOptionGear = f.range[1]);
|
|
2372
2372
|
break;
|
|
2373
2373
|
}
|
|
2374
2374
|
});
|
|
2375
|
-
const D =
|
|
2375
|
+
const D = d.commonIndicator.find(({ key: f }) => f === "perVolumn");
|
|
2376
2376
|
D && (n.perVolumn = {
|
|
2377
2377
|
type: D.radio,
|
|
2378
2378
|
value: D.levels
|
|
@@ -2409,13 +2409,13 @@ const le = (d) => (ge("data-v-bdbe35cf"), d = d(), be(), d), Vt = { class: "vari
|
|
|
2409
2409
|
commonIndicator: []
|
|
2410
2410
|
};
|
|
2411
2411
|
}
|
|
2412
|
-
}), (
|
|
2413
|
-
var
|
|
2414
|
-
const M = he, I = xe,
|
|
2412
|
+
}), (d, n) => {
|
|
2413
|
+
var c, m, i, T, y, F;
|
|
2414
|
+
const M = he, I = xe, V = el, v = ll, l = ve, _ = me;
|
|
2415
2415
|
return o(), b("div", Vt, [
|
|
2416
|
-
(
|
|
2416
|
+
(c = x.value.varietyMarket) != null && c.show ? (o(), b("div", ht, [
|
|
2417
2417
|
k("div", xt, [
|
|
2418
|
-
|
|
2418
|
+
$t,
|
|
2419
2419
|
k("span", {
|
|
2420
2420
|
onClick: n[0] || (n[0] = (u) => j("varietyMarket"))
|
|
2421
2421
|
}, "不限")
|
|
@@ -2435,20 +2435,20 @@ const le = (d) => (ge("data-v-bdbe35cf"), d = d(), be(), d), Vt = { class: "vari
|
|
|
2435
2435
|
_: 1
|
|
2436
2436
|
}, 8, ["modelValue"])
|
|
2437
2437
|
])) : N("", !0),
|
|
2438
|
-
(
|
|
2438
|
+
(m = x.value.commonOption) != null && m.show && h.value.length ? (o(), b("div", Ot, [
|
|
2439
2439
|
k("div", It, [
|
|
2440
2440
|
wt,
|
|
2441
2441
|
k("span", {
|
|
2442
2442
|
onClick: n[2] || (n[2] = (u) => j("commonOption"))
|
|
2443
2443
|
}, "不限")
|
|
2444
2444
|
]),
|
|
2445
|
-
t(
|
|
2445
|
+
t(v, {
|
|
2446
2446
|
modelValue: a.value.commonOption,
|
|
2447
2447
|
"onUpdate:modelValue": n[3] || (n[3] = (u) => a.value.commonOption = u),
|
|
2448
2448
|
size: "small"
|
|
2449
2449
|
}, {
|
|
2450
2450
|
default: s(() => [
|
|
2451
|
-
(o(!0), b(U, null, z(h.value, ({ label: u, value: D }) => (o(), L(
|
|
2451
|
+
(o(!0), b(U, null, z(h.value, ({ label: u, value: D }) => (o(), L(V, {
|
|
2452
2452
|
label: u,
|
|
2453
2453
|
value: D,
|
|
2454
2454
|
key: D
|
|
@@ -2457,20 +2457,20 @@ const le = (d) => (ge("data-v-bdbe35cf"), d = d(), be(), d), Vt = { class: "vari
|
|
|
2457
2457
|
_: 1
|
|
2458
2458
|
}, 8, ["modelValue"])
|
|
2459
2459
|
])) : N("", !0),
|
|
2460
|
-
(
|
|
2460
|
+
(i = x.value.marketIds) != null && i.show && O.value.length ? (o(), b("div", Tt, [
|
|
2461
2461
|
k("div", Ct, [
|
|
2462
2462
|
Rt,
|
|
2463
2463
|
k("span", {
|
|
2464
2464
|
onClick: n[4] || (n[4] = (u) => j("marketIds"))
|
|
2465
2465
|
}, "不限")
|
|
2466
2466
|
]),
|
|
2467
|
-
t(
|
|
2467
|
+
t(v, {
|
|
2468
2468
|
modelValue: a.value.marketIds,
|
|
2469
2469
|
"onUpdate:modelValue": n[5] || (n[5] = (u) => a.value.marketIds = u),
|
|
2470
2470
|
size: "small"
|
|
2471
2471
|
}, {
|
|
2472
2472
|
default: s(() => [
|
|
2473
|
-
(o(!0), b(U, null, z(
|
|
2473
|
+
(o(!0), b(U, null, z(O.value, ({ label: u, value: D }) => (o(), L(V, {
|
|
2474
2474
|
label: u,
|
|
2475
2475
|
value: D,
|
|
2476
2476
|
key: D
|
|
@@ -2486,13 +2486,13 @@ const le = (d) => (ge("data-v-bdbe35cf"), d = d(), be(), d), Vt = { class: "vari
|
|
|
2486
2486
|
onClick: n[6] || (n[6] = (u) => j("customTag"))
|
|
2487
2487
|
}, "不限")
|
|
2488
2488
|
]),
|
|
2489
|
-
t(
|
|
2489
|
+
t(v, {
|
|
2490
2490
|
modelValue: a.value.customTag,
|
|
2491
2491
|
"onUpdate:modelValue": n[7] || (n[7] = (u) => a.value.customTag = u),
|
|
2492
2492
|
size: "small"
|
|
2493
2493
|
}, {
|
|
2494
2494
|
default: s(() => [
|
|
2495
|
-
(o(!0), b(U, null, z(e.value, ({ label: u, value: D }) => (o(), L(
|
|
2495
|
+
(o(!0), b(U, null, z(e.value, ({ label: u, value: D }) => (o(), L(V, {
|
|
2496
2496
|
label: u,
|
|
2497
2497
|
value: D,
|
|
2498
2498
|
key: D
|
|
@@ -2529,7 +2529,7 @@ const le = (d) => (ge("data-v-bdbe35cf"), d = d(), be(), d), Vt = { class: "vari
|
|
|
2529
2529
|
]),
|
|
2530
2530
|
_: 1
|
|
2531
2531
|
}, 8, ["modelValue"]),
|
|
2532
|
-
fe(t(
|
|
2532
|
+
fe(t(_, {
|
|
2533
2533
|
modelValue: a.value.jcTranslate.jcList,
|
|
2534
2534
|
"onUpdate:modelValue": n[10] || (n[10] = (u) => a.value.jcTranslate.jcList = u),
|
|
2535
2535
|
size: "small",
|
|
@@ -2575,8 +2575,8 @@ const le = (d) => (ge("data-v-bdbe35cf"), d = d(), be(), d), Vt = { class: "vari
|
|
|
2575
2575
|
};
|
|
2576
2576
|
}
|
|
2577
2577
|
}, zt = /* @__PURE__ */ _e(Nt, [["__scopeId", "data-v-bdbe35cf"]]), _a = {
|
|
2578
|
-
install(
|
|
2579
|
-
|
|
2578
|
+
install(p) {
|
|
2579
|
+
p.component("st-varietySearch", zt);
|
|
2580
2580
|
}
|
|
2581
2581
|
};
|
|
2582
2582
|
export {
|