st-comp 0.0.107 → 0.0.110
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/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +7 -7
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +894 -816
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +160 -160
- package/lib/{index-917cb6c6.js → index-81a69016.js} +10410 -10332
- package/lib/{python-b2715fd4.js → python-d8a3eee7.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/components/CommonIndicator/index.vue +34 -5
- package/packages/VarietySearch/config.js +24 -0
- package/packages/VarietySearch/index.vue +20 -3
- /package/es/{el-radio-group-12b07ac2.js → el-radio-button-12b07ac2.js} +0 -0
- /package/es/{el-radio-group-5259a46b.cjs → el-radio-button-5259a46b.cjs} +0 -0
package/es/VarietySearch.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { b as Ke, c as Ee, e as
|
|
3
|
-
import { b as
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { E as
|
|
6
|
-
import { E as
|
|
1
|
+
import { b as fe, d as ne, u as Se, m as X, o as xe, _ as me, w as Me, y as Oe, q as Ue, c as Qe, i as Ve, z as de, A as Je, l as We, n as $e, B as Ze } from "./base-a3fcf99a.js";
|
|
2
|
+
import { b as Ke, c as Ee, e as ve, a as ge, d as Xe, E as et } from "./el-radio-button-12b07ac2.js";
|
|
3
|
+
import { b as tt, c as lt, E as nt, a as at } from "./el-table-column-661deade.js";
|
|
4
|
+
import { defineComponent as K, computed as B, openBlock as n, createElementBlock as k, normalizeClass as J, unref as T, renderSlot as ae, createVNode as o, Transition as qe, withCtx as f, withDirectives as De, createElementVNode as O, normalizeStyle as ye, createTextVNode as F, toDisplayString as Y, vShow as Re, ref as H, useAttrs as ot, onMounted as Le, onUpdated as st, createBlock as U, resolveDynamicComponent as Fe, shallowReactive as rt, watch as oe, createCommentVNode as D, Fragment as E, withModifiers as ut, isVNode as ze, render as Ie, mergeModels as se, useModel as re, renderList as z, pushScopeId as be, popScopeId as ke, createSlots as ie } from "vue";
|
|
5
|
+
import { E as _e } from "./el-overlay-851ea246.js";
|
|
6
|
+
import { E as Ne } from "./el-input-35c8ebc3.js";
|
|
7
7
|
import "./el-tag-7601f7e6.js";
|
|
8
8
|
import { b as Pe, E as Be, a as je } from "./el-select-d1a33fbe.js";
|
|
9
|
-
import { a as it, u as
|
|
10
|
-
import { E as
|
|
9
|
+
import { a as it, u as ct } from "./el-scrollbar-c23060d5.js";
|
|
10
|
+
import { E as dt } from "./el-popper-e052fb84.js";
|
|
11
11
|
import "./el-tooltip-4ed993c7.js";
|
|
12
12
|
import { E as Ae } from "./el-button-fe99fee6.js";
|
|
13
|
-
import { c as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { m as
|
|
16
|
-
import { a as
|
|
17
|
-
import { E as
|
|
18
|
-
import { m as
|
|
13
|
+
import { c as pt, j as ft, i as mt, T as we, E as pe, l as vt, p as ce, n as gt, o as yt } from "./use-form-common-props-d0739feb.js";
|
|
14
|
+
import { _ as he } from "./_plugin-vue_export-helper-dad06003.js";
|
|
15
|
+
import { m as bt } from "./typescript-7ae59c4c.js";
|
|
16
|
+
import { a as kt } from "./index-28cd5fde.js";
|
|
17
|
+
import { E as _t } from "./index-af687c16.js";
|
|
18
|
+
import { m as Q } from "./config-provider-e4ebacca.js";
|
|
19
19
|
import "./event-09e37cc8.js";
|
|
20
20
|
import "./castArray-0e8e51f9.js";
|
|
21
21
|
import "./debounce-7f3a3471.js";
|
|
@@ -25,7 +25,7 @@ import "./refs-f0ee592c.js";
|
|
|
25
25
|
import "./scroll-1e0c8fab.js";
|
|
26
26
|
import "./index-b4bbc58d.js";
|
|
27
27
|
import "./index-657047bb.js";
|
|
28
|
-
const
|
|
28
|
+
const ht = fe({
|
|
29
29
|
value: {
|
|
30
30
|
type: [String, Number],
|
|
31
31
|
default: ""
|
|
@@ -47,59 +47,59 @@ const _t = de({
|
|
|
47
47
|
},
|
|
48
48
|
color: String,
|
|
49
49
|
badgeStyle: {
|
|
50
|
-
type:
|
|
50
|
+
type: ne([String, Object, Array])
|
|
51
51
|
},
|
|
52
52
|
offset: {
|
|
53
|
-
type:
|
|
53
|
+
type: ne(Array),
|
|
54
54
|
default: [0, 0]
|
|
55
55
|
},
|
|
56
56
|
badgeClass: {
|
|
57
57
|
type: String
|
|
58
58
|
}
|
|
59
|
-
}),
|
|
59
|
+
}), xt = K({
|
|
60
60
|
name: "ElBadge"
|
|
61
|
-
}),
|
|
62
|
-
...
|
|
63
|
-
props:
|
|
64
|
-
setup(
|
|
65
|
-
const
|
|
66
|
-
var e,
|
|
61
|
+
}), Ot = /* @__PURE__ */ K({
|
|
62
|
+
...xt,
|
|
63
|
+
props: ht,
|
|
64
|
+
setup(s, { expose: i }) {
|
|
65
|
+
const l = s, u = Se("badge"), c = B(() => l.isDot ? "" : X(l.value) && X(l.max) ? l.max < l.value ? `${l.max}+` : `${l.value}` : `${l.value}`), $ = B(() => {
|
|
66
|
+
var e, q, R, L, y;
|
|
67
67
|
return [
|
|
68
68
|
{
|
|
69
|
-
backgroundColor:
|
|
70
|
-
marginRight:
|
|
71
|
-
marginTop:
|
|
69
|
+
backgroundColor: l.color,
|
|
70
|
+
marginRight: xe(-((q = (e = l.offset) == null ? void 0 : e[0]) != null ? q : 0)),
|
|
71
|
+
marginTop: xe((L = (R = l.offset) == null ? void 0 : R[1]) != null ? L : 0)
|
|
72
72
|
},
|
|
73
|
-
(
|
|
73
|
+
(y = l.badgeStyle) != null ? y : {}
|
|
74
74
|
];
|
|
75
75
|
});
|
|
76
|
-
return
|
|
77
|
-
content:
|
|
78
|
-
}), (e,
|
|
79
|
-
class:
|
|
76
|
+
return i({
|
|
77
|
+
content: c
|
|
78
|
+
}), (e, q) => (n(), k("div", {
|
|
79
|
+
class: J(T(u).b())
|
|
80
80
|
}, [
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
name: `${
|
|
81
|
+
ae(e.$slots, "default"),
|
|
82
|
+
o(qe, {
|
|
83
|
+
name: `${T(u).namespace.value}-zoom-in-center`,
|
|
84
84
|
persisted: ""
|
|
85
85
|
}, {
|
|
86
86
|
default: f(() => [
|
|
87
|
-
De(
|
|
88
|
-
class:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
87
|
+
De(O("sup", {
|
|
88
|
+
class: J([
|
|
89
|
+
T(u).e("content"),
|
|
90
|
+
T(u).em("content", e.type),
|
|
91
|
+
T(u).is("fixed", !!e.$slots.default),
|
|
92
|
+
T(u).is("dot", e.isDot),
|
|
93
|
+
T(u).is("hide-zero", !e.showZero && l.value === 0),
|
|
94
94
|
e.badgeClass
|
|
95
95
|
]),
|
|
96
|
-
style:
|
|
96
|
+
style: ye(T($))
|
|
97
97
|
}, [
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
ae(e.$slots, "content", { value: T(c) }, () => [
|
|
99
|
+
F(Y(T(c)), 1)
|
|
100
100
|
])
|
|
101
101
|
], 6), [
|
|
102
|
-
[
|
|
102
|
+
[Re, !e.hidden && (T(c) || e.isDot || e.$slots.content)]
|
|
103
103
|
])
|
|
104
104
|
]),
|
|
105
105
|
_: 3
|
|
@@ -107,8 +107,8 @@ const _t = de({
|
|
|
107
107
|
], 2));
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
|
-
var
|
|
111
|
-
const
|
|
110
|
+
var Vt = /* @__PURE__ */ me(Ot, [["__file", "badge.vue"]]);
|
|
111
|
+
const $t = Me(Vt), It = fe({
|
|
112
112
|
type: {
|
|
113
113
|
type: String,
|
|
114
114
|
values: ["primary", "success", "info", "warning", "danger", ""],
|
|
@@ -116,7 +116,7 @@ const It = Me(Ot), Vt = de({
|
|
|
116
116
|
},
|
|
117
117
|
size: {
|
|
118
118
|
type: String,
|
|
119
|
-
values:
|
|
119
|
+
values: pt,
|
|
120
120
|
default: ""
|
|
121
121
|
},
|
|
122
122
|
truncated: Boolean,
|
|
@@ -127,48 +127,48 @@ const It = Me(Ot), Vt = de({
|
|
|
127
127
|
type: String,
|
|
128
128
|
default: "span"
|
|
129
129
|
}
|
|
130
|
-
}),
|
|
130
|
+
}), wt = K({
|
|
131
131
|
name: "ElText"
|
|
132
|
-
}),
|
|
133
|
-
|
|
134
|
-
props:
|
|
135
|
-
setup(
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
]), e =
|
|
143
|
-
var
|
|
132
|
+
}), Tt = /* @__PURE__ */ K({
|
|
133
|
+
...wt,
|
|
134
|
+
props: It,
|
|
135
|
+
setup(s) {
|
|
136
|
+
const i = s, l = H(), u = ft(), c = Se("text"), $ = B(() => [
|
|
137
|
+
c.b(),
|
|
138
|
+
c.m(i.type),
|
|
139
|
+
c.m(u.value),
|
|
140
|
+
c.is("truncated", i.truncated),
|
|
141
|
+
c.is("line-clamp", !Oe(i.lineClamp))
|
|
142
|
+
]), e = ot().title, q = () => {
|
|
143
|
+
var R, L, y, d, _;
|
|
144
144
|
if (e)
|
|
145
145
|
return;
|
|
146
146
|
let g = !1;
|
|
147
|
-
const
|
|
148
|
-
if (
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
} else if (!
|
|
152
|
-
const
|
|
153
|
-
|
|
147
|
+
const t = ((R = l.value) == null ? void 0 : R.textContent) || "";
|
|
148
|
+
if (i.truncated) {
|
|
149
|
+
const r = (L = l.value) == null ? void 0 : L.offsetWidth, w = (y = l.value) == null ? void 0 : y.scrollWidth;
|
|
150
|
+
r && w && w > r && (g = !0);
|
|
151
|
+
} else if (!Oe(i.lineClamp)) {
|
|
152
|
+
const r = (d = l.value) == null ? void 0 : d.offsetHeight, w = (_ = l.value) == null ? void 0 : _.scrollHeight;
|
|
153
|
+
r && w && w > r && (g = !0);
|
|
154
154
|
}
|
|
155
|
-
g ?
|
|
155
|
+
g ? l.value.setAttribute("title", t) : l.value.removeAttribute("title");
|
|
156
156
|
};
|
|
157
|
-
return
|
|
157
|
+
return Le(q), st(q), (R, L) => (n(), U(Fe(R.tag), {
|
|
158
158
|
ref_key: "textRef",
|
|
159
|
-
ref:
|
|
160
|
-
class:
|
|
161
|
-
style:
|
|
159
|
+
ref: l,
|
|
160
|
+
class: J(T($)),
|
|
161
|
+
style: ye({ "-webkit-line-clamp": R.lineClamp })
|
|
162
162
|
}, {
|
|
163
163
|
default: f(() => [
|
|
164
|
-
|
|
164
|
+
ae(R.$slots, "default")
|
|
165
165
|
]),
|
|
166
166
|
_: 3
|
|
167
167
|
}, 8, ["class", "style"]));
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
|
-
var Ct = /* @__PURE__ */
|
|
171
|
-
const
|
|
170
|
+
var Ct = /* @__PURE__ */ me(Tt, [["__file", "text.vue"]]);
|
|
171
|
+
const St = Me(Ct), Ye = ["success", "info", "warning", "error"], P = bt({
|
|
172
172
|
customClass: "",
|
|
173
173
|
center: !1,
|
|
174
174
|
dangerouslyUseHTMLString: !1,
|
|
@@ -185,270 +185,270 @@ const Tt = Me(Ct), Ye = ["success", "info", "warning", "error"], B = yt({
|
|
|
185
185
|
grouping: !1,
|
|
186
186
|
repeatNum: 1,
|
|
187
187
|
appendTo: Ue ? document.body : void 0
|
|
188
|
-
}),
|
|
188
|
+
}), Mt = fe({
|
|
189
189
|
customClass: {
|
|
190
190
|
type: String,
|
|
191
|
-
default:
|
|
191
|
+
default: P.customClass
|
|
192
192
|
},
|
|
193
193
|
center: {
|
|
194
194
|
type: Boolean,
|
|
195
|
-
default:
|
|
195
|
+
default: P.center
|
|
196
196
|
},
|
|
197
197
|
dangerouslyUseHTMLString: {
|
|
198
198
|
type: Boolean,
|
|
199
|
-
default:
|
|
199
|
+
default: P.dangerouslyUseHTMLString
|
|
200
200
|
},
|
|
201
201
|
duration: {
|
|
202
202
|
type: Number,
|
|
203
|
-
default:
|
|
203
|
+
default: P.duration
|
|
204
204
|
},
|
|
205
205
|
icon: {
|
|
206
|
-
type:
|
|
207
|
-
default:
|
|
206
|
+
type: mt,
|
|
207
|
+
default: P.icon
|
|
208
208
|
},
|
|
209
209
|
id: {
|
|
210
210
|
type: String,
|
|
211
|
-
default:
|
|
211
|
+
default: P.id
|
|
212
212
|
},
|
|
213
213
|
message: {
|
|
214
|
-
type:
|
|
214
|
+
type: ne([
|
|
215
215
|
String,
|
|
216
216
|
Object,
|
|
217
217
|
Function
|
|
218
218
|
]),
|
|
219
|
-
default:
|
|
219
|
+
default: P.message
|
|
220
220
|
},
|
|
221
221
|
onClose: {
|
|
222
|
-
type:
|
|
223
|
-
default:
|
|
222
|
+
type: ne(Function),
|
|
223
|
+
default: P.onClose
|
|
224
224
|
},
|
|
225
225
|
showClose: {
|
|
226
226
|
type: Boolean,
|
|
227
|
-
default:
|
|
227
|
+
default: P.showClose
|
|
228
228
|
},
|
|
229
229
|
type: {
|
|
230
230
|
type: String,
|
|
231
231
|
values: Ye,
|
|
232
|
-
default:
|
|
232
|
+
default: P.type
|
|
233
233
|
},
|
|
234
234
|
plain: {
|
|
235
235
|
type: Boolean,
|
|
236
|
-
default:
|
|
236
|
+
default: P.plain
|
|
237
237
|
},
|
|
238
238
|
offset: {
|
|
239
239
|
type: Number,
|
|
240
|
-
default:
|
|
240
|
+
default: P.offset
|
|
241
241
|
},
|
|
242
242
|
zIndex: {
|
|
243
243
|
type: Number,
|
|
244
|
-
default:
|
|
244
|
+
default: P.zIndex
|
|
245
245
|
},
|
|
246
246
|
grouping: {
|
|
247
247
|
type: Boolean,
|
|
248
|
-
default:
|
|
248
|
+
default: P.grouping
|
|
249
249
|
},
|
|
250
250
|
repeatNum: {
|
|
251
251
|
type: Number,
|
|
252
|
-
default:
|
|
252
|
+
default: P.repeatNum
|
|
253
253
|
}
|
|
254
|
-
}),
|
|
254
|
+
}), Ut = {
|
|
255
255
|
destroy: () => !0
|
|
256
|
-
},
|
|
257
|
-
const
|
|
258
|
-
let
|
|
259
|
-
return
|
|
260
|
-
},
|
|
261
|
-
const { prev:
|
|
262
|
-
return
|
|
263
|
-
},
|
|
256
|
+
}, G = rt([]), Et = (s) => {
|
|
257
|
+
const i = G.findIndex((c) => c.id === s), l = G[i];
|
|
258
|
+
let u;
|
|
259
|
+
return i > 0 && (u = G[i - 1]), { current: l, prev: u };
|
|
260
|
+
}, qt = (s) => {
|
|
261
|
+
const { prev: i } = Et(s);
|
|
262
|
+
return i ? i.vm.exposed.bottom.value : 0;
|
|
263
|
+
}, Dt = (s, i) => G.findIndex((u) => u.id === s) > 0 ? 16 : i, Rt = K({
|
|
264
264
|
name: "ElMessage"
|
|
265
|
-
}), Lt = /* @__PURE__ */
|
|
266
|
-
...
|
|
267
|
-
props:
|
|
268
|
-
emits:
|
|
269
|
-
setup(
|
|
270
|
-
const
|
|
271
|
-
let
|
|
272
|
-
const
|
|
273
|
-
const
|
|
274
|
-
return { [
|
|
275
|
-
}),
|
|
276
|
-
top: `${
|
|
265
|
+
}), Lt = /* @__PURE__ */ K({
|
|
266
|
+
...Rt,
|
|
267
|
+
props: Mt,
|
|
268
|
+
emits: Ut,
|
|
269
|
+
setup(s, { expose: i }) {
|
|
270
|
+
const l = s, { Close: u } = vt, { ns: c, zIndex: $ } = kt("message"), { currentZIndex: e, nextZIndex: q } = $, R = H(), L = H(!1), y = H(0);
|
|
271
|
+
let d;
|
|
272
|
+
const _ = B(() => l.type ? l.type === "error" ? "danger" : l.type : "info"), g = B(() => {
|
|
273
|
+
const V = l.type;
|
|
274
|
+
return { [c.bm("icon", V)]: V && we[V] };
|
|
275
|
+
}), t = B(() => l.icon || we[l.type] || ""), r = B(() => qt(l.id)), w = B(() => Dt(l.id, l.offset) + r.value), h = B(() => y.value + w.value), x = B(() => ({
|
|
276
|
+
top: `${w.value}px`,
|
|
277
277
|
zIndex: e.value
|
|
278
278
|
}));
|
|
279
|
-
function
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
},
|
|
279
|
+
function I() {
|
|
280
|
+
l.duration !== 0 && ({ stop: d } = Qe(() => {
|
|
281
|
+
p();
|
|
282
|
+
}, l.duration));
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
|
|
284
|
+
function M() {
|
|
285
|
+
d == null || d();
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function p() {
|
|
288
288
|
L.value = !1;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
|
|
290
|
+
function v({ code: V }) {
|
|
291
|
+
V === _t.esc && p();
|
|
292
292
|
}
|
|
293
|
-
return
|
|
294
|
-
|
|
295
|
-
}),
|
|
296
|
-
|
|
297
|
-
}), it(document, "keydown",
|
|
298
|
-
|
|
299
|
-
}),
|
|
293
|
+
return Le(() => {
|
|
294
|
+
I(), q(), L.value = !0;
|
|
295
|
+
}), oe(() => l.repeatNum, () => {
|
|
296
|
+
M(), I();
|
|
297
|
+
}), it(document, "keydown", v), ct(R, () => {
|
|
298
|
+
y.value = R.value.getBoundingClientRect().height;
|
|
299
|
+
}), i({
|
|
300
300
|
visible: L,
|
|
301
301
|
bottom: h,
|
|
302
|
-
close:
|
|
303
|
-
}), (
|
|
304
|
-
name:
|
|
305
|
-
onBeforeLeave:
|
|
306
|
-
onAfterLeave: (
|
|
302
|
+
close: p
|
|
303
|
+
}), (V, m) => (n(), U(qe, {
|
|
304
|
+
name: T(c).b("fade"),
|
|
305
|
+
onBeforeLeave: V.onClose,
|
|
306
|
+
onAfterLeave: (a) => V.$emit("destroy"),
|
|
307
307
|
persisted: ""
|
|
308
308
|
}, {
|
|
309
309
|
default: f(() => [
|
|
310
|
-
De(
|
|
311
|
-
id:
|
|
310
|
+
De(O("div", {
|
|
311
|
+
id: V.id,
|
|
312
312
|
ref_key: "messageRef",
|
|
313
|
-
ref:
|
|
314
|
-
class:
|
|
315
|
-
|
|
316
|
-
{ [
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
313
|
+
ref: R,
|
|
314
|
+
class: J([
|
|
315
|
+
T(c).b(),
|
|
316
|
+
{ [T(c).m(V.type)]: V.type },
|
|
317
|
+
T(c).is("center", V.center),
|
|
318
|
+
T(c).is("closable", V.showClose),
|
|
319
|
+
T(c).is("plain", V.plain),
|
|
320
|
+
V.customClass
|
|
321
321
|
]),
|
|
322
|
-
style:
|
|
322
|
+
style: ye(T(x)),
|
|
323
323
|
role: "alert",
|
|
324
|
-
onMouseenter:
|
|
325
|
-
onMouseleave:
|
|
324
|
+
onMouseenter: M,
|
|
325
|
+
onMouseleave: I
|
|
326
326
|
}, [
|
|
327
|
-
|
|
327
|
+
V.repeatNum > 1 ? (n(), U(T($t), {
|
|
328
328
|
key: 0,
|
|
329
|
-
value:
|
|
330
|
-
type:
|
|
331
|
-
class:
|
|
332
|
-
}, null, 8, ["value", "type", "class"])) :
|
|
333
|
-
|
|
329
|
+
value: V.repeatNum,
|
|
330
|
+
type: T(_),
|
|
331
|
+
class: J(T(c).e("badge"))
|
|
332
|
+
}, null, 8, ["value", "type", "class"])) : D("v-if", !0),
|
|
333
|
+
T(t) ? (n(), U(T(pe), {
|
|
334
334
|
key: 1,
|
|
335
|
-
class:
|
|
335
|
+
class: J([T(c).e("icon"), T(g)])
|
|
336
336
|
}, {
|
|
337
337
|
default: f(() => [
|
|
338
|
-
(
|
|
338
|
+
(n(), U(Fe(T(t))))
|
|
339
339
|
]),
|
|
340
340
|
_: 1
|
|
341
|
-
}, 8, ["class"])) :
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
class:
|
|
347
|
-
innerHTML:
|
|
341
|
+
}, 8, ["class"])) : D("v-if", !0),
|
|
342
|
+
ae(V.$slots, "default", {}, () => [
|
|
343
|
+
V.dangerouslyUseHTMLString ? (n(), k(E, { key: 1 }, [
|
|
344
|
+
D(" Caution here, message could've been compromised, never use user's input as message "),
|
|
345
|
+
O("p", {
|
|
346
|
+
class: J(T(c).e("content")),
|
|
347
|
+
innerHTML: V.message
|
|
348
348
|
}, null, 10, ["innerHTML"])
|
|
349
|
-
], 2112)) : (
|
|
349
|
+
], 2112)) : (n(), k("p", {
|
|
350
350
|
key: 0,
|
|
351
|
-
class:
|
|
352
|
-
},
|
|
351
|
+
class: J(T(c).e("content"))
|
|
352
|
+
}, Y(V.message), 3))
|
|
353
353
|
]),
|
|
354
|
-
|
|
354
|
+
V.showClose ? (n(), U(T(pe), {
|
|
355
355
|
key: 2,
|
|
356
|
-
class:
|
|
357
|
-
onClick:
|
|
356
|
+
class: J(T(c).e("closeBtn")),
|
|
357
|
+
onClick: ut(p, ["stop"])
|
|
358
358
|
}, {
|
|
359
359
|
default: f(() => [
|
|
360
|
-
|
|
360
|
+
o(T(u))
|
|
361
361
|
]),
|
|
362
362
|
_: 1
|
|
363
|
-
}, 8, ["class", "onClick"])) :
|
|
363
|
+
}, 8, ["class", "onClick"])) : D("v-if", !0)
|
|
364
364
|
], 46, ["id"]), [
|
|
365
|
-
[
|
|
365
|
+
[Re, L.value]
|
|
366
366
|
])
|
|
367
367
|
]),
|
|
368
368
|
_: 3
|
|
369
369
|
}, 8, ["name", "onBeforeLeave", "onAfterLeave"]));
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
|
-
var Ft = /* @__PURE__ */
|
|
372
|
+
var Ft = /* @__PURE__ */ me(Lt, [["__file", "message.vue"]]);
|
|
373
373
|
let zt = 1;
|
|
374
|
-
const He = (
|
|
375
|
-
const
|
|
376
|
-
...
|
|
377
|
-
...
|
|
374
|
+
const He = (s) => {
|
|
375
|
+
const i = !s || Ve(s) || ze(s) || de(s) ? { message: s } : s, l = {
|
|
376
|
+
...P,
|
|
377
|
+
...i
|
|
378
378
|
};
|
|
379
|
-
if (!
|
|
380
|
-
|
|
381
|
-
else if (
|
|
382
|
-
let
|
|
383
|
-
Je(
|
|
379
|
+
if (!l.appendTo)
|
|
380
|
+
l.appendTo = document.body;
|
|
381
|
+
else if (Ve(l.appendTo)) {
|
|
382
|
+
let u = document.querySelector(l.appendTo);
|
|
383
|
+
Je(u) || (We("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body."), u = document.body), l.appendTo = u;
|
|
384
384
|
}
|
|
385
|
-
return
|
|
386
|
-
}, Nt = (
|
|
387
|
-
const
|
|
388
|
-
if (
|
|
385
|
+
return $e(Q.grouping) && !l.grouping && (l.grouping = Q.grouping), X(Q.duration) && l.duration === 3e3 && (l.duration = Q.duration), X(Q.offset) && l.offset === 16 && (l.offset = Q.offset), $e(Q.showClose) && !l.showClose && (l.showClose = Q.showClose), l;
|
|
386
|
+
}, Nt = (s) => {
|
|
387
|
+
const i = G.indexOf(s);
|
|
388
|
+
if (i === -1)
|
|
389
389
|
return;
|
|
390
|
-
|
|
391
|
-
const { handler:
|
|
392
|
-
|
|
393
|
-
},
|
|
394
|
-
const
|
|
395
|
-
...
|
|
396
|
-
id:
|
|
390
|
+
G.splice(i, 1);
|
|
391
|
+
const { handler: l } = s;
|
|
392
|
+
l.close();
|
|
393
|
+
}, Pt = ({ appendTo: s, ...i }, l) => {
|
|
394
|
+
const u = `message_${zt++}`, c = i.onClose, $ = document.createElement("div"), e = {
|
|
395
|
+
...i,
|
|
396
|
+
id: u,
|
|
397
397
|
onClose: () => {
|
|
398
|
-
|
|
398
|
+
c == null || c(), Nt(y);
|
|
399
399
|
},
|
|
400
400
|
onDestroy: () => {
|
|
401
|
-
|
|
401
|
+
Ie(null, $);
|
|
402
402
|
}
|
|
403
|
-
},
|
|
404
|
-
default:
|
|
403
|
+
}, q = o(Ft, e, de(e.message) || ze(e.message) ? {
|
|
404
|
+
default: de(e.message) ? e.message : () => e.message
|
|
405
405
|
} : null);
|
|
406
|
-
|
|
407
|
-
const
|
|
408
|
-
id:
|
|
409
|
-
vnode:
|
|
410
|
-
vm:
|
|
406
|
+
q.appContext = l || Z._context, Ie(q, $), s.appendChild($.firstElementChild);
|
|
407
|
+
const R = q.component, y = {
|
|
408
|
+
id: u,
|
|
409
|
+
vnode: q,
|
|
410
|
+
vm: R,
|
|
411
411
|
handler: {
|
|
412
412
|
close: () => {
|
|
413
|
-
|
|
413
|
+
R.exposed.visible.value = !1;
|
|
414
414
|
}
|
|
415
415
|
},
|
|
416
|
-
props:
|
|
416
|
+
props: q.component.props
|
|
417
417
|
};
|
|
418
|
-
return
|
|
419
|
-
},
|
|
418
|
+
return y;
|
|
419
|
+
}, Z = (s = {}, i) => {
|
|
420
420
|
if (!Ue)
|
|
421
421
|
return { close: () => {
|
|
422
422
|
} };
|
|
423
|
-
const
|
|
424
|
-
if (
|
|
425
|
-
const
|
|
423
|
+
const l = He(s);
|
|
424
|
+
if (l.grouping && G.length) {
|
|
425
|
+
const c = G.find(({ vnode: $ }) => {
|
|
426
426
|
var e;
|
|
427
|
-
return ((e =
|
|
427
|
+
return ((e = $.props) == null ? void 0 : e.message) === l.message;
|
|
428
428
|
});
|
|
429
|
-
if (
|
|
430
|
-
return
|
|
429
|
+
if (c)
|
|
430
|
+
return c.props.repeatNum += 1, c.props.type = l.type, c.handler;
|
|
431
431
|
}
|
|
432
|
-
if (
|
|
432
|
+
if (X(Q.max) && G.length >= Q.max)
|
|
433
433
|
return { close: () => {
|
|
434
434
|
} };
|
|
435
|
-
const
|
|
436
|
-
return
|
|
435
|
+
const u = Pt(l, i);
|
|
436
|
+
return G.push(u), u.handler;
|
|
437
437
|
};
|
|
438
|
-
Ye.forEach((
|
|
439
|
-
|
|
440
|
-
const
|
|
441
|
-
return
|
|
438
|
+
Ye.forEach((s) => {
|
|
439
|
+
Z[s] = (i = {}, l) => {
|
|
440
|
+
const u = He(i);
|
|
441
|
+
return Z({ ...u, type: s }, l);
|
|
442
442
|
};
|
|
443
443
|
});
|
|
444
|
-
function
|
|
445
|
-
for (const
|
|
446
|
-
(!
|
|
444
|
+
function Bt(s) {
|
|
445
|
+
for (const i of G)
|
|
446
|
+
(!s || s === i.props.type) && i.handler.close();
|
|
447
447
|
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
const
|
|
451
|
-
const
|
|
448
|
+
Z.closeAll = Bt;
|
|
449
|
+
Z._context = null;
|
|
450
|
+
const W = Ze(Z, "$message");
|
|
451
|
+
const Te = {
|
|
452
452
|
// 品种市场 [选项: 前端默认]
|
|
453
453
|
varietyMarket: {
|
|
454
454
|
show: !0,
|
|
@@ -727,7 +727,13 @@ const Ce = {
|
|
|
727
727
|
// 默认选中单位
|
|
728
728
|
defaultUnit: ["亿", "亿"],
|
|
729
729
|
// 单位下拉框选项
|
|
730
|
-
unitOptions: ["元", "千万", "亿"]
|
|
730
|
+
unitOptions: ["元", "千万", "亿"],
|
|
731
|
+
// 是否展示排名类型
|
|
732
|
+
showRankType: !0,
|
|
733
|
+
// 默认单选类型 0: 数值类型 1: 排名
|
|
734
|
+
defaultRadioType: "1",
|
|
735
|
+
// 默认数值
|
|
736
|
+
defaultRankRange: [0, 25]
|
|
731
737
|
},
|
|
732
738
|
// 净资产收益率roe
|
|
733
739
|
{
|
|
@@ -890,7 +896,13 @@ const Ce = {
|
|
|
890
896
|
// 默认选中单位
|
|
891
897
|
defaultUnit: ["万", "万"],
|
|
892
898
|
// 单位下拉框选项
|
|
893
|
-
unitOptions: ["万"]
|
|
899
|
+
unitOptions: ["万"],
|
|
900
|
+
// 是否展示排名类型
|
|
901
|
+
showRankType: !0,
|
|
902
|
+
// 默认单选类型 0: 数值类型 1: 排名
|
|
903
|
+
defaultRadioType: "1",
|
|
904
|
+
// 默认数值
|
|
905
|
+
defaultRankRange: [0, 25]
|
|
894
906
|
},
|
|
895
907
|
// 成交量
|
|
896
908
|
{
|
|
@@ -905,7 +917,13 @@ const Ce = {
|
|
|
905
917
|
// 默认选中单位
|
|
906
918
|
defaultUnit: [],
|
|
907
919
|
// 单位下拉框选项
|
|
908
|
-
unitOptions: []
|
|
920
|
+
unitOptions: [],
|
|
921
|
+
// 是否展示排名类型
|
|
922
|
+
showRankType: !0,
|
|
923
|
+
// 默认单选类型 0: 数值类型 1: 排名
|
|
924
|
+
defaultRadioType: "1",
|
|
925
|
+
// 默认数值
|
|
926
|
+
defaultRankRange: [0, 25]
|
|
909
927
|
},
|
|
910
928
|
// 持仓量
|
|
911
929
|
{
|
|
@@ -920,7 +938,13 @@ const Ce = {
|
|
|
920
938
|
// 默认选中单位
|
|
921
939
|
defaultUnit: [],
|
|
922
940
|
// 单位下拉框选项
|
|
923
|
-
unitOptions: []
|
|
941
|
+
unitOptions: [],
|
|
942
|
+
// 是否展示排名类型
|
|
943
|
+
showRankType: !0,
|
|
944
|
+
// 默认单选类型 0: 数值类型 1: 排名
|
|
945
|
+
defaultRadioType: "1",
|
|
946
|
+
// 默认数值
|
|
947
|
+
defaultRankRange: [0, 25]
|
|
924
948
|
},
|
|
925
949
|
// 认沽认购
|
|
926
950
|
{
|
|
@@ -950,49 +974,49 @@ const Ce = {
|
|
|
950
974
|
]
|
|
951
975
|
}
|
|
952
976
|
};
|
|
953
|
-
const
|
|
954
|
-
!
|
|
955
|
-
},
|
|
956
|
-
const
|
|
957
|
-
return
|
|
958
|
-
},
|
|
977
|
+
const jt = (s, i, l) => {
|
|
978
|
+
!i[0] && i[0] !== 0 && !i[1] && i[1] !== 0 ? l(new Error("至少填写一个分数")) : l();
|
|
979
|
+
}, Ce = (s) => {
|
|
980
|
+
const i = /(条件(\d+))/g;
|
|
981
|
+
return s.match(i) || [];
|
|
982
|
+
}, At = {
|
|
959
983
|
__name: "FactorDescription",
|
|
960
|
-
props: /* @__PURE__ */
|
|
984
|
+
props: /* @__PURE__ */ se({
|
|
961
985
|
data: { type: Array, default: [] }
|
|
962
986
|
}, {
|
|
963
987
|
visible: { default: !1 },
|
|
964
988
|
visibleModifiers: {}
|
|
965
989
|
}),
|
|
966
990
|
emits: ["update:visible"],
|
|
967
|
-
setup(
|
|
968
|
-
const
|
|
969
|
-
return (
|
|
970
|
-
const
|
|
971
|
-
return
|
|
972
|
-
modelValue:
|
|
973
|
-
"onUpdate:modelValue":
|
|
991
|
+
setup(s) {
|
|
992
|
+
const i = re(s, "visible");
|
|
993
|
+
return (l, u) => {
|
|
994
|
+
const c = tt, $ = lt, e = _e;
|
|
995
|
+
return n(), U(e, {
|
|
996
|
+
modelValue: i.value,
|
|
997
|
+
"onUpdate:modelValue": u[0] || (u[0] = (q) => i.value = q),
|
|
974
998
|
title: "因子使用说明",
|
|
975
999
|
width: "1000",
|
|
976
1000
|
"align-center": "",
|
|
977
1001
|
"destroy-on-close": ""
|
|
978
1002
|
}, {
|
|
979
1003
|
default: f(() => [
|
|
980
|
-
|
|
981
|
-
data:
|
|
1004
|
+
o($, {
|
|
1005
|
+
data: s.data,
|
|
982
1006
|
border: "",
|
|
983
1007
|
height: "500"
|
|
984
1008
|
}, {
|
|
985
1009
|
default: f(() => [
|
|
986
|
-
|
|
1010
|
+
o(c, {
|
|
987
1011
|
prop: "factorName",
|
|
988
1012
|
label: "因子名称",
|
|
989
1013
|
width: "200"
|
|
990
1014
|
}),
|
|
991
|
-
|
|
1015
|
+
o(c, {
|
|
992
1016
|
prop: "factorDesc",
|
|
993
1017
|
label: "因子说明"
|
|
994
1018
|
}),
|
|
995
|
-
|
|
1019
|
+
o(c, {
|
|
996
1020
|
prop: "factorScoreDefine",
|
|
997
1021
|
label: "分值定义"
|
|
998
1022
|
})
|
|
@@ -1005,9 +1029,9 @@ const Bt = (r, c, n) => {
|
|
|
1005
1029
|
};
|
|
1006
1030
|
}
|
|
1007
1031
|
};
|
|
1008
|
-
const Ge = (
|
|
1032
|
+
const Ge = (s) => (be("data-v-3cac46e2"), s = s(), ke(), s), Yt = { class: "factor-screen" }, Ht = { class: "custom-header" }, Gt = ["id"], Qt = { class: "form-row" }, Jt = { class: "index" }, Wt = { style: { display: "flex", "align-items": "center", width: "100%", height: "24px" } }, Zt = /* @__PURE__ */ Ge(() => /* @__PURE__ */ O("span", null, "~", -1)), Kt = /* @__PURE__ */ Ge(() => /* @__PURE__ */ O("span", null, "&&代表and,||代表or", -1)), Xt = { class: "dialog-footer" }, el = {
|
|
1009
1033
|
__name: "index",
|
|
1010
|
-
props: /* @__PURE__ */
|
|
1034
|
+
props: /* @__PURE__ */ se({
|
|
1011
1035
|
config: {
|
|
1012
1036
|
type: Object,
|
|
1013
1037
|
default: {
|
|
@@ -1036,12 +1060,12 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
|
|
|
1036
1060
|
dataModifiers: {}
|
|
1037
1061
|
}),
|
|
1038
1062
|
emits: ["update:data"],
|
|
1039
|
-
setup(
|
|
1040
|
-
const
|
|
1063
|
+
setup(s) {
|
|
1064
|
+
const i = s, l = re(s, "data"), u = H(!1), c = H(!1), $ = H(null), e = H({
|
|
1041
1065
|
// 筛选因子列表
|
|
1042
1066
|
list: [
|
|
1043
1067
|
{
|
|
1044
|
-
cycle:
|
|
1068
|
+
cycle: i.config.cycleDefault ?? null,
|
|
1045
1069
|
// 周期
|
|
1046
1070
|
factor: null,
|
|
1047
1071
|
// 因子
|
|
@@ -1053,81 +1077,81 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
|
|
|
1053
1077
|
sqlEnable: 0,
|
|
1054
1078
|
// SQL语句
|
|
1055
1079
|
sqlValue: null
|
|
1056
|
-
}),
|
|
1057
|
-
const { list:
|
|
1080
|
+
}), q = () => {
|
|
1081
|
+
const { list: t, sqlEnable: r, sqlValue: w } = l.value;
|
|
1058
1082
|
e.value = {
|
|
1059
|
-
list: JSON.parse(JSON.stringify(
|
|
1060
|
-
sqlEnable:
|
|
1061
|
-
sqlValue:
|
|
1062
|
-
}, e.value.list.length ||
|
|
1063
|
-
},
|
|
1064
|
-
|
|
1065
|
-
const { list:
|
|
1066
|
-
if (
|
|
1067
|
-
if (
|
|
1083
|
+
list: JSON.parse(JSON.stringify(t)),
|
|
1084
|
+
sqlEnable: r,
|
|
1085
|
+
sqlValue: w
|
|
1086
|
+
}, e.value.list.length || y(), u.value = !0;
|
|
1087
|
+
}, R = () => {
|
|
1088
|
+
$.value.validate((t) => {
|
|
1089
|
+
const { list: r, sqlEnable: w, sqlValue: h } = e.value;
|
|
1090
|
+
if (t) {
|
|
1091
|
+
if (w) {
|
|
1068
1092
|
if (!h)
|
|
1069
|
-
return
|
|
1070
|
-
const
|
|
1071
|
-
if (
|
|
1072
|
-
return
|
|
1093
|
+
return W.error("SQL语句不能为空");
|
|
1094
|
+
const x = Ce(h), I = r.map((p, v) => `条件${v + 1}`), M = x.filter((p) => !I.includes(p));
|
|
1095
|
+
if (M.length)
|
|
1096
|
+
return W.error(`请检查SQL语句, 不存在[${M}]`);
|
|
1073
1097
|
}
|
|
1074
|
-
|
|
1075
|
-
list: JSON.parse(JSON.stringify(
|
|
1076
|
-
sqlEnable:
|
|
1098
|
+
l.value = {
|
|
1099
|
+
list: JSON.parse(JSON.stringify(r)),
|
|
1100
|
+
sqlEnable: w,
|
|
1077
1101
|
sqlValue: h
|
|
1078
|
-
},
|
|
1102
|
+
}, u.value = !1;
|
|
1079
1103
|
}
|
|
1080
1104
|
});
|
|
1081
|
-
}, L = (
|
|
1082
|
-
e.value.list.splice(
|
|
1083
|
-
},
|
|
1084
|
-
switch (
|
|
1105
|
+
}, L = (t) => {
|
|
1106
|
+
e.value.list.splice(t, 1);
|
|
1107
|
+
}, y = (t) => {
|
|
1108
|
+
switch (t) {
|
|
1085
1109
|
case "compare": {
|
|
1086
1110
|
e.value.list.push({
|
|
1087
1111
|
key: "compare",
|
|
1088
|
-
cycle:
|
|
1112
|
+
cycle: i.config.cycleDefault ?? null,
|
|
1089
1113
|
factor: null,
|
|
1090
1114
|
compareType: ">",
|
|
1091
|
-
cycle2:
|
|
1115
|
+
cycle2: i.config.cycleDefault ?? null,
|
|
1092
1116
|
factor2: null
|
|
1093
1117
|
});
|
|
1094
1118
|
break;
|
|
1095
1119
|
}
|
|
1096
1120
|
default: {
|
|
1097
1121
|
e.value.list.push({
|
|
1098
|
-
cycle:
|
|
1122
|
+
cycle: i.config.cycleDefault ?? null,
|
|
1099
1123
|
factor: null,
|
|
1100
1124
|
score: [null, null]
|
|
1101
1125
|
});
|
|
1102
1126
|
break;
|
|
1103
1127
|
}
|
|
1104
1128
|
}
|
|
1105
|
-
},
|
|
1106
|
-
|
|
1107
|
-
if (
|
|
1129
|
+
}, d = () => {
|
|
1130
|
+
$.value.validate((t) => {
|
|
1131
|
+
if (t)
|
|
1108
1132
|
if (e.value.sqlValue) {
|
|
1109
|
-
const
|
|
1110
|
-
e.value.sqlValue = e.value.list.reduce((
|
|
1133
|
+
const r = Ce(e.value.sqlValue);
|
|
1134
|
+
e.value.sqlValue = e.value.list.reduce((w, h, x) => (r.includes(`条件${x + 1}`) || (w += `&& 条件${x + 1} `), w), e.value.sqlValue);
|
|
1111
1135
|
} else
|
|
1112
|
-
e.value.sqlValue = e.value.list.reduce((
|
|
1136
|
+
e.value.sqlValue = e.value.list.reduce((r, w, h) => (h === 0 ? r += `条件${h + 1} ` : r += `&& 条件${h + 1} `, r), "");
|
|
1113
1137
|
});
|
|
1114
|
-
},
|
|
1115
|
-
switch (
|
|
1138
|
+
}, _ = (t) => {
|
|
1139
|
+
switch (t.key) {
|
|
1116
1140
|
case "compare": {
|
|
1117
|
-
const { cycle:
|
|
1118
|
-
let
|
|
1119
|
-
return
|
|
1141
|
+
const { cycle: r, factor: w, compareType: h, cycle2: x, factor2: I } = t;
|
|
1142
|
+
let M = "";
|
|
1143
|
+
return M += ` ${i.config.cycleOptions.find(({ value: p }) => p === r).label}`, M += ` ${i.config.factorOptions.find(({ value: p }) => p === w).label}`, M += ` ${h}`, M += ` ${i.config.cycleOptions.find(({ value: p }) => p === x).label}`, M += ` ${i.config.factorOptions.find(({ value: p }) => p === I).label}`, M;
|
|
1120
1144
|
}
|
|
1121
1145
|
default: {
|
|
1122
|
-
const { cycle:
|
|
1123
|
-
let
|
|
1124
|
-
return
|
|
1146
|
+
const { cycle: r, factor: w, score: h } = t;
|
|
1147
|
+
let x = "";
|
|
1148
|
+
return x += ` ${i.config.cycleOptions.find(({ value: I }) => I === r).label}`, x += ` ${i.config.factorOptions.find(({ value: I }) => I === w).label}`, x += ` ${h[0] || h[0] === 0 ? `${h[0]}分` : "∞"}`, x += " ~", x += ` ${h[1] || h[1] === 0 ? `${h[1]}分` : "∞"}`, x;
|
|
1125
1149
|
}
|
|
1126
1150
|
}
|
|
1127
|
-
}, g = (
|
|
1128
|
-
switch (
|
|
1151
|
+
}, g = (t, r) => {
|
|
1152
|
+
switch (t) {
|
|
1129
1153
|
case "sqlTag": {
|
|
1130
|
-
|
|
1154
|
+
l.value = {
|
|
1131
1155
|
list: [],
|
|
1132
1156
|
sqlEnable: 0,
|
|
1133
1157
|
sqlValue: null
|
|
@@ -1135,85 +1159,85 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
|
|
|
1135
1159
|
break;
|
|
1136
1160
|
}
|
|
1137
1161
|
case "factorTag": {
|
|
1138
|
-
|
|
1162
|
+
l.value.list.splice(r, 1);
|
|
1139
1163
|
break;
|
|
1140
1164
|
}
|
|
1141
1165
|
}
|
|
1142
1166
|
};
|
|
1143
|
-
return (
|
|
1144
|
-
const
|
|
1145
|
-
return
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1167
|
+
return (t, r) => {
|
|
1168
|
+
const w = St, h = Pe, x = Ae, I = pe, M = dt, p = Be, v = je, V = Ke, m = Ee, a = ve, A = ge, j = Ne, te = Xe, le = _e;
|
|
1169
|
+
return n(), k(E, null, [
|
|
1170
|
+
O("div", Yt, [
|
|
1171
|
+
O("div", null, [
|
|
1172
|
+
l.value.sqlEnable && l.value.sqlValue ? (n(), U(h, {
|
|
1149
1173
|
key: 0,
|
|
1150
1174
|
closable: "",
|
|
1151
1175
|
type: "info",
|
|
1152
|
-
title:
|
|
1153
|
-
onClose:
|
|
1176
|
+
title: l.value.sqlValue,
|
|
1177
|
+
onClose: r[0] || (r[0] = (C) => g("sqlTag"))
|
|
1154
1178
|
}, {
|
|
1155
1179
|
default: f(() => [
|
|
1156
|
-
|
|
1180
|
+
o(w, {
|
|
1157
1181
|
type: "info",
|
|
1158
1182
|
truncated: "",
|
|
1159
1183
|
style: { "max-width": "500px" }
|
|
1160
1184
|
}, {
|
|
1161
1185
|
default: f(() => [
|
|
1162
|
-
|
|
1186
|
+
F(Y(l.value.sqlValue), 1)
|
|
1163
1187
|
]),
|
|
1164
1188
|
_: 1
|
|
1165
1189
|
})
|
|
1166
1190
|
]),
|
|
1167
1191
|
_: 1
|
|
1168
|
-
}, 8, ["title"])) :
|
|
1169
|
-
!
|
|
1192
|
+
}, 8, ["title"])) : D("", !0),
|
|
1193
|
+
!l.value.sqlEnable && l.value.list.length ? (n(!0), k(E, { key: 1 }, z(l.value.list, (C, N) => (n(), U(h, {
|
|
1170
1194
|
closable: "",
|
|
1171
1195
|
type: "info",
|
|
1172
|
-
onClose: (
|
|
1196
|
+
onClose: (b) => g("factorTag", N)
|
|
1173
1197
|
}, {
|
|
1174
1198
|
default: f(() => [
|
|
1175
|
-
|
|
1199
|
+
F(Y(_(C)), 1)
|
|
1176
1200
|
]),
|
|
1177
1201
|
_: 2
|
|
1178
|
-
}, 1032, ["onClose"]))), 256)) :
|
|
1179
|
-
|
|
1202
|
+
}, 1032, ["onClose"]))), 256)) : D("", !0),
|
|
1203
|
+
o(x, {
|
|
1180
1204
|
class: "screen-btn",
|
|
1181
1205
|
type: "primary",
|
|
1182
1206
|
plain: "",
|
|
1183
1207
|
size: "small",
|
|
1184
|
-
icon:
|
|
1185
|
-
onClick:
|
|
1208
|
+
icon: T(ce),
|
|
1209
|
+
onClick: q
|
|
1186
1210
|
}, {
|
|
1187
1211
|
default: f(() => [
|
|
1188
|
-
|
|
1212
|
+
F(" 添加因子 ")
|
|
1189
1213
|
]),
|
|
1190
1214
|
_: 1
|
|
1191
1215
|
}, 8, ["icon"])
|
|
1192
1216
|
]),
|
|
1193
|
-
|
|
1194
|
-
modelValue:
|
|
1195
|
-
"onUpdate:modelValue":
|
|
1217
|
+
o(le, {
|
|
1218
|
+
modelValue: u.value,
|
|
1219
|
+
"onUpdate:modelValue": r[5] || (r[5] = (C) => u.value = C),
|
|
1196
1220
|
width: "602",
|
|
1197
1221
|
"align-center": "",
|
|
1198
1222
|
"destroy-on-close": ""
|
|
1199
1223
|
}, {
|
|
1200
|
-
header: f(({ titleId:
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
id:
|
|
1204
|
-
class:
|
|
1205
|
-
}, " 因子筛选 ", 10,
|
|
1206
|
-
|
|
1224
|
+
header: f(({ titleId: C, titleClass: N }) => [
|
|
1225
|
+
O("div", Ht, [
|
|
1226
|
+
O("span", {
|
|
1227
|
+
id: C,
|
|
1228
|
+
class: J(N)
|
|
1229
|
+
}, " 因子筛选 ", 10, Gt),
|
|
1230
|
+
o(M, {
|
|
1207
1231
|
effect: "dark",
|
|
1208
1232
|
content: "点击查看: 因子使用说明",
|
|
1209
1233
|
placement: "right"
|
|
1210
1234
|
}, {
|
|
1211
1235
|
default: f(() => [
|
|
1212
|
-
|
|
1213
|
-
onClick:
|
|
1236
|
+
o(I, {
|
|
1237
|
+
onClick: r[1] || (r[1] = (b) => c.value = !0)
|
|
1214
1238
|
}, {
|
|
1215
1239
|
default: f(() => [
|
|
1216
|
-
|
|
1240
|
+
o(T(gt))
|
|
1217
1241
|
]),
|
|
1218
1242
|
_: 1
|
|
1219
1243
|
})
|
|
@@ -1223,72 +1247,72 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
|
|
|
1223
1247
|
])
|
|
1224
1248
|
]),
|
|
1225
1249
|
footer: f(() => [
|
|
1226
|
-
|
|
1227
|
-
|
|
1250
|
+
O("div", Xt, [
|
|
1251
|
+
o(x, {
|
|
1228
1252
|
type: "primary",
|
|
1229
|
-
onClick:
|
|
1253
|
+
onClick: R
|
|
1230
1254
|
}, {
|
|
1231
1255
|
default: f(() => [
|
|
1232
|
-
|
|
1256
|
+
F("确定")
|
|
1233
1257
|
]),
|
|
1234
1258
|
_: 1
|
|
1235
1259
|
})
|
|
1236
1260
|
])
|
|
1237
1261
|
]),
|
|
1238
1262
|
default: f(() => [
|
|
1239
|
-
|
|
1263
|
+
o(te, {
|
|
1240
1264
|
ref_key: "dialogFormRef",
|
|
1241
|
-
ref:
|
|
1265
|
+
ref: $,
|
|
1242
1266
|
model: e.value
|
|
1243
1267
|
}, {
|
|
1244
1268
|
default: f(() => [
|
|
1245
|
-
(
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1269
|
+
(n(!0), k(E, null, z(e.value.list, (C, N) => (n(), k("div", Qt, [
|
|
1270
|
+
O("span", Jt, Y(`条件${N + 1}`), 1),
|
|
1271
|
+
C.key === "compare" ? (n(), k(E, { key: 0 }, [
|
|
1272
|
+
s.config.cycleShow ? (n(), U(V, {
|
|
1249
1273
|
key: 0,
|
|
1250
|
-
prop: "list." +
|
|
1274
|
+
prop: "list." + N + ".cycle",
|
|
1251
1275
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
1252
1276
|
style: { width: "100px", "margin-right": "10px" }
|
|
1253
1277
|
}, {
|
|
1254
1278
|
default: f(() => [
|
|
1255
|
-
|
|
1256
|
-
modelValue:
|
|
1257
|
-
"onUpdate:modelValue": (
|
|
1279
|
+
o(v, {
|
|
1280
|
+
modelValue: C.cycle,
|
|
1281
|
+
"onUpdate:modelValue": (b) => C.cycle = b,
|
|
1258
1282
|
placeholder: "选择周期",
|
|
1259
1283
|
size: "small"
|
|
1260
1284
|
}, {
|
|
1261
1285
|
default: f(() => [
|
|
1262
|
-
(
|
|
1263
|
-
label:
|
|
1264
|
-
value:
|
|
1265
|
-
key:
|
|
1286
|
+
(n(!0), k(E, null, z(s.config.cycleOptions, ({ label: b, value: S }) => (n(), U(p, {
|
|
1287
|
+
label: b,
|
|
1288
|
+
value: S,
|
|
1289
|
+
key: S
|
|
1266
1290
|
}, null, 8, ["label", "value"]))), 128))
|
|
1267
1291
|
]),
|
|
1268
1292
|
_: 2
|
|
1269
1293
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
1270
1294
|
]),
|
|
1271
1295
|
_: 2
|
|
1272
|
-
}, 1032, ["prop"])) :
|
|
1273
|
-
|
|
1274
|
-
prop: "list." +
|
|
1296
|
+
}, 1032, ["prop"])) : D("", !0),
|
|
1297
|
+
o(V, {
|
|
1298
|
+
prop: "list." + N + ".factor",
|
|
1275
1299
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
1276
1300
|
style: { width: "100px", "margin-right": "10px" }
|
|
1277
1301
|
}, {
|
|
1278
1302
|
default: f(() => [
|
|
1279
|
-
|
|
1280
|
-
modelValue:
|
|
1281
|
-
"onUpdate:modelValue": (
|
|
1303
|
+
o(v, {
|
|
1304
|
+
modelValue: C.factor,
|
|
1305
|
+
"onUpdate:modelValue": (b) => C.factor = b,
|
|
1282
1306
|
placeholder: "选择因子",
|
|
1283
1307
|
filterable: "",
|
|
1284
1308
|
size: "small",
|
|
1285
1309
|
"no-match-text": "无匹配数据"
|
|
1286
1310
|
}, {
|
|
1287
1311
|
default: f(() => [
|
|
1288
|
-
(
|
|
1289
|
-
label:
|
|
1290
|
-
value:
|
|
1291
|
-
key:
|
|
1312
|
+
(n(!0), k(E, null, z(s.config.factorOptions, ({ label: b, value: S }) => (n(), U(p, {
|
|
1313
|
+
label: b,
|
|
1314
|
+
value: S,
|
|
1315
|
+
key: S
|
|
1292
1316
|
}, null, 8, ["label", "value"]))), 128))
|
|
1293
1317
|
]),
|
|
1294
1318
|
_: 2
|
|
@@ -1296,18 +1320,18 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
|
|
|
1296
1320
|
]),
|
|
1297
1321
|
_: 2
|
|
1298
1322
|
}, 1032, ["prop"]),
|
|
1299
|
-
|
|
1323
|
+
o(V, { style: { width: "52px", "margin-right": "10px" } }, {
|
|
1300
1324
|
default: f(() => [
|
|
1301
|
-
|
|
1302
|
-
modelValue:
|
|
1303
|
-
"onUpdate:modelValue": (
|
|
1325
|
+
o(v, {
|
|
1326
|
+
modelValue: C.compareType,
|
|
1327
|
+
"onUpdate:modelValue": (b) => C.compareType = b,
|
|
1304
1328
|
size: "small"
|
|
1305
1329
|
}, {
|
|
1306
1330
|
default: f(() => [
|
|
1307
|
-
(
|
|
1308
|
-
label:
|
|
1309
|
-
value:
|
|
1310
|
-
key:
|
|
1331
|
+
(n(), k(E, null, z([">", ">=", "<", "<="], (b) => o(p, {
|
|
1332
|
+
label: b,
|
|
1333
|
+
value: b,
|
|
1334
|
+
key: b
|
|
1311
1335
|
}, null, 8, ["label", "value"])), 64))
|
|
1312
1336
|
]),
|
|
1313
1337
|
_: 2
|
|
@@ -1315,50 +1339,50 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
|
|
|
1315
1339
|
]),
|
|
1316
1340
|
_: 2
|
|
1317
1341
|
}, 1024),
|
|
1318
|
-
|
|
1342
|
+
s.config.cycleShow ? (n(), U(V, {
|
|
1319
1343
|
key: 1,
|
|
1320
|
-
prop: "list." +
|
|
1344
|
+
prop: "list." + N + ".cycle2",
|
|
1321
1345
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
1322
1346
|
style: { width: "100px", "margin-right": "10px" }
|
|
1323
1347
|
}, {
|
|
1324
1348
|
default: f(() => [
|
|
1325
|
-
|
|
1326
|
-
modelValue:
|
|
1327
|
-
"onUpdate:modelValue": (
|
|
1349
|
+
o(v, {
|
|
1350
|
+
modelValue: C.cycle2,
|
|
1351
|
+
"onUpdate:modelValue": (b) => C.cycle2 = b,
|
|
1328
1352
|
placeholder: "选择周期",
|
|
1329
1353
|
size: "small"
|
|
1330
1354
|
}, {
|
|
1331
1355
|
default: f(() => [
|
|
1332
|
-
(
|
|
1333
|
-
label:
|
|
1334
|
-
value:
|
|
1335
|
-
key:
|
|
1356
|
+
(n(!0), k(E, null, z(s.config.cycleOptions, ({ label: b, value: S }) => (n(), U(p, {
|
|
1357
|
+
label: b,
|
|
1358
|
+
value: S,
|
|
1359
|
+
key: S
|
|
1336
1360
|
}, null, 8, ["label", "value"]))), 128))
|
|
1337
1361
|
]),
|
|
1338
1362
|
_: 2
|
|
1339
1363
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
1340
1364
|
]),
|
|
1341
1365
|
_: 2
|
|
1342
|
-
}, 1032, ["prop"])) :
|
|
1343
|
-
|
|
1344
|
-
prop: "list." +
|
|
1366
|
+
}, 1032, ["prop"])) : D("", !0),
|
|
1367
|
+
o(V, {
|
|
1368
|
+
prop: "list." + N + ".factor2",
|
|
1345
1369
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
1346
1370
|
style: { width: "100px", "margin-right": "10px" }
|
|
1347
1371
|
}, {
|
|
1348
1372
|
default: f(() => [
|
|
1349
|
-
|
|
1350
|
-
modelValue:
|
|
1351
|
-
"onUpdate:modelValue": (
|
|
1373
|
+
o(v, {
|
|
1374
|
+
modelValue: C.factor2,
|
|
1375
|
+
"onUpdate:modelValue": (b) => C.factor2 = b,
|
|
1352
1376
|
placeholder: "选择因子",
|
|
1353
1377
|
filterable: "",
|
|
1354
1378
|
size: "small",
|
|
1355
1379
|
"no-match-text": "无匹配数据"
|
|
1356
1380
|
}, {
|
|
1357
1381
|
default: f(() => [
|
|
1358
|
-
(
|
|
1359
|
-
label:
|
|
1360
|
-
value:
|
|
1361
|
-
key:
|
|
1382
|
+
(n(!0), k(E, null, z(s.config.factorOptions, ({ label: b, value: S }) => (n(), U(p, {
|
|
1383
|
+
label: b,
|
|
1384
|
+
value: S,
|
|
1385
|
+
key: S
|
|
1362
1386
|
}, null, 8, ["label", "value"]))), 128))
|
|
1363
1387
|
]),
|
|
1364
1388
|
_: 2
|
|
@@ -1366,51 +1390,51 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
|
|
|
1366
1390
|
]),
|
|
1367
1391
|
_: 2
|
|
1368
1392
|
}, 1032, ["prop"])
|
|
1369
|
-
], 64)) : (
|
|
1370
|
-
|
|
1393
|
+
], 64)) : (n(), k(E, { key: 1 }, [
|
|
1394
|
+
s.config.cycleShow ? (n(), U(V, {
|
|
1371
1395
|
key: 0,
|
|
1372
|
-
prop: "list." +
|
|
1396
|
+
prop: "list." + N + ".cycle",
|
|
1373
1397
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
1374
1398
|
style: { width: "100px", "margin-right": "10px" }
|
|
1375
1399
|
}, {
|
|
1376
1400
|
default: f(() => [
|
|
1377
|
-
|
|
1378
|
-
modelValue:
|
|
1379
|
-
"onUpdate:modelValue": (
|
|
1401
|
+
o(v, {
|
|
1402
|
+
modelValue: C.cycle,
|
|
1403
|
+
"onUpdate:modelValue": (b) => C.cycle = b,
|
|
1380
1404
|
placeholder: "选择周期",
|
|
1381
1405
|
size: "small"
|
|
1382
1406
|
}, {
|
|
1383
1407
|
default: f(() => [
|
|
1384
|
-
(
|
|
1385
|
-
label:
|
|
1386
|
-
value:
|
|
1387
|
-
key:
|
|
1408
|
+
(n(!0), k(E, null, z(s.config.cycleOptions, ({ label: b, value: S }) => (n(), U(p, {
|
|
1409
|
+
label: b,
|
|
1410
|
+
value: S,
|
|
1411
|
+
key: S
|
|
1388
1412
|
}, null, 8, ["label", "value"]))), 128))
|
|
1389
1413
|
]),
|
|
1390
1414
|
_: 2
|
|
1391
1415
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
1392
1416
|
]),
|
|
1393
1417
|
_: 2
|
|
1394
|
-
}, 1032, ["prop"])) :
|
|
1395
|
-
|
|
1396
|
-
prop: "list." +
|
|
1418
|
+
}, 1032, ["prop"])) : D("", !0),
|
|
1419
|
+
o(V, {
|
|
1420
|
+
prop: "list." + N + ".factor",
|
|
1397
1421
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
1398
1422
|
style: { width: "100px", "margin-right": "10px" }
|
|
1399
1423
|
}, {
|
|
1400
1424
|
default: f(() => [
|
|
1401
|
-
|
|
1402
|
-
modelValue:
|
|
1403
|
-
"onUpdate:modelValue": (
|
|
1425
|
+
o(v, {
|
|
1426
|
+
modelValue: C.factor,
|
|
1427
|
+
"onUpdate:modelValue": (b) => C.factor = b,
|
|
1404
1428
|
placeholder: "选择因子",
|
|
1405
1429
|
filterable: "",
|
|
1406
1430
|
size: "small",
|
|
1407
1431
|
"no-match-text": "无匹配数据"
|
|
1408
1432
|
}, {
|
|
1409
1433
|
default: f(() => [
|
|
1410
|
-
(
|
|
1411
|
-
label:
|
|
1412
|
-
value:
|
|
1413
|
-
key:
|
|
1434
|
+
(n(!0), k(E, null, z(s.config.factorOptions, ({ label: b, value: S }) => (n(), U(p, {
|
|
1435
|
+
label: b,
|
|
1436
|
+
value: S,
|
|
1437
|
+
key: S
|
|
1414
1438
|
}, null, 8, ["label", "value"]))), 128))
|
|
1415
1439
|
]),
|
|
1416
1440
|
_: 2
|
|
@@ -1418,23 +1442,23 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
|
|
|
1418
1442
|
]),
|
|
1419
1443
|
_: 2
|
|
1420
1444
|
}, 1032, ["prop"]),
|
|
1421
|
-
|
|
1422
|
-
prop: "list." +
|
|
1423
|
-
rules: { validator:
|
|
1445
|
+
o(V, {
|
|
1446
|
+
prop: "list." + N + ".score",
|
|
1447
|
+
rules: { validator: T(jt), trigger: "blur" },
|
|
1424
1448
|
style: { width: "200px", "margin-right": "10px" }
|
|
1425
1449
|
}, {
|
|
1426
1450
|
default: f(() => [
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
modelValue:
|
|
1430
|
-
"onUpdate:modelValue": (
|
|
1451
|
+
O("div", Wt, [
|
|
1452
|
+
o(m, {
|
|
1453
|
+
modelValue: C.score[0],
|
|
1454
|
+
"onUpdate:modelValue": (b) => C.score[0] = b,
|
|
1431
1455
|
size: "small",
|
|
1432
1456
|
"controls-position": "right"
|
|
1433
1457
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
modelValue:
|
|
1437
|
-
"onUpdate:modelValue": (
|
|
1458
|
+
Zt,
|
|
1459
|
+
o(m, {
|
|
1460
|
+
modelValue: C.score[1],
|
|
1461
|
+
"onUpdate:modelValue": (b) => C.score[1] = b,
|
|
1438
1462
|
size: "small",
|
|
1439
1463
|
"controls-position": "right"
|
|
1440
1464
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1443,86 +1467,86 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
|
|
|
1443
1467
|
_: 2
|
|
1444
1468
|
}, 1032, ["prop", "rules"])
|
|
1445
1469
|
], 64)),
|
|
1446
|
-
|
|
1447
|
-
onClick: (
|
|
1470
|
+
o(I, {
|
|
1471
|
+
onClick: (b) => L(N)
|
|
1448
1472
|
}, {
|
|
1449
1473
|
default: f(() => [
|
|
1450
|
-
|
|
1474
|
+
o(T(yt))
|
|
1451
1475
|
]),
|
|
1452
1476
|
_: 2
|
|
1453
1477
|
}, 1032, ["onClick"])
|
|
1454
1478
|
]))), 256)),
|
|
1455
|
-
|
|
1479
|
+
o(x, {
|
|
1456
1480
|
type: "primary",
|
|
1457
1481
|
plain: "",
|
|
1458
1482
|
size: "small",
|
|
1459
|
-
icon:
|
|
1460
|
-
onClick:
|
|
1483
|
+
icon: T(ce),
|
|
1484
|
+
onClick: y,
|
|
1461
1485
|
style: { "margin-bottom": "10px" }
|
|
1462
1486
|
}, {
|
|
1463
1487
|
default: f(() => [
|
|
1464
|
-
|
|
1488
|
+
F("添加因子")
|
|
1465
1489
|
]),
|
|
1466
1490
|
_: 1
|
|
1467
1491
|
}, 8, ["icon"]),
|
|
1468
|
-
|
|
1492
|
+
o(x, {
|
|
1469
1493
|
type: "primary",
|
|
1470
1494
|
plain: "",
|
|
1471
1495
|
size: "small",
|
|
1472
|
-
icon:
|
|
1473
|
-
onClick:
|
|
1496
|
+
icon: T(ce),
|
|
1497
|
+
onClick: r[2] || (r[2] = (C) => y("compare")),
|
|
1474
1498
|
style: { "margin-bottom": "10px" }
|
|
1475
1499
|
}, {
|
|
1476
1500
|
default: f(() => [
|
|
1477
|
-
|
|
1501
|
+
F("添加因子对比")
|
|
1478
1502
|
]),
|
|
1479
1503
|
_: 1
|
|
1480
1504
|
}, 8, ["icon"]),
|
|
1481
|
-
|
|
1482
|
-
|
|
1505
|
+
s.config.sqlShow ? (n(), k(E, { key: 0 }, [
|
|
1506
|
+
o(V, { label: "SQL功能: " }, {
|
|
1483
1507
|
default: f(() => [
|
|
1484
|
-
|
|
1508
|
+
o(A, {
|
|
1485
1509
|
modelValue: e.value.sqlEnable,
|
|
1486
|
-
"onUpdate:modelValue":
|
|
1510
|
+
"onUpdate:modelValue": r[3] || (r[3] = (C) => e.value.sqlEnable = C)
|
|
1487
1511
|
}, {
|
|
1488
1512
|
default: f(() => [
|
|
1489
|
-
|
|
1513
|
+
o(a, {
|
|
1490
1514
|
label: "关闭",
|
|
1491
1515
|
value: 0
|
|
1492
1516
|
}),
|
|
1493
|
-
|
|
1517
|
+
o(a, {
|
|
1494
1518
|
label: "启用",
|
|
1495
1519
|
value: 1
|
|
1496
1520
|
})
|
|
1497
1521
|
]),
|
|
1498
1522
|
_: 1
|
|
1499
1523
|
}, 8, ["modelValue"]),
|
|
1500
|
-
e.value.sqlEnable ? (
|
|
1524
|
+
e.value.sqlEnable ? (n(), U(x, {
|
|
1501
1525
|
key: 0,
|
|
1502
1526
|
type: "primary",
|
|
1503
1527
|
size: "small",
|
|
1504
|
-
onClick:
|
|
1528
|
+
onClick: d,
|
|
1505
1529
|
style: { "margin-left": "auto" }
|
|
1506
1530
|
}, {
|
|
1507
1531
|
default: f(() => [
|
|
1508
|
-
|
|
1532
|
+
F("生成SQL")
|
|
1509
1533
|
]),
|
|
1510
1534
|
_: 1
|
|
1511
|
-
})) :
|
|
1535
|
+
})) : D("", !0)
|
|
1512
1536
|
]),
|
|
1513
1537
|
_: 1
|
|
1514
1538
|
}),
|
|
1515
|
-
e.value.sqlEnable ? (
|
|
1516
|
-
|
|
1539
|
+
e.value.sqlEnable ? (n(), k(E, { key: 0 }, [
|
|
1540
|
+
o(j, {
|
|
1517
1541
|
modelValue: e.value.sqlValue,
|
|
1518
|
-
"onUpdate:modelValue":
|
|
1542
|
+
"onUpdate:modelValue": r[4] || (r[4] = (C) => e.value.sqlValue = C),
|
|
1519
1543
|
autosize: { minRows: 4 },
|
|
1520
1544
|
type: "textarea",
|
|
1521
1545
|
style: { "margin-bottom": "10px" }
|
|
1522
1546
|
}, null, 8, ["modelValue"]),
|
|
1523
|
-
|
|
1524
|
-
], 64)) :
|
|
1525
|
-
], 64)) :
|
|
1547
|
+
Kt
|
|
1548
|
+
], 64)) : D("", !0)
|
|
1549
|
+
], 64)) : D("", !0)
|
|
1526
1550
|
]),
|
|
1527
1551
|
_: 1
|
|
1528
1552
|
}, 8, ["model"])
|
|
@@ -1530,27 +1554,30 @@ const Ge = (r) => (ge("data-v-3cac46e2"), r = r(), ye(), r), At = { class: "fact
|
|
|
1530
1554
|
_: 1
|
|
1531
1555
|
}, 8, ["modelValue"])
|
|
1532
1556
|
]),
|
|
1533
|
-
|
|
1534
|
-
visible:
|
|
1535
|
-
"onUpdate:visible":
|
|
1536
|
-
data:
|
|
1557
|
+
o(At, {
|
|
1558
|
+
visible: c.value,
|
|
1559
|
+
"onUpdate:visible": r[6] || (r[6] = (C) => c.value = C),
|
|
1560
|
+
data: s.config.factorDescriptions
|
|
1537
1561
|
}, null, 8, ["visible", "data"])
|
|
1538
1562
|
], 64);
|
|
1539
1563
|
};
|
|
1540
1564
|
}
|
|
1541
|
-
},
|
|
1542
|
-
const
|
|
1565
|
+
}, tl = /* @__PURE__ */ he(el, [["__scopeId", "data-v-3cac46e2"]]);
|
|
1566
|
+
const ue = (s) => (be("data-v-7cb706a5"), s = s(), ke(), s), ll = {
|
|
1543
1567
|
key: 0,
|
|
1544
1568
|
class: "common-indicator"
|
|
1545
|
-
},
|
|
1546
|
-
/* @__PURE__ */
|
|
1547
|
-
/* @__PURE__ */
|
|
1548
|
-
], -1)),
|
|
1569
|
+
}, nl = { class: "indicator" }, al = /* @__PURE__ */ ue(() => /* @__PURE__ */ O("div", { class: "title" }, [
|
|
1570
|
+
/* @__PURE__ */ O("span", null, "常用指标: "),
|
|
1571
|
+
/* @__PURE__ */ O("span", null, "不限")
|
|
1572
|
+
], -1)), ol = { class: "options" }, sl = ["onClick"], rl = { class: "tags" }, ul = ["onClick"], il = { style: { "font-size": "18px" } }, cl = {
|
|
1573
|
+
key: 0,
|
|
1574
|
+
class: "out-box"
|
|
1575
|
+
}, dl = /* @__PURE__ */ ue(() => /* @__PURE__ */ O("span", null, "自定义: ", -1)), pl = {
|
|
1549
1576
|
key: 0,
|
|
1550
1577
|
class: "convenient-option-box"
|
|
1551
|
-
},
|
|
1578
|
+
}, fl = { class: "out-box" }, ml = /* @__PURE__ */ ue(() => /* @__PURE__ */ O("span", null, "自定义: ", -1)), vl = { key: 0 }, gl = { key: 0 }, yl = { key: 0 }, bl = { key: 1 }, kl = { class: "tFeaturelncomes-option-box" }, _l = { class: "tFeaturelncomes-out-box" }, hl = /* @__PURE__ */ ue(() => /* @__PURE__ */ O("span", null, "自定义: ", -1)), xl = { key: 2 }, Ol = { key: 3 }, Vl = { key: 4 }, $l = { class: "dialog-footer" }, Il = {
|
|
1552
1579
|
__name: "index",
|
|
1553
|
-
props: /* @__PURE__ */
|
|
1580
|
+
props: /* @__PURE__ */ se({
|
|
1554
1581
|
config: { type: Object, default: () => {
|
|
1555
1582
|
} },
|
|
1556
1583
|
varietyMarket: { type: Number, default: () => null },
|
|
@@ -1562,28 +1589,28 @@ const _e = (r) => (ge("data-v-c3a0c0f0"), r = r(), ye(), r), tl = {
|
|
|
1562
1589
|
dataModifiers: {}
|
|
1563
1590
|
}),
|
|
1564
1591
|
emits: ["update:data"],
|
|
1565
|
-
setup(
|
|
1566
|
-
const
|
|
1592
|
+
setup(s) {
|
|
1593
|
+
const i = re(s, "data"), l = s, u = H(!1), c = B(() => {
|
|
1567
1594
|
let g = [];
|
|
1568
|
-
return
|
|
1569
|
-
const { commonOptionIds:
|
|
1570
|
-
return [.../* @__PURE__ */ new Set([...
|
|
1595
|
+
return l.varietyMarket === null && !l.commonOption.length ? g = l.config.options : (g = l.config.options, l.varietyMarket && (g = g.filter(({ parent: t }) => t.varietyMarketIds.includes(l.varietyMarket))), l.commonOption.length && (g = g.filter(({ parent: t }) => {
|
|
1596
|
+
const { commonOptionIds: r } = t;
|
|
1597
|
+
return [.../* @__PURE__ */ new Set([...r, ...l.commonOption])].length !== [...r, ...l.commonOption].length;
|
|
1571
1598
|
}))), g;
|
|
1572
|
-
}),
|
|
1573
|
-
|
|
1574
|
-
const
|
|
1599
|
+
}), $ = H({}), e = H({}), q = (g) => {
|
|
1600
|
+
$.value = g;
|
|
1601
|
+
const t = {
|
|
1575
1602
|
key: g.key,
|
|
1576
1603
|
type: g.type,
|
|
1577
1604
|
label: g.label
|
|
1578
1605
|
};
|
|
1579
1606
|
switch (g.key) {
|
|
1580
1607
|
case "st": {
|
|
1581
|
-
e.value = { ...
|
|
1608
|
+
e.value = { ...t, st: null };
|
|
1582
1609
|
break;
|
|
1583
1610
|
}
|
|
1584
1611
|
case "tFeaturelncomes": {
|
|
1585
1612
|
e.value = {
|
|
1586
|
-
...
|
|
1613
|
+
...t,
|
|
1587
1614
|
rule: 1,
|
|
1588
1615
|
// 1超 2跌
|
|
1589
1616
|
withFewYears: null,
|
|
@@ -1593,16 +1620,16 @@ const _e = (r) => (ge("data-v-c3a0c0f0"), r = r(), ye(), r), tl = {
|
|
|
1593
1620
|
break;
|
|
1594
1621
|
}
|
|
1595
1622
|
case "priceLevels": {
|
|
1596
|
-
e.value = { ...
|
|
1623
|
+
e.value = { ...t, priceLevels: null };
|
|
1597
1624
|
break;
|
|
1598
1625
|
}
|
|
1599
1626
|
case "peTtmLevels": {
|
|
1600
|
-
e.value = { ...
|
|
1627
|
+
e.value = { ...t, peTtmLevels: null };
|
|
1601
1628
|
break;
|
|
1602
1629
|
}
|
|
1603
1630
|
case "optionsCpType": {
|
|
1604
1631
|
e.value = {
|
|
1605
|
-
...
|
|
1632
|
+
...t,
|
|
1606
1633
|
optionsCpType: null
|
|
1607
1634
|
// 1看涨 2看跌
|
|
1608
1635
|
};
|
|
@@ -1610,65 +1637,69 @@ const _e = (r) => (ge("data-v-c3a0c0f0"), r = r(), ye(), r), tl = {
|
|
|
1610
1637
|
}
|
|
1611
1638
|
default:
|
|
1612
1639
|
e.value = {
|
|
1613
|
-
...
|
|
1640
|
+
...t,
|
|
1614
1641
|
range: [null, null],
|
|
1615
|
-
unit: g.defaultUnit.length ? [...g.defaultUnit] : [null, null]
|
|
1642
|
+
unit: g.defaultUnit.length ? [...g.defaultUnit] : [null, null],
|
|
1643
|
+
radioType: g.defaultRadioType,
|
|
1644
|
+
// 0数值 1排名
|
|
1645
|
+
rankRange: g.defaultRankRange || [null, null]
|
|
1646
|
+
// 默认排名
|
|
1616
1647
|
};
|
|
1617
1648
|
}
|
|
1618
|
-
|
|
1619
|
-
},
|
|
1649
|
+
u.value = !0;
|
|
1650
|
+
}, R = () => {
|
|
1620
1651
|
switch (e.value.key) {
|
|
1621
1652
|
case "st": {
|
|
1622
|
-
const { label:
|
|
1623
|
-
if (
|
|
1624
|
-
return
|
|
1625
|
-
e.value.tagText = `${
|
|
1653
|
+
const { label: t, st: r } = e.value;
|
|
1654
|
+
if (r === null)
|
|
1655
|
+
return W.warning("格式错误: 请至少选择一个值");
|
|
1656
|
+
e.value.tagText = `${t}: ${r ? "是" : "否"}`;
|
|
1626
1657
|
break;
|
|
1627
1658
|
}
|
|
1628
1659
|
case "tFeaturelncomes": {
|
|
1629
|
-
const { label:
|
|
1630
|
-
if (["", null].includes(
|
|
1631
|
-
return
|
|
1632
|
-
e.value.tagText = `${
|
|
1660
|
+
const { label: t, rule: r, withFewYears: w, yearsCount: h, netProfit: x } = e.value;
|
|
1661
|
+
if (["", null].includes(w) || ["", null].includes(h) || ["", null].includes(x))
|
|
1662
|
+
return W.warning("格式错误: 请填写完整");
|
|
1663
|
+
e.value.tagText = `${t}: ${w}年内${h}年以上盈利${r === 1 ? "超" : "跌"}过${x}亿`;
|
|
1633
1664
|
break;
|
|
1634
1665
|
}
|
|
1635
1666
|
case "priceLevels": {
|
|
1636
|
-
const { label:
|
|
1637
|
-
if (!
|
|
1638
|
-
return
|
|
1639
|
-
e.value.tagText = `${
|
|
1667
|
+
const { label: t, priceLevels: r } = e.value;
|
|
1668
|
+
if (!r || r.length === 0)
|
|
1669
|
+
return W.warning("格式错误: 请至少选择一个值");
|
|
1670
|
+
e.value.tagText = `${t}: 已选${r}分位`;
|
|
1640
1671
|
break;
|
|
1641
1672
|
}
|
|
1642
1673
|
case "peTtmLevels": {
|
|
1643
|
-
const { label:
|
|
1644
|
-
if (!
|
|
1645
|
-
return
|
|
1646
|
-
e.value.tagText = `${
|
|
1674
|
+
const { label: t, peTtmLevels: r } = e.value;
|
|
1675
|
+
if (!r || r.length === 0)
|
|
1676
|
+
return W.warning("格式错误: 请至少选择一个值");
|
|
1677
|
+
e.value.tagText = `${t}: 已选${r}分位`;
|
|
1647
1678
|
break;
|
|
1648
1679
|
}
|
|
1649
1680
|
case "optionsCpType": {
|
|
1650
|
-
const { label:
|
|
1651
|
-
if (
|
|
1652
|
-
return
|
|
1653
|
-
e.value.tagText = `${
|
|
1681
|
+
const { label: t, optionsCpType: r } = e.value;
|
|
1682
|
+
if (r === null)
|
|
1683
|
+
return W.warning("格式错误: 请至少选择一个值");
|
|
1684
|
+
e.value.tagText = `${t}: ${r === 1 ? "看涨" : "看跌"}`;
|
|
1654
1685
|
break;
|
|
1655
1686
|
}
|
|
1656
1687
|
default: {
|
|
1657
|
-
const { label:
|
|
1658
|
-
if (["", null].includes(
|
|
1659
|
-
return
|
|
1660
|
-
!["", null].includes(
|
|
1688
|
+
const { label: t, unit: r, radioType: w } = e.value, h = w === "1" ? e.value.rankRange : e.value.range;
|
|
1689
|
+
if (["", null].includes(h[0]) && ["", null].includes(h[1]))
|
|
1690
|
+
return W.warning("格式错误: 请至少填写一个值");
|
|
1691
|
+
!["", null].includes(h[0]) && !["", null].includes(h[1]) ? e.value.tagText = `${t}${w === "1" ? "排名" : ""}: ${h[0]}${r[0] ?? ""} ~ ${h[1]}${r[1] ?? ""}` : ["", null].includes(h[0]) ? e.value.tagText = `${t}${w === "1" ? "排名" : ""}: ≤${h[1]}${r[1] ?? ""}` : e.value.tagText = `${t}${w === "1" ? "排名" : ""}: ≥${h[0]}${r[0] ?? ""}`;
|
|
1661
1692
|
}
|
|
1662
1693
|
}
|
|
1663
|
-
const g =
|
|
1664
|
-
g === -1 ?
|
|
1694
|
+
const g = i.value.findIndex(({ key: t }) => t === e.value.key);
|
|
1695
|
+
g === -1 ? i.value.push(e.value) : i.value.splice(g, 1, e.value), u.value = !1;
|
|
1665
1696
|
}, L = (g) => {
|
|
1666
|
-
|
|
1667
|
-
},
|
|
1668
|
-
|
|
1669
|
-
},
|
|
1697
|
+
$.value = c.value.find(({ key: t }) => t === g.key), e.value = JSON.parse(JSON.stringify(g)), u.value = !0;
|
|
1698
|
+
}, y = (g) => {
|
|
1699
|
+
i.value.splice(g, 1);
|
|
1700
|
+
}, d = (g) => {
|
|
1670
1701
|
e.value.range = [...g.range], e.value.unit = [...g.unit];
|
|
1671
|
-
},
|
|
1702
|
+
}, _ = (g) => {
|
|
1672
1703
|
switch (g) {
|
|
1673
1704
|
case "≤0":
|
|
1674
1705
|
Object.assign(e.value, {
|
|
@@ -1713,93 +1744,106 @@ const _e = (r) => (ge("data-v-c3a0c0f0"), r = r(), ye(), r), tl = {
|
|
|
1713
1744
|
break;
|
|
1714
1745
|
}
|
|
1715
1746
|
};
|
|
1716
|
-
return
|
|
1717
|
-
() =>
|
|
1747
|
+
return oe(
|
|
1748
|
+
() => c.value,
|
|
1718
1749
|
() => {
|
|
1719
|
-
|
|
1750
|
+
i.value.length && (i.value = i.value.filter(({ key: g }) => c.value.find((t) => t.key === g)));
|
|
1720
1751
|
}
|
|
1721
|
-
), (g,
|
|
1722
|
-
const
|
|
1723
|
-
return
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
(
|
|
1728
|
-
key:
|
|
1729
|
-
onClick: (
|
|
1730
|
-
},
|
|
1752
|
+
), (g, t) => {
|
|
1753
|
+
const r = Pe, w = et, h = ge, x = Ne, I = Ae, M = Be, p = je, v = ve, V = Ee, m = _e;
|
|
1754
|
+
return s.config.show && c.value.length ? (n(), k("div", ll, [
|
|
1755
|
+
O("div", nl, [
|
|
1756
|
+
al,
|
|
1757
|
+
O("div", ol, [
|
|
1758
|
+
(n(!0), k(E, null, z(c.value, (a) => (n(), k("span", {
|
|
1759
|
+
key: a.key,
|
|
1760
|
+
onClick: (A) => q(a)
|
|
1761
|
+
}, Y(a.label), 9, sl))), 128))
|
|
1731
1762
|
])
|
|
1732
1763
|
]),
|
|
1733
|
-
|
|
1734
|
-
(
|
|
1764
|
+
O("div", rl, [
|
|
1765
|
+
(n(!0), k(E, null, z(i.value, (a, A) => (n(), U(r, {
|
|
1735
1766
|
closable: "",
|
|
1736
1767
|
type: "info",
|
|
1737
|
-
onClose: (
|
|
1768
|
+
onClose: (j) => y(A)
|
|
1738
1769
|
}, {
|
|
1739
1770
|
default: f(() => [
|
|
1740
|
-
|
|
1741
|
-
|
|
1771
|
+
O("span", null, Y(a.tagText), 1),
|
|
1772
|
+
O("span", {
|
|
1742
1773
|
class: "edit",
|
|
1743
|
-
onClick: (
|
|
1744
|
-
}, "编辑", 8,
|
|
1774
|
+
onClick: (j) => L(a)
|
|
1775
|
+
}, "编辑", 8, ul)
|
|
1745
1776
|
]),
|
|
1746
1777
|
_: 2
|
|
1747
1778
|
}, 1032, ["onClose"]))), 256))
|
|
1748
1779
|
]),
|
|
1749
|
-
|
|
1750
|
-
modelValue:
|
|
1751
|
-
"onUpdate:modelValue":
|
|
1752
|
-
title:
|
|
1780
|
+
o(m, {
|
|
1781
|
+
modelValue: u.value,
|
|
1782
|
+
"onUpdate:modelValue": t[19] || (t[19] = (a) => u.value = a),
|
|
1783
|
+
title: $.value.label,
|
|
1753
1784
|
width: "600",
|
|
1754
1785
|
"align-center": "",
|
|
1755
1786
|
"destroy-on-close": ""
|
|
1756
|
-
}, {
|
|
1787
|
+
}, ie({
|
|
1757
1788
|
footer: f(() => [
|
|
1758
|
-
|
|
1759
|
-
|
|
1789
|
+
O("div", $l, [
|
|
1790
|
+
o(I, {
|
|
1760
1791
|
type: "primary",
|
|
1761
|
-
onClick:
|
|
1792
|
+
onClick: R
|
|
1762
1793
|
}, {
|
|
1763
1794
|
default: f(() => [
|
|
1764
|
-
|
|
1795
|
+
F("确定")
|
|
1765
1796
|
]),
|
|
1766
1797
|
_: 1
|
|
1767
1798
|
})
|
|
1768
1799
|
])
|
|
1769
1800
|
]),
|
|
1770
1801
|
default: f(() => [
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1802
|
+
$.value.type === void 0 && e.value.radioType === "1" ? (n(), k("div", cl, [
|
|
1803
|
+
dl,
|
|
1804
|
+
o(x, {
|
|
1805
|
+
modelValue: e.value.rankRange[0],
|
|
1806
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.rankRange[0] = a),
|
|
1807
|
+
style: { flex: "1" }
|
|
1808
|
+
}, null, 8, ["modelValue"]),
|
|
1809
|
+
F(" ~ "),
|
|
1810
|
+
o(x, {
|
|
1811
|
+
modelValue: e.value.rankRange[1],
|
|
1812
|
+
"onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.rankRange[1] = a),
|
|
1813
|
+
style: { flex: "1" }
|
|
1814
|
+
}, null, 8, ["modelValue"])
|
|
1815
|
+
])) : $.value.type === void 0 ? (n(), k(E, { key: 1 }, [
|
|
1816
|
+
$.value.convenientOptions.length ? (n(), k("div", pl, [
|
|
1817
|
+
(n(!0), k(E, null, z($.value.convenientOptions, (a) => (n(), U(I, {
|
|
1818
|
+
key: a.text,
|
|
1819
|
+
onClick: (A) => d(a)
|
|
1776
1820
|
}, {
|
|
1777
1821
|
default: f(() => [
|
|
1778
|
-
|
|
1822
|
+
F(Y(a.text), 1)
|
|
1779
1823
|
]),
|
|
1780
1824
|
_: 2
|
|
1781
1825
|
}, 1032, ["onClick"]))), 128))
|
|
1782
|
-
])) :
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1826
|
+
])) : D("", !0),
|
|
1827
|
+
O("div", fl, [
|
|
1828
|
+
ml,
|
|
1829
|
+
o(x, {
|
|
1786
1830
|
modelValue: e.value.range[0],
|
|
1787
|
-
"onUpdate:modelValue":
|
|
1831
|
+
"onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.range[0] = a),
|
|
1788
1832
|
style: { flex: "1" }
|
|
1789
|
-
},
|
|
1790
|
-
|
|
1833
|
+
}, ie({ _: 2 }, [
|
|
1834
|
+
$.value.unitOptions.length ? {
|
|
1791
1835
|
name: "append",
|
|
1792
1836
|
fn: f(() => [
|
|
1793
|
-
|
|
1837
|
+
$.value.unitOptions.length === 1 ? (n(), k("span", vl, Y(e.value.unit[0]), 1)) : (n(), U(p, {
|
|
1794
1838
|
key: 1,
|
|
1795
1839
|
modelValue: e.value.unit[0],
|
|
1796
|
-
"onUpdate:modelValue":
|
|
1840
|
+
"onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.unit[0] = a),
|
|
1797
1841
|
style: { width: "72px" }
|
|
1798
1842
|
}, {
|
|
1799
1843
|
default: f(() => [
|
|
1800
|
-
(
|
|
1801
|
-
label:
|
|
1802
|
-
value:
|
|
1844
|
+
(n(!0), k(E, null, z($.value.unitOptions, (a) => (n(), U(M, {
|
|
1845
|
+
label: a,
|
|
1846
|
+
value: a
|
|
1803
1847
|
}, null, 8, ["label", "value"]))), 256))
|
|
1804
1848
|
]),
|
|
1805
1849
|
_: 1
|
|
@@ -1808,25 +1852,25 @@ const _e = (r) => (ge("data-v-c3a0c0f0"), r = r(), ye(), r), tl = {
|
|
|
1808
1852
|
key: "0"
|
|
1809
1853
|
} : void 0
|
|
1810
1854
|
]), 1032, ["modelValue"]),
|
|
1811
|
-
|
|
1812
|
-
|
|
1855
|
+
F(" ~ "),
|
|
1856
|
+
o(x, {
|
|
1813
1857
|
modelValue: e.value.range[1],
|
|
1814
|
-
"onUpdate:modelValue":
|
|
1858
|
+
"onUpdate:modelValue": t[6] || (t[6] = (a) => e.value.range[1] = a),
|
|
1815
1859
|
style: { flex: "1" }
|
|
1816
|
-
},
|
|
1817
|
-
|
|
1860
|
+
}, ie({ _: 2 }, [
|
|
1861
|
+
$.value.unitOptions.length ? {
|
|
1818
1862
|
name: "append",
|
|
1819
1863
|
fn: f(() => [
|
|
1820
|
-
|
|
1864
|
+
$.value.unitOptions.length === 1 ? (n(), k("span", gl, Y(e.value.unit[1]), 1)) : (n(), U(p, {
|
|
1821
1865
|
key: 1,
|
|
1822
1866
|
modelValue: e.value.unit[1],
|
|
1823
|
-
"onUpdate:modelValue":
|
|
1867
|
+
"onUpdate:modelValue": t[5] || (t[5] = (a) => e.value.unit[1] = a),
|
|
1824
1868
|
style: { width: "72px" }
|
|
1825
1869
|
}, {
|
|
1826
1870
|
default: f(() => [
|
|
1827
|
-
(
|
|
1828
|
-
label:
|
|
1829
|
-
value:
|
|
1871
|
+
(n(!0), k(E, null, z($.value.unitOptions, (a) => (n(), U(M, {
|
|
1872
|
+
label: a,
|
|
1873
|
+
value: a
|
|
1830
1874
|
}, null, 8, ["label", "value"]))), 256))
|
|
1831
1875
|
]),
|
|
1832
1876
|
_: 1
|
|
@@ -1836,181 +1880,206 @@ const _e = (r) => (ge("data-v-c3a0c0f0"), r = r(), ye(), r), tl = {
|
|
|
1836
1880
|
} : void 0
|
|
1837
1881
|
]), 1032, ["modelValue"])
|
|
1838
1882
|
])
|
|
1839
|
-
], 64)) : (
|
|
1840
|
-
|
|
1841
|
-
|
|
1883
|
+
], 64)) : (n(), k(E, { key: 2 }, [
|
|
1884
|
+
$.value.key === "st" ? (n(), k("div", yl, [
|
|
1885
|
+
o(h, {
|
|
1842
1886
|
modelValue: e.value.st,
|
|
1843
|
-
"onUpdate:modelValue":
|
|
1887
|
+
"onUpdate:modelValue": t[7] || (t[7] = (a) => e.value.st = a)
|
|
1844
1888
|
}, {
|
|
1845
1889
|
default: f(() => [
|
|
1846
|
-
|
|
1890
|
+
o(v, {
|
|
1847
1891
|
label: "是",
|
|
1848
1892
|
value: 1
|
|
1849
1893
|
}),
|
|
1850
|
-
|
|
1894
|
+
o(v, {
|
|
1851
1895
|
label: "否",
|
|
1852
1896
|
value: 0
|
|
1853
1897
|
})
|
|
1854
1898
|
]),
|
|
1855
1899
|
_: 1
|
|
1856
1900
|
}, 8, ["modelValue"])
|
|
1857
|
-
])) :
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
onClick:
|
|
1901
|
+
])) : D("", !0),
|
|
1902
|
+
$.value.key === "tFeaturelncomes" ? (n(), k("div", bl, [
|
|
1903
|
+
O("div", kl, [
|
|
1904
|
+
o(I, {
|
|
1905
|
+
onClick: t[8] || (t[8] = (a) => _("≤0"))
|
|
1862
1906
|
}, {
|
|
1863
1907
|
default: f(() => [
|
|
1864
|
-
|
|
1908
|
+
F("≤0")
|
|
1865
1909
|
]),
|
|
1866
1910
|
_: 1
|
|
1867
1911
|
}),
|
|
1868
|
-
|
|
1869
|
-
onClick:
|
|
1912
|
+
o(I, {
|
|
1913
|
+
onClick: t[9] || (t[9] = (a) => _("≥0"))
|
|
1870
1914
|
}, {
|
|
1871
1915
|
default: f(() => [
|
|
1872
|
-
|
|
1916
|
+
F("≥0")
|
|
1873
1917
|
]),
|
|
1874
1918
|
_: 1
|
|
1875
1919
|
}),
|
|
1876
|
-
|
|
1877
|
-
onClick:
|
|
1920
|
+
o(I, {
|
|
1921
|
+
onClick: t[10] || (t[10] = (a) => _("五年内有四年以上盈利超过5千万"))
|
|
1878
1922
|
}, {
|
|
1879
1923
|
default: f(() => [
|
|
1880
|
-
|
|
1924
|
+
F("五年内有四年以上盈利超过5千万")
|
|
1881
1925
|
]),
|
|
1882
1926
|
_: 1
|
|
1883
1927
|
}),
|
|
1884
|
-
|
|
1885
|
-
onClick:
|
|
1928
|
+
o(I, {
|
|
1929
|
+
onClick: t[11] || (t[11] = (a) => _("≥10亿"))
|
|
1886
1930
|
}, {
|
|
1887
1931
|
default: f(() => [
|
|
1888
|
-
|
|
1932
|
+
F("≥10亿")
|
|
1889
1933
|
]),
|
|
1890
1934
|
_: 1
|
|
1891
1935
|
}),
|
|
1892
|
-
|
|
1893
|
-
onClick:
|
|
1936
|
+
o(I, {
|
|
1937
|
+
onClick: t[12] || (t[12] = (a) => _("≥20亿"))
|
|
1894
1938
|
}, {
|
|
1895
1939
|
default: f(() => [
|
|
1896
|
-
|
|
1940
|
+
F("≥20亿")
|
|
1897
1941
|
]),
|
|
1898
1942
|
_: 1
|
|
1899
1943
|
})
|
|
1900
1944
|
]),
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1945
|
+
O("div", _l, [
|
|
1946
|
+
hl,
|
|
1947
|
+
O("div", null, [
|
|
1948
|
+
o(V, {
|
|
1905
1949
|
modelValue: e.value.withFewYears,
|
|
1906
|
-
"onUpdate:modelValue":
|
|
1950
|
+
"onUpdate:modelValue": t[13] || (t[13] = (a) => e.value.withFewYears = a),
|
|
1907
1951
|
"controls-position": "right"
|
|
1908
1952
|
}, null, 8, ["modelValue"]),
|
|
1909
|
-
|
|
1910
|
-
|
|
1953
|
+
F(" 年内 "),
|
|
1954
|
+
o(V, {
|
|
1911
1955
|
modelValue: e.value.yearsCount,
|
|
1912
|
-
"onUpdate:modelValue":
|
|
1956
|
+
"onUpdate:modelValue": t[14] || (t[14] = (a) => e.value.yearsCount = a),
|
|
1913
1957
|
"controls-position": "right"
|
|
1914
1958
|
}, null, 8, ["modelValue"]),
|
|
1915
|
-
|
|
1916
|
-
|
|
1959
|
+
F(" 年以上盈利" + Y(e.value.rule === 1 ? "超" : "跌") + "过 ", 1),
|
|
1960
|
+
o(V, {
|
|
1917
1961
|
modelValue: e.value.netProfit,
|
|
1918
|
-
"onUpdate:modelValue":
|
|
1962
|
+
"onUpdate:modelValue": t[15] || (t[15] = (a) => e.value.netProfit = a),
|
|
1919
1963
|
"controls-position": "right"
|
|
1920
1964
|
}, null, 8, ["modelValue"]),
|
|
1921
|
-
|
|
1965
|
+
F(" 亿 ")
|
|
1922
1966
|
])
|
|
1923
1967
|
])
|
|
1924
|
-
])) :
|
|
1925
|
-
|
|
1926
|
-
|
|
1968
|
+
])) : D("", !0),
|
|
1969
|
+
$.value.key === "priceLevels" ? (n(), k("div", xl, [
|
|
1970
|
+
o(p, {
|
|
1927
1971
|
modelValue: e.value.priceLevels,
|
|
1928
|
-
"onUpdate:modelValue":
|
|
1972
|
+
"onUpdate:modelValue": t[16] || (t[16] = (a) => e.value.priceLevels = a),
|
|
1929
1973
|
multiple: "",
|
|
1930
1974
|
clearable: "",
|
|
1931
1975
|
placeholder: "请选择",
|
|
1932
1976
|
style: { width: "420px" }
|
|
1933
1977
|
}, {
|
|
1934
1978
|
default: f(() => [
|
|
1935
|
-
(
|
|
1936
|
-
key:
|
|
1937
|
-
label: `${
|
|
1938
|
-
value:
|
|
1979
|
+
(n(), k(E, null, z([1, 2, 3, 4, 5], (a) => o(M, {
|
|
1980
|
+
key: a,
|
|
1981
|
+
label: `${a}分位`,
|
|
1982
|
+
value: a
|
|
1939
1983
|
}, null, 8, ["label", "value"])), 64))
|
|
1940
1984
|
]),
|
|
1941
1985
|
_: 1
|
|
1942
1986
|
}, 8, ["modelValue"])
|
|
1943
|
-
])) :
|
|
1944
|
-
|
|
1945
|
-
|
|
1987
|
+
])) : D("", !0),
|
|
1988
|
+
$.value.key === "peTtmLevels" ? (n(), k("div", Ol, [
|
|
1989
|
+
o(p, {
|
|
1946
1990
|
modelValue: e.value.peTtmLevels,
|
|
1947
|
-
"onUpdate:modelValue":
|
|
1991
|
+
"onUpdate:modelValue": t[17] || (t[17] = (a) => e.value.peTtmLevels = a),
|
|
1948
1992
|
multiple: "",
|
|
1949
1993
|
clearable: "",
|
|
1950
1994
|
placeholder: "请选择",
|
|
1951
1995
|
style: { width: "420px" }
|
|
1952
1996
|
}, {
|
|
1953
1997
|
default: f(() => [
|
|
1954
|
-
(
|
|
1955
|
-
key:
|
|
1956
|
-
label: `${
|
|
1957
|
-
value:
|
|
1998
|
+
(n(), k(E, null, z([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (a) => o(M, {
|
|
1999
|
+
key: a,
|
|
2000
|
+
label: `${a}分位`,
|
|
2001
|
+
value: a
|
|
1958
2002
|
}, null, 8, ["label", "value"])), 64))
|
|
1959
2003
|
]),
|
|
1960
2004
|
_: 1
|
|
1961
2005
|
}, 8, ["modelValue"])
|
|
1962
|
-
])) :
|
|
1963
|
-
|
|
1964
|
-
|
|
2006
|
+
])) : D("", !0),
|
|
2007
|
+
$.value.key === "optionsCpType" ? (n(), k("div", Vl, [
|
|
2008
|
+
o(h, {
|
|
1965
2009
|
modelValue: e.value.optionsCpType,
|
|
1966
|
-
"onUpdate:modelValue":
|
|
2010
|
+
"onUpdate:modelValue": t[18] || (t[18] = (a) => e.value.optionsCpType = a)
|
|
1967
2011
|
}, {
|
|
1968
2012
|
default: f(() => [
|
|
1969
|
-
|
|
2013
|
+
o(v, {
|
|
1970
2014
|
label: "看涨",
|
|
1971
2015
|
value: 1
|
|
1972
2016
|
}),
|
|
1973
|
-
|
|
2017
|
+
o(v, {
|
|
1974
2018
|
label: "看跌",
|
|
1975
2019
|
value: 2
|
|
1976
2020
|
})
|
|
1977
2021
|
]),
|
|
1978
2022
|
_: 1
|
|
1979
2023
|
}, 8, ["modelValue"])
|
|
1980
|
-
])) :
|
|
2024
|
+
])) : D("", !0)
|
|
1981
2025
|
], 64))
|
|
1982
2026
|
]),
|
|
1983
|
-
_:
|
|
1984
|
-
},
|
|
1985
|
-
|
|
2027
|
+
_: 2
|
|
2028
|
+
}, [
|
|
2029
|
+
$.value.showRankType ? {
|
|
2030
|
+
name: "header",
|
|
2031
|
+
fn: f(() => [
|
|
2032
|
+
O("span", il, Y($.value.label), 1),
|
|
2033
|
+
o(h, {
|
|
2034
|
+
modelValue: e.value.radioType,
|
|
2035
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.radioType = a),
|
|
2036
|
+
style: { "vertical-align": "4px", "margin-left": "12px" }
|
|
2037
|
+
}, {
|
|
2038
|
+
default: f(() => [
|
|
2039
|
+
o(w, {
|
|
2040
|
+
label: "数值",
|
|
2041
|
+
value: "0"
|
|
2042
|
+
}),
|
|
2043
|
+
o(w, {
|
|
2044
|
+
label: "排名",
|
|
2045
|
+
value: "1"
|
|
2046
|
+
})
|
|
2047
|
+
]),
|
|
2048
|
+
_: 1
|
|
2049
|
+
}, 8, ["modelValue"])
|
|
2050
|
+
]),
|
|
2051
|
+
key: "0"
|
|
2052
|
+
} : void 0
|
|
2053
|
+
]), 1032, ["modelValue", "title"])
|
|
2054
|
+
])) : D("", !0);
|
|
1986
2055
|
};
|
|
1987
2056
|
}
|
|
1988
|
-
},
|
|
1989
|
-
const
|
|
2057
|
+
}, wl = /* @__PURE__ */ he(Il, [["__scopeId", "data-v-7cb706a5"]]);
|
|
2058
|
+
const ee = (s) => (be("data-v-8b39d515"), s = s(), ke(), s), Tl = { class: "variety-search" }, Cl = {
|
|
1990
2059
|
key: 0,
|
|
1991
2060
|
class: "variety-search-row"
|
|
1992
|
-
},
|
|
2061
|
+
}, Sl = { class: "title" }, Ml = /* @__PURE__ */ ee(() => /* @__PURE__ */ O("span", null, "品种市场: ", -1)), Ul = {
|
|
1993
2062
|
key: 1,
|
|
1994
2063
|
class: "variety-search-row"
|
|
1995
|
-
},
|
|
2064
|
+
}, El = { class: "title" }, ql = /* @__PURE__ */ ee(() => /* @__PURE__ */ O("span", null, "常用选项: ", -1)), Dl = {
|
|
1996
2065
|
key: 2,
|
|
1997
2066
|
class: "variety-search-row"
|
|
1998
|
-
},
|
|
2067
|
+
}, Rl = { class: "title" }, Ll = /* @__PURE__ */ ee(() => /* @__PURE__ */ O("span", null, "上市板块: ", -1)), Fl = {
|
|
1999
2068
|
key: 3,
|
|
2000
2069
|
class: "variety-search-row"
|
|
2001
|
-
},
|
|
2070
|
+
}, zl = { class: "title" }, Nl = /* @__PURE__ */ ee(() => /* @__PURE__ */ O("span", null, "自定标签: ", -1)), Pl = {
|
|
2002
2071
|
key: 4,
|
|
2003
2072
|
class: "variety-search-row"
|
|
2004
|
-
},
|
|
2073
|
+
}, Bl = { class: "title" }, jl = /* @__PURE__ */ ee(() => /* @__PURE__ */ O("span", null, "因子筛选: ", -1)), Al = {
|
|
2005
2074
|
__name: "index",
|
|
2006
|
-
props: /* @__PURE__ */
|
|
2075
|
+
props: /* @__PURE__ */ se({ config: { type: Object, default: {} } }, {
|
|
2007
2076
|
searchData: {},
|
|
2008
2077
|
searchDataModifiers: {}
|
|
2009
2078
|
}),
|
|
2010
2079
|
emits: ["update:searchData"],
|
|
2011
|
-
setup(
|
|
2012
|
-
const
|
|
2013
|
-
|
|
2080
|
+
setup(s, { expose: i }) {
|
|
2081
|
+
const l = s, u = re(s, "searchData");
|
|
2082
|
+
u.value = Object.assign(u.value, {
|
|
2014
2083
|
// 品种市场
|
|
2015
2084
|
varietyMarket: null,
|
|
2016
2085
|
// 常用选项
|
|
@@ -2028,103 +2097,114 @@ const X = (r) => (ge("data-v-3d6e5358"), r = r(), ye(), r), Il = { class: "varie
|
|
|
2028
2097
|
// 常用指标
|
|
2029
2098
|
commonIndicator: []
|
|
2030
2099
|
});
|
|
2031
|
-
const
|
|
2032
|
-
const
|
|
2033
|
-
return Object.keys(
|
|
2034
|
-
const
|
|
2035
|
-
|
|
2036
|
-
}),
|
|
2037
|
-
}),
|
|
2038
|
-
const { varietyMarket:
|
|
2039
|
-
if (
|
|
2040
|
-
const
|
|
2041
|
-
return
|
|
2100
|
+
const c = B(() => {
|
|
2101
|
+
const y = {};
|
|
2102
|
+
return Object.keys(Te).forEach((d) => {
|
|
2103
|
+
const _ = Te[d], g = l.config[d] ?? {}, t = { ..._, ...g };
|
|
2104
|
+
y[d] = t;
|
|
2105
|
+
}), y;
|
|
2106
|
+
}), $ = B(() => c.value.varietyMarket.options), e = B(() => {
|
|
2107
|
+
const { varietyMarket: y } = u.value;
|
|
2108
|
+
if (y) {
|
|
2109
|
+
const d = $.value.find(({ value: _ }) => _ === y).memo;
|
|
2110
|
+
return c.value.commonOption.options.filter(({ value: _ }) => d.includes(_));
|
|
2042
2111
|
} else
|
|
2043
|
-
return
|
|
2044
|
-
}),
|
|
2045
|
-
const { varietyMarket:
|
|
2046
|
-
return
|
|
2047
|
-
}),
|
|
2048
|
-
["commonOption", "marketIds", "customTag", "factorScreen", "commonIndicator"].includes(
|
|
2112
|
+
return c.value.commonOption.options;
|
|
2113
|
+
}), q = B(() => {
|
|
2114
|
+
const { varietyMarket: y } = u.value;
|
|
2115
|
+
return y ? c.value.marketIds.options.filter((d) => d.varietyMarketIds.includes(y)) : c.value.marketIds.options;
|
|
2116
|
+
}), R = B(() => c.value.customTag.options), L = (y) => {
|
|
2117
|
+
["commonOption", "marketIds", "customTag", "factorScreen", "commonIndicator"].includes(y) ? u.value[y] = [] : u.value[y] = null;
|
|
2049
2118
|
};
|
|
2050
|
-
return
|
|
2119
|
+
return oe(
|
|
2051
2120
|
() => e.value,
|
|
2052
|
-
(
|
|
2053
|
-
var
|
|
2054
|
-
(
|
|
2121
|
+
(y) => {
|
|
2122
|
+
var d;
|
|
2123
|
+
(d = u.value.commonOption) != null && d.length && (u.value.commonOption = u.value.commonOption.filter((_) => y.find(({ value: g }) => g === _)));
|
|
2055
2124
|
}
|
|
2056
|
-
),
|
|
2057
|
-
() =>
|
|
2058
|
-
(
|
|
2059
|
-
var
|
|
2060
|
-
(
|
|
2125
|
+
), oe(
|
|
2126
|
+
() => q.value,
|
|
2127
|
+
(y) => {
|
|
2128
|
+
var d;
|
|
2129
|
+
(d = u.value.marketIds) != null && d.length && (u.value.marketIds = u.value.marketIds.filter((_) => y.find(({ value: g }) => g === _)));
|
|
2061
2130
|
}
|
|
2062
|
-
),
|
|
2131
|
+
), i({
|
|
2063
2132
|
// 生成接口传参结构的数据
|
|
2064
|
-
formatData: (
|
|
2065
|
-
var
|
|
2133
|
+
formatData: (y) => {
|
|
2134
|
+
var g, t, r, w, h;
|
|
2066
2135
|
console.log("%c[st-varietySearch]: 正在生成接口传参结构的数据...", "color: tomato");
|
|
2067
|
-
const
|
|
2068
|
-
if (
|
|
2069
|
-
const { factorScreen:
|
|
2070
|
-
if ((
|
|
2071
|
-
switch (
|
|
2136
|
+
const d = {}, _ = { rangeDtoList: [] };
|
|
2137
|
+
if (y.varietyMarket && (d.exchangeId = String(y.varietyMarket)), (g = y.commonOption) != null && g.length && (d.optionId = y.commonOption.join(",")), (t = y.marketIds) != null && t.length && (d.marketIds = y.marketIds), (r = y.customTag) != null && r.length && (d.tagIds = y.customTag), (w = c.value.factorScreen) != null && w.show) {
|
|
2138
|
+
const { factorScreen: x } = y;
|
|
2139
|
+
if ((h = x == null ? void 0 : x.list) != null && h.length && (d.tbFeatureFactorScores = x.list.map((I) => {
|
|
2140
|
+
switch (I.key) {
|
|
2072
2141
|
case "compare":
|
|
2073
2142
|
return {
|
|
2074
|
-
freqId:
|
|
2075
|
-
factorId:
|
|
2076
|
-
compareType:
|
|
2077
|
-
freqId2:
|
|
2078
|
-
factorId2:
|
|
2143
|
+
freqId: I.cycle,
|
|
2144
|
+
factorId: I.factor,
|
|
2145
|
+
compareType: I.compareType,
|
|
2146
|
+
freqId2: I.cycle2,
|
|
2147
|
+
factorId2: I.factor2
|
|
2079
2148
|
};
|
|
2080
2149
|
default:
|
|
2081
2150
|
return {
|
|
2082
|
-
freqId:
|
|
2083
|
-
factorId:
|
|
2084
|
-
startScore:
|
|
2085
|
-
endScore:
|
|
2151
|
+
freqId: I.cycle,
|
|
2152
|
+
factorId: I.factor,
|
|
2153
|
+
startScore: I.score[0],
|
|
2154
|
+
endScore: I.score[1]
|
|
2086
2155
|
};
|
|
2087
2156
|
}
|
|
2088
|
-
})),
|
|
2089
|
-
const
|
|
2090
|
-
var
|
|
2091
|
-
const m = `条件${
|
|
2092
|
-
switch (
|
|
2157
|
+
})), x.sqlEnable) {
|
|
2158
|
+
const I = x.list.reduce((p, v, V) => {
|
|
2159
|
+
var a, A;
|
|
2160
|
+
const m = `条件${V + 1}`;
|
|
2161
|
+
switch (v.key) {
|
|
2093
2162
|
case "compare": {
|
|
2094
|
-
let
|
|
2095
|
-
(
|
|
2163
|
+
let j = "";
|
|
2164
|
+
(a = c.value.factorScreen) != null && a.cycleShow ? j = `freq_id = ${v.cycle} and factor_id = ${v.factor} ${v.compareType} freq_id = ${v.cycle2} and factor_id = ${v.factor2}` : j = `factor_id = ${v.factor} ${v.compareType} factor_id = ${v.factor2}`, p.set(m, `(${j})`);
|
|
2096
2165
|
break;
|
|
2097
2166
|
}
|
|
2098
2167
|
default: {
|
|
2099
|
-
let
|
|
2100
|
-
(
|
|
2168
|
+
let j = `factor_id = ${v.factor} and `;
|
|
2169
|
+
(A = c.value.factorScreen) != null && A.cycleShow && (j = `freq_id = ${v.cycle} and factor_id = ${v.factor} and `), (v.score[0] || v.score[0] === 0) && (v.score[1] || v.score[1] === 0) ? j += `score >= ${v.score[0]} and score <= ${v.score[1]}` : v.score[0] || v.score[0] === 0 ? j += `score >= ${v.score[0]}` : (v.score[1] || v.score[1] === 0) && (j += `score <= ${v.score[1]}`), p.set(m, `(${j})`);
|
|
2101
2170
|
}
|
|
2102
2171
|
}
|
|
2103
|
-
return
|
|
2172
|
+
return p;
|
|
2104
2173
|
}, /* @__PURE__ */ new Map([]));
|
|
2105
|
-
let M =
|
|
2106
|
-
for (const [
|
|
2107
|
-
const
|
|
2108
|
-
M = M.replace(
|
|
2174
|
+
let M = x.sqlValue;
|
|
2175
|
+
for (const [p, v] of I) {
|
|
2176
|
+
const V = new RegExp(p, "g");
|
|
2177
|
+
M = M.replace(V, v);
|
|
2109
2178
|
}
|
|
2110
|
-
|
|
2179
|
+
d.sql = M;
|
|
2111
2180
|
}
|
|
2112
|
-
|
|
2181
|
+
d.enableSql = x.sqlEnable === 1 ? 2 : 1;
|
|
2113
2182
|
}
|
|
2114
2183
|
{
|
|
2115
|
-
const
|
|
2116
|
-
const { key:
|
|
2117
|
-
if (
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2184
|
+
const x = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"], I = y.commonIndicator.reduce((m, a) => {
|
|
2185
|
+
const { key: A, type: j, range: te, unit: le, radioType: C, rankRange: N } = a;
|
|
2186
|
+
if (C === "1")
|
|
2187
|
+
x.includes(A) ? _.rangeDtoList.push({
|
|
2188
|
+
column: a.key,
|
|
2189
|
+
start: N[0] || null,
|
|
2190
|
+
end: N[1] || null
|
|
2191
|
+
}) : m.push({
|
|
2192
|
+
column: a.key,
|
|
2193
|
+
type: "1",
|
|
2194
|
+
start: N[0] || null,
|
|
2195
|
+
end: N[1] || null
|
|
2196
|
+
});
|
|
2197
|
+
else if (A === "dividendYield") {
|
|
2198
|
+
let [b, S] = te;
|
|
2199
|
+
["", null].includes(b) || (b = b / 100), ["", null].includes(S) || (S = S / 100), m.push({
|
|
2200
|
+
column: a.key,
|
|
2121
2201
|
start: b,
|
|
2122
|
-
end:
|
|
2202
|
+
end: S
|
|
2123
2203
|
});
|
|
2124
|
-
} else if (
|
|
2125
|
-
let [b,
|
|
2204
|
+
} else if (j === void 0 && !x.includes(A)) {
|
|
2205
|
+
let [b, S] = te;
|
|
2126
2206
|
if (!["", null].includes(b))
|
|
2127
|
-
switch (
|
|
2207
|
+
switch (le[0]) {
|
|
2128
2208
|
case "亿":
|
|
2129
2209
|
b = b * 1e8;
|
|
2130
2210
|
break;
|
|
@@ -2135,77 +2215,75 @@ const X = (r) => (ge("data-v-3d6e5358"), r = r(), ye(), r), Il = { class: "varie
|
|
|
2135
2215
|
b = b;
|
|
2136
2216
|
break;
|
|
2137
2217
|
}
|
|
2138
|
-
if (!["", null].includes(
|
|
2139
|
-
switch (
|
|
2218
|
+
if (!["", null].includes(S))
|
|
2219
|
+
switch (le[1]) {
|
|
2140
2220
|
case "亿":
|
|
2141
|
-
|
|
2221
|
+
S = S * 1e8;
|
|
2142
2222
|
break;
|
|
2143
2223
|
case "千万":
|
|
2144
|
-
|
|
2224
|
+
S = S * 1e7;
|
|
2145
2225
|
break;
|
|
2146
2226
|
default:
|
|
2147
|
-
|
|
2227
|
+
S = S;
|
|
2148
2228
|
break;
|
|
2149
2229
|
}
|
|
2150
|
-
|
|
2151
|
-
column:
|
|
2230
|
+
m.push({
|
|
2231
|
+
column: a.key,
|
|
2152
2232
|
start: b,
|
|
2153
|
-
end:
|
|
2233
|
+
end: S
|
|
2154
2234
|
});
|
|
2155
2235
|
}
|
|
2156
|
-
return
|
|
2236
|
+
return m;
|
|
2157
2237
|
}, []);
|
|
2158
|
-
|
|
2159
|
-
const M =
|
|
2160
|
-
M && (
|
|
2161
|
-
const
|
|
2162
|
-
|
|
2163
|
-
const
|
|
2164
|
-
|
|
2165
|
-
const
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
const { key: R } = t;
|
|
2170
|
-
switch (R) {
|
|
2238
|
+
I.length && (d.query = I);
|
|
2239
|
+
const M = y.commonIndicator.find(({ key: m }) => m === "st");
|
|
2240
|
+
M && (d.st = M.st);
|
|
2241
|
+
const p = y.commonIndicator.find(({ key: m }) => m === "tFeaturelncomes");
|
|
2242
|
+
p && (d.netProfitQueryDto = { ...p, netProfit: p.netProfit * 1e8 });
|
|
2243
|
+
const v = y.commonIndicator.find(({ key: m }) => m === "priceLevels");
|
|
2244
|
+
v && (d.priceLevels = v.priceLevels);
|
|
2245
|
+
const V = y.commonIndicator.find(({ key: m }) => m === "peTtmLevels");
|
|
2246
|
+
V && (d.peTtmLevels = V.peTtmLevels), y.commonIndicator.forEach((m) => {
|
|
2247
|
+
const { key: a } = m;
|
|
2248
|
+
switch (a) {
|
|
2171
2249
|
case "expireDays":
|
|
2172
|
-
["", null].includes(
|
|
2250
|
+
["", null].includes(m.range[0]) || (_.minExpireDays = m.range[0]), ["", null].includes(m.range[1]) || (_.maxExpireDays = m.range[1]);
|
|
2173
2251
|
break;
|
|
2174
2252
|
case "virtualRealDegree":
|
|
2175
|
-
["", null].includes(
|
|
2253
|
+
["", null].includes(m.range[0]) || (_.minVirtualRealDegree = m.range[0] / 100), ["", null].includes(m.range[1]) || (_.maxVirtualRealDegree = m.range[1] / 100);
|
|
2176
2254
|
break;
|
|
2177
2255
|
case "yearProfitRate":
|
|
2178
|
-
["", null].includes(
|
|
2256
|
+
["", null].includes(m.range[0]) || (_.minYearProfitRate = m.range[0] / 100), ["", null].includes(m.range[1]) || (_.maxYearProfitRate = m.range[1] / 100);
|
|
2179
2257
|
break;
|
|
2180
2258
|
case "impliedVolatility":
|
|
2181
|
-
["", null].includes(
|
|
2259
|
+
["", null].includes(m.range[0]) || (_.minImpliedVolatility = m.range[0] / 100), ["", null].includes(m.range[1]) || (_.maxImpliedVolatility = m.range[1] / 100);
|
|
2182
2260
|
break;
|
|
2183
2261
|
case "levelMultiplier":
|
|
2184
|
-
["", null].includes(
|
|
2262
|
+
["", null].includes(m.range[0]) || (_.minLevelMultiplier = m.range[0]), ["", null].includes(m.range[1]) || (_.maxLevelMultiplier = m.range[1]);
|
|
2185
2263
|
break;
|
|
2186
2264
|
case "turnover":
|
|
2187
|
-
["", null].includes(
|
|
2265
|
+
["", null].includes(m.range[0]) || (_.minTurnover = m.range[0] * 1e4), ["", null].includes(m.range[1]) || (_.maxTurnover = m.range[1] * 1e4);
|
|
2188
2266
|
break;
|
|
2189
2267
|
case "volume":
|
|
2190
|
-
["", null].includes(
|
|
2268
|
+
["", null].includes(m.range[0]) || (_.minVolume = m.range[0]), ["", null].includes(m.range[1]) || (_.maxVolume = m.range[1]);
|
|
2191
2269
|
break;
|
|
2192
2270
|
case "openInterest":
|
|
2193
|
-
["", null].includes(
|
|
2271
|
+
["", null].includes(m.range[0]) || (_.minOpenInterest = m.range[0]), ["", null].includes(m.range[1]) || (_.maxOpenInterest = m.range[1]);
|
|
2194
2272
|
break;
|
|
2195
2273
|
case "optionsCpType":
|
|
2196
|
-
|
|
2274
|
+
_.optionsCpType = m.optionsCpType;
|
|
2197
2275
|
break;
|
|
2198
2276
|
case "optionGear":
|
|
2199
|
-
["", null].includes(
|
|
2277
|
+
["", null].includes(m.range[0]) || (_.minOptionGear = m.range[0]), ["", null].includes(m.range[1]) || (_.maxOptionGear = m.range[1]);
|
|
2200
2278
|
break;
|
|
2201
2279
|
}
|
|
2202
|
-
}), Object.keys(
|
|
2280
|
+
}), Object.keys(_).length && (d.searchOptionDto = _);
|
|
2203
2281
|
}
|
|
2204
|
-
return console.log("%c[st-varietySearch]: 接口传参数据生成完毕", "color: green",
|
|
2282
|
+
return console.log("%c[st-varietySearch]: 接口传参数据生成完毕", "color: green", d), d;
|
|
2205
2283
|
},
|
|
2206
2284
|
// 重置函数
|
|
2207
2285
|
reset: () => {
|
|
2208
|
-
|
|
2286
|
+
u.value = {
|
|
2209
2287
|
// 品种市场
|
|
2210
2288
|
varietyMarket: null,
|
|
2211
2289
|
// 常用选项
|
|
@@ -2224,126 +2302,126 @@ const X = (r) => (ge("data-v-3d6e5358"), r = r(), ye(), r), Il = { class: "varie
|
|
|
2224
2302
|
commonIndicator: []
|
|
2225
2303
|
};
|
|
2226
2304
|
}
|
|
2227
|
-
}), (
|
|
2228
|
-
var
|
|
2229
|
-
const
|
|
2230
|
-
return
|
|
2231
|
-
(
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
onClick:
|
|
2305
|
+
}), (y, d) => {
|
|
2306
|
+
var w, h, x, I, M;
|
|
2307
|
+
const _ = ve, g = ge, t = nt, r = at;
|
|
2308
|
+
return n(), k("div", Tl, [
|
|
2309
|
+
(w = c.value.varietyMarket) != null && w.show ? (n(), k("div", Cl, [
|
|
2310
|
+
O("div", Sl, [
|
|
2311
|
+
Ml,
|
|
2312
|
+
O("span", {
|
|
2313
|
+
onClick: d[0] || (d[0] = (p) => L("varietyMarket"))
|
|
2236
2314
|
}, "不限")
|
|
2237
2315
|
]),
|
|
2238
|
-
|
|
2239
|
-
modelValue:
|
|
2240
|
-
"onUpdate:modelValue":
|
|
2316
|
+
o(g, {
|
|
2317
|
+
modelValue: u.value.varietyMarket,
|
|
2318
|
+
"onUpdate:modelValue": d[1] || (d[1] = (p) => u.value.varietyMarket = p),
|
|
2241
2319
|
size: "small"
|
|
2242
2320
|
}, {
|
|
2243
2321
|
default: f(() => [
|
|
2244
|
-
(
|
|
2245
|
-
label:
|
|
2246
|
-
value:
|
|
2247
|
-
key:
|
|
2322
|
+
(n(!0), k(E, null, z($.value, ({ label: p, value: v }) => (n(), U(_, {
|
|
2323
|
+
label: p,
|
|
2324
|
+
value: v,
|
|
2325
|
+
key: v
|
|
2248
2326
|
}, null, 8, ["label", "value"]))), 128))
|
|
2249
2327
|
]),
|
|
2250
2328
|
_: 1
|
|
2251
2329
|
}, 8, ["modelValue"])
|
|
2252
|
-
])) :
|
|
2253
|
-
(h =
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
onClick:
|
|
2330
|
+
])) : D("", !0),
|
|
2331
|
+
(h = c.value.commonOption) != null && h.show && e.value.length ? (n(), k("div", Ul, [
|
|
2332
|
+
O("div", El, [
|
|
2333
|
+
ql,
|
|
2334
|
+
O("span", {
|
|
2335
|
+
onClick: d[2] || (d[2] = (p) => L("commonOption"))
|
|
2258
2336
|
}, "不限")
|
|
2259
2337
|
]),
|
|
2260
|
-
|
|
2261
|
-
modelValue:
|
|
2262
|
-
"onUpdate:modelValue":
|
|
2338
|
+
o(r, {
|
|
2339
|
+
modelValue: u.value.commonOption,
|
|
2340
|
+
"onUpdate:modelValue": d[3] || (d[3] = (p) => u.value.commonOption = p),
|
|
2263
2341
|
size: "small"
|
|
2264
2342
|
}, {
|
|
2265
2343
|
default: f(() => [
|
|
2266
|
-
(
|
|
2267
|
-
label:
|
|
2268
|
-
value:
|
|
2269
|
-
key:
|
|
2344
|
+
(n(!0), k(E, null, z(e.value, ({ label: p, value: v }) => (n(), U(t, {
|
|
2345
|
+
label: p,
|
|
2346
|
+
value: v,
|
|
2347
|
+
key: v
|
|
2270
2348
|
}, null, 8, ["label", "value"]))), 128))
|
|
2271
2349
|
]),
|
|
2272
2350
|
_: 1
|
|
2273
2351
|
}, 8, ["modelValue"])
|
|
2274
|
-
])) :
|
|
2275
|
-
(
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
onClick:
|
|
2352
|
+
])) : D("", !0),
|
|
2353
|
+
(x = c.value.marketIds) != null && x.show && q.value.length ? (n(), k("div", Dl, [
|
|
2354
|
+
O("div", Rl, [
|
|
2355
|
+
Ll,
|
|
2356
|
+
O("span", {
|
|
2357
|
+
onClick: d[4] || (d[4] = (p) => L("marketIds"))
|
|
2280
2358
|
}, "不限")
|
|
2281
2359
|
]),
|
|
2282
|
-
|
|
2283
|
-
modelValue:
|
|
2284
|
-
"onUpdate:modelValue":
|
|
2360
|
+
o(r, {
|
|
2361
|
+
modelValue: u.value.marketIds,
|
|
2362
|
+
"onUpdate:modelValue": d[5] || (d[5] = (p) => u.value.marketIds = p),
|
|
2285
2363
|
size: "small"
|
|
2286
2364
|
}, {
|
|
2287
2365
|
default: f(() => [
|
|
2288
|
-
(
|
|
2289
|
-
label:
|
|
2290
|
-
value:
|
|
2291
|
-
key:
|
|
2366
|
+
(n(!0), k(E, null, z(q.value, ({ label: p, value: v }) => (n(), U(t, {
|
|
2367
|
+
label: p,
|
|
2368
|
+
value: v,
|
|
2369
|
+
key: v
|
|
2292
2370
|
}, null, 8, ["label", "value"]))), 128))
|
|
2293
2371
|
]),
|
|
2294
2372
|
_: 1
|
|
2295
2373
|
}, 8, ["modelValue"])
|
|
2296
|
-
])) :
|
|
2297
|
-
(
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
onClick:
|
|
2374
|
+
])) : D("", !0),
|
|
2375
|
+
(I = c.value.customTag) != null && I.show && R.value.length ? (n(), k("div", Fl, [
|
|
2376
|
+
O("div", zl, [
|
|
2377
|
+
Nl,
|
|
2378
|
+
O("span", {
|
|
2379
|
+
onClick: d[6] || (d[6] = (p) => L("customTag"))
|
|
2302
2380
|
}, "不限")
|
|
2303
2381
|
]),
|
|
2304
|
-
|
|
2305
|
-
modelValue:
|
|
2306
|
-
"onUpdate:modelValue":
|
|
2382
|
+
o(r, {
|
|
2383
|
+
modelValue: u.value.customTag,
|
|
2384
|
+
"onUpdate:modelValue": d[7] || (d[7] = (p) => u.value.customTag = p),
|
|
2307
2385
|
size: "small"
|
|
2308
2386
|
}, {
|
|
2309
2387
|
default: f(() => [
|
|
2310
|
-
(
|
|
2311
|
-
label:
|
|
2312
|
-
value:
|
|
2313
|
-
key:
|
|
2388
|
+
(n(!0), k(E, null, z(R.value, ({ label: p, value: v }) => (n(), U(t, {
|
|
2389
|
+
label: p,
|
|
2390
|
+
value: v,
|
|
2391
|
+
key: v
|
|
2314
2392
|
}, null, 8, ["label", "value"]))), 128))
|
|
2315
2393
|
]),
|
|
2316
2394
|
_: 1
|
|
2317
2395
|
}, 8, ["modelValue"])
|
|
2318
|
-
])) :
|
|
2319
|
-
(
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
onClick:
|
|
2396
|
+
])) : D("", !0),
|
|
2397
|
+
(M = c.value.factorScreen) != null && M.show ? (n(), k("div", Pl, [
|
|
2398
|
+
O("div", Bl, [
|
|
2399
|
+
jl,
|
|
2400
|
+
O("span", {
|
|
2401
|
+
onClick: d[8] || (d[8] = (p) => L("factorScreen"))
|
|
2324
2402
|
}, "不限")
|
|
2325
2403
|
]),
|
|
2326
|
-
|
|
2327
|
-
data:
|
|
2328
|
-
"onUpdate:data":
|
|
2329
|
-
config:
|
|
2404
|
+
o(tl, {
|
|
2405
|
+
data: u.value.factorScreen,
|
|
2406
|
+
"onUpdate:data": d[9] || (d[9] = (p) => u.value.factorScreen = p),
|
|
2407
|
+
config: c.value.factorScreen
|
|
2330
2408
|
}, null, 8, ["data", "config"])
|
|
2331
|
-
])) :
|
|
2332
|
-
|
|
2333
|
-
data:
|
|
2334
|
-
"onUpdate:data":
|
|
2335
|
-
varietyMarket:
|
|
2336
|
-
commonOption:
|
|
2337
|
-
config:
|
|
2409
|
+
])) : D("", !0),
|
|
2410
|
+
o(wl, {
|
|
2411
|
+
data: u.value.commonIndicator,
|
|
2412
|
+
"onUpdate:data": d[10] || (d[10] = (p) => u.value.commonIndicator = p),
|
|
2413
|
+
varietyMarket: u.value.varietyMarket,
|
|
2414
|
+
commonOption: u.value.commonOption,
|
|
2415
|
+
config: c.value.commonIndicator
|
|
2338
2416
|
}, null, 8, ["data", "varietyMarket", "commonOption", "config"])
|
|
2339
2417
|
]);
|
|
2340
2418
|
};
|
|
2341
2419
|
}
|
|
2342
|
-
},
|
|
2343
|
-
install(
|
|
2344
|
-
|
|
2420
|
+
}, Yl = /* @__PURE__ */ he(Al, [["__scopeId", "data-v-8b39d515"]]), _n = {
|
|
2421
|
+
install(s) {
|
|
2422
|
+
s.component("st-varietySearch", Yl);
|
|
2345
2423
|
}
|
|
2346
2424
|
};
|
|
2347
2425
|
export {
|
|
2348
|
-
|
|
2426
|
+
_n as default
|
|
2349
2427
|
};
|