st-comp 0.0.128 → 0.0.130
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/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +3 -3
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +998 -875
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +149 -149
- package/lib/{index-c2cabc8b.js → index-e645ca49.js} +12555 -12432
- package/lib/{python-d3e3fec3.js → python-4970eb41.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineBasic/index.vue +1 -1
- package/packages/VarietySearch/config.js +16 -4
- package/packages/VarietySearch/index.vue +111 -7
- package/src/pages/KlineBasic/api.js +1 -1
- package/src/pages/KlineBasic/index.vue +1 -1
- package/src/pages/VarietySearch/index.vue +5 -1
package/es/VarietySearch.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { a as Ae, E as Ke, b as Qe } from "./el-form-item-afc3dcf2.js";
|
|
3
|
-
import { b as Je, c as He, E as We, a as Xe } from "./el-table-column-560db3aa.js";
|
|
4
|
-
import { ref as A, inject as Ze, computed as P, defineComponent as H, openBlock as o, createElementBlock as b, normalizeClass as Y, unref as m, createElementVNode as _, withDirectives as Ie, isRef as $e, withModifiers as ee, vModelRadio as we, renderSlot as de, createTextVNode as F, toDisplayString as G, nextTick as Te, normalizeStyle as el, onMounted as ll, provide as tl, reactive as nl, toRefs as al, watch as le, mergeModels as ne, useModel as ae, createBlock as D, withCtx as p, createVNode as u, Fragment as E, createCommentVNode as z, renderList as N, pushScopeId as ce, popScopeId as pe, createSlots as re } from "vue";
|
|
5
|
-
import { E as ve } from "./el-overlay-6056c89a.js";
|
|
6
|
-
import { E as Ce } from "./el-input-ee7db655.js";
|
|
7
|
-
import { E as Se } from "./el-input-number-63c21037.js";
|
|
1
|
+
import { b as ae, i as Ve, a as xe, c as Oe, C as Ie, u as ie, _ as ce, e as Ge, f as Ye, w as Je, v as Te } from "./base-3ecbc734.js";
|
|
8
2
|
import "./el-tag-6a31c968.js";
|
|
9
|
-
import { E as
|
|
3
|
+
import { E as de, a as pe } from "./el-select-5fb7d469.js";
|
|
10
4
|
import "./el-scrollbar-66f3bb72.js";
|
|
11
|
-
import { u as
|
|
5
|
+
import { u as Ae, E as Ke } from "./el-popper-d3eef7ed.js";
|
|
6
|
+
import { a as Qe, E as Ze, b as He } from "./el-form-item-afc3dcf2.js";
|
|
7
|
+
import { b as We, c as Xe, E as el, a as ll } from "./el-table-column-560db3aa.js";
|
|
8
|
+
import { ref as H, inject as tl, computed as B, defineComponent as W, openBlock as o, createElementBlock as f, normalizeClass as Z, unref as v, createElementVNode as y, withDirectives as ve, isRef as Ce, withModifiers as le, vModelRadio as Se, renderSlot as me, createTextVNode as L, toDisplayString as Q, nextTick as Ue, normalizeStyle as al, onMounted as nl, provide as ol, reactive as ul, toRefs as sl, watch as te, mergeModels as ne, useModel as oe, createBlock as M, withCtx as i, createVNode as n, Fragment as S, createCommentVNode as P, renderList as N, pushScopeId as fe, popScopeId as ye, createSlots as se, vShow as rl } from "vue";
|
|
9
|
+
import { E as ge } from "./el-overlay-6056c89a.js";
|
|
10
|
+
import { E as Ee } from "./el-input-ee7db655.js";
|
|
11
|
+
import { E as Re } from "./el-input-number-63c21037.js";
|
|
12
12
|
import "./el-tooltip-4ed993c7.js";
|
|
13
|
-
import { E as
|
|
14
|
-
import { u as Me, a as
|
|
15
|
-
import { E as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { E as
|
|
18
|
-
import { U as
|
|
19
|
-
import { a as
|
|
13
|
+
import { E as qe } from "./el-button-24f79286.js";
|
|
14
|
+
import { u as Me, a as il, b as cl, d as dl, e as pl, v as re, i as vl, w as ml, E as fl } from "./use-form-common-props-9c0363ac.js";
|
|
15
|
+
import { E as K } from "./el-message-71aa42ca.js";
|
|
16
|
+
import { _ as be } from "./_plugin-vue_export-helper-dad06003.js";
|
|
17
|
+
import { E as De } from "./index-a1ecf26c.js";
|
|
18
|
+
import { U as ke, C as yl } from "./event-09e37cc8.js";
|
|
19
|
+
import { a as gl } from "./index-68ee64fa.js";
|
|
20
20
|
import "./castArray-7d3fc921.js";
|
|
21
|
+
import "./index-fa07a823.js";
|
|
22
|
+
import "./scroll-1efa8148.js";
|
|
21
23
|
import "./debounce-7344b088.js";
|
|
22
24
|
import "./raf-377cf8f5.js";
|
|
23
25
|
import "./vnode-cfcdab70.js";
|
|
24
|
-
import "./index-fa07a823.js";
|
|
25
26
|
import "./refs-46cf8186.js";
|
|
26
|
-
import "./scroll-1efa8148.js";
|
|
27
27
|
import "./typescript-7ae59c4c.js";
|
|
28
28
|
import "./index-657047bb.js";
|
|
29
29
|
import "./config-provider-83904b4d.js";
|
|
30
|
-
const
|
|
30
|
+
const Fe = ae({
|
|
31
31
|
modelValue: {
|
|
32
32
|
type: [String, Number, Boolean],
|
|
33
33
|
default: void 0
|
|
@@ -46,161 +46,161 @@ const De = te({
|
|
|
46
46
|
type: String,
|
|
47
47
|
default: void 0
|
|
48
48
|
}
|
|
49
|
-
}),
|
|
50
|
-
...
|
|
49
|
+
}), bl = ae({
|
|
50
|
+
...Fe,
|
|
51
51
|
border: Boolean
|
|
52
|
-
}),
|
|
53
|
-
[
|
|
54
|
-
[
|
|
55
|
-
},
|
|
56
|
-
const
|
|
52
|
+
}), Le = {
|
|
53
|
+
[ke]: (c) => Ve(c) || xe(c) || Oe(c),
|
|
54
|
+
[yl]: (c) => Ve(c) || xe(c) || Oe(c)
|
|
55
|
+
}, je = Symbol("radioGroupKey"), ze = (c, x) => {
|
|
56
|
+
const b = H(), a = tl(je, void 0), k = B(() => !!a), q = B(() => Ie(c.value) ? c.label : c.value), s = B({
|
|
57
57
|
get() {
|
|
58
|
-
return
|
|
58
|
+
return k.value ? a.modelValue : c.modelValue;
|
|
59
59
|
},
|
|
60
|
-
set(
|
|
61
|
-
|
|
60
|
+
set(r) {
|
|
61
|
+
k.value ? a.changeEvent(r) : x && x(ke, r), b.value.checked = c.modelValue === q.value;
|
|
62
62
|
}
|
|
63
|
-
}),
|
|
64
|
-
return
|
|
63
|
+
}), t = il(B(() => a == null ? void 0 : a.size)), U = cl(B(() => a == null ? void 0 : a.disabled)), z = H(!1), D = B(() => U.value || k.value && s.value !== q.value ? -1 : 0);
|
|
64
|
+
return gl({
|
|
65
65
|
from: "label act as value",
|
|
66
66
|
replacement: "value",
|
|
67
67
|
version: "3.0.0",
|
|
68
68
|
scope: "el-radio",
|
|
69
69
|
ref: "https://element-plus.org/en-US/component/radio.html"
|
|
70
|
-
},
|
|
71
|
-
radioRef:
|
|
72
|
-
isGroup:
|
|
73
|
-
radioGroup:
|
|
74
|
-
focus:
|
|
75
|
-
size:
|
|
76
|
-
disabled:
|
|
77
|
-
tabIndex:
|
|
78
|
-
modelValue:
|
|
79
|
-
actualValue:
|
|
70
|
+
}, B(() => k.value && Ie(c.value))), {
|
|
71
|
+
radioRef: b,
|
|
72
|
+
isGroup: k,
|
|
73
|
+
radioGroup: a,
|
|
74
|
+
focus: z,
|
|
75
|
+
size: t,
|
|
76
|
+
disabled: U,
|
|
77
|
+
tabIndex: D,
|
|
78
|
+
modelValue: s,
|
|
79
|
+
actualValue: q
|
|
80
80
|
};
|
|
81
|
-
},
|
|
81
|
+
}, kl = W({
|
|
82
82
|
name: "ElRadio"
|
|
83
|
-
}),
|
|
84
|
-
...
|
|
85
|
-
props:
|
|
86
|
-
emits:
|
|
87
|
-
setup(
|
|
88
|
-
const
|
|
89
|
-
function
|
|
90
|
-
|
|
83
|
+
}), _l = /* @__PURE__ */ W({
|
|
84
|
+
...kl,
|
|
85
|
+
props: bl,
|
|
86
|
+
emits: Le,
|
|
87
|
+
setup(c, { emit: x }) {
|
|
88
|
+
const b = c, a = ie("radio"), { radioRef: k, radioGroup: q, focus: s, size: t, disabled: U, modelValue: z, actualValue: D } = ze(b, x);
|
|
89
|
+
function r() {
|
|
90
|
+
Ue(() => x("change", z.value));
|
|
91
91
|
}
|
|
92
|
-
return (
|
|
93
|
-
var
|
|
94
|
-
return o(),
|
|
95
|
-
class:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
92
|
+
return (d, m) => {
|
|
93
|
+
var u;
|
|
94
|
+
return o(), f("label", {
|
|
95
|
+
class: Z([
|
|
96
|
+
v(a).b(),
|
|
97
|
+
v(a).is("disabled", v(U)),
|
|
98
|
+
v(a).is("focus", v(s)),
|
|
99
|
+
v(a).is("bordered", d.border),
|
|
100
|
+
v(a).is("checked", v(z) === v(D)),
|
|
101
|
+
v(a).m(v(t))
|
|
102
102
|
])
|
|
103
103
|
}, [
|
|
104
|
-
|
|
105
|
-
class:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
y("span", {
|
|
105
|
+
class: Z([
|
|
106
|
+
v(a).e("input"),
|
|
107
|
+
v(a).is("disabled", v(U)),
|
|
108
|
+
v(a).is("checked", v(z) === v(D))
|
|
109
109
|
])
|
|
110
110
|
}, [
|
|
111
|
-
|
|
111
|
+
ve(y("input", {
|
|
112
112
|
ref_key: "radioRef",
|
|
113
|
-
ref:
|
|
114
|
-
"onUpdate:modelValue": (e) =>
|
|
115
|
-
class:
|
|
116
|
-
value:
|
|
117
|
-
name:
|
|
118
|
-
disabled:
|
|
119
|
-
checked:
|
|
113
|
+
ref: k,
|
|
114
|
+
"onUpdate:modelValue": (e) => Ce(z) ? z.value = e : null,
|
|
115
|
+
class: Z(v(a).e("original")),
|
|
116
|
+
value: v(D),
|
|
117
|
+
name: d.name || ((u = v(q)) == null ? void 0 : u.name),
|
|
118
|
+
disabled: v(U),
|
|
119
|
+
checked: v(z) === v(D),
|
|
120
120
|
type: "radio",
|
|
121
|
-
onFocus: (e) =>
|
|
122
|
-
onBlur: (e) =>
|
|
123
|
-
onChange:
|
|
124
|
-
onClick:
|
|
121
|
+
onFocus: (e) => s.value = !0,
|
|
122
|
+
onBlur: (e) => s.value = !1,
|
|
123
|
+
onChange: r,
|
|
124
|
+
onClick: le(() => {
|
|
125
125
|
}, ["stop"])
|
|
126
126
|
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
|
|
127
|
-
[
|
|
127
|
+
[Se, v(z)]
|
|
128
128
|
]),
|
|
129
|
-
|
|
130
|
-
class:
|
|
129
|
+
y("span", {
|
|
130
|
+
class: Z(v(a).e("inner"))
|
|
131
131
|
}, null, 2)
|
|
132
132
|
], 2),
|
|
133
|
-
|
|
134
|
-
class:
|
|
135
|
-
onKeydown:
|
|
133
|
+
y("span", {
|
|
134
|
+
class: Z(v(a).e("label")),
|
|
135
|
+
onKeydown: le(() => {
|
|
136
136
|
}, ["stop"])
|
|
137
137
|
}, [
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
me(d.$slots, "default", {}, () => [
|
|
139
|
+
L(Q(d.label), 1)
|
|
140
140
|
])
|
|
141
141
|
], 42, ["onKeydown"])
|
|
142
142
|
], 2);
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
|
-
var
|
|
147
|
-
const
|
|
148
|
-
...
|
|
149
|
-
}),
|
|
146
|
+
var hl = /* @__PURE__ */ ce(_l, [["__file", "radio.vue"]]);
|
|
147
|
+
const Vl = ae({
|
|
148
|
+
...Fe
|
|
149
|
+
}), xl = W({
|
|
150
150
|
name: "ElRadioButton"
|
|
151
|
-
}),
|
|
152
|
-
...
|
|
153
|
-
props:
|
|
154
|
-
setup(
|
|
155
|
-
const
|
|
156
|
-
backgroundColor: (
|
|
157
|
-
borderColor: (
|
|
158
|
-
boxShadow:
|
|
159
|
-
color: (
|
|
151
|
+
}), Ol = /* @__PURE__ */ W({
|
|
152
|
+
...xl,
|
|
153
|
+
props: Vl,
|
|
154
|
+
setup(c) {
|
|
155
|
+
const x = c, b = ie("radio"), { radioRef: a, focus: k, size: q, disabled: s, modelValue: t, radioGroup: U, actualValue: z } = ze(x), D = B(() => ({
|
|
156
|
+
backgroundColor: (U == null ? void 0 : U.fill) || "",
|
|
157
|
+
borderColor: (U == null ? void 0 : U.fill) || "",
|
|
158
|
+
boxShadow: U != null && U.fill ? `-1px 0 0 0 ${U.fill}` : "",
|
|
159
|
+
color: (U == null ? void 0 : U.textColor) || ""
|
|
160
160
|
}));
|
|
161
|
-
return (
|
|
162
|
-
var
|
|
163
|
-
return o(),
|
|
164
|
-
class:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
161
|
+
return (r, d) => {
|
|
162
|
+
var m;
|
|
163
|
+
return o(), f("label", {
|
|
164
|
+
class: Z([
|
|
165
|
+
v(b).b("button"),
|
|
166
|
+
v(b).is("active", v(t) === v(z)),
|
|
167
|
+
v(b).is("disabled", v(s)),
|
|
168
|
+
v(b).is("focus", v(k)),
|
|
169
|
+
v(b).bm("button", v(q))
|
|
170
170
|
])
|
|
171
171
|
}, [
|
|
172
|
-
|
|
172
|
+
ve(y("input", {
|
|
173
173
|
ref_key: "radioRef",
|
|
174
|
-
ref:
|
|
175
|
-
"onUpdate:modelValue": (
|
|
176
|
-
class:
|
|
177
|
-
value:
|
|
174
|
+
ref: a,
|
|
175
|
+
"onUpdate:modelValue": (u) => Ce(t) ? t.value = u : null,
|
|
176
|
+
class: Z(v(b).be("button", "original-radio")),
|
|
177
|
+
value: v(z),
|
|
178
178
|
type: "radio",
|
|
179
|
-
name:
|
|
180
|
-
disabled:
|
|
181
|
-
onFocus: (
|
|
182
|
-
onBlur: (
|
|
183
|
-
onClick:
|
|
179
|
+
name: r.name || ((m = v(U)) == null ? void 0 : m.name),
|
|
180
|
+
disabled: v(s),
|
|
181
|
+
onFocus: (u) => k.value = !0,
|
|
182
|
+
onBlur: (u) => k.value = !1,
|
|
183
|
+
onClick: le(() => {
|
|
184
184
|
}, ["stop"])
|
|
185
185
|
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
|
|
186
|
-
[
|
|
186
|
+
[Se, v(t)]
|
|
187
187
|
]),
|
|
188
|
-
|
|
189
|
-
class:
|
|
190
|
-
style:
|
|
191
|
-
onKeydown:
|
|
188
|
+
y("span", {
|
|
189
|
+
class: Z(v(b).be("button", "inner")),
|
|
190
|
+
style: al(v(t) === v(z) ? v(D) : {}),
|
|
191
|
+
onKeydown: le(() => {
|
|
192
192
|
}, ["stop"])
|
|
193
193
|
}, [
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
me(r.$slots, "default", {}, () => [
|
|
195
|
+
L(Q(r.label), 1)
|
|
196
196
|
])
|
|
197
197
|
], 46, ["onKeydown"])
|
|
198
198
|
], 2);
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
|
-
var
|
|
203
|
-
const
|
|
202
|
+
var Ne = /* @__PURE__ */ ce(Ol, [["__file", "radio-button.vue"]]);
|
|
203
|
+
const Il = ae({
|
|
204
204
|
id: {
|
|
205
205
|
type: String,
|
|
206
206
|
default: void 0
|
|
@@ -227,49 +227,49 @@ const Vl = te({
|
|
|
227
227
|
type: Boolean,
|
|
228
228
|
default: !0
|
|
229
229
|
},
|
|
230
|
-
...
|
|
231
|
-
}),
|
|
230
|
+
...Ae(["ariaLabel"])
|
|
231
|
+
}), $l = Le, wl = W({
|
|
232
232
|
name: "ElRadioGroup"
|
|
233
|
-
}),
|
|
234
|
-
...
|
|
235
|
-
props:
|
|
236
|
-
emits:
|
|
237
|
-
setup(
|
|
238
|
-
const
|
|
239
|
-
formItemContext:
|
|
240
|
-
}),
|
|
241
|
-
|
|
233
|
+
}), Tl = /* @__PURE__ */ W({
|
|
234
|
+
...wl,
|
|
235
|
+
props: Il,
|
|
236
|
+
emits: $l,
|
|
237
|
+
setup(c, { emit: x }) {
|
|
238
|
+
const b = c, a = ie("radio"), k = Ge(), q = H(), { formItem: s } = dl(), { inputId: t, isLabeledByFormItem: U } = pl(b, {
|
|
239
|
+
formItemContext: s
|
|
240
|
+
}), z = (r) => {
|
|
241
|
+
x(ke, r), Ue(() => x("change", r));
|
|
242
242
|
};
|
|
243
|
-
|
|
244
|
-
const
|
|
245
|
-
!Array.from(
|
|
243
|
+
nl(() => {
|
|
244
|
+
const r = q.value.querySelectorAll("[type=radio]"), d = r[0];
|
|
245
|
+
!Array.from(r).some((m) => m.checked) && d && (d.tabIndex = 0);
|
|
246
246
|
});
|
|
247
|
-
const
|
|
248
|
-
return
|
|
249
|
-
...
|
|
250
|
-
changeEvent:
|
|
251
|
-
name:
|
|
252
|
-
})),
|
|
253
|
-
|
|
254
|
-
}), (
|
|
255
|
-
id:
|
|
247
|
+
const D = B(() => b.name || k.value);
|
|
248
|
+
return ol(je, ul({
|
|
249
|
+
...sl(b),
|
|
250
|
+
changeEvent: z,
|
|
251
|
+
name: D
|
|
252
|
+
})), te(() => b.modelValue, () => {
|
|
253
|
+
b.validateEvent && (s == null || s.validate("change").catch((r) => Ye(r)));
|
|
254
|
+
}), (r, d) => (o(), f("div", {
|
|
255
|
+
id: v(t),
|
|
256
256
|
ref_key: "radioGroupRef",
|
|
257
|
-
ref:
|
|
258
|
-
class:
|
|
257
|
+
ref: q,
|
|
258
|
+
class: Z(v(a).b("group")),
|
|
259
259
|
role: "radiogroup",
|
|
260
|
-
"aria-label":
|
|
261
|
-
"aria-labelledby":
|
|
260
|
+
"aria-label": v(U) ? void 0 : r.ariaLabel || "radio-group",
|
|
261
|
+
"aria-labelledby": v(U) ? v(s).labelId : void 0
|
|
262
262
|
}, [
|
|
263
|
-
|
|
263
|
+
me(r.$slots, "default")
|
|
264
264
|
], 10, ["id", "aria-label", "aria-labelledby"]));
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
|
-
var Pe = /* @__PURE__ */
|
|
268
|
-
const
|
|
269
|
-
RadioButton:
|
|
267
|
+
var Pe = /* @__PURE__ */ ce(Tl, [["__file", "radio-group.vue"]]);
|
|
268
|
+
const _e = Je(hl, {
|
|
269
|
+
RadioButton: Ne,
|
|
270
270
|
RadioGroup: Pe
|
|
271
|
-
}),
|
|
272
|
-
const
|
|
271
|
+
}), he = Te(Pe), Cl = Te(Ne);
|
|
272
|
+
const $e = {
|
|
273
273
|
// 品种市场 [选项: 前端默认]
|
|
274
274
|
varietyMarket: {
|
|
275
275
|
show: !0,
|
|
@@ -322,6 +322,18 @@ const xe = {
|
|
|
322
322
|
show: !0,
|
|
323
323
|
options: []
|
|
324
324
|
},
|
|
325
|
+
// 常用选项 [选项: 前端默认]
|
|
326
|
+
jcTranslate: {
|
|
327
|
+
show: !0,
|
|
328
|
+
jcOptions: [
|
|
329
|
+
{ label: "恒指", value: "HZCFJC" },
|
|
330
|
+
{ label: "恒生科技", value: "HSKJJC" },
|
|
331
|
+
{ label: "上证50", value: "SZ50CFJC" },
|
|
332
|
+
{ label: "沪深300", value: "HS300CFJC" },
|
|
333
|
+
{ label: "中证500", value: "ZZ500CFJC" },
|
|
334
|
+
{ label: "中证1000", value: "ZZ1000JC" }
|
|
335
|
+
]
|
|
336
|
+
},
|
|
325
337
|
// 因子筛选 [选项: 接口获取**!]
|
|
326
338
|
factorScreen: {
|
|
327
339
|
show: !0,
|
|
@@ -794,12 +806,12 @@ const xe = {
|
|
|
794
806
|
}
|
|
795
807
|
]
|
|
796
808
|
}
|
|
797
|
-
},
|
|
798
|
-
!
|
|
799
|
-
},
|
|
800
|
-
const
|
|
801
|
-
return
|
|
802
|
-
},
|
|
809
|
+
}, Sl = (c, x, b) => {
|
|
810
|
+
!x[0] && x[0] !== 0 && !x[1] && x[1] !== 0 ? b(new Error("至少填写一个分数")) : b();
|
|
811
|
+
}, we = (c) => {
|
|
812
|
+
const x = /(条件(\d+))/g;
|
|
813
|
+
return c.match(x) || [];
|
|
814
|
+
}, Ul = {
|
|
803
815
|
__name: "FactorDescription",
|
|
804
816
|
props: /* @__PURE__ */ ne({
|
|
805
817
|
data: { type: Array, default: [] }
|
|
@@ -808,35 +820,35 @@ const xe = {
|
|
|
808
820
|
visibleModifiers: {}
|
|
809
821
|
}),
|
|
810
822
|
emits: ["update:visible"],
|
|
811
|
-
setup(
|
|
812
|
-
const
|
|
813
|
-
return (
|
|
814
|
-
const
|
|
815
|
-
return o(),
|
|
816
|
-
modelValue:
|
|
817
|
-
"onUpdate:modelValue":
|
|
823
|
+
setup(c) {
|
|
824
|
+
const x = oe(c, "visible");
|
|
825
|
+
return (b, a) => {
|
|
826
|
+
const k = We, q = Xe, s = ge;
|
|
827
|
+
return o(), M(s, {
|
|
828
|
+
modelValue: x.value,
|
|
829
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => x.value = t),
|
|
818
830
|
title: "因子使用说明",
|
|
819
831
|
width: "1000",
|
|
820
832
|
"align-center": "",
|
|
821
833
|
"destroy-on-close": ""
|
|
822
834
|
}, {
|
|
823
|
-
default:
|
|
824
|
-
|
|
825
|
-
data:
|
|
835
|
+
default: i(() => [
|
|
836
|
+
n(q, {
|
|
837
|
+
data: c.data,
|
|
826
838
|
border: "",
|
|
827
839
|
height: "500"
|
|
828
840
|
}, {
|
|
829
|
-
default:
|
|
830
|
-
|
|
841
|
+
default: i(() => [
|
|
842
|
+
n(k, {
|
|
831
843
|
prop: "factorName",
|
|
832
844
|
label: "因子名称",
|
|
833
845
|
width: "200"
|
|
834
846
|
}),
|
|
835
|
-
|
|
847
|
+
n(k, {
|
|
836
848
|
prop: "factorDesc",
|
|
837
849
|
label: "因子说明"
|
|
838
850
|
}),
|
|
839
|
-
|
|
851
|
+
n(k, {
|
|
840
852
|
prop: "factorScoreDefine",
|
|
841
853
|
label: "分值定义"
|
|
842
854
|
})
|
|
@@ -849,7 +861,7 @@ const xe = {
|
|
|
849
861
|
};
|
|
850
862
|
}
|
|
851
863
|
};
|
|
852
|
-
const Be = (
|
|
864
|
+
const Be = (c) => (fe("data-v-ef576faa"), c = c(), ye(), c), El = { class: "factor-screen" }, Rl = { class: "custom-header" }, ql = ["id"], Ml = { class: "form-row" }, Dl = { class: "index" }, Fl = { style: { display: "flex", "align-items": "center", width: "100%", height: "24px" } }, Ll = /* @__PURE__ */ Be(() => /* @__PURE__ */ y("span", null, "~", -1)), jl = /* @__PURE__ */ Be(() => /* @__PURE__ */ y("span", null, "&&代表and,||代表or", -1)), zl = { class: "dialog-footer" }, Nl = {
|
|
853
865
|
__name: "index",
|
|
854
866
|
props: /* @__PURE__ */ ne({
|
|
855
867
|
config: {
|
|
@@ -880,12 +892,12 @@ const Be = (d) => (ce("data-v-ef576faa"), d = d(), pe(), d), Sl = { class: "fact
|
|
|
880
892
|
dataModifiers: {}
|
|
881
893
|
}),
|
|
882
894
|
emits: ["update:data"],
|
|
883
|
-
setup(
|
|
884
|
-
const
|
|
895
|
+
setup(c) {
|
|
896
|
+
const x = c, b = oe(c, "data"), a = H(!1), k = H(!1), q = H(null), s = H({
|
|
885
897
|
// 筛选因子列表
|
|
886
898
|
list: [
|
|
887
899
|
{
|
|
888
|
-
cycle:
|
|
900
|
+
cycle: x.config.cycleDefault ?? null,
|
|
889
901
|
// 周期
|
|
890
902
|
factor: null,
|
|
891
903
|
// 因子
|
|
@@ -897,81 +909,81 @@ const Be = (d) => (ce("data-v-ef576faa"), d = d(), pe(), d), Sl = { class: "fact
|
|
|
897
909
|
sqlEnable: 0,
|
|
898
910
|
// SQL语句
|
|
899
911
|
sqlValue: null
|
|
900
|
-
}),
|
|
901
|
-
const { list:
|
|
902
|
-
|
|
903
|
-
list: JSON.parse(JSON.stringify(
|
|
912
|
+
}), t = () => {
|
|
913
|
+
const { list: u, sqlEnable: e, sqlValue: _ } = b.value;
|
|
914
|
+
s.value = {
|
|
915
|
+
list: JSON.parse(JSON.stringify(u)),
|
|
904
916
|
sqlEnable: e,
|
|
905
|
-
sqlValue:
|
|
906
|
-
},
|
|
907
|
-
},
|
|
908
|
-
|
|
909
|
-
const { list: e, sqlEnable:
|
|
910
|
-
if (
|
|
911
|
-
if (
|
|
912
|
-
if (!
|
|
913
|
-
return
|
|
914
|
-
const
|
|
915
|
-
if (
|
|
916
|
-
return
|
|
917
|
+
sqlValue: _
|
|
918
|
+
}, s.value.list.length || D(), a.value = !0;
|
|
919
|
+
}, U = () => {
|
|
920
|
+
q.value.validate((u) => {
|
|
921
|
+
const { list: e, sqlEnable: _, sqlValue: I } = s.value;
|
|
922
|
+
if (u) {
|
|
923
|
+
if (_) {
|
|
924
|
+
if (!I)
|
|
925
|
+
return K.error("SQL语句不能为空");
|
|
926
|
+
const V = we(I), E = e.map((g, C) => `条件${C + 1}`), $ = V.filter((g) => !E.includes(g));
|
|
927
|
+
if ($.length)
|
|
928
|
+
return K.error(`请检查SQL语句, 不存在[${$}]`);
|
|
917
929
|
}
|
|
918
|
-
|
|
930
|
+
b.value = {
|
|
919
931
|
list: JSON.parse(JSON.stringify(e)),
|
|
920
|
-
sqlEnable:
|
|
921
|
-
sqlValue:
|
|
922
|
-
},
|
|
932
|
+
sqlEnable: _,
|
|
933
|
+
sqlValue: I
|
|
934
|
+
}, a.value = !1;
|
|
923
935
|
}
|
|
924
936
|
});
|
|
925
|
-
},
|
|
926
|
-
|
|
927
|
-
},
|
|
928
|
-
switch (
|
|
937
|
+
}, z = (u) => {
|
|
938
|
+
s.value.list.splice(u, 1);
|
|
939
|
+
}, D = (u) => {
|
|
940
|
+
switch (u) {
|
|
929
941
|
case "compare": {
|
|
930
|
-
|
|
942
|
+
s.value.list.push({
|
|
931
943
|
key: "compare",
|
|
932
|
-
cycle:
|
|
944
|
+
cycle: x.config.cycleDefault ?? null,
|
|
933
945
|
factor: null,
|
|
934
946
|
compareType: ">",
|
|
935
|
-
cycle2:
|
|
947
|
+
cycle2: x.config.cycleDefault ?? null,
|
|
936
948
|
factor2: null
|
|
937
949
|
});
|
|
938
950
|
break;
|
|
939
951
|
}
|
|
940
952
|
default: {
|
|
941
|
-
|
|
942
|
-
cycle:
|
|
953
|
+
s.value.list.push({
|
|
954
|
+
cycle: x.config.cycleDefault ?? null,
|
|
943
955
|
factor: null,
|
|
944
956
|
score: [null, null]
|
|
945
957
|
});
|
|
946
958
|
break;
|
|
947
959
|
}
|
|
948
960
|
}
|
|
949
|
-
},
|
|
950
|
-
|
|
951
|
-
if (
|
|
952
|
-
if (
|
|
953
|
-
const e =
|
|
954
|
-
|
|
961
|
+
}, r = () => {
|
|
962
|
+
q.value.validate((u) => {
|
|
963
|
+
if (u)
|
|
964
|
+
if (s.value.sqlValue) {
|
|
965
|
+
const e = we(s.value.sqlValue);
|
|
966
|
+
s.value.sqlValue = s.value.list.reduce((_, I, V) => (e.includes(`条件${V + 1}`) || (_ += `&& 条件${V + 1} `), _), s.value.sqlValue);
|
|
955
967
|
} else
|
|
956
|
-
|
|
968
|
+
s.value.sqlValue = s.value.list.reduce((e, _, I) => (I === 0 ? e += `条件${I + 1} ` : e += `&& 条件${I + 1} `, e), "");
|
|
957
969
|
});
|
|
958
|
-
},
|
|
959
|
-
switch (
|
|
970
|
+
}, d = (u) => {
|
|
971
|
+
switch (u.key) {
|
|
960
972
|
case "compare": {
|
|
961
|
-
const { cycle: e, factor:
|
|
962
|
-
let
|
|
963
|
-
return
|
|
973
|
+
const { cycle: e, factor: _, compareType: I, cycle2: V, factor2: E } = u;
|
|
974
|
+
let $ = "";
|
|
975
|
+
return $ += ` ${x.config.cycleOptions.find(({ value: g }) => g === e).label}`, $ += ` ${x.config.factorOptions.find(({ value: g }) => g === _).label}`, $ += ` ${I}`, $ += ` ${x.config.cycleOptions.find(({ value: g }) => g === V).label}`, $ += ` ${x.config.factorOptions.find(({ value: g }) => g === E).label}`, $;
|
|
964
976
|
}
|
|
965
977
|
default: {
|
|
966
|
-
const { cycle: e, factor:
|
|
967
|
-
let
|
|
968
|
-
return
|
|
978
|
+
const { cycle: e, factor: _, score: I } = u;
|
|
979
|
+
let V = "";
|
|
980
|
+
return V += ` ${x.config.cycleOptions.find(({ value: E }) => E === e).label}`, V += ` ${x.config.factorOptions.find(({ value: E }) => E === _).label}`, V += ` ${I[0] || I[0] === 0 ? `${I[0]}分` : "∞"}`, V += " ~", V += ` ${I[1] || I[1] === 0 ? `${I[1]}分` : "∞"}`, V;
|
|
969
981
|
}
|
|
970
982
|
}
|
|
971
|
-
},
|
|
972
|
-
switch (
|
|
983
|
+
}, m = (u, e) => {
|
|
984
|
+
switch (u) {
|
|
973
985
|
case "sqlTag": {
|
|
974
|
-
|
|
986
|
+
b.value = {
|
|
975
987
|
list: [],
|
|
976
988
|
sqlEnable: 0,
|
|
977
989
|
sqlValue: null
|
|
@@ -979,86 +991,86 @@ const Be = (d) => (ce("data-v-ef576faa"), d = d(), pe(), d), Sl = { class: "fact
|
|
|
979
991
|
break;
|
|
980
992
|
}
|
|
981
993
|
case "factorTag": {
|
|
982
|
-
|
|
994
|
+
b.value.list.splice(e, 1);
|
|
983
995
|
break;
|
|
984
996
|
}
|
|
985
997
|
}
|
|
986
998
|
};
|
|
987
|
-
return (
|
|
988
|
-
var
|
|
989
|
-
const
|
|
990
|
-
return o(),
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
999
|
+
return (u, e) => {
|
|
1000
|
+
var ee;
|
|
1001
|
+
const _ = Qe, I = De, V = qe, E = fl, $ = Ke, g = de, C = pe, R = Ze, w = Re, h = _e, l = he, p = Ee, J = He, Y = ge;
|
|
1002
|
+
return o(), f(S, null, [
|
|
1003
|
+
y("div", El, [
|
|
1004
|
+
y("div", null, [
|
|
1005
|
+
b.value.sqlEnable && b.value.sqlValue ? (o(), M(I, {
|
|
994
1006
|
key: 0,
|
|
995
1007
|
closable: "",
|
|
996
1008
|
type: "info",
|
|
997
|
-
title:
|
|
998
|
-
onClose: e[0] || (e[0] = (
|
|
1009
|
+
title: b.value.sqlValue,
|
|
1010
|
+
onClose: e[0] || (e[0] = (T) => m("sqlTag"))
|
|
999
1011
|
}, {
|
|
1000
|
-
default:
|
|
1001
|
-
|
|
1012
|
+
default: i(() => [
|
|
1013
|
+
n(_, {
|
|
1002
1014
|
type: "info",
|
|
1003
1015
|
truncated: "",
|
|
1004
1016
|
style: { "max-width": "500px" }
|
|
1005
1017
|
}, {
|
|
1006
|
-
default:
|
|
1007
|
-
|
|
1018
|
+
default: i(() => [
|
|
1019
|
+
L(Q(b.value.sqlValue), 1)
|
|
1008
1020
|
]),
|
|
1009
1021
|
_: 1
|
|
1010
1022
|
})
|
|
1011
1023
|
]),
|
|
1012
1024
|
_: 1
|
|
1013
|
-
}, 8, ["title"])) :
|
|
1014
|
-
!
|
|
1025
|
+
}, 8, ["title"])) : P("", !0),
|
|
1026
|
+
!b.value.sqlEnable && b.value.list.length ? (o(!0), f(S, { key: 1 }, N(b.value.list, (T, G) => (o(), M(I, {
|
|
1015
1027
|
closable: "",
|
|
1016
1028
|
type: "info",
|
|
1017
|
-
onClose: (
|
|
1029
|
+
onClose: (O) => m("factorTag", G)
|
|
1018
1030
|
}, {
|
|
1019
|
-
default:
|
|
1020
|
-
|
|
1031
|
+
default: i(() => [
|
|
1032
|
+
L(Q(d(T)), 1)
|
|
1021
1033
|
]),
|
|
1022
1034
|
_: 2
|
|
1023
|
-
}, 1032, ["onClose"]))), 256)) :
|
|
1024
|
-
|
|
1035
|
+
}, 1032, ["onClose"]))), 256)) : P("", !0),
|
|
1036
|
+
n(V, {
|
|
1025
1037
|
class: "screen-btn",
|
|
1026
1038
|
type: "primary",
|
|
1027
1039
|
plain: "",
|
|
1028
1040
|
size: "small",
|
|
1029
|
-
icon:
|
|
1030
|
-
onClick:
|
|
1041
|
+
icon: v(re),
|
|
1042
|
+
onClick: t
|
|
1031
1043
|
}, {
|
|
1032
|
-
default:
|
|
1033
|
-
|
|
1044
|
+
default: i(() => [
|
|
1045
|
+
L(" 添加因子 ")
|
|
1034
1046
|
]),
|
|
1035
1047
|
_: 1
|
|
1036
1048
|
}, 8, ["icon"])
|
|
1037
1049
|
]),
|
|
1038
|
-
|
|
1039
|
-
modelValue:
|
|
1040
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
|
1050
|
+
n(Y, {
|
|
1051
|
+
modelValue: a.value,
|
|
1052
|
+
"onUpdate:modelValue": e[5] || (e[5] = (T) => a.value = T),
|
|
1041
1053
|
width: "602",
|
|
1042
1054
|
"align-center": "",
|
|
1043
1055
|
"destroy-on-close": ""
|
|
1044
1056
|
}, {
|
|
1045
|
-
header:
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
id:
|
|
1049
|
-
class:
|
|
1050
|
-
}, " 因子筛选 ", 10,
|
|
1051
|
-
|
|
1057
|
+
header: i(({ titleId: T, titleClass: G }) => [
|
|
1058
|
+
y("div", Rl, [
|
|
1059
|
+
y("span", {
|
|
1060
|
+
id: T,
|
|
1061
|
+
class: Z(G)
|
|
1062
|
+
}, " 因子筛选 ", 10, ql),
|
|
1063
|
+
n($, {
|
|
1052
1064
|
effect: "dark",
|
|
1053
1065
|
content: "点击查看: 因子使用说明",
|
|
1054
1066
|
placement: "right"
|
|
1055
1067
|
}, {
|
|
1056
|
-
default:
|
|
1057
|
-
|
|
1058
|
-
onClick: e[1] || (e[1] = (
|
|
1068
|
+
default: i(() => [
|
|
1069
|
+
n(E, {
|
|
1070
|
+
onClick: e[1] || (e[1] = (O) => k.value = !0)
|
|
1059
1071
|
}, {
|
|
1060
|
-
default:
|
|
1061
|
-
|
|
1072
|
+
default: i(() => [
|
|
1073
|
+
n(v(vl))
|
|
1062
1074
|
]),
|
|
1063
1075
|
_: 1
|
|
1064
1076
|
})
|
|
@@ -1067,75 +1079,75 @@ const Be = (d) => (ce("data-v-ef576faa"), d = d(), pe(), d), Sl = { class: "fact
|
|
|
1067
1079
|
})
|
|
1068
1080
|
])
|
|
1069
1081
|
]),
|
|
1070
|
-
footer:
|
|
1071
|
-
|
|
1072
|
-
|
|
1082
|
+
footer: i(() => [
|
|
1083
|
+
y("div", zl, [
|
|
1084
|
+
n(V, {
|
|
1073
1085
|
type: "primary",
|
|
1074
|
-
onClick:
|
|
1086
|
+
onClick: U
|
|
1075
1087
|
}, {
|
|
1076
|
-
default:
|
|
1077
|
-
|
|
1088
|
+
default: i(() => [
|
|
1089
|
+
L("确定")
|
|
1078
1090
|
]),
|
|
1079
1091
|
_: 1
|
|
1080
1092
|
})
|
|
1081
1093
|
])
|
|
1082
1094
|
]),
|
|
1083
|
-
default:
|
|
1084
|
-
|
|
1095
|
+
default: i(() => [
|
|
1096
|
+
n(J, {
|
|
1085
1097
|
ref_key: "dialogFormRef",
|
|
1086
|
-
ref:
|
|
1087
|
-
model:
|
|
1098
|
+
ref: q,
|
|
1099
|
+
model: s.value
|
|
1088
1100
|
}, {
|
|
1089
|
-
default:
|
|
1090
|
-
(o(!0),
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1101
|
+
default: i(() => [
|
|
1102
|
+
(o(!0), f(S, null, N(s.value.list, (T, G) => (o(), f("div", Ml, [
|
|
1103
|
+
y("span", Dl, Q(`条件${G + 1}`), 1),
|
|
1104
|
+
T.key === "compare" ? (o(), f(S, { key: 0 }, [
|
|
1105
|
+
c.config.cycleShow ? (o(), M(R, {
|
|
1094
1106
|
key: 0,
|
|
1095
|
-
prop: "list." +
|
|
1107
|
+
prop: "list." + G + ".cycle",
|
|
1096
1108
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
1097
1109
|
style: { width: "100px", "margin-right": "10px" }
|
|
1098
1110
|
}, {
|
|
1099
|
-
default:
|
|
1100
|
-
|
|
1101
|
-
modelValue:
|
|
1102
|
-
"onUpdate:modelValue": (
|
|
1111
|
+
default: i(() => [
|
|
1112
|
+
n(C, {
|
|
1113
|
+
modelValue: T.cycle,
|
|
1114
|
+
"onUpdate:modelValue": (O) => T.cycle = O,
|
|
1103
1115
|
placeholder: "选择周期",
|
|
1104
1116
|
size: "small"
|
|
1105
1117
|
}, {
|
|
1106
|
-
default:
|
|
1107
|
-
(o(!0),
|
|
1108
|
-
label:
|
|
1109
|
-
value:
|
|
1110
|
-
key:
|
|
1118
|
+
default: i(() => [
|
|
1119
|
+
(o(!0), f(S, null, N(c.config.cycleOptions, ({ label: O, value: F }) => (o(), M(g, {
|
|
1120
|
+
label: O,
|
|
1121
|
+
value: F,
|
|
1122
|
+
key: F
|
|
1111
1123
|
}, null, 8, ["label", "value"]))), 128))
|
|
1112
1124
|
]),
|
|
1113
1125
|
_: 2
|
|
1114
1126
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
1115
1127
|
]),
|
|
1116
1128
|
_: 2
|
|
1117
|
-
}, 1032, ["prop"])) :
|
|
1118
|
-
|
|
1119
|
-
prop: "list." +
|
|
1129
|
+
}, 1032, ["prop"])) : P("", !0),
|
|
1130
|
+
n(R, {
|
|
1131
|
+
prop: "list." + G + ".factor",
|
|
1120
1132
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
1121
1133
|
style: { width: "100px", "margin-right": "10px" }
|
|
1122
1134
|
}, {
|
|
1123
|
-
default:
|
|
1124
|
-
|
|
1125
|
-
modelValue:
|
|
1126
|
-
"onUpdate:modelValue": (
|
|
1135
|
+
default: i(() => [
|
|
1136
|
+
n(C, {
|
|
1137
|
+
modelValue: T.factor,
|
|
1138
|
+
"onUpdate:modelValue": (O) => T.factor = O,
|
|
1127
1139
|
placeholder: "选择因子",
|
|
1128
1140
|
filterable: "",
|
|
1129
1141
|
size: "small",
|
|
1130
1142
|
"no-match-text": "无匹配数据"
|
|
1131
1143
|
}, {
|
|
1132
|
-
default:
|
|
1133
|
-
var
|
|
1144
|
+
default: i(() => {
|
|
1145
|
+
var O;
|
|
1134
1146
|
return [
|
|
1135
|
-
(o(!0),
|
|
1136
|
-
label:
|
|
1137
|
-
value:
|
|
1138
|
-
key:
|
|
1147
|
+
(o(!0), f(S, null, N((O = c.config.factorOptions) == null ? void 0 : O.filter((F) => [4].includes(F.type)), ({ label: F, value: j }) => (o(), M(g, {
|
|
1148
|
+
label: F,
|
|
1149
|
+
value: j,
|
|
1150
|
+
key: j
|
|
1139
1151
|
}, null, 8, ["label", "value"]))), 128))
|
|
1140
1152
|
];
|
|
1141
1153
|
}),
|
|
@@ -1144,18 +1156,18 @@ const Be = (d) => (ce("data-v-ef576faa"), d = d(), pe(), d), Sl = { class: "fact
|
|
|
1144
1156
|
]),
|
|
1145
1157
|
_: 2
|
|
1146
1158
|
}, 1032, ["prop"]),
|
|
1147
|
-
|
|
1148
|
-
default:
|
|
1149
|
-
|
|
1150
|
-
modelValue:
|
|
1151
|
-
"onUpdate:modelValue": (
|
|
1159
|
+
n(R, { style: { width: "52px", "margin-right": "10px" } }, {
|
|
1160
|
+
default: i(() => [
|
|
1161
|
+
n(C, {
|
|
1162
|
+
modelValue: T.compareType,
|
|
1163
|
+
"onUpdate:modelValue": (O) => T.compareType = O,
|
|
1152
1164
|
size: "small"
|
|
1153
1165
|
}, {
|
|
1154
|
-
default:
|
|
1155
|
-
(o(),
|
|
1156
|
-
label:
|
|
1157
|
-
value:
|
|
1158
|
-
key:
|
|
1166
|
+
default: i(() => [
|
|
1167
|
+
(o(), f(S, null, N([">", ">=", "<", "<="], (O) => n(g, {
|
|
1168
|
+
label: O,
|
|
1169
|
+
value: O,
|
|
1170
|
+
key: O
|
|
1159
1171
|
}, null, 8, ["label", "value"])), 64))
|
|
1160
1172
|
]),
|
|
1161
1173
|
_: 2
|
|
@@ -1163,52 +1175,52 @@ const Be = (d) => (ce("data-v-ef576faa"), d = d(), pe(), d), Sl = { class: "fact
|
|
|
1163
1175
|
]),
|
|
1164
1176
|
_: 2
|
|
1165
1177
|
}, 1024),
|
|
1166
|
-
|
|
1178
|
+
c.config.cycleShow ? (o(), M(R, {
|
|
1167
1179
|
key: 1,
|
|
1168
|
-
prop: "list." +
|
|
1180
|
+
prop: "list." + G + ".cycle2",
|
|
1169
1181
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
1170
1182
|
style: { width: "100px", "margin-right": "10px" }
|
|
1171
1183
|
}, {
|
|
1172
|
-
default:
|
|
1173
|
-
|
|
1174
|
-
modelValue:
|
|
1175
|
-
"onUpdate:modelValue": (
|
|
1184
|
+
default: i(() => [
|
|
1185
|
+
n(C, {
|
|
1186
|
+
modelValue: T.cycle2,
|
|
1187
|
+
"onUpdate:modelValue": (O) => T.cycle2 = O,
|
|
1176
1188
|
placeholder: "选择周期",
|
|
1177
1189
|
size: "small"
|
|
1178
1190
|
}, {
|
|
1179
|
-
default:
|
|
1180
|
-
(o(!0),
|
|
1181
|
-
label:
|
|
1182
|
-
value:
|
|
1183
|
-
key:
|
|
1191
|
+
default: i(() => [
|
|
1192
|
+
(o(!0), f(S, null, N(c.config.cycleOptions, ({ label: O, value: F }) => (o(), M(g, {
|
|
1193
|
+
label: O,
|
|
1194
|
+
value: F,
|
|
1195
|
+
key: F
|
|
1184
1196
|
}, null, 8, ["label", "value"]))), 128))
|
|
1185
1197
|
]),
|
|
1186
1198
|
_: 2
|
|
1187
1199
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
1188
1200
|
]),
|
|
1189
1201
|
_: 2
|
|
1190
|
-
}, 1032, ["prop"])) :
|
|
1191
|
-
|
|
1192
|
-
prop: "list." +
|
|
1202
|
+
}, 1032, ["prop"])) : P("", !0),
|
|
1203
|
+
n(R, {
|
|
1204
|
+
prop: "list." + G + ".factor2",
|
|
1193
1205
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
1194
1206
|
style: { width: "100px", "margin-right": "10px" }
|
|
1195
1207
|
}, {
|
|
1196
|
-
default:
|
|
1197
|
-
|
|
1198
|
-
modelValue:
|
|
1199
|
-
"onUpdate:modelValue": (
|
|
1208
|
+
default: i(() => [
|
|
1209
|
+
n(C, {
|
|
1210
|
+
modelValue: T.factor2,
|
|
1211
|
+
"onUpdate:modelValue": (O) => T.factor2 = O,
|
|
1200
1212
|
placeholder: "选择因子",
|
|
1201
1213
|
filterable: "",
|
|
1202
1214
|
size: "small",
|
|
1203
1215
|
"no-match-text": "无匹配数据"
|
|
1204
1216
|
}, {
|
|
1205
|
-
default:
|
|
1206
|
-
var
|
|
1217
|
+
default: i(() => {
|
|
1218
|
+
var O;
|
|
1207
1219
|
return [
|
|
1208
|
-
(o(!0),
|
|
1209
|
-
label:
|
|
1210
|
-
value:
|
|
1211
|
-
key:
|
|
1220
|
+
(o(!0), f(S, null, N((O = c.config.factorOptions) == null ? void 0 : O.filter((F) => [4].includes(F.type)), ({ label: F, value: j }) => (o(), M(g, {
|
|
1221
|
+
label: F,
|
|
1222
|
+
value: j,
|
|
1223
|
+
key: j
|
|
1212
1224
|
}, null, 8, ["label", "value"]))), 128))
|
|
1213
1225
|
];
|
|
1214
1226
|
}),
|
|
@@ -1217,53 +1229,53 @@ const Be = (d) => (ce("data-v-ef576faa"), d = d(), pe(), d), Sl = { class: "fact
|
|
|
1217
1229
|
]),
|
|
1218
1230
|
_: 2
|
|
1219
1231
|
}, 1032, ["prop"])
|
|
1220
|
-
], 64)) : (o(),
|
|
1221
|
-
|
|
1232
|
+
], 64)) : (o(), f(S, { key: 1 }, [
|
|
1233
|
+
c.config.cycleShow ? (o(), M(R, {
|
|
1222
1234
|
key: 0,
|
|
1223
|
-
prop: "list." +
|
|
1235
|
+
prop: "list." + G + ".cycle",
|
|
1224
1236
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
1225
1237
|
style: { width: "100px", "margin-right": "10px" }
|
|
1226
1238
|
}, {
|
|
1227
|
-
default:
|
|
1228
|
-
|
|
1229
|
-
modelValue:
|
|
1230
|
-
"onUpdate:modelValue": (
|
|
1239
|
+
default: i(() => [
|
|
1240
|
+
n(C, {
|
|
1241
|
+
modelValue: T.cycle,
|
|
1242
|
+
"onUpdate:modelValue": (O) => T.cycle = O,
|
|
1231
1243
|
placeholder: "选择周期",
|
|
1232
1244
|
size: "small"
|
|
1233
1245
|
}, {
|
|
1234
|
-
default:
|
|
1235
|
-
(o(!0),
|
|
1236
|
-
label:
|
|
1237
|
-
value:
|
|
1238
|
-
key:
|
|
1246
|
+
default: i(() => [
|
|
1247
|
+
(o(!0), f(S, null, N(c.config.cycleOptions, ({ label: O, value: F }) => (o(), M(g, {
|
|
1248
|
+
label: O,
|
|
1249
|
+
value: F,
|
|
1250
|
+
key: F
|
|
1239
1251
|
}, null, 8, ["label", "value"]))), 128))
|
|
1240
1252
|
]),
|
|
1241
1253
|
_: 2
|
|
1242
1254
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
1243
1255
|
]),
|
|
1244
1256
|
_: 2
|
|
1245
|
-
}, 1032, ["prop"])) :
|
|
1246
|
-
|
|
1247
|
-
prop: "list." +
|
|
1257
|
+
}, 1032, ["prop"])) : P("", !0),
|
|
1258
|
+
n(R, {
|
|
1259
|
+
prop: "list." + G + ".factor",
|
|
1248
1260
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
1249
1261
|
style: { width: "100px", "margin-right": "10px" }
|
|
1250
1262
|
}, {
|
|
1251
|
-
default:
|
|
1252
|
-
|
|
1253
|
-
modelValue:
|
|
1254
|
-
"onUpdate:modelValue": (
|
|
1263
|
+
default: i(() => [
|
|
1264
|
+
n(C, {
|
|
1265
|
+
modelValue: T.factor,
|
|
1266
|
+
"onUpdate:modelValue": (O) => T.factor = O,
|
|
1255
1267
|
placeholder: "选择因子",
|
|
1256
1268
|
filterable: "",
|
|
1257
1269
|
size: "small",
|
|
1258
1270
|
"no-match-text": "无匹配数据"
|
|
1259
1271
|
}, {
|
|
1260
|
-
default:
|
|
1261
|
-
var
|
|
1272
|
+
default: i(() => {
|
|
1273
|
+
var O;
|
|
1262
1274
|
return [
|
|
1263
|
-
(o(!0),
|
|
1264
|
-
label:
|
|
1265
|
-
value:
|
|
1266
|
-
key:
|
|
1275
|
+
(o(!0), f(S, null, N((O = c.config.factorOptions) == null ? void 0 : O.filter((F) => [1, 3].includes(F.type)), ({ label: F, value: j }) => (o(), M(g, {
|
|
1276
|
+
label: F,
|
|
1277
|
+
value: j,
|
|
1278
|
+
key: j
|
|
1267
1279
|
}, null, 8, ["label", "value"]))), 128))
|
|
1268
1280
|
];
|
|
1269
1281
|
}),
|
|
@@ -1272,23 +1284,23 @@ const Be = (d) => (ce("data-v-ef576faa"), d = d(), pe(), d), Sl = { class: "fact
|
|
|
1272
1284
|
]),
|
|
1273
1285
|
_: 2
|
|
1274
1286
|
}, 1032, ["prop"]),
|
|
1275
|
-
|
|
1276
|
-
prop: "list." +
|
|
1277
|
-
rules: { validator:
|
|
1287
|
+
n(R, {
|
|
1288
|
+
prop: "list." + G + ".score",
|
|
1289
|
+
rules: { validator: v(Sl), trigger: "blur" },
|
|
1278
1290
|
style: { width: "200px", "margin-right": "10px" }
|
|
1279
1291
|
}, {
|
|
1280
|
-
default:
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
modelValue:
|
|
1284
|
-
"onUpdate:modelValue": (
|
|
1292
|
+
default: i(() => [
|
|
1293
|
+
y("div", Fl, [
|
|
1294
|
+
n(w, {
|
|
1295
|
+
modelValue: T.score[0],
|
|
1296
|
+
"onUpdate:modelValue": (O) => T.score[0] = O,
|
|
1285
1297
|
size: "small",
|
|
1286
1298
|
"controls-position": "right"
|
|
1287
1299
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
modelValue:
|
|
1291
|
-
"onUpdate:modelValue": (
|
|
1300
|
+
Ll,
|
|
1301
|
+
n(w, {
|
|
1302
|
+
modelValue: T.score[1],
|
|
1303
|
+
"onUpdate:modelValue": (O) => T.score[1] = O,
|
|
1292
1304
|
size: "small",
|
|
1293
1305
|
"controls-position": "right"
|
|
1294
1306
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1297,86 +1309,86 @@ const Be = (d) => (ce("data-v-ef576faa"), d = d(), pe(), d), Sl = { class: "fact
|
|
|
1297
1309
|
_: 2
|
|
1298
1310
|
}, 1032, ["prop", "rules"])
|
|
1299
1311
|
], 64)),
|
|
1300
|
-
|
|
1301
|
-
onClick: (
|
|
1312
|
+
n(E, {
|
|
1313
|
+
onClick: (O) => z(G)
|
|
1302
1314
|
}, {
|
|
1303
|
-
default:
|
|
1304
|
-
|
|
1315
|
+
default: i(() => [
|
|
1316
|
+
n(v(ml))
|
|
1305
1317
|
]),
|
|
1306
1318
|
_: 2
|
|
1307
1319
|
}, 1032, ["onClick"])
|
|
1308
1320
|
]))), 256)),
|
|
1309
|
-
|
|
1321
|
+
n(V, {
|
|
1310
1322
|
type: "primary",
|
|
1311
1323
|
plain: "",
|
|
1312
1324
|
size: "small",
|
|
1313
|
-
icon:
|
|
1314
|
-
onClick:
|
|
1325
|
+
icon: v(re),
|
|
1326
|
+
onClick: D,
|
|
1315
1327
|
style: { "margin-bottom": "10px" }
|
|
1316
1328
|
}, {
|
|
1317
|
-
default:
|
|
1318
|
-
|
|
1329
|
+
default: i(() => [
|
|
1330
|
+
L("添加因子")
|
|
1319
1331
|
]),
|
|
1320
1332
|
_: 1
|
|
1321
1333
|
}, 8, ["icon"]),
|
|
1322
|
-
|
|
1334
|
+
n(V, {
|
|
1323
1335
|
type: "primary",
|
|
1324
1336
|
plain: "",
|
|
1325
1337
|
size: "small",
|
|
1326
|
-
icon:
|
|
1327
|
-
onClick: e[2] || (e[2] = (
|
|
1338
|
+
icon: v(re),
|
|
1339
|
+
onClick: e[2] || (e[2] = (T) => D("compare")),
|
|
1328
1340
|
style: { "margin-bottom": "10px" }
|
|
1329
1341
|
}, {
|
|
1330
|
-
default:
|
|
1331
|
-
|
|
1342
|
+
default: i(() => [
|
|
1343
|
+
L("添加因子对比")
|
|
1332
1344
|
]),
|
|
1333
1345
|
_: 1
|
|
1334
1346
|
}, 8, ["icon"]),
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
default:
|
|
1338
|
-
|
|
1339
|
-
modelValue:
|
|
1340
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
1347
|
+
c.config.sqlShow ? (o(), f(S, { key: 0 }, [
|
|
1348
|
+
n(R, { label: "SQL功能: " }, {
|
|
1349
|
+
default: i(() => [
|
|
1350
|
+
n(l, {
|
|
1351
|
+
modelValue: s.value.sqlEnable,
|
|
1352
|
+
"onUpdate:modelValue": e[3] || (e[3] = (T) => s.value.sqlEnable = T)
|
|
1341
1353
|
}, {
|
|
1342
|
-
default:
|
|
1343
|
-
|
|
1354
|
+
default: i(() => [
|
|
1355
|
+
n(h, {
|
|
1344
1356
|
label: "关闭",
|
|
1345
1357
|
value: 0
|
|
1346
1358
|
}),
|
|
1347
|
-
|
|
1359
|
+
n(h, {
|
|
1348
1360
|
label: "启用",
|
|
1349
1361
|
value: 1
|
|
1350
1362
|
})
|
|
1351
1363
|
]),
|
|
1352
1364
|
_: 1
|
|
1353
1365
|
}, 8, ["modelValue"]),
|
|
1354
|
-
|
|
1366
|
+
s.value.sqlEnable ? (o(), M(V, {
|
|
1355
1367
|
key: 0,
|
|
1356
1368
|
type: "primary",
|
|
1357
1369
|
size: "small",
|
|
1358
|
-
onClick:
|
|
1370
|
+
onClick: r,
|
|
1359
1371
|
style: { "margin-left": "auto" }
|
|
1360
1372
|
}, {
|
|
1361
|
-
default:
|
|
1362
|
-
|
|
1373
|
+
default: i(() => [
|
|
1374
|
+
L("生成SQL")
|
|
1363
1375
|
]),
|
|
1364
1376
|
_: 1
|
|
1365
|
-
})) :
|
|
1377
|
+
})) : P("", !0)
|
|
1366
1378
|
]),
|
|
1367
1379
|
_: 1
|
|
1368
1380
|
}),
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
modelValue:
|
|
1372
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
1381
|
+
s.value.sqlEnable ? (o(), f(S, { key: 0 }, [
|
|
1382
|
+
n(p, {
|
|
1383
|
+
modelValue: s.value.sqlValue,
|
|
1384
|
+
"onUpdate:modelValue": e[4] || (e[4] = (T) => s.value.sqlValue = T),
|
|
1373
1385
|
autosize: { minRows: 4 },
|
|
1374
1386
|
type: "textarea",
|
|
1375
1387
|
style: { "margin-bottom": "10px" }
|
|
1376
1388
|
}, null, 8, ["modelValue"]),
|
|
1377
|
-
|
|
1378
|
-
], 64)) :
|
|
1379
|
-
], 64)) :
|
|
1389
|
+
jl
|
|
1390
|
+
], 64)) : P("", !0)
|
|
1391
|
+
], 64)) : P("", !0)
|
|
1380
1392
|
]),
|
|
1381
1393
|
_: 1
|
|
1382
1394
|
}, 8, ["model"])
|
|
@@ -1384,28 +1396,28 @@ const Be = (d) => (ce("data-v-ef576faa"), d = d(), pe(), d), Sl = { class: "fact
|
|
|
1384
1396
|
_: 1
|
|
1385
1397
|
}, 8, ["modelValue"])
|
|
1386
1398
|
]),
|
|
1387
|
-
|
|
1388
|
-
visible:
|
|
1389
|
-
"onUpdate:visible": e[6] || (e[6] = (
|
|
1390
|
-
data: (
|
|
1399
|
+
n(Ul, {
|
|
1400
|
+
visible: k.value,
|
|
1401
|
+
"onUpdate:visible": e[6] || (e[6] = (T) => k.value = T),
|
|
1402
|
+
data: (ee = c.config.factorDescriptions) == null ? void 0 : ee.filter((T) => [1, 3].includes(T.type))
|
|
1391
1403
|
}, null, 8, ["visible", "data"])
|
|
1392
1404
|
], 64);
|
|
1393
1405
|
};
|
|
1394
1406
|
}
|
|
1395
|
-
},
|
|
1396
|
-
const
|
|
1407
|
+
}, Pl = /* @__PURE__ */ be(Nl, [["__scopeId", "data-v-ef576faa"]]);
|
|
1408
|
+
const ue = (c) => (fe("data-v-bdb03941"), c = c(), ye(), c), Bl = {
|
|
1397
1409
|
key: 0,
|
|
1398
1410
|
class: "common-indicator"
|
|
1399
|
-
},
|
|
1400
|
-
/* @__PURE__ */
|
|
1401
|
-
/* @__PURE__ */
|
|
1402
|
-
], -1)),
|
|
1411
|
+
}, Gl = { class: "indicator" }, Yl = /* @__PURE__ */ ue(() => /* @__PURE__ */ y("div", { class: "title" }, [
|
|
1412
|
+
/* @__PURE__ */ y("span", null, "常用指标: "),
|
|
1413
|
+
/* @__PURE__ */ y("span", null, "不限")
|
|
1414
|
+
], -1)), Jl = { class: "options" }, Al = ["onClick"], Kl = { class: "tags" }, Ql = ["onClick"], Zl = { style: { "font-size": "18px" } }, Hl = {
|
|
1403
1415
|
key: 0,
|
|
1404
1416
|
class: "out-box"
|
|
1405
|
-
},
|
|
1417
|
+
}, Wl = /* @__PURE__ */ ue(() => /* @__PURE__ */ y("span", null, "自定义: ", -1)), Xl = {
|
|
1406
1418
|
key: 0,
|
|
1407
1419
|
class: "convenient-option-box"
|
|
1408
|
-
},
|
|
1420
|
+
}, et = { class: "out-box" }, lt = /* @__PURE__ */ ue(() => /* @__PURE__ */ y("span", null, "自定义: ", -1)), tt = { key: 0 }, at = { key: 0 }, nt = { key: 0 }, ot = { key: 1 }, ut = { class: "tFeaturelncomes-option-box" }, st = { class: "tFeaturelncomes-out-box" }, rt = /* @__PURE__ */ ue(() => /* @__PURE__ */ y("span", null, "自定义: ", -1)), it = { key: 2 }, ct = { key: 3 }, dt = { key: 4 }, pt = { class: "dialog-footer" }, vt = {
|
|
1409
1421
|
__name: "index",
|
|
1410
1422
|
props: /* @__PURE__ */ ne({
|
|
1411
1423
|
config: { type: Object, default: () => {
|
|
@@ -1419,30 +1431,30 @@ const oe = (d) => (ce("data-v-bdb03941"), d = d(), pe(), d), Pl = {
|
|
|
1419
1431
|
dataModifiers: {}
|
|
1420
1432
|
}),
|
|
1421
1433
|
emits: ["update:data"],
|
|
1422
|
-
setup(
|
|
1423
|
-
const
|
|
1424
|
-
var
|
|
1425
|
-
return (
|
|
1426
|
-
}),
|
|
1427
|
-
let
|
|
1428
|
-
return
|
|
1429
|
-
const { commonOptionIds:
|
|
1430
|
-
return [.../* @__PURE__ */ new Set([...
|
|
1431
|
-
}))),
|
|
1432
|
-
}),
|
|
1433
|
-
|
|
1434
|
+
setup(c) {
|
|
1435
|
+
const x = oe(c, "data"), b = c, a = H(!1), k = B(() => {
|
|
1436
|
+
var u;
|
|
1437
|
+
return (u = b.data.find((e) => e.radioType === "1")) == null ? void 0 : u.key;
|
|
1438
|
+
}), q = B(() => {
|
|
1439
|
+
let u = [];
|
|
1440
|
+
return b.varietyMarket === null && !b.commonOption.length ? u = b.config.options : (u = b.config.options, b.varietyMarket && (u = u.filter(({ parent: e }) => e.varietyMarketIds.includes(b.varietyMarket))), b.commonOption.length && (u = u.filter(({ parent: e }) => {
|
|
1441
|
+
const { commonOptionIds: _ } = e;
|
|
1442
|
+
return [.../* @__PURE__ */ new Set([..._, ...b.commonOption])].length !== [..._, ...b.commonOption].length;
|
|
1443
|
+
}))), u;
|
|
1444
|
+
}), s = H({}), t = H({}), U = (u) => {
|
|
1445
|
+
s.value = u;
|
|
1434
1446
|
const e = {
|
|
1435
|
-
key:
|
|
1436
|
-
type:
|
|
1437
|
-
label:
|
|
1447
|
+
key: u.key,
|
|
1448
|
+
type: u.type,
|
|
1449
|
+
label: u.label
|
|
1438
1450
|
};
|
|
1439
|
-
switch (
|
|
1451
|
+
switch (u.key) {
|
|
1440
1452
|
case "st": {
|
|
1441
|
-
|
|
1453
|
+
t.value = { ...e, st: null };
|
|
1442
1454
|
break;
|
|
1443
1455
|
}
|
|
1444
1456
|
case "tFeaturelncomes": {
|
|
1445
|
-
|
|
1457
|
+
t.value = {
|
|
1446
1458
|
...e,
|
|
1447
1459
|
rule: 1,
|
|
1448
1460
|
// 1超 2跌
|
|
@@ -1453,15 +1465,15 @@ const oe = (d) => (ce("data-v-bdb03941"), d = d(), pe(), d), Pl = {
|
|
|
1453
1465
|
break;
|
|
1454
1466
|
}
|
|
1455
1467
|
case "priceLevels": {
|
|
1456
|
-
|
|
1468
|
+
t.value = { ...e, priceLevels: null };
|
|
1457
1469
|
break;
|
|
1458
1470
|
}
|
|
1459
1471
|
case "peTtmLevels": {
|
|
1460
|
-
|
|
1472
|
+
t.value = { ...e, peTtmLevels: null };
|
|
1461
1473
|
break;
|
|
1462
1474
|
}
|
|
1463
1475
|
case "optionsCpType": {
|
|
1464
|
-
|
|
1476
|
+
t.value = {
|
|
1465
1477
|
...e,
|
|
1466
1478
|
optionsCpType: null
|
|
1467
1479
|
// 1看涨 2看跌
|
|
@@ -1469,83 +1481,83 @@ const oe = (d) => (ce("data-v-bdb03941"), d = d(), pe(), d), Pl = {
|
|
|
1469
1481
|
break;
|
|
1470
1482
|
}
|
|
1471
1483
|
default:
|
|
1472
|
-
|
|
1484
|
+
t.value = {
|
|
1473
1485
|
...e,
|
|
1474
1486
|
range: [null, null],
|
|
1475
|
-
unit:
|
|
1476
|
-
radioType:
|
|
1487
|
+
unit: u.defaultUnit.length ? [...u.defaultUnit] : [null, null],
|
|
1488
|
+
radioType: k.value && k.value !== u.key ? "0" : u.defaultRadioType,
|
|
1477
1489
|
// 0数值 1排名
|
|
1478
|
-
rankRange:
|
|
1490
|
+
rankRange: u.defaultRankRange || [null, null]
|
|
1479
1491
|
// 默认排名
|
|
1480
1492
|
};
|
|
1481
1493
|
}
|
|
1482
|
-
|
|
1483
|
-
},
|
|
1484
|
-
switch (
|
|
1494
|
+
a.value = !0;
|
|
1495
|
+
}, z = () => {
|
|
1496
|
+
switch (t.value.key) {
|
|
1485
1497
|
case "st": {
|
|
1486
|
-
const { label: e, st:
|
|
1487
|
-
if (
|
|
1488
|
-
return
|
|
1489
|
-
|
|
1498
|
+
const { label: e, st: _ } = t.value;
|
|
1499
|
+
if (_ === null)
|
|
1500
|
+
return K.warning("格式错误: 请至少选择一个值");
|
|
1501
|
+
t.value.tagText = `${e}: ${_ ? "是" : "否"}`;
|
|
1490
1502
|
break;
|
|
1491
1503
|
}
|
|
1492
1504
|
case "tFeaturelncomes": {
|
|
1493
|
-
const { label: e, rule:
|
|
1494
|
-
if (["", null].includes(
|
|
1495
|
-
return
|
|
1496
|
-
|
|
1505
|
+
const { label: e, rule: _, withFewYears: I, yearsCount: V, netProfit: E } = t.value;
|
|
1506
|
+
if (["", null].includes(I) || ["", null].includes(V) || ["", null].includes(E))
|
|
1507
|
+
return K.warning("格式错误: 请填写完整");
|
|
1508
|
+
t.value.tagText = `${e}: ${I}年内${V}年以上盈利${_ === 1 ? "超" : "跌"}过${E}亿`;
|
|
1497
1509
|
break;
|
|
1498
1510
|
}
|
|
1499
1511
|
case "priceLevels": {
|
|
1500
|
-
const { label: e, priceLevels:
|
|
1501
|
-
if (!
|
|
1502
|
-
return
|
|
1503
|
-
|
|
1512
|
+
const { label: e, priceLevels: _ } = t.value;
|
|
1513
|
+
if (!_ || _.length === 0)
|
|
1514
|
+
return K.warning("格式错误: 请至少选择一个值");
|
|
1515
|
+
t.value.tagText = `${e}: 已选${_}分位`;
|
|
1504
1516
|
break;
|
|
1505
1517
|
}
|
|
1506
1518
|
case "peTtmLevels": {
|
|
1507
|
-
const { label: e, peTtmLevels:
|
|
1508
|
-
if (!
|
|
1509
|
-
return
|
|
1510
|
-
|
|
1519
|
+
const { label: e, peTtmLevels: _ } = t.value;
|
|
1520
|
+
if (!_ || _.length === 0)
|
|
1521
|
+
return K.warning("格式错误: 请至少选择一个值");
|
|
1522
|
+
t.value.tagText = `${e}: 已选${_}分位`;
|
|
1511
1523
|
break;
|
|
1512
1524
|
}
|
|
1513
1525
|
case "optionsCpType": {
|
|
1514
|
-
const { label: e, optionsCpType:
|
|
1515
|
-
if (
|
|
1516
|
-
return
|
|
1517
|
-
|
|
1526
|
+
const { label: e, optionsCpType: _ } = t.value;
|
|
1527
|
+
if (_ === null)
|
|
1528
|
+
return K.warning("格式错误: 请至少选择一个值");
|
|
1529
|
+
t.value.tagText = `${e}: ${_ === 1 ? "看涨" : "看跌"}`;
|
|
1518
1530
|
break;
|
|
1519
1531
|
}
|
|
1520
1532
|
default: {
|
|
1521
|
-
const { label: e, unit:
|
|
1522
|
-
if (["", null].includes(
|
|
1523
|
-
return
|
|
1524
|
-
if (
|
|
1525
|
-
const
|
|
1526
|
-
if (isNaN(
|
|
1527
|
-
return
|
|
1528
|
-
if (
|
|
1529
|
-
return
|
|
1530
|
-
if (
|
|
1531
|
-
return
|
|
1533
|
+
const { label: e, unit: _, radioType: I } = t.value, V = I === "1" ? t.value.rankRange : t.value.range;
|
|
1534
|
+
if (["", null].includes(V[0]) && ["", null].includes(V[1]))
|
|
1535
|
+
return K.warning("格式错误: 请至少填写一个值");
|
|
1536
|
+
if (I === "1") {
|
|
1537
|
+
const g = Number(V[0]), C = Number(V[1]);
|
|
1538
|
+
if (isNaN(g) || isNaN(C))
|
|
1539
|
+
return K.warning("格式错误: 请填写数字");
|
|
1540
|
+
if (g < 0 || C < 0)
|
|
1541
|
+
return K.warning("格式错误: 请填写大于0的数字");
|
|
1542
|
+
if (g > C)
|
|
1543
|
+
return K.warning("格式错误: 请填写正确的排名范围");
|
|
1532
1544
|
}
|
|
1533
|
-
const
|
|
1534
|
-
!["", null].includes(
|
|
1545
|
+
const E = I === "1" ? "" : _[0] ?? "", $ = I === "1" ? "" : _[1] ?? "";
|
|
1546
|
+
!["", null].includes(V[0]) && !["", null].includes(V[1]) ? t.value.tagText = `${e}${I === "1" ? "排名" : ""}: ${V[0]}${E} ~ ${V[1]}${$}` : ["", null].includes(V[0]) ? t.value.tagText = `${e}${I === "1" ? "排名" : ""}: ≤${V[1]}${$}` : t.value.tagText = `${e}${I === "1" ? "排名" : ""}: ≥${V[0]}${E}`;
|
|
1535
1547
|
}
|
|
1536
1548
|
}
|
|
1537
|
-
const
|
|
1538
|
-
|
|
1539
|
-
},
|
|
1540
|
-
|
|
1541
|
-
},
|
|
1542
|
-
|
|
1543
|
-
},
|
|
1544
|
-
|
|
1545
|
-
},
|
|
1546
|
-
switch (
|
|
1549
|
+
const u = x.value.findIndex(({ key: e }) => e === t.value.key);
|
|
1550
|
+
u === -1 ? x.value.push(t.value) : x.value.splice(u, 1, t.value), a.value = !1;
|
|
1551
|
+
}, D = (u) => {
|
|
1552
|
+
s.value = q.value.find(({ key: e }) => e === u.key), t.value = JSON.parse(JSON.stringify(u)), a.value = !0;
|
|
1553
|
+
}, r = (u) => {
|
|
1554
|
+
x.value.splice(u, 1);
|
|
1555
|
+
}, d = (u) => {
|
|
1556
|
+
t.value.range = [...u.range], t.value.unit = [...u.unit];
|
|
1557
|
+
}, m = (u) => {
|
|
1558
|
+
switch (u) {
|
|
1547
1559
|
case "≤0":
|
|
1548
|
-
Object.assign(
|
|
1560
|
+
Object.assign(t.value, {
|
|
1549
1561
|
rule: 2,
|
|
1550
1562
|
// 1超 2跌
|
|
1551
1563
|
withFewYears: 1,
|
|
@@ -1554,7 +1566,7 @@ const oe = (d) => (ce("data-v-bdb03941"), d = d(), pe(), d), Pl = {
|
|
|
1554
1566
|
});
|
|
1555
1567
|
break;
|
|
1556
1568
|
case "≥0":
|
|
1557
|
-
Object.assign(
|
|
1569
|
+
Object.assign(t.value, {
|
|
1558
1570
|
rule: 1,
|
|
1559
1571
|
withFewYears: 1,
|
|
1560
1572
|
yearsCount: 1,
|
|
@@ -1562,7 +1574,7 @@ const oe = (d) => (ce("data-v-bdb03941"), d = d(), pe(), d), Pl = {
|
|
|
1562
1574
|
});
|
|
1563
1575
|
break;
|
|
1564
1576
|
case "五年内有四年以上盈利超过5千万":
|
|
1565
|
-
Object.assign(
|
|
1577
|
+
Object.assign(t.value, {
|
|
1566
1578
|
rule: 1,
|
|
1567
1579
|
withFewYears: 5,
|
|
1568
1580
|
yearsCount: 4,
|
|
@@ -1570,7 +1582,7 @@ const oe = (d) => (ce("data-v-bdb03941"), d = d(), pe(), d), Pl = {
|
|
|
1570
1582
|
});
|
|
1571
1583
|
break;
|
|
1572
1584
|
case "≥10亿":
|
|
1573
|
-
Object.assign(
|
|
1585
|
+
Object.assign(t.value, {
|
|
1574
1586
|
rule: 1,
|
|
1575
1587
|
withFewYears: 1,
|
|
1576
1588
|
yearsCount: 1,
|
|
@@ -1578,7 +1590,7 @@ const oe = (d) => (ce("data-v-bdb03941"), d = d(), pe(), d), Pl = {
|
|
|
1578
1590
|
});
|
|
1579
1591
|
break;
|
|
1580
1592
|
case "≥20亿":
|
|
1581
|
-
Object.assign(
|
|
1593
|
+
Object.assign(t.value, {
|
|
1582
1594
|
rule: 1,
|
|
1583
1595
|
withFewYears: 1,
|
|
1584
1596
|
yearsCount: 1,
|
|
@@ -1587,106 +1599,106 @@ const oe = (d) => (ce("data-v-bdb03941"), d = d(), pe(), d), Pl = {
|
|
|
1587
1599
|
break;
|
|
1588
1600
|
}
|
|
1589
1601
|
};
|
|
1590
|
-
return
|
|
1591
|
-
() =>
|
|
1602
|
+
return te(
|
|
1603
|
+
() => q.value,
|
|
1592
1604
|
() => {
|
|
1593
|
-
|
|
1605
|
+
x.value.length && (x.value = x.value.filter(({ key: u }) => q.value.find((e) => e.key === u)));
|
|
1594
1606
|
}
|
|
1595
|
-
), (
|
|
1596
|
-
const
|
|
1597
|
-
return
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
(o(!0),
|
|
1602
|
-
key:
|
|
1603
|
-
onClick: (
|
|
1604
|
-
},
|
|
1607
|
+
), (u, e) => {
|
|
1608
|
+
const _ = De, I = Cl, V = he, E = Ee, $ = qe, g = de, C = pe, R = _e, w = Re, h = ge;
|
|
1609
|
+
return c.config.show && q.value.length ? (o(), f("div", Bl, [
|
|
1610
|
+
y("div", Gl, [
|
|
1611
|
+
Yl,
|
|
1612
|
+
y("div", Jl, [
|
|
1613
|
+
(o(!0), f(S, null, N(q.value, (l) => (o(), f("span", {
|
|
1614
|
+
key: l.key,
|
|
1615
|
+
onClick: (p) => U(l)
|
|
1616
|
+
}, Q(l.label), 9, Al))), 128))
|
|
1605
1617
|
])
|
|
1606
1618
|
]),
|
|
1607
|
-
|
|
1608
|
-
(o(!0),
|
|
1619
|
+
y("div", Kl, [
|
|
1620
|
+
(o(!0), f(S, null, N(x.value, (l, p) => (o(), M(_, {
|
|
1609
1621
|
closable: "",
|
|
1610
1622
|
type: "info",
|
|
1611
|
-
onClose: (J) =>
|
|
1623
|
+
onClose: (J) => r(p)
|
|
1612
1624
|
}, {
|
|
1613
|
-
default:
|
|
1614
|
-
|
|
1615
|
-
|
|
1625
|
+
default: i(() => [
|
|
1626
|
+
y("span", null, Q(l.tagText), 1),
|
|
1627
|
+
y("span", {
|
|
1616
1628
|
class: "edit",
|
|
1617
|
-
onClick: (J) =>
|
|
1618
|
-
}, "编辑", 8,
|
|
1629
|
+
onClick: (J) => D(l)
|
|
1630
|
+
}, "编辑", 8, Ql)
|
|
1619
1631
|
]),
|
|
1620
1632
|
_: 2
|
|
1621
1633
|
}, 1032, ["onClose"]))), 256))
|
|
1622
1634
|
]),
|
|
1623
|
-
|
|
1624
|
-
modelValue:
|
|
1625
|
-
"onUpdate:modelValue": e[19] || (e[19] = (
|
|
1626
|
-
title:
|
|
1635
|
+
n(h, {
|
|
1636
|
+
modelValue: a.value,
|
|
1637
|
+
"onUpdate:modelValue": e[19] || (e[19] = (l) => a.value = l),
|
|
1638
|
+
title: s.value.label,
|
|
1627
1639
|
width: "600",
|
|
1628
1640
|
"align-center": "",
|
|
1629
1641
|
"destroy-on-close": ""
|
|
1630
|
-
},
|
|
1631
|
-
footer:
|
|
1632
|
-
|
|
1633
|
-
|
|
1642
|
+
}, se({
|
|
1643
|
+
footer: i(() => [
|
|
1644
|
+
y("div", pt, [
|
|
1645
|
+
n($, {
|
|
1634
1646
|
type: "primary",
|
|
1635
|
-
onClick:
|
|
1647
|
+
onClick: z
|
|
1636
1648
|
}, {
|
|
1637
|
-
default:
|
|
1638
|
-
|
|
1649
|
+
default: i(() => [
|
|
1650
|
+
L("确定")
|
|
1639
1651
|
]),
|
|
1640
1652
|
_: 1
|
|
1641
1653
|
})
|
|
1642
1654
|
])
|
|
1643
1655
|
]),
|
|
1644
|
-
default:
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
modelValue:
|
|
1649
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
1656
|
+
default: i(() => [
|
|
1657
|
+
s.value.type === void 0 && t.value.radioType === "1" ? (o(), f("div", Hl, [
|
|
1658
|
+
Wl,
|
|
1659
|
+
n(E, {
|
|
1660
|
+
modelValue: t.value.rankRange[0],
|
|
1661
|
+
"onUpdate:modelValue": e[1] || (e[1] = (l) => t.value.rankRange[0] = l),
|
|
1650
1662
|
style: { flex: "1" }
|
|
1651
1663
|
}, null, 8, ["modelValue"]),
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
modelValue:
|
|
1655
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
1664
|
+
L(" ~ "),
|
|
1665
|
+
n(E, {
|
|
1666
|
+
modelValue: t.value.rankRange[1],
|
|
1667
|
+
"onUpdate:modelValue": e[2] || (e[2] = (l) => t.value.rankRange[1] = l),
|
|
1656
1668
|
style: { flex: "1" }
|
|
1657
1669
|
}, null, 8, ["modelValue"])
|
|
1658
|
-
])) :
|
|
1659
|
-
|
|
1660
|
-
(o(!0),
|
|
1661
|
-
key:
|
|
1662
|
-
onClick: (
|
|
1670
|
+
])) : s.value.type === void 0 ? (o(), f(S, { key: 1 }, [
|
|
1671
|
+
s.value.convenientOptions.length ? (o(), f("div", Xl, [
|
|
1672
|
+
(o(!0), f(S, null, N(s.value.convenientOptions, (l) => (o(), M($, {
|
|
1673
|
+
key: l.text,
|
|
1674
|
+
onClick: (p) => d(l)
|
|
1663
1675
|
}, {
|
|
1664
|
-
default:
|
|
1665
|
-
|
|
1676
|
+
default: i(() => [
|
|
1677
|
+
L(Q(l.text), 1)
|
|
1666
1678
|
]),
|
|
1667
1679
|
_: 2
|
|
1668
1680
|
}, 1032, ["onClick"]))), 128))
|
|
1669
|
-
])) :
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
modelValue:
|
|
1674
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
1681
|
+
])) : P("", !0),
|
|
1682
|
+
y("div", et, [
|
|
1683
|
+
lt,
|
|
1684
|
+
n(E, {
|
|
1685
|
+
modelValue: t.value.range[0],
|
|
1686
|
+
"onUpdate:modelValue": e[4] || (e[4] = (l) => t.value.range[0] = l),
|
|
1675
1687
|
style: { flex: "1" }
|
|
1676
|
-
},
|
|
1677
|
-
|
|
1688
|
+
}, se({ _: 2 }, [
|
|
1689
|
+
s.value.unitOptions.length ? {
|
|
1678
1690
|
name: "append",
|
|
1679
|
-
fn:
|
|
1680
|
-
|
|
1691
|
+
fn: i(() => [
|
|
1692
|
+
s.value.unitOptions.length === 1 ? (o(), f("span", tt, Q(t.value.unit[0]), 1)) : (o(), M(C, {
|
|
1681
1693
|
key: 1,
|
|
1682
|
-
modelValue:
|
|
1683
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
1694
|
+
modelValue: t.value.unit[0],
|
|
1695
|
+
"onUpdate:modelValue": e[3] || (e[3] = (l) => t.value.unit[0] = l),
|
|
1684
1696
|
style: { width: "72px" }
|
|
1685
1697
|
}, {
|
|
1686
|
-
default:
|
|
1687
|
-
(o(!0),
|
|
1688
|
-
label:
|
|
1689
|
-
value:
|
|
1698
|
+
default: i(() => [
|
|
1699
|
+
(o(!0), f(S, null, N(s.value.unitOptions, (l) => (o(), M(g, {
|
|
1700
|
+
label: l,
|
|
1701
|
+
value: l
|
|
1690
1702
|
}, null, 8, ["label", "value"]))), 256))
|
|
1691
1703
|
]),
|
|
1692
1704
|
_: 1
|
|
@@ -1695,25 +1707,25 @@ const oe = (d) => (ce("data-v-bdb03941"), d = d(), pe(), d), Pl = {
|
|
|
1695
1707
|
key: "0"
|
|
1696
1708
|
} : void 0
|
|
1697
1709
|
]), 1032, ["modelValue"]),
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
modelValue:
|
|
1701
|
-
"onUpdate:modelValue": e[6] || (e[6] = (
|
|
1710
|
+
L(" ~ "),
|
|
1711
|
+
n(E, {
|
|
1712
|
+
modelValue: t.value.range[1],
|
|
1713
|
+
"onUpdate:modelValue": e[6] || (e[6] = (l) => t.value.range[1] = l),
|
|
1702
1714
|
style: { flex: "1" }
|
|
1703
|
-
},
|
|
1704
|
-
|
|
1715
|
+
}, se({ _: 2 }, [
|
|
1716
|
+
s.value.unitOptions.length ? {
|
|
1705
1717
|
name: "append",
|
|
1706
|
-
fn:
|
|
1707
|
-
|
|
1718
|
+
fn: i(() => [
|
|
1719
|
+
s.value.unitOptions.length === 1 ? (o(), f("span", at, Q(t.value.unit[1]), 1)) : (o(), M(C, {
|
|
1708
1720
|
key: 1,
|
|
1709
|
-
modelValue:
|
|
1710
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
|
1721
|
+
modelValue: t.value.unit[1],
|
|
1722
|
+
"onUpdate:modelValue": e[5] || (e[5] = (l) => t.value.unit[1] = l),
|
|
1711
1723
|
style: { width: "72px" }
|
|
1712
1724
|
}, {
|
|
1713
|
-
default:
|
|
1714
|
-
(o(!0),
|
|
1715
|
-
label:
|
|
1716
|
-
value:
|
|
1725
|
+
default: i(() => [
|
|
1726
|
+
(o(!0), f(S, null, N(s.value.unitOptions, (l) => (o(), M(g, {
|
|
1727
|
+
label: l,
|
|
1728
|
+
value: l
|
|
1717
1729
|
}, null, 8, ["label", "value"]))), 256))
|
|
1718
1730
|
]),
|
|
1719
1731
|
_: 1
|
|
@@ -1723,168 +1735,168 @@ const oe = (d) => (ce("data-v-bdb03941"), d = d(), pe(), d), Pl = {
|
|
|
1723
1735
|
} : void 0
|
|
1724
1736
|
]), 1032, ["modelValue"])
|
|
1725
1737
|
])
|
|
1726
|
-
], 64)) : (o(),
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
modelValue:
|
|
1730
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
1738
|
+
], 64)) : (o(), f(S, { key: 2 }, [
|
|
1739
|
+
s.value.key === "st" ? (o(), f("div", nt, [
|
|
1740
|
+
n(V, {
|
|
1741
|
+
modelValue: t.value.st,
|
|
1742
|
+
"onUpdate:modelValue": e[7] || (e[7] = (l) => t.value.st = l)
|
|
1731
1743
|
}, {
|
|
1732
|
-
default:
|
|
1733
|
-
|
|
1744
|
+
default: i(() => [
|
|
1745
|
+
n(R, {
|
|
1734
1746
|
label: "是",
|
|
1735
1747
|
value: 1
|
|
1736
1748
|
}),
|
|
1737
|
-
|
|
1749
|
+
n(R, {
|
|
1738
1750
|
label: "否",
|
|
1739
1751
|
value: 0
|
|
1740
1752
|
})
|
|
1741
1753
|
]),
|
|
1742
1754
|
_: 1
|
|
1743
1755
|
}, 8, ["modelValue"])
|
|
1744
|
-
])) :
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
onClick: e[8] || (e[8] = (
|
|
1756
|
+
])) : P("", !0),
|
|
1757
|
+
s.value.key === "tFeaturelncomes" ? (o(), f("div", ot, [
|
|
1758
|
+
y("div", ut, [
|
|
1759
|
+
n($, {
|
|
1760
|
+
onClick: e[8] || (e[8] = (l) => m("≤0"))
|
|
1749
1761
|
}, {
|
|
1750
|
-
default:
|
|
1751
|
-
|
|
1762
|
+
default: i(() => [
|
|
1763
|
+
L("≤0")
|
|
1752
1764
|
]),
|
|
1753
1765
|
_: 1
|
|
1754
1766
|
}),
|
|
1755
|
-
|
|
1756
|
-
onClick: e[9] || (e[9] = (
|
|
1767
|
+
n($, {
|
|
1768
|
+
onClick: e[9] || (e[9] = (l) => m("≥0"))
|
|
1757
1769
|
}, {
|
|
1758
|
-
default:
|
|
1759
|
-
|
|
1770
|
+
default: i(() => [
|
|
1771
|
+
L("≥0")
|
|
1760
1772
|
]),
|
|
1761
1773
|
_: 1
|
|
1762
1774
|
}),
|
|
1763
|
-
|
|
1764
|
-
onClick: e[10] || (e[10] = (
|
|
1775
|
+
n($, {
|
|
1776
|
+
onClick: e[10] || (e[10] = (l) => m("五年内有四年以上盈利超过5千万"))
|
|
1765
1777
|
}, {
|
|
1766
|
-
default:
|
|
1767
|
-
|
|
1778
|
+
default: i(() => [
|
|
1779
|
+
L("五年内有四年以上盈利超过5千万")
|
|
1768
1780
|
]),
|
|
1769
1781
|
_: 1
|
|
1770
1782
|
}),
|
|
1771
|
-
|
|
1772
|
-
onClick: e[11] || (e[11] = (
|
|
1783
|
+
n($, {
|
|
1784
|
+
onClick: e[11] || (e[11] = (l) => m("≥10亿"))
|
|
1773
1785
|
}, {
|
|
1774
|
-
default:
|
|
1775
|
-
|
|
1786
|
+
default: i(() => [
|
|
1787
|
+
L("≥10亿")
|
|
1776
1788
|
]),
|
|
1777
1789
|
_: 1
|
|
1778
1790
|
}),
|
|
1779
|
-
|
|
1780
|
-
onClick: e[12] || (e[12] = (
|
|
1791
|
+
n($, {
|
|
1792
|
+
onClick: e[12] || (e[12] = (l) => m("≥20亿"))
|
|
1781
1793
|
}, {
|
|
1782
|
-
default:
|
|
1783
|
-
|
|
1794
|
+
default: i(() => [
|
|
1795
|
+
L("≥20亿")
|
|
1784
1796
|
]),
|
|
1785
1797
|
_: 1
|
|
1786
1798
|
})
|
|
1787
1799
|
]),
|
|
1788
|
-
|
|
1800
|
+
y("div", st, [
|
|
1789
1801
|
rt,
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
modelValue:
|
|
1793
|
-
"onUpdate:modelValue": e[13] || (e[13] = (
|
|
1802
|
+
y("div", null, [
|
|
1803
|
+
n(w, {
|
|
1804
|
+
modelValue: t.value.withFewYears,
|
|
1805
|
+
"onUpdate:modelValue": e[13] || (e[13] = (l) => t.value.withFewYears = l),
|
|
1794
1806
|
"controls-position": "right"
|
|
1795
1807
|
}, null, 8, ["modelValue"]),
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
modelValue:
|
|
1799
|
-
"onUpdate:modelValue": e[14] || (e[14] = (
|
|
1808
|
+
L(" 年内 "),
|
|
1809
|
+
n(w, {
|
|
1810
|
+
modelValue: t.value.yearsCount,
|
|
1811
|
+
"onUpdate:modelValue": e[14] || (e[14] = (l) => t.value.yearsCount = l),
|
|
1800
1812
|
"controls-position": "right"
|
|
1801
1813
|
}, null, 8, ["modelValue"]),
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
modelValue:
|
|
1805
|
-
"onUpdate:modelValue": e[15] || (e[15] = (
|
|
1814
|
+
L(" 年以上盈利" + Q(t.value.rule === 1 ? "超" : "跌") + "过 ", 1),
|
|
1815
|
+
n(w, {
|
|
1816
|
+
modelValue: t.value.netProfit,
|
|
1817
|
+
"onUpdate:modelValue": e[15] || (e[15] = (l) => t.value.netProfit = l),
|
|
1806
1818
|
"controls-position": "right"
|
|
1807
1819
|
}, null, 8, ["modelValue"]),
|
|
1808
|
-
|
|
1820
|
+
L(" 亿 ")
|
|
1809
1821
|
])
|
|
1810
1822
|
])
|
|
1811
|
-
])) :
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
modelValue:
|
|
1815
|
-
"onUpdate:modelValue": e[16] || (e[16] = (
|
|
1823
|
+
])) : P("", !0),
|
|
1824
|
+
s.value.key === "priceLevels" ? (o(), f("div", it, [
|
|
1825
|
+
n(C, {
|
|
1826
|
+
modelValue: t.value.priceLevels,
|
|
1827
|
+
"onUpdate:modelValue": e[16] || (e[16] = (l) => t.value.priceLevels = l),
|
|
1816
1828
|
multiple: "",
|
|
1817
1829
|
clearable: "",
|
|
1818
1830
|
placeholder: "请选择",
|
|
1819
1831
|
style: { width: "420px" }
|
|
1820
1832
|
}, {
|
|
1821
|
-
default:
|
|
1822
|
-
(o(),
|
|
1823
|
-
key:
|
|
1824
|
-
label: `${
|
|
1825
|
-
value:
|
|
1833
|
+
default: i(() => [
|
|
1834
|
+
(o(), f(S, null, N([1, 2, 3, 4, 5], (l) => n(g, {
|
|
1835
|
+
key: l,
|
|
1836
|
+
label: `${l}分位`,
|
|
1837
|
+
value: l
|
|
1826
1838
|
}, null, 8, ["label", "value"])), 64))
|
|
1827
1839
|
]),
|
|
1828
1840
|
_: 1
|
|
1829
1841
|
}, 8, ["modelValue"])
|
|
1830
|
-
])) :
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
modelValue:
|
|
1834
|
-
"onUpdate:modelValue": e[17] || (e[17] = (
|
|
1842
|
+
])) : P("", !0),
|
|
1843
|
+
s.value.key === "peTtmLevels" ? (o(), f("div", ct, [
|
|
1844
|
+
n(C, {
|
|
1845
|
+
modelValue: t.value.peTtmLevels,
|
|
1846
|
+
"onUpdate:modelValue": e[17] || (e[17] = (l) => t.value.peTtmLevels = l),
|
|
1835
1847
|
multiple: "",
|
|
1836
1848
|
clearable: "",
|
|
1837
1849
|
placeholder: "请选择",
|
|
1838
1850
|
style: { width: "420px" }
|
|
1839
1851
|
}, {
|
|
1840
|
-
default:
|
|
1841
|
-
(o(),
|
|
1842
|
-
key:
|
|
1843
|
-
label: `${
|
|
1844
|
-
value:
|
|
1852
|
+
default: i(() => [
|
|
1853
|
+
(o(), f(S, null, N([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (l) => n(g, {
|
|
1854
|
+
key: l,
|
|
1855
|
+
label: `${l}分位`,
|
|
1856
|
+
value: l
|
|
1845
1857
|
}, null, 8, ["label", "value"])), 64))
|
|
1846
1858
|
]),
|
|
1847
1859
|
_: 1
|
|
1848
1860
|
}, 8, ["modelValue"])
|
|
1849
|
-
])) :
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
modelValue:
|
|
1853
|
-
"onUpdate:modelValue": e[18] || (e[18] = (
|
|
1861
|
+
])) : P("", !0),
|
|
1862
|
+
s.value.key === "optionsCpType" ? (o(), f("div", dt, [
|
|
1863
|
+
n(V, {
|
|
1864
|
+
modelValue: t.value.optionsCpType,
|
|
1865
|
+
"onUpdate:modelValue": e[18] || (e[18] = (l) => t.value.optionsCpType = l)
|
|
1854
1866
|
}, {
|
|
1855
|
-
default:
|
|
1856
|
-
|
|
1867
|
+
default: i(() => [
|
|
1868
|
+
n(R, {
|
|
1857
1869
|
label: "看涨",
|
|
1858
1870
|
value: 1
|
|
1859
1871
|
}),
|
|
1860
|
-
|
|
1872
|
+
n(R, {
|
|
1861
1873
|
label: "看跌",
|
|
1862
1874
|
value: 2
|
|
1863
1875
|
})
|
|
1864
1876
|
]),
|
|
1865
1877
|
_: 1
|
|
1866
1878
|
}, 8, ["modelValue"])
|
|
1867
|
-
])) :
|
|
1879
|
+
])) : P("", !0)
|
|
1868
1880
|
], 64))
|
|
1869
1881
|
]),
|
|
1870
1882
|
_: 2
|
|
1871
1883
|
}, [
|
|
1872
|
-
|
|
1884
|
+
s.value.showRankType ? {
|
|
1873
1885
|
name: "header",
|
|
1874
|
-
fn:
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
modelValue:
|
|
1878
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
1886
|
+
fn: i(() => [
|
|
1887
|
+
y("span", Zl, Q(s.value.label), 1),
|
|
1888
|
+
n(V, {
|
|
1889
|
+
modelValue: t.value.radioType,
|
|
1890
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.radioType = l),
|
|
1879
1891
|
style: { "vertical-align": "4px", "margin-left": "12px" }
|
|
1880
1892
|
}, {
|
|
1881
|
-
default:
|
|
1882
|
-
|
|
1893
|
+
default: i(() => [
|
|
1894
|
+
n(I, {
|
|
1883
1895
|
label: "数值",
|
|
1884
1896
|
value: "0"
|
|
1885
1897
|
}),
|
|
1886
|
-
|
|
1887
|
-
disabled:
|
|
1898
|
+
n(I, {
|
|
1899
|
+
disabled: k.value && k.value !== s.value.key,
|
|
1888
1900
|
label: "排名",
|
|
1889
1901
|
value: "1"
|
|
1890
1902
|
}, null, 8, ["disabled"])
|
|
@@ -1895,35 +1907,38 @@ const oe = (d) => (ce("data-v-bdb03941"), d = d(), pe(), d), Pl = {
|
|
|
1895
1907
|
key: "0"
|
|
1896
1908
|
} : void 0
|
|
1897
1909
|
]), 1032, ["modelValue", "title"])
|
|
1898
|
-
])) :
|
|
1910
|
+
])) : P("", !0);
|
|
1899
1911
|
};
|
|
1900
1912
|
}
|
|
1901
|
-
},
|
|
1902
|
-
const
|
|
1913
|
+
}, mt = /* @__PURE__ */ be(vt, [["__scopeId", "data-v-bdb03941"]]);
|
|
1914
|
+
const X = (c) => (fe("data-v-6a2ba7cb"), c = c(), ye(), c), ft = { class: "variety-search" }, yt = {
|
|
1903
1915
|
key: 0,
|
|
1904
1916
|
class: "variety-search-row"
|
|
1905
|
-
},
|
|
1917
|
+
}, gt = { class: "title" }, bt = /* @__PURE__ */ X(() => /* @__PURE__ */ y("span", null, "品种市场: ", -1)), kt = {
|
|
1906
1918
|
key: 1,
|
|
1907
1919
|
class: "variety-search-row"
|
|
1908
|
-
},
|
|
1920
|
+
}, _t = { class: "title" }, ht = /* @__PURE__ */ X(() => /* @__PURE__ */ y("span", null, "常用选项: ", -1)), Vt = {
|
|
1909
1921
|
key: 2,
|
|
1910
1922
|
class: "variety-search-row"
|
|
1911
|
-
},
|
|
1923
|
+
}, xt = { class: "title" }, Ot = /* @__PURE__ */ X(() => /* @__PURE__ */ y("span", null, "上市板块: ", -1)), It = {
|
|
1912
1924
|
key: 3,
|
|
1913
1925
|
class: "variety-search-row"
|
|
1914
|
-
},
|
|
1926
|
+
}, $t = { class: "title" }, wt = /* @__PURE__ */ X(() => /* @__PURE__ */ y("span", null, "自定标签: ", -1)), Tt = {
|
|
1915
1927
|
key: 4,
|
|
1916
1928
|
class: "variety-search-row"
|
|
1917
|
-
},
|
|
1929
|
+
}, Ct = { class: "title" }, St = /* @__PURE__ */ X(() => /* @__PURE__ */ y("span", null, "价差转换: ", -1)), Ut = {
|
|
1930
|
+
key: 5,
|
|
1931
|
+
class: "variety-search-row"
|
|
1932
|
+
}, Et = { class: "title" }, Rt = /* @__PURE__ */ X(() => /* @__PURE__ */ y("span", null, "因子筛选: ", -1)), qt = {
|
|
1918
1933
|
__name: "index",
|
|
1919
1934
|
props: /* @__PURE__ */ ne({ config: { type: Object, default: {} } }, {
|
|
1920
1935
|
searchData: {},
|
|
1921
1936
|
searchDataModifiers: {}
|
|
1922
1937
|
}),
|
|
1923
1938
|
emits: ["update:searchData"],
|
|
1924
|
-
setup(
|
|
1925
|
-
const
|
|
1926
|
-
|
|
1939
|
+
setup(c, { expose: x }) {
|
|
1940
|
+
const b = c, a = oe(c, "searchData");
|
|
1941
|
+
a.value = Object.assign(a.value, {
|
|
1927
1942
|
// 品种市场
|
|
1928
1943
|
varietyMarket: null,
|
|
1929
1944
|
// 常用选项
|
|
@@ -1932,6 +1947,11 @@ const W = (d) => (ce("data-v-5d0d1a7a"), d = d(), pe(), d), vt = { class: "varie
|
|
|
1932
1947
|
marketIds: [],
|
|
1933
1948
|
// 自定标签
|
|
1934
1949
|
customTag: [],
|
|
1950
|
+
// 价差转换
|
|
1951
|
+
jcTranslate: {
|
|
1952
|
+
type: null,
|
|
1953
|
+
jcList: []
|
|
1954
|
+
},
|
|
1935
1955
|
// 因子筛选
|
|
1936
1956
|
factorScreen: {
|
|
1937
1957
|
list: [],
|
|
@@ -1941,193 +1961,241 @@ const W = (d) => (ce("data-v-5d0d1a7a"), d = d(), pe(), d), vt = { class: "varie
|
|
|
1941
1961
|
// 常用指标
|
|
1942
1962
|
commonIndicator: []
|
|
1943
1963
|
});
|
|
1944
|
-
const
|
|
1945
|
-
const
|
|
1946
|
-
return Object.keys(
|
|
1947
|
-
const
|
|
1948
|
-
|
|
1949
|
-
}),
|
|
1950
|
-
}),
|
|
1951
|
-
const { varietyMarket:
|
|
1952
|
-
if (
|
|
1953
|
-
const
|
|
1954
|
-
return
|
|
1964
|
+
const k = B(() => {
|
|
1965
|
+
const r = {};
|
|
1966
|
+
return Object.keys($e).forEach((d) => {
|
|
1967
|
+
const m = $e[d], u = b.config[d] ?? {}, e = { ...m, ...u };
|
|
1968
|
+
r[d] = e;
|
|
1969
|
+
}), r;
|
|
1970
|
+
}), q = B(() => k.value.varietyMarket.options), s = B(() => {
|
|
1971
|
+
const { varietyMarket: r } = a.value;
|
|
1972
|
+
if (r) {
|
|
1973
|
+
const d = q.value.find(({ value: m }) => m === r).memo;
|
|
1974
|
+
return k.value.commonOption.options.filter(({ value: m }) => d.includes(m));
|
|
1955
1975
|
} else
|
|
1956
|
-
return
|
|
1957
|
-
}),
|
|
1958
|
-
const { varietyMarket:
|
|
1959
|
-
return
|
|
1960
|
-
}),
|
|
1961
|
-
|
|
1976
|
+
return k.value.commonOption.options;
|
|
1977
|
+
}), t = B(() => {
|
|
1978
|
+
const { varietyMarket: r } = a.value;
|
|
1979
|
+
return r ? k.value.marketIds.options.filter((d) => d.varietyMarketIds.includes(r)) : k.value.marketIds.options;
|
|
1980
|
+
}), U = B(() => k.value.customTag.options), z = B(() => k.value.jcTranslate.jcOptions), D = (r) => {
|
|
1981
|
+
switch (r) {
|
|
1982
|
+
case "commonOption": {
|
|
1983
|
+
a.value[r] = [];
|
|
1984
|
+
break;
|
|
1985
|
+
}
|
|
1986
|
+
case "marketIds": {
|
|
1987
|
+
a.value[r] = [];
|
|
1988
|
+
break;
|
|
1989
|
+
}
|
|
1990
|
+
case "customTag": {
|
|
1991
|
+
a.value[r] = [];
|
|
1992
|
+
break;
|
|
1993
|
+
}
|
|
1994
|
+
case "jcTranslate": {
|
|
1995
|
+
a.value[r] = {
|
|
1996
|
+
type: null,
|
|
1997
|
+
jcList: []
|
|
1998
|
+
};
|
|
1999
|
+
break;
|
|
2000
|
+
}
|
|
2001
|
+
case "factorScreen": {
|
|
2002
|
+
a.value[r] = {
|
|
2003
|
+
list: [],
|
|
2004
|
+
sqlEnable: 0,
|
|
2005
|
+
sqlValue: null
|
|
2006
|
+
};
|
|
2007
|
+
break;
|
|
2008
|
+
}
|
|
2009
|
+
case "commonIndicator": {
|
|
2010
|
+
a.value[r] = [];
|
|
2011
|
+
break;
|
|
2012
|
+
}
|
|
2013
|
+
default: {
|
|
2014
|
+
a.value[r] = null;
|
|
2015
|
+
break;
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
1962
2018
|
};
|
|
1963
|
-
return
|
|
1964
|
-
() =>
|
|
1965
|
-
(
|
|
1966
|
-
var
|
|
1967
|
-
(
|
|
2019
|
+
return te(
|
|
2020
|
+
() => s.value,
|
|
2021
|
+
(r) => {
|
|
2022
|
+
var d;
|
|
2023
|
+
(d = a.value.commonOption) != null && d.length && (a.value.commonOption = a.value.commonOption.filter((m) => r.find(({ value: u }) => u === m)));
|
|
1968
2024
|
}
|
|
1969
|
-
),
|
|
1970
|
-
() =>
|
|
1971
|
-
(
|
|
1972
|
-
var
|
|
1973
|
-
(
|
|
2025
|
+
), te(
|
|
2026
|
+
() => t.value,
|
|
2027
|
+
(r) => {
|
|
2028
|
+
var d;
|
|
2029
|
+
(d = a.value.marketIds) != null && d.length && (a.value.marketIds = a.value.marketIds.filter((m) => r.find(({ value: u }) => u === m)));
|
|
1974
2030
|
}
|
|
1975
|
-
),
|
|
2031
|
+
), x({
|
|
1976
2032
|
// 生成接口传参结构的数据
|
|
1977
|
-
formatData: (
|
|
1978
|
-
var
|
|
1979
|
-
console.log("%c[
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
2033
|
+
formatData: (r) => {
|
|
2034
|
+
var u, e, _, I, V, E;
|
|
2035
|
+
console.log("%c[品种池搜索聚合组件]: 正在校验并生成接口传参...", "color: tomato");
|
|
2036
|
+
let d = !0;
|
|
2037
|
+
const m = {};
|
|
2038
|
+
if (r.varietyMarket && (m.exchangeId = String(r.varietyMarket)), (u = r.commonOption) != null && u.length && (m.optionId = r.commonOption.join(",")), (e = r.marketIds) != null && e.length && (m.marketIds = r.marketIds), (_ = r.customTag) != null && _.length && (m.tagIds = r.customTag), (I = k.value.jcTranslate) != null && I.show) {
|
|
2039
|
+
const { jcTranslate: $ } = r, { type: g, jcList: C } = $;
|
|
2040
|
+
switch (g) {
|
|
2041
|
+
case 1: {
|
|
2042
|
+
!C || C.length === 0 ? (K.warning("启用品种转价差功能时, 请至少选择一项价差品种"), d = !1) : (m.translateType = 1, m.jcType = C.join(","));
|
|
2043
|
+
break;
|
|
2044
|
+
}
|
|
2045
|
+
case 2:
|
|
2046
|
+
m.translateType = 2;
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
if ((V = k.value.factorScreen) != null && V.show) {
|
|
2050
|
+
const { factorScreen: $ } = r;
|
|
2051
|
+
if ((E = $ == null ? void 0 : $.list) != null && E.length && (m.tbFeatureFactorScores = $.list.map((g) => {
|
|
2052
|
+
switch (g.key) {
|
|
1985
2053
|
case "compare":
|
|
1986
2054
|
return {
|
|
1987
|
-
freqId:
|
|
1988
|
-
factorId:
|
|
1989
|
-
compareType:
|
|
1990
|
-
freqId2:
|
|
1991
|
-
factorId2:
|
|
2055
|
+
freqId: g.cycle,
|
|
2056
|
+
factorId: g.factor,
|
|
2057
|
+
compareType: g.compareType,
|
|
2058
|
+
freqId2: g.cycle2,
|
|
2059
|
+
factorId2: g.factor2
|
|
1992
2060
|
};
|
|
1993
2061
|
default:
|
|
1994
2062
|
return {
|
|
1995
|
-
freqId:
|
|
1996
|
-
factorId:
|
|
1997
|
-
startScore:
|
|
1998
|
-
endScore:
|
|
2063
|
+
freqId: g.cycle,
|
|
2064
|
+
factorId: g.factor,
|
|
2065
|
+
startScore: g.score[0],
|
|
2066
|
+
endScore: g.score[1]
|
|
1999
2067
|
};
|
|
2000
2068
|
}
|
|
2001
|
-
})),
|
|
2002
|
-
const
|
|
2003
|
-
var
|
|
2004
|
-
const
|
|
2005
|
-
switch (
|
|
2069
|
+
})), $.sqlEnable) {
|
|
2070
|
+
const g = $.list.reduce((R, w, h) => {
|
|
2071
|
+
var p, J;
|
|
2072
|
+
const l = `条件${h + 1}`;
|
|
2073
|
+
switch (w.key) {
|
|
2006
2074
|
case "compare": {
|
|
2007
|
-
let
|
|
2008
|
-
(
|
|
2075
|
+
let Y = "";
|
|
2076
|
+
(p = k.value.factorScreen) != null && p.cycleShow ? Y = `freq_id = ${w.cycle} and factor_id = ${w.factor} ${w.compareType} freq_id = ${w.cycle2} and factor_id = ${w.factor2}` : Y = `factor_id = ${w.factor} ${w.compareType} factor_id = ${w.factor2}`, R.set(l, `(${Y})`);
|
|
2009
2077
|
break;
|
|
2010
2078
|
}
|
|
2011
2079
|
default: {
|
|
2012
|
-
let
|
|
2013
|
-
(
|
|
2080
|
+
let Y = `factor_id = ${w.factor} and `;
|
|
2081
|
+
(J = k.value.factorScreen) != null && J.cycleShow && (Y = `freq_id = ${w.cycle} and factor_id = ${w.factor} and `), (w.score[0] || w.score[0] === 0) && (w.score[1] || w.score[1] === 0) ? Y += `score >= ${w.score[0]} and score <= ${w.score[1]}` : w.score[0] || w.score[0] === 0 ? Y += `score >= ${w.score[0]}` : (w.score[1] || w.score[1] === 0) && (Y += `score <= ${w.score[1]}`), R.set(l, `(${Y})`);
|
|
2014
2082
|
}
|
|
2015
2083
|
}
|
|
2016
|
-
return
|
|
2084
|
+
return R;
|
|
2017
2085
|
}, /* @__PURE__ */ new Map([]));
|
|
2018
|
-
let
|
|
2019
|
-
for (const [
|
|
2020
|
-
const
|
|
2021
|
-
|
|
2086
|
+
let C = $.sqlValue;
|
|
2087
|
+
for (const [R, w] of g) {
|
|
2088
|
+
const h = new RegExp(R, "g");
|
|
2089
|
+
C = C.replace(h, w);
|
|
2022
2090
|
}
|
|
2023
|
-
|
|
2091
|
+
m.sql = C, m.sqlExpression = $.sqlValue;
|
|
2024
2092
|
}
|
|
2025
|
-
|
|
2093
|
+
m.enableSql = $.sqlEnable === 1 ? 2 : 1;
|
|
2026
2094
|
}
|
|
2027
2095
|
{
|
|
2028
|
-
const
|
|
2029
|
-
const { key:
|
|
2030
|
-
if (
|
|
2031
|
-
|
|
2032
|
-
column:
|
|
2033
|
-
start:
|
|
2034
|
-
end:
|
|
2096
|
+
const $ = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"], g = r.commonIndicator.reduce((p, J) => {
|
|
2097
|
+
const { key: Y, type: ee, range: T, unit: G, radioType: O, rankRange: F } = J;
|
|
2098
|
+
if (O === "1")
|
|
2099
|
+
m.sortBy = {
|
|
2100
|
+
column: J.key,
|
|
2101
|
+
start: F[0] || null,
|
|
2102
|
+
end: F[1] || null
|
|
2035
2103
|
};
|
|
2036
|
-
else if (
|
|
2037
|
-
let [
|
|
2038
|
-
["", null].includes(
|
|
2039
|
-
column:
|
|
2040
|
-
start:
|
|
2041
|
-
end:
|
|
2104
|
+
else if (Y === "dividendYield") {
|
|
2105
|
+
let [j, A] = T;
|
|
2106
|
+
["", null].includes(j) || (j = j / 100), ["", null].includes(A) || (A = A / 100), p.push({
|
|
2107
|
+
column: J.key,
|
|
2108
|
+
start: j,
|
|
2109
|
+
end: A
|
|
2042
2110
|
});
|
|
2043
|
-
} else if (
|
|
2044
|
-
let [
|
|
2045
|
-
if (!["", null].includes(
|
|
2046
|
-
switch (
|
|
2111
|
+
} else if (ee === void 0 && !$.includes(Y)) {
|
|
2112
|
+
let [j, A] = T;
|
|
2113
|
+
if (!["", null].includes(j))
|
|
2114
|
+
switch (G[0]) {
|
|
2047
2115
|
case "亿":
|
|
2048
|
-
|
|
2116
|
+
j = j * 1e8;
|
|
2049
2117
|
break;
|
|
2050
2118
|
case "千万":
|
|
2051
|
-
|
|
2119
|
+
j = j * 1e7;
|
|
2052
2120
|
break;
|
|
2053
2121
|
default:
|
|
2054
|
-
|
|
2122
|
+
j = j;
|
|
2055
2123
|
break;
|
|
2056
2124
|
}
|
|
2057
|
-
if (!["", null].includes(
|
|
2058
|
-
switch (
|
|
2125
|
+
if (!["", null].includes(A))
|
|
2126
|
+
switch (G[1]) {
|
|
2059
2127
|
case "亿":
|
|
2060
|
-
|
|
2128
|
+
A = A * 1e8;
|
|
2061
2129
|
break;
|
|
2062
2130
|
case "千万":
|
|
2063
|
-
|
|
2131
|
+
A = A * 1e7;
|
|
2064
2132
|
break;
|
|
2065
2133
|
default:
|
|
2066
|
-
|
|
2134
|
+
A = A;
|
|
2067
2135
|
break;
|
|
2068
2136
|
}
|
|
2069
|
-
|
|
2070
|
-
column:
|
|
2071
|
-
start:
|
|
2072
|
-
end:
|
|
2137
|
+
p.push({
|
|
2138
|
+
column: J.key,
|
|
2139
|
+
start: j,
|
|
2140
|
+
end: A
|
|
2073
2141
|
});
|
|
2074
2142
|
}
|
|
2075
|
-
return
|
|
2143
|
+
return p;
|
|
2076
2144
|
}, []);
|
|
2077
|
-
|
|
2078
|
-
const
|
|
2079
|
-
|
|
2080
|
-
const
|
|
2081
|
-
|
|
2082
|
-
const
|
|
2083
|
-
|
|
2084
|
-
const
|
|
2085
|
-
|
|
2086
|
-
const
|
|
2087
|
-
|
|
2088
|
-
const { key:
|
|
2089
|
-
switch (
|
|
2145
|
+
g.length && (m.query = g);
|
|
2146
|
+
const C = r.commonIndicator.find(({ key: p }) => p === "st");
|
|
2147
|
+
C && (m.st = C.st);
|
|
2148
|
+
const R = r.commonIndicator.find(({ key: p }) => p === "tFeaturelncomes");
|
|
2149
|
+
R && (m.netProfitQueryDto = { ...R, netProfit: R.netProfit * 1e8 });
|
|
2150
|
+
const w = r.commonIndicator.find(({ key: p }) => p === "priceLevels");
|
|
2151
|
+
w && (m.priceLevels = w.priceLevels);
|
|
2152
|
+
const h = r.commonIndicator.find(({ key: p }) => p === "peTtmLevels");
|
|
2153
|
+
h && (m.peTtmLevels = h.peTtmLevels);
|
|
2154
|
+
const l = {};
|
|
2155
|
+
r.commonIndicator.forEach((p) => {
|
|
2156
|
+
const { key: J } = p;
|
|
2157
|
+
switch (J) {
|
|
2090
2158
|
case "expireDays":
|
|
2091
|
-
["", null].includes(
|
|
2159
|
+
["", null].includes(p.range[0]) || (l.minExpireDays = p.range[0]), ["", null].includes(p.range[1]) || (l.maxExpireDays = p.range[1]);
|
|
2092
2160
|
break;
|
|
2093
2161
|
case "virtualRealDegree":
|
|
2094
|
-
["", null].includes(
|
|
2162
|
+
["", null].includes(p.range[0]) || (l.minVirtualRealDegree = p.range[0] / 100), ["", null].includes(p.range[1]) || (l.maxVirtualRealDegree = p.range[1] / 100);
|
|
2095
2163
|
break;
|
|
2096
2164
|
case "yearProfitRate":
|
|
2097
|
-
["", null].includes(
|
|
2165
|
+
["", null].includes(p.range[0]) || (l.minYearProfitRate = p.range[0] / 100), ["", null].includes(p.range[1]) || (l.maxYearProfitRate = p.range[1] / 100);
|
|
2098
2166
|
break;
|
|
2099
2167
|
case "impliedVolatility":
|
|
2100
|
-
["", null].includes(
|
|
2168
|
+
["", null].includes(p.range[0]) || (l.minImpliedVolatility = p.range[0] / 100), ["", null].includes(p.range[1]) || (l.maxImpliedVolatility = p.range[1] / 100);
|
|
2101
2169
|
break;
|
|
2102
2170
|
case "levelMultiplier":
|
|
2103
|
-
["", null].includes(
|
|
2171
|
+
["", null].includes(p.range[0]) || (l.minLevelMultiplier = p.range[0]), ["", null].includes(p.range[1]) || (l.maxLevelMultiplier = p.range[1]);
|
|
2104
2172
|
break;
|
|
2105
2173
|
case "turnover":
|
|
2106
|
-
["", null].includes(
|
|
2174
|
+
["", null].includes(p.range[0]) || (l.minTurnover = p.range[0] * 1e4), ["", null].includes(p.range[1]) || (l.maxTurnover = p.range[1] * 1e4);
|
|
2107
2175
|
break;
|
|
2108
2176
|
case "volume":
|
|
2109
|
-
["", null].includes(
|
|
2177
|
+
["", null].includes(p.range[0]) || (l.minVolume = p.range[0]), ["", null].includes(p.range[1]) || (l.maxVolume = p.range[1]);
|
|
2110
2178
|
break;
|
|
2111
2179
|
case "openInterest":
|
|
2112
|
-
["", null].includes(
|
|
2180
|
+
["", null].includes(p.range[0]) || (l.minOpenInterest = p.range[0]), ["", null].includes(p.range[1]) || (l.maxOpenInterest = p.range[1]);
|
|
2113
2181
|
break;
|
|
2114
2182
|
case "optionsCpType":
|
|
2115
|
-
|
|
2183
|
+
l.optionsCpType = p.optionsCpType;
|
|
2116
2184
|
break;
|
|
2117
2185
|
case "optionGear":
|
|
2118
|
-
["", null].includes(
|
|
2186
|
+
["", null].includes(p.range[0]) || (l.minOptionGear = p.range[0]), ["", null].includes(p.range[1]) || (l.maxOptionGear = p.range[1]);
|
|
2119
2187
|
break;
|
|
2120
2188
|
}
|
|
2121
|
-
}), Object.keys(
|
|
2122
|
-
...
|
|
2123
|
-
...
|
|
2189
|
+
}), Object.keys(l).length && (m.searchOptionDto = {
|
|
2190
|
+
...m.searchOptionDto,
|
|
2191
|
+
...l
|
|
2124
2192
|
});
|
|
2125
2193
|
}
|
|
2126
|
-
return console.log("%c[
|
|
2194
|
+
return console.log("%c[品种池搜索聚合组件]: 接口传参数据生成完毕", "color: green", m), { validateFlag: d, params: m };
|
|
2127
2195
|
},
|
|
2128
2196
|
// 重置函数
|
|
2129
2197
|
reset: () => {
|
|
2130
|
-
|
|
2198
|
+
a.value = {
|
|
2131
2199
|
// 品种市场
|
|
2132
2200
|
varietyMarket: null,
|
|
2133
2201
|
// 常用选项
|
|
@@ -2136,6 +2204,11 @@ const W = (d) => (ce("data-v-5d0d1a7a"), d = d(), pe(), d), vt = { class: "varie
|
|
|
2136
2204
|
marketIds: [],
|
|
2137
2205
|
// 自定标签
|
|
2138
2206
|
customTag: [],
|
|
2207
|
+
// 价差转换
|
|
2208
|
+
jcTranslate: {
|
|
2209
|
+
type: null,
|
|
2210
|
+
jcList: []
|
|
2211
|
+
},
|
|
2139
2212
|
// 因子筛选
|
|
2140
2213
|
factorScreen: {
|
|
2141
2214
|
list: [],
|
|
@@ -2146,126 +2219,176 @@ const W = (d) => (ce("data-v-5d0d1a7a"), d = d(), pe(), d), vt = { class: "varie
|
|
|
2146
2219
|
commonIndicator: []
|
|
2147
2220
|
};
|
|
2148
2221
|
}
|
|
2149
|
-
}), (
|
|
2150
|
-
var
|
|
2151
|
-
const
|
|
2152
|
-
return o(),
|
|
2153
|
-
(
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
onClick:
|
|
2222
|
+
}), (r, d) => {
|
|
2223
|
+
var E, $, g, C, R, w;
|
|
2224
|
+
const m = _e, u = he, e = el, _ = ll, I = de, V = pe;
|
|
2225
|
+
return o(), f("div", ft, [
|
|
2226
|
+
(E = k.value.varietyMarket) != null && E.show ? (o(), f("div", yt, [
|
|
2227
|
+
y("div", gt, [
|
|
2228
|
+
bt,
|
|
2229
|
+
y("span", {
|
|
2230
|
+
onClick: d[0] || (d[0] = (h) => D("varietyMarket"))
|
|
2158
2231
|
}, "不限")
|
|
2159
2232
|
]),
|
|
2160
|
-
u
|
|
2161
|
-
modelValue:
|
|
2162
|
-
"onUpdate:modelValue":
|
|
2233
|
+
n(u, {
|
|
2234
|
+
modelValue: a.value.varietyMarket,
|
|
2235
|
+
"onUpdate:modelValue": d[1] || (d[1] = (h) => a.value.varietyMarket = h),
|
|
2163
2236
|
size: "small"
|
|
2164
2237
|
}, {
|
|
2165
|
-
default:
|
|
2166
|
-
(o(!0),
|
|
2167
|
-
label:
|
|
2168
|
-
value:
|
|
2169
|
-
key:
|
|
2238
|
+
default: i(() => [
|
|
2239
|
+
(o(!0), f(S, null, N(q.value, ({ label: h, value: l }) => (o(), M(m, {
|
|
2240
|
+
label: h,
|
|
2241
|
+
value: l,
|
|
2242
|
+
key: l
|
|
2170
2243
|
}, null, 8, ["label", "value"]))), 128))
|
|
2171
2244
|
]),
|
|
2172
2245
|
_: 1
|
|
2173
2246
|
}, 8, ["modelValue"])
|
|
2174
|
-
])) :
|
|
2175
|
-
(
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
onClick:
|
|
2247
|
+
])) : P("", !0),
|
|
2248
|
+
($ = k.value.commonOption) != null && $.show && s.value.length ? (o(), f("div", kt, [
|
|
2249
|
+
y("div", _t, [
|
|
2250
|
+
ht,
|
|
2251
|
+
y("span", {
|
|
2252
|
+
onClick: d[2] || (d[2] = (h) => D("commonOption"))
|
|
2180
2253
|
}, "不限")
|
|
2181
2254
|
]),
|
|
2182
|
-
|
|
2183
|
-
modelValue:
|
|
2184
|
-
"onUpdate:modelValue":
|
|
2255
|
+
n(_, {
|
|
2256
|
+
modelValue: a.value.commonOption,
|
|
2257
|
+
"onUpdate:modelValue": d[3] || (d[3] = (h) => a.value.commonOption = h),
|
|
2185
2258
|
size: "small"
|
|
2186
2259
|
}, {
|
|
2187
|
-
default:
|
|
2188
|
-
(o(!0),
|
|
2189
|
-
label:
|
|
2190
|
-
value:
|
|
2191
|
-
key:
|
|
2260
|
+
default: i(() => [
|
|
2261
|
+
(o(!0), f(S, null, N(s.value, ({ label: h, value: l }) => (o(), M(e, {
|
|
2262
|
+
label: h,
|
|
2263
|
+
value: l,
|
|
2264
|
+
key: l
|
|
2192
2265
|
}, null, 8, ["label", "value"]))), 128))
|
|
2193
2266
|
]),
|
|
2194
2267
|
_: 1
|
|
2195
2268
|
}, 8, ["modelValue"])
|
|
2196
|
-
])) :
|
|
2197
|
-
(
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
onClick:
|
|
2269
|
+
])) : P("", !0),
|
|
2270
|
+
(g = k.value.marketIds) != null && g.show && t.value.length ? (o(), f("div", Vt, [
|
|
2271
|
+
y("div", xt, [
|
|
2272
|
+
Ot,
|
|
2273
|
+
y("span", {
|
|
2274
|
+
onClick: d[4] || (d[4] = (h) => D("marketIds"))
|
|
2202
2275
|
}, "不限")
|
|
2203
2276
|
]),
|
|
2204
|
-
|
|
2205
|
-
modelValue:
|
|
2206
|
-
"onUpdate:modelValue":
|
|
2277
|
+
n(_, {
|
|
2278
|
+
modelValue: a.value.marketIds,
|
|
2279
|
+
"onUpdate:modelValue": d[5] || (d[5] = (h) => a.value.marketIds = h),
|
|
2207
2280
|
size: "small"
|
|
2208
2281
|
}, {
|
|
2209
|
-
default:
|
|
2210
|
-
(o(!0),
|
|
2211
|
-
label:
|
|
2212
|
-
value:
|
|
2213
|
-
key:
|
|
2282
|
+
default: i(() => [
|
|
2283
|
+
(o(!0), f(S, null, N(t.value, ({ label: h, value: l }) => (o(), M(e, {
|
|
2284
|
+
label: h,
|
|
2285
|
+
value: l,
|
|
2286
|
+
key: l
|
|
2214
2287
|
}, null, 8, ["label", "value"]))), 128))
|
|
2215
2288
|
]),
|
|
2216
2289
|
_: 1
|
|
2217
2290
|
}, 8, ["modelValue"])
|
|
2218
|
-
])) :
|
|
2219
|
-
(
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
onClick:
|
|
2291
|
+
])) : P("", !0),
|
|
2292
|
+
(C = k.value.customTag) != null && C.show && U.value.length ? (o(), f("div", It, [
|
|
2293
|
+
y("div", $t, [
|
|
2294
|
+
wt,
|
|
2295
|
+
y("span", {
|
|
2296
|
+
onClick: d[6] || (d[6] = (h) => D("customTag"))
|
|
2224
2297
|
}, "不限")
|
|
2225
2298
|
]),
|
|
2226
|
-
|
|
2227
|
-
modelValue:
|
|
2228
|
-
"onUpdate:modelValue":
|
|
2299
|
+
n(_, {
|
|
2300
|
+
modelValue: a.value.customTag,
|
|
2301
|
+
"onUpdate:modelValue": d[7] || (d[7] = (h) => a.value.customTag = h),
|
|
2229
2302
|
size: "small"
|
|
2230
2303
|
}, {
|
|
2231
|
-
default:
|
|
2232
|
-
(o(!0),
|
|
2233
|
-
label:
|
|
2234
|
-
value:
|
|
2235
|
-
key:
|
|
2304
|
+
default: i(() => [
|
|
2305
|
+
(o(!0), f(S, null, N(U.value, ({ label: h, value: l }) => (o(), M(e, {
|
|
2306
|
+
label: h,
|
|
2307
|
+
value: l,
|
|
2308
|
+
key: l
|
|
2236
2309
|
}, null, 8, ["label", "value"]))), 128))
|
|
2237
2310
|
]),
|
|
2238
2311
|
_: 1
|
|
2239
2312
|
}, 8, ["modelValue"])
|
|
2240
|
-
])) :
|
|
2241
|
-
(
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
onClick:
|
|
2313
|
+
])) : P("", !0),
|
|
2314
|
+
(R = k.value.jcTranslate) != null && R.show ? (o(), f("div", Tt, [
|
|
2315
|
+
y("div", Ct, [
|
|
2316
|
+
St,
|
|
2317
|
+
y("span", {
|
|
2318
|
+
onClick: d[8] || (d[8] = (h) => D("jcTranslate"))
|
|
2319
|
+
}, "不限")
|
|
2320
|
+
]),
|
|
2321
|
+
n(u, {
|
|
2322
|
+
modelValue: a.value.jcTranslate.type,
|
|
2323
|
+
"onUpdate:modelValue": d[9] || (d[9] = (h) => a.value.jcTranslate.type = h),
|
|
2324
|
+
size: "small"
|
|
2325
|
+
}, {
|
|
2326
|
+
default: i(() => [
|
|
2327
|
+
n(m, { value: 2 }, {
|
|
2328
|
+
default: i(() => [
|
|
2329
|
+
L("价差转品种")
|
|
2330
|
+
]),
|
|
2331
|
+
_: 1
|
|
2332
|
+
}),
|
|
2333
|
+
n(m, { value: 1 }, {
|
|
2334
|
+
default: i(() => [
|
|
2335
|
+
L("品种转价差")
|
|
2336
|
+
]),
|
|
2337
|
+
_: 1
|
|
2338
|
+
})
|
|
2339
|
+
]),
|
|
2340
|
+
_: 1
|
|
2341
|
+
}, 8, ["modelValue"]),
|
|
2342
|
+
ve(n(V, {
|
|
2343
|
+
modelValue: a.value.jcTranslate.jcList,
|
|
2344
|
+
"onUpdate:modelValue": d[10] || (d[10] = (h) => a.value.jcTranslate.jcList = h),
|
|
2345
|
+
size: "small",
|
|
2346
|
+
multiple: "",
|
|
2347
|
+
"collapse-tags": "",
|
|
2348
|
+
"collapse-tags-tooltip": "",
|
|
2349
|
+
placeholder: "请选择价差品种",
|
|
2350
|
+
style: { width: "140px" }
|
|
2351
|
+
}, {
|
|
2352
|
+
default: i(() => [
|
|
2353
|
+
(o(!0), f(S, null, N(z.value, (h) => (o(), M(I, {
|
|
2354
|
+
key: h.value,
|
|
2355
|
+
label: h.label,
|
|
2356
|
+
value: h.value
|
|
2357
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
2358
|
+
]),
|
|
2359
|
+
_: 1
|
|
2360
|
+
}, 8, ["modelValue"]), [
|
|
2361
|
+
[rl, a.value.jcTranslate.type === 1]
|
|
2362
|
+
])
|
|
2363
|
+
])) : P("", !0),
|
|
2364
|
+
(w = k.value.factorScreen) != null && w.show ? (o(), f("div", Ut, [
|
|
2365
|
+
y("div", Et, [
|
|
2366
|
+
Rt,
|
|
2367
|
+
y("span", {
|
|
2368
|
+
onClick: d[11] || (d[11] = (h) => D("factorScreen"))
|
|
2246
2369
|
}, "不限")
|
|
2247
2370
|
]),
|
|
2248
|
-
|
|
2249
|
-
data:
|
|
2250
|
-
"onUpdate:data":
|
|
2251
|
-
config:
|
|
2371
|
+
n(Pl, {
|
|
2372
|
+
data: a.value.factorScreen,
|
|
2373
|
+
"onUpdate:data": d[12] || (d[12] = (h) => a.value.factorScreen = h),
|
|
2374
|
+
config: k.value.factorScreen
|
|
2252
2375
|
}, null, 8, ["data", "config"])
|
|
2253
|
-
])) :
|
|
2254
|
-
|
|
2255
|
-
data:
|
|
2256
|
-
"onUpdate:data":
|
|
2257
|
-
varietyMarket:
|
|
2258
|
-
commonOption:
|
|
2259
|
-
config:
|
|
2376
|
+
])) : P("", !0),
|
|
2377
|
+
n(mt, {
|
|
2378
|
+
data: a.value.commonIndicator,
|
|
2379
|
+
"onUpdate:data": d[13] || (d[13] = (h) => a.value.commonIndicator = h),
|
|
2380
|
+
varietyMarket: a.value.varietyMarket,
|
|
2381
|
+
commonOption: a.value.commonOption,
|
|
2382
|
+
config: k.value.commonIndicator
|
|
2260
2383
|
}, null, 8, ["data", "varietyMarket", "commonOption", "config"])
|
|
2261
2384
|
]);
|
|
2262
2385
|
};
|
|
2263
2386
|
}
|
|
2264
|
-
},
|
|
2265
|
-
install(
|
|
2266
|
-
|
|
2387
|
+
}, Mt = /* @__PURE__ */ be(qt, [["__scopeId", "data-v-6a2ba7cb"]]), da = {
|
|
2388
|
+
install(c) {
|
|
2389
|
+
c.component("st-varietySearch", Mt);
|
|
2267
2390
|
}
|
|
2268
2391
|
};
|
|
2269
2392
|
export {
|
|
2270
|
-
|
|
2393
|
+
da as default
|
|
2271
2394
|
};
|