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