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