st-comp 0.0.166 → 0.0.167
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/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +2906 -163
- package/es/VarietySearch.cjs +1 -3
- package/es/VarietySearch.js +895 -1152
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +186 -188
- package/lib/{index-80531492.js → index-6c539dc9.js} +21774 -22028
- package/lib/{python-20a1a5fc.js → python-b2c12764.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/components/FactorScreen/index.vue +4 -5
- package/es/el-autocomplete-5064d466.js +0 -2759
- package/es/el-autocomplete-814993af.cjs +0 -1
- package/packages/VarietySearch/components/FactorScreen/ScriptSelect.vue +0 -303
- package/packages/VarietySearch/components/FactorScreen/VarietySelect.vue +0 -78
package/es/VarietySearch.js
CHANGED
|
@@ -1,30 +1,28 @@
|
|
|
1
|
-
import { k as ie, a as
|
|
1
|
+
import { k as ie, a as Se, v as Ce, s as Ee, A as Re, u as fe, _ as ye, f as We, w as Xe, p as qe } from "./base-4bcd2756.js";
|
|
2
2
|
import "./el-tag-6036f51c.js";
|
|
3
|
-
import { E as
|
|
3
|
+
import { E as ge, a as be } from "./el-select-d3bce4d1.js";
|
|
4
4
|
import "./el-scrollbar-bcf29780.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { E as
|
|
7
|
-
import { b as
|
|
8
|
-
import { ref as
|
|
9
|
-
import { E as
|
|
5
|
+
import { u as el, E as ll } from "./el-popper-85365d5b.js";
|
|
6
|
+
import { E as tl } from "./el-checkbox-group-779f353a.js";
|
|
7
|
+
import { b as al, c as nl, E as ol, a as ul } from "./el-table-column-9691b26d.js";
|
|
8
|
+
import { ref as H, inject as rl, computed as A, defineComponent as le, openBlock as u, createElementBlock as g, normalizeClass as X, unref as b, createElementVNode as _, withDirectives as ke, isRef as De, withModifiers as se, vModelRadio as Fe, renderSlot as _e, createTextVNode as E, toDisplayString as K, nextTick as Ve, normalizeStyle as Le, onMounted as sl, provide as il, reactive as dl, toRefs as cl, watch as oe, mergeModels as de, useModel as ce, createBlock as L, withCtx as d, createVNode as t, resolveComponent as pl, Fragment as R, createCommentVNode as F, renderList as z, pushScopeId as xe, popScopeId as he, createSlots as ve, vShow as vl } from "vue";
|
|
9
|
+
import { E as Oe } from "./el-dialog-f45ec2a1.js";
|
|
10
10
|
import "./el-overlay-690b50aa.js";
|
|
11
|
-
import { E as
|
|
12
|
-
import { E as
|
|
13
|
-
import { E as
|
|
11
|
+
import { E as ml, a as fl } from "./el-form-item-b31e7a98.js";
|
|
12
|
+
import { E as je } from "./el-input-42315ac4.js";
|
|
13
|
+
import { E as ze } from "./el-input-number-ebd64e22.js";
|
|
14
14
|
import "./el-tooltip-4ed993c7.js";
|
|
15
|
-
import { E as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { _ as
|
|
20
|
-
import { E as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { u as Tl } from "./index-c45ac024.js";
|
|
27
|
-
import { u as Sl } from "./index-ef7c4392.js";
|
|
15
|
+
import { E as Ne } from "./el-button-d39472d3.js";
|
|
16
|
+
import { p as me, i as yl, j as gl, E as bl } from "./index-3425f2f0.js";
|
|
17
|
+
import { _ as kl } from "./index.vue_vue_type_script_setup_true_lang-745718ff.js";
|
|
18
|
+
import { E as J } from "./el-message-bd1d2c82.js";
|
|
19
|
+
import { _ as $e } from "./_plugin-vue_export-helper-dad06003.js";
|
|
20
|
+
import { E as Pe } from "./index-d3c37134.js";
|
|
21
|
+
import { E as _l } from "./index-8ee89b40.js";
|
|
22
|
+
import { f as Be, b as Vl, d as xl, u as hl, c as Ol } from "./use-form-common-props-54c31983.js";
|
|
23
|
+
import { U as Ie, C as $l } from "./index-21fb27eb.js";
|
|
24
|
+
import { u as Il } from "./index-c45ac024.js";
|
|
25
|
+
import { u as wl } from "./index-ef7c4392.js";
|
|
28
26
|
import "./castArray-681d750b.js";
|
|
29
27
|
import "./index-fbe85773.js";
|
|
30
28
|
import "./scroll-0277d145.js";
|
|
@@ -35,15 +33,14 @@ import "./raf-36faa519.js";
|
|
|
35
33
|
import "./vnode-dfc92f20.js";
|
|
36
34
|
import "./typescript-7ae59c4c.js";
|
|
37
35
|
import "./index-657047bb.js";
|
|
38
|
-
import "./_commonjsHelpers-10dfc225.js";
|
|
39
36
|
import "./config-provider-93846ae3.js";
|
|
40
37
|
import "./dropdown-65e74de8.js";
|
|
41
|
-
const
|
|
38
|
+
const Ge = ie({
|
|
42
39
|
modelValue: {
|
|
43
40
|
type: [String, Number, Boolean],
|
|
44
41
|
default: void 0
|
|
45
42
|
},
|
|
46
|
-
size:
|
|
43
|
+
size: Be,
|
|
47
44
|
disabled: Boolean,
|
|
48
45
|
label: {
|
|
49
46
|
type: [String, Number, Boolean],
|
|
@@ -57,166 +54,166 @@ const He = ie({
|
|
|
57
54
|
type: String,
|
|
58
55
|
default: void 0
|
|
59
56
|
}
|
|
60
|
-
}),
|
|
61
|
-
...
|
|
57
|
+
}), Tl = ie({
|
|
58
|
+
...Ge,
|
|
62
59
|
border: Boolean
|
|
63
|
-
}),
|
|
64
|
-
[
|
|
65
|
-
[
|
|
66
|
-
},
|
|
67
|
-
const
|
|
60
|
+
}), Ye = {
|
|
61
|
+
[Ie]: (f) => Se(f) || Ce(f) || Ee(f),
|
|
62
|
+
[$l]: (f) => Se(f) || Ce(f) || Ee(f)
|
|
63
|
+
}, Je = Symbol("radioGroupKey"), Ae = (f, T) => {
|
|
64
|
+
const h = H(), s = rl(Je, void 0), V = A(() => !!s), U = A(() => Re(f.value) ? f.label : f.value), C = A({
|
|
68
65
|
get() {
|
|
69
|
-
return
|
|
66
|
+
return V.value ? s.modelValue : f.modelValue;
|
|
70
67
|
},
|
|
71
|
-
set(
|
|
72
|
-
|
|
68
|
+
set(m) {
|
|
69
|
+
V.value ? s.changeEvent(m) : T && T(Ie, m), h.value.checked = f.modelValue === U.value;
|
|
73
70
|
}
|
|
74
|
-
}),
|
|
75
|
-
return
|
|
71
|
+
}), S = Vl(A(() => s == null ? void 0 : s.size)), k = xl(A(() => s == null ? void 0 : s.disabled)), e = H(!1), P = A(() => k.value || V.value && C.value !== U.value ? -1 : 0);
|
|
72
|
+
return Il({
|
|
76
73
|
from: "label act as value",
|
|
77
74
|
replacement: "value",
|
|
78
75
|
version: "3.0.0",
|
|
79
76
|
scope: "el-radio",
|
|
80
77
|
ref: "https://element-plus.org/en-US/component/radio.html"
|
|
81
|
-
},
|
|
82
|
-
radioRef:
|
|
83
|
-
isGroup:
|
|
84
|
-
radioGroup:
|
|
78
|
+
}, A(() => V.value && Re(f.value))), {
|
|
79
|
+
radioRef: h,
|
|
80
|
+
isGroup: V,
|
|
81
|
+
radioGroup: s,
|
|
85
82
|
focus: e,
|
|
86
|
-
size:
|
|
87
|
-
disabled:
|
|
88
|
-
tabIndex:
|
|
89
|
-
modelValue:
|
|
90
|
-
actualValue:
|
|
83
|
+
size: S,
|
|
84
|
+
disabled: k,
|
|
85
|
+
tabIndex: P,
|
|
86
|
+
modelValue: C,
|
|
87
|
+
actualValue: U
|
|
91
88
|
};
|
|
92
|
-
},
|
|
89
|
+
}, Sl = le({
|
|
93
90
|
name: "ElRadio"
|
|
94
|
-
}),
|
|
95
|
-
...
|
|
96
|
-
props:
|
|
97
|
-
emits:
|
|
98
|
-
setup(
|
|
99
|
-
const
|
|
100
|
-
function
|
|
101
|
-
|
|
91
|
+
}), Cl = /* @__PURE__ */ le({
|
|
92
|
+
...Sl,
|
|
93
|
+
props: Tl,
|
|
94
|
+
emits: Ye,
|
|
95
|
+
setup(f, { emit: T }) {
|
|
96
|
+
const h = f, s = fe("radio"), { radioRef: V, radioGroup: U, focus: C, size: S, disabled: k, modelValue: e, actualValue: P } = Ae(h, T);
|
|
97
|
+
function m() {
|
|
98
|
+
Ve(() => T("change", e.value));
|
|
102
99
|
}
|
|
103
|
-
return (
|
|
104
|
-
var
|
|
105
|
-
return
|
|
106
|
-
class:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
100
|
+
return (i, M) => {
|
|
101
|
+
var j;
|
|
102
|
+
return u(), g("label", {
|
|
103
|
+
class: X([
|
|
104
|
+
b(s).b(),
|
|
105
|
+
b(s).is("disabled", b(k)),
|
|
106
|
+
b(s).is("focus", b(C)),
|
|
107
|
+
b(s).is("bordered", i.border),
|
|
108
|
+
b(s).is("checked", b(e) === b(P)),
|
|
109
|
+
b(s).m(b(S))
|
|
113
110
|
])
|
|
114
111
|
}, [
|
|
115
|
-
|
|
116
|
-
class:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
112
|
+
_("span", {
|
|
113
|
+
class: X([
|
|
114
|
+
b(s).e("input"),
|
|
115
|
+
b(s).is("disabled", b(k)),
|
|
116
|
+
b(s).is("checked", b(e) === b(P))
|
|
120
117
|
])
|
|
121
118
|
}, [
|
|
122
|
-
|
|
119
|
+
ke(_("input", {
|
|
123
120
|
ref_key: "radioRef",
|
|
124
|
-
ref:
|
|
125
|
-
"onUpdate:modelValue": (
|
|
126
|
-
class:
|
|
127
|
-
value:
|
|
128
|
-
name:
|
|
129
|
-
disabled:
|
|
130
|
-
checked:
|
|
121
|
+
ref: V,
|
|
122
|
+
"onUpdate:modelValue": (N) => De(e) ? e.value = N : null,
|
|
123
|
+
class: X(b(s).e("original")),
|
|
124
|
+
value: b(P),
|
|
125
|
+
name: i.name || ((j = b(U)) == null ? void 0 : j.name),
|
|
126
|
+
disabled: b(k),
|
|
127
|
+
checked: b(e) === b(P),
|
|
131
128
|
type: "radio",
|
|
132
|
-
onFocus: (
|
|
133
|
-
onBlur: (
|
|
134
|
-
onChange:
|
|
135
|
-
onClick:
|
|
129
|
+
onFocus: (N) => C.value = !0,
|
|
130
|
+
onBlur: (N) => C.value = !1,
|
|
131
|
+
onChange: m,
|
|
132
|
+
onClick: se(() => {
|
|
136
133
|
}, ["stop"])
|
|
137
134
|
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
|
|
138
|
-
[
|
|
135
|
+
[Fe, b(e)]
|
|
139
136
|
]),
|
|
140
|
-
|
|
141
|
-
class:
|
|
137
|
+
_("span", {
|
|
138
|
+
class: X(b(s).e("inner"))
|
|
142
139
|
}, null, 2)
|
|
143
140
|
], 2),
|
|
144
|
-
|
|
145
|
-
class:
|
|
146
|
-
onKeydown:
|
|
141
|
+
_("span", {
|
|
142
|
+
class: X(b(s).e("label")),
|
|
143
|
+
onKeydown: se(() => {
|
|
147
144
|
}, ["stop"])
|
|
148
145
|
}, [
|
|
149
|
-
|
|
150
|
-
|
|
146
|
+
_e(i.$slots, "default", {}, () => [
|
|
147
|
+
E(K(i.label), 1)
|
|
151
148
|
])
|
|
152
149
|
], 42, ["onKeydown"])
|
|
153
150
|
], 2);
|
|
154
151
|
};
|
|
155
152
|
}
|
|
156
153
|
});
|
|
157
|
-
var
|
|
158
|
-
const
|
|
159
|
-
...
|
|
160
|
-
}),
|
|
154
|
+
var El = /* @__PURE__ */ ye(Cl, [["__file", "radio.vue"]]);
|
|
155
|
+
const Rl = ie({
|
|
156
|
+
...Ge
|
|
157
|
+
}), Ul = le({
|
|
161
158
|
name: "ElRadioButton"
|
|
162
|
-
}),
|
|
163
|
-
...
|
|
164
|
-
props:
|
|
165
|
-
setup(
|
|
166
|
-
const
|
|
167
|
-
backgroundColor: (
|
|
168
|
-
borderColor: (
|
|
169
|
-
boxShadow:
|
|
170
|
-
color: (
|
|
159
|
+
}), Ml = /* @__PURE__ */ le({
|
|
160
|
+
...Ul,
|
|
161
|
+
props: Rl,
|
|
162
|
+
setup(f) {
|
|
163
|
+
const T = f, h = fe("radio"), { radioRef: s, focus: V, size: U, disabled: C, modelValue: S, radioGroup: k, actualValue: e } = Ae(T), P = A(() => ({
|
|
164
|
+
backgroundColor: (k == null ? void 0 : k.fill) || "",
|
|
165
|
+
borderColor: (k == null ? void 0 : k.fill) || "",
|
|
166
|
+
boxShadow: k != null && k.fill ? `-1px 0 0 0 ${k.fill}` : "",
|
|
167
|
+
color: (k == null ? void 0 : k.textColor) || ""
|
|
171
168
|
}));
|
|
172
|
-
return (
|
|
173
|
-
var
|
|
174
|
-
return
|
|
175
|
-
class:
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
169
|
+
return (m, i) => {
|
|
170
|
+
var M;
|
|
171
|
+
return u(), g("label", {
|
|
172
|
+
class: X([
|
|
173
|
+
b(h).b("button"),
|
|
174
|
+
b(h).is("active", b(S) === b(e)),
|
|
175
|
+
b(h).is("disabled", b(C)),
|
|
176
|
+
b(h).is("focus", b(V)),
|
|
177
|
+
b(h).bm("button", b(U))
|
|
181
178
|
])
|
|
182
179
|
}, [
|
|
183
|
-
|
|
180
|
+
ke(_("input", {
|
|
184
181
|
ref_key: "radioRef",
|
|
185
|
-
ref:
|
|
186
|
-
"onUpdate:modelValue": (
|
|
187
|
-
class:
|
|
188
|
-
value:
|
|
182
|
+
ref: s,
|
|
183
|
+
"onUpdate:modelValue": (j) => De(S) ? S.value = j : null,
|
|
184
|
+
class: X(b(h).be("button", "original-radio")),
|
|
185
|
+
value: b(e),
|
|
189
186
|
type: "radio",
|
|
190
|
-
name:
|
|
191
|
-
disabled:
|
|
192
|
-
onFocus: (
|
|
193
|
-
onBlur: (
|
|
194
|
-
onClick:
|
|
187
|
+
name: m.name || ((M = b(k)) == null ? void 0 : M.name),
|
|
188
|
+
disabled: b(C),
|
|
189
|
+
onFocus: (j) => V.value = !0,
|
|
190
|
+
onBlur: (j) => V.value = !1,
|
|
191
|
+
onClick: se(() => {
|
|
195
192
|
}, ["stop"])
|
|
196
193
|
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
|
|
197
|
-
[
|
|
194
|
+
[Fe, b(S)]
|
|
198
195
|
]),
|
|
199
|
-
|
|
200
|
-
class:
|
|
201
|
-
style:
|
|
202
|
-
onKeydown:
|
|
196
|
+
_("span", {
|
|
197
|
+
class: X(b(h).be("button", "inner")),
|
|
198
|
+
style: Le(b(S) === b(e) ? b(P) : {}),
|
|
199
|
+
onKeydown: se(() => {
|
|
203
200
|
}, ["stop"])
|
|
204
201
|
}, [
|
|
205
|
-
|
|
206
|
-
|
|
202
|
+
_e(m.$slots, "default", {}, () => [
|
|
203
|
+
E(K(m.label), 1)
|
|
207
204
|
])
|
|
208
205
|
], 46, ["onKeydown"])
|
|
209
206
|
], 2);
|
|
210
207
|
};
|
|
211
208
|
}
|
|
212
209
|
});
|
|
213
|
-
var
|
|
214
|
-
const
|
|
210
|
+
var Ke = /* @__PURE__ */ ye(Ml, [["__file", "radio-button.vue"]]);
|
|
211
|
+
const ql = ie({
|
|
215
212
|
id: {
|
|
216
213
|
type: String,
|
|
217
214
|
default: void 0
|
|
218
215
|
},
|
|
219
|
-
size:
|
|
216
|
+
size: Be,
|
|
220
217
|
disabled: Boolean,
|
|
221
218
|
modelValue: {
|
|
222
219
|
type: [String, Number, Boolean],
|
|
@@ -238,49 +235,49 @@ const Ll = ie({
|
|
|
238
235
|
type: Boolean,
|
|
239
236
|
default: !0
|
|
240
237
|
},
|
|
241
|
-
...
|
|
242
|
-
}), Dl =
|
|
238
|
+
...el(["ariaLabel"])
|
|
239
|
+
}), Dl = Ye, Fl = le({
|
|
243
240
|
name: "ElRadioGroup"
|
|
244
|
-
}),
|
|
245
|
-
...
|
|
246
|
-
props:
|
|
241
|
+
}), Ll = /* @__PURE__ */ le({
|
|
242
|
+
...Fl,
|
|
243
|
+
props: ql,
|
|
247
244
|
emits: Dl,
|
|
248
|
-
setup(
|
|
249
|
-
const
|
|
250
|
-
formItemContext:
|
|
251
|
-
}), e = (
|
|
252
|
-
|
|
245
|
+
setup(f, { emit: T }) {
|
|
246
|
+
const h = f, s = fe("radio"), V = wl(), U = H(), { formItem: C } = hl(), { inputId: S, isLabeledByFormItem: k } = Ol(h, {
|
|
247
|
+
formItemContext: C
|
|
248
|
+
}), e = (m) => {
|
|
249
|
+
T(Ie, m), Ve(() => T("change", m));
|
|
253
250
|
};
|
|
254
|
-
|
|
255
|
-
const
|
|
256
|
-
!Array.from(
|
|
251
|
+
sl(() => {
|
|
252
|
+
const m = U.value.querySelectorAll("[type=radio]"), i = m[0];
|
|
253
|
+
!Array.from(m).some((M) => M.checked) && i && (i.tabIndex = 0);
|
|
257
254
|
});
|
|
258
|
-
const
|
|
259
|
-
return
|
|
260
|
-
...
|
|
255
|
+
const P = A(() => h.name || V.value);
|
|
256
|
+
return il(Je, dl({
|
|
257
|
+
...cl(h),
|
|
261
258
|
changeEvent: e,
|
|
262
|
-
name:
|
|
263
|
-
})),
|
|
264
|
-
|
|
265
|
-
}), (
|
|
266
|
-
id:
|
|
259
|
+
name: P
|
|
260
|
+
})), oe(() => h.modelValue, () => {
|
|
261
|
+
h.validateEvent && (C == null || C.validate("change").catch((m) => We(m)));
|
|
262
|
+
}), (m, i) => (u(), g("div", {
|
|
263
|
+
id: b(S),
|
|
267
264
|
ref_key: "radioGroupRef",
|
|
268
|
-
ref:
|
|
269
|
-
class:
|
|
265
|
+
ref: U,
|
|
266
|
+
class: X(b(s).b("group")),
|
|
270
267
|
role: "radiogroup",
|
|
271
|
-
"aria-label":
|
|
272
|
-
"aria-labelledby":
|
|
268
|
+
"aria-label": b(k) ? void 0 : m.ariaLabel || "radio-group",
|
|
269
|
+
"aria-labelledby": b(k) ? b(C).labelId : void 0
|
|
273
270
|
}, [
|
|
274
|
-
|
|
271
|
+
_e(m.$slots, "default")
|
|
275
272
|
], 10, ["id", "aria-label", "aria-labelledby"]));
|
|
276
273
|
}
|
|
277
274
|
});
|
|
278
|
-
var
|
|
279
|
-
const
|
|
280
|
-
RadioButton:
|
|
281
|
-
RadioGroup:
|
|
282
|
-
}),
|
|
283
|
-
const
|
|
275
|
+
var Qe = /* @__PURE__ */ ye(Ll, [["__file", "radio-group.vue"]]);
|
|
276
|
+
const we = Xe(El, {
|
|
277
|
+
RadioButton: Ke,
|
|
278
|
+
RadioGroup: Qe
|
|
279
|
+
}), Te = qe(Qe), Ze = qe(Ke);
|
|
280
|
+
const Ue = {
|
|
284
281
|
// 品种市场 [选项: 预警字典1000]
|
|
285
282
|
varietyMarket: {
|
|
286
283
|
show: !0,
|
|
@@ -887,49 +884,49 @@ const Le = {
|
|
|
887
884
|
]
|
|
888
885
|
}
|
|
889
886
|
};
|
|
890
|
-
const
|
|
891
|
-
!
|
|
892
|
-
},
|
|
893
|
-
const
|
|
894
|
-
return
|
|
895
|
-
},
|
|
887
|
+
const jl = (f, T, h) => {
|
|
888
|
+
!T[0] && T[0] !== 0 && !T[1] && T[1] !== 0 ? h(new Error("至少填写一个分数")) : h();
|
|
889
|
+
}, Me = (f) => {
|
|
890
|
+
const T = /(条件(\d+))/g;
|
|
891
|
+
return f.match(T) || [];
|
|
892
|
+
}, zl = {
|
|
896
893
|
__name: "FactorDescription",
|
|
897
|
-
props: /* @__PURE__ */
|
|
894
|
+
props: /* @__PURE__ */ de({
|
|
898
895
|
data: { type: Array, default: [] }
|
|
899
896
|
}, {
|
|
900
897
|
visible: { default: !1 },
|
|
901
898
|
visibleModifiers: {}
|
|
902
899
|
}),
|
|
903
900
|
emits: ["update:visible"],
|
|
904
|
-
setup(
|
|
905
|
-
const
|
|
906
|
-
return (
|
|
907
|
-
const
|
|
908
|
-
return
|
|
909
|
-
modelValue:
|
|
910
|
-
"onUpdate:modelValue":
|
|
901
|
+
setup(f) {
|
|
902
|
+
const T = ce(f, "visible");
|
|
903
|
+
return (h, s) => {
|
|
904
|
+
const V = al, U = nl, C = Oe;
|
|
905
|
+
return u(), L(C, {
|
|
906
|
+
modelValue: T.value,
|
|
907
|
+
"onUpdate:modelValue": s[0] || (s[0] = (S) => T.value = S),
|
|
911
908
|
title: "因子使用说明",
|
|
912
909
|
width: "1000",
|
|
913
910
|
"align-center": "",
|
|
914
911
|
"destroy-on-close": ""
|
|
915
912
|
}, {
|
|
916
913
|
default: d(() => [
|
|
917
|
-
t(
|
|
918
|
-
data:
|
|
914
|
+
t(U, {
|
|
915
|
+
data: f.data,
|
|
919
916
|
border: "",
|
|
920
917
|
height: "500"
|
|
921
918
|
}, {
|
|
922
919
|
default: d(() => [
|
|
923
|
-
t(
|
|
920
|
+
t(V, {
|
|
924
921
|
prop: "factorName",
|
|
925
922
|
label: "因子名称",
|
|
926
923
|
width: "200"
|
|
927
924
|
}),
|
|
928
|
-
t(
|
|
925
|
+
t(V, {
|
|
929
926
|
prop: "factorDesc",
|
|
930
927
|
label: "因子说明"
|
|
931
928
|
}),
|
|
932
|
-
t(
|
|
929
|
+
t(V, {
|
|
933
930
|
prop: "factorScoreDefine",
|
|
934
931
|
label: "分值定义"
|
|
935
932
|
})
|
|
@@ -942,266 +939,12 @@ const Nl = (g, S, I) => {
|
|
|
942
939
|
};
|
|
943
940
|
}
|
|
944
941
|
};
|
|
945
|
-
const
|
|
946
|
-
__name: "VarietySelect",
|
|
947
|
-
props: {
|
|
948
|
-
size: { type: String, default: "default" },
|
|
949
|
-
placeholder: { type: String, default: "请输入品种名称或代码" },
|
|
950
|
-
labelShowEnable: { type: Boolean, default: !0 },
|
|
951
|
-
// 是否开启展示label
|
|
952
|
-
selectClearEnable: { type: Boolean, default: !0 }
|
|
953
|
-
// 是否开启选择回调后清除输入框值
|
|
954
|
-
},
|
|
955
|
-
emits: ["select", "change"],
|
|
956
|
-
setup(g, { emit: S }) {
|
|
957
|
-
const I = Ve("stConfig"), r = S, k = g, q = G(""), R = async (e, F) => {
|
|
958
|
-
if (e === "" || e === "null")
|
|
959
|
-
F([]);
|
|
960
|
-
else {
|
|
961
|
-
const v = {
|
|
962
|
-
keyWord: e,
|
|
963
|
-
pageNum: 1,
|
|
964
|
-
pageSize: 999,
|
|
965
|
-
userId: kl("id"),
|
|
966
|
-
hotSearchFlag: 1
|
|
967
|
-
}, { body: s } = await I.request.post("/common/qt/getFeatureInfosByPage", v), L = s.list.map(({ code: C, featureName: E }) => ({
|
|
968
|
-
label: `${C} ${E}`,
|
|
969
|
-
value: C
|
|
970
|
-
}));
|
|
971
|
-
F(L);
|
|
972
|
-
}
|
|
973
|
-
}, w = ({ label: e, value: F }) => {
|
|
974
|
-
const v = e.split(" ").at(-1);
|
|
975
|
-
r("select", { name: v, code: F }), k.selectClearEnable && (q.value = "");
|
|
976
|
-
}, _ = (e) => {
|
|
977
|
-
r("change", e);
|
|
978
|
-
};
|
|
979
|
-
return (e, F) => {
|
|
980
|
-
const v = _l;
|
|
981
|
-
return a(), y("div", Bl, [
|
|
982
|
-
g.labelShowEnable ? (a(), y("span", Gl, "品种搜索:")) : M("", !0),
|
|
983
|
-
t(v, {
|
|
984
|
-
modelValue: q.value,
|
|
985
|
-
"onUpdate:modelValue": F[0] || (F[0] = (s) => q.value = s),
|
|
986
|
-
clearable: "",
|
|
987
|
-
size: k.size,
|
|
988
|
-
placeholder: k.placeholder,
|
|
989
|
-
"fetch-suggestions": R,
|
|
990
|
-
onSelect: w,
|
|
991
|
-
onChange: _
|
|
992
|
-
}, {
|
|
993
|
-
default: d(({ item: s }) => [
|
|
994
|
-
b("div", Yl, A(s.label), 1)
|
|
995
|
-
]),
|
|
996
|
-
_: 1
|
|
997
|
-
}, 8, ["modelValue", "size", "placeholder"])
|
|
998
|
-
]);
|
|
999
|
-
};
|
|
1000
|
-
}
|
|
1001
|
-
}, Jl = /* @__PURE__ */ oe(Al, [["__scopeId", "data-v-32166a24"]]);
|
|
1002
|
-
const Kl = (g) => (fe("data-v-4089bd1f"), g = g(), ye(), g), Ql = { class: "custom-header" }, Hl = { class: "left" }, Zl = /* @__PURE__ */ Kl(() => /* @__PURE__ */ b("span", null, " 选择变量 ", -1)), Wl = { class: "right" }, Xl = { class: "custom-body" }, et = { class: "config-list" }, lt = { class: "config-item" }, tt = { key: 0 }, at = { key: 0 }, nt = { key: 0 }, ot = {
|
|
1003
|
-
__name: "ScriptSelect",
|
|
1004
|
-
setup(g, { expose: S }) {
|
|
1005
|
-
const I = Ve("stConfig"), r = G(null), k = G((window.innerHeight - 542) / 2 - 220 > 0 ? (window.innerHeight - 542) / 2 - 220 : 0), q = G((window.innerWidth - 1e3) / 2 > 0 ? (window.innerWidth - 1e3) / 2 : 0), R = G(null), w = G(!1), _ = G(0), e = G(null), F = G([]), v = Q(() => {
|
|
1006
|
-
var C;
|
|
1007
|
-
return ((C = F.value.find((E) => E.varName === e.value)) == null ? void 0 : C.formatList) ?? [];
|
|
1008
|
-
}), s = (C) => C.replace(/^\[|\]$/g, "").split("],[").map((x) => {
|
|
1009
|
-
const l = x.replace(/\[|\]/g, ""), [m, p] = l.split(",");
|
|
1010
|
-
return {
|
|
1011
|
-
label: m.trim(),
|
|
1012
|
-
value: p.trim()
|
|
1013
|
-
};
|
|
1014
|
-
}), L = (C) => {
|
|
1015
|
-
const E = [];
|
|
1016
|
-
for (let n = 0; n < C.length; n++) {
|
|
1017
|
-
const c = C[n];
|
|
1018
|
-
switch (console.log(c), c.vtype) {
|
|
1019
|
-
case "text": {
|
|
1020
|
-
E.push(c.param);
|
|
1021
|
-
break;
|
|
1022
|
-
}
|
|
1023
|
-
default: {
|
|
1024
|
-
if (!c.modelValue)
|
|
1025
|
-
return K.error("请检查插入格式内是否填写完整");
|
|
1026
|
-
E.push(c.suffix ? `${c.modelValue}${c.suffix}` : `${c.modelValue}`);
|
|
1027
|
-
break;
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1031
|
-
const B = E.join("_"), x = R.value.getInstance(), l = x.getPosition(), p = R.value.getValue().split(`
|
|
1032
|
-
`);
|
|
1033
|
-
if (l.lineNumber <= p.length) {
|
|
1034
|
-
const n = l.lineNumber - 1, c = p[n], o = c.substring(0, l.column - 1) + B + c.substring(l.column - 1);
|
|
1035
|
-
p[n] = o;
|
|
1036
|
-
const h = p.join(`
|
|
1037
|
-
`);
|
|
1038
|
-
R.value.setValue(h);
|
|
1039
|
-
const u = l.column + B.length;
|
|
1040
|
-
x.setPosition({
|
|
1041
|
-
lineNumber: l.lineNumber,
|
|
1042
|
-
column: u
|
|
1043
|
-
}), x.focus();
|
|
1044
|
-
}
|
|
1045
|
-
};
|
|
1046
|
-
return Be(async () => {
|
|
1047
|
-
const { body: C } = await I.request.post("/common/conf/queryAllBackVariables", { useCase: "1" });
|
|
1048
|
-
F.value = C;
|
|
1049
|
-
}), S({
|
|
1050
|
-
open: (C, E) => {
|
|
1051
|
-
R.value = C, _.value = E, w.value = !0;
|
|
1052
|
-
const B = document.querySelector("body");
|
|
1053
|
-
Fe(r.value).draggable({
|
|
1054
|
-
allowFrom: ".custom-header",
|
|
1055
|
-
// 只有 .custom-header 元素可以触发拖拽
|
|
1056
|
-
// 限制拖拽范围
|
|
1057
|
-
modifiers: [
|
|
1058
|
-
Fe.modifiers.restrictRect({
|
|
1059
|
-
restriction: B,
|
|
1060
|
-
// 限制在拖拽区域内
|
|
1061
|
-
endOnly: !1
|
|
1062
|
-
// 实时限制
|
|
1063
|
-
})
|
|
1064
|
-
],
|
|
1065
|
-
listeners: {
|
|
1066
|
-
move(x) {
|
|
1067
|
-
q.value -= x.dx, k.value += x.dy;
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
});
|
|
1071
|
-
},
|
|
1072
|
-
close: () => {
|
|
1073
|
-
w.value = !1;
|
|
1074
|
-
}
|
|
1075
|
-
}), (C, E) => {
|
|
1076
|
-
const B = de, x = ce, l = Je, m = we, p = Te, n = je;
|
|
1077
|
-
return pe((a(), y("div", {
|
|
1078
|
-
class: "var-select-dialog",
|
|
1079
|
-
ref_key: "dialogRef",
|
|
1080
|
-
ref: r,
|
|
1081
|
-
style: Oe({ right: `${q.value}px`, top: `${k.value}px`, zIndex: _.value })
|
|
1082
|
-
}, [
|
|
1083
|
-
b("div", Ql, [
|
|
1084
|
-
b("div", Hl, [
|
|
1085
|
-
Zl,
|
|
1086
|
-
t(x, {
|
|
1087
|
-
modelValue: e.value,
|
|
1088
|
-
"onUpdate:modelValue": E[0] || (E[0] = (c) => e.value = c),
|
|
1089
|
-
placeholder: "选择变量",
|
|
1090
|
-
filterable: "",
|
|
1091
|
-
clearable: ""
|
|
1092
|
-
}, {
|
|
1093
|
-
default: d(() => [
|
|
1094
|
-
(a(!0), y(U, null, P(F.value, (c, o) => (a(), z(B, {
|
|
1095
|
-
key: o,
|
|
1096
|
-
label: c.varName,
|
|
1097
|
-
value: c.varName
|
|
1098
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
1099
|
-
]),
|
|
1100
|
-
_: 1
|
|
1101
|
-
}, 8, ["modelValue"])
|
|
1102
|
-
]),
|
|
1103
|
-
b("div", Wl, [
|
|
1104
|
-
t(l, {
|
|
1105
|
-
class: "el-icon--left",
|
|
1106
|
-
onClick: E[1] || (E[1] = (c) => w.value = !1)
|
|
1107
|
-
}, {
|
|
1108
|
-
default: d(() => [
|
|
1109
|
-
t(V(gl))
|
|
1110
|
-
]),
|
|
1111
|
-
_: 1
|
|
1112
|
-
})
|
|
1113
|
-
])
|
|
1114
|
-
]),
|
|
1115
|
-
b("div", Xl, [
|
|
1116
|
-
v.value.length ? (a(!0), y(U, { key: 0 }, P(v.value, (c, o) => (a(), y("div", {
|
|
1117
|
-
class: "format-item",
|
|
1118
|
-
key: o
|
|
1119
|
-
}, [
|
|
1120
|
-
b("span", null, "格式" + A(o + 1) + ":", 1),
|
|
1121
|
-
b("div", et, [
|
|
1122
|
-
(a(!0), y(U, null, P(c.configList, (h, u) => (a(), y(U, null, [
|
|
1123
|
-
b("div", lt, [
|
|
1124
|
-
h.vtype === "text" ? (a(), y("span", tt, A(h.param), 1)) : M("", !0),
|
|
1125
|
-
h.vtype === "inputVariety" ? (a(), z(Jl, {
|
|
1126
|
-
key: 1,
|
|
1127
|
-
size: "small",
|
|
1128
|
-
placeholder: h.param,
|
|
1129
|
-
selectClearEnable: !1,
|
|
1130
|
-
labelShowEnable: !1,
|
|
1131
|
-
onSelect: ({ name: O, code: f }) => h.modelValue = f,
|
|
1132
|
-
onChange: (O) => h.modelValue = O,
|
|
1133
|
-
style: { width: "100px" }
|
|
1134
|
-
}, null, 8, ["placeholder", "onSelect", "onChange"])) : M("", !0),
|
|
1135
|
-
h.vtype === "input" ? (a(), y(U, { key: 2 }, [
|
|
1136
|
-
t(m, {
|
|
1137
|
-
modelValue: h.modelValue,
|
|
1138
|
-
"onUpdate:modelValue": (O) => h.modelValue = O,
|
|
1139
|
-
placeholder: h.param,
|
|
1140
|
-
size: "small"
|
|
1141
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]),
|
|
1142
|
-
h.suffix ? (a(), y("span", at, A(h.suffix), 1)) : M("", !0)
|
|
1143
|
-
], 64)) : M("", !0),
|
|
1144
|
-
h.vtype === "select" ? (a(), z(x, {
|
|
1145
|
-
key: 3,
|
|
1146
|
-
modelValue: h.modelValue,
|
|
1147
|
-
"onUpdate:modelValue": (O) => h.modelValue = O,
|
|
1148
|
-
placeholder: h.param,
|
|
1149
|
-
clearable: "",
|
|
1150
|
-
size: "small"
|
|
1151
|
-
}, {
|
|
1152
|
-
default: d(() => [
|
|
1153
|
-
(a(!0), y(U, null, P(s(h.optionsStr), (O) => (a(), z(B, {
|
|
1154
|
-
key: O.value,
|
|
1155
|
-
label: O.label,
|
|
1156
|
-
value: O.value
|
|
1157
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
1158
|
-
]),
|
|
1159
|
-
_: 2
|
|
1160
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : M("", !0)
|
|
1161
|
-
]),
|
|
1162
|
-
u !== c.configList.length - 1 ? (a(), y("span", nt, "_")) : M("", !0)
|
|
1163
|
-
], 64))), 256))
|
|
1164
|
-
]),
|
|
1165
|
-
t(p, {
|
|
1166
|
-
type: "primary",
|
|
1167
|
-
plain: "",
|
|
1168
|
-
size: "small",
|
|
1169
|
-
onClick: (h) => L(c.configList)
|
|
1170
|
-
}, {
|
|
1171
|
-
default: d(() => [
|
|
1172
|
-
D(" 插入变量 ")
|
|
1173
|
-
]),
|
|
1174
|
-
_: 2
|
|
1175
|
-
}, 1032, ["onClick"]),
|
|
1176
|
-
t(n, {
|
|
1177
|
-
effect: "dark",
|
|
1178
|
-
content: c.tip,
|
|
1179
|
-
placement: "top-start"
|
|
1180
|
-
}, {
|
|
1181
|
-
default: d(() => [
|
|
1182
|
-
t(l, null, {
|
|
1183
|
-
default: d(() => [
|
|
1184
|
-
t(V(Ae))
|
|
1185
|
-
]),
|
|
1186
|
-
_: 1
|
|
1187
|
-
})
|
|
1188
|
-
]),
|
|
1189
|
-
_: 2
|
|
1190
|
-
}, 1032, ["content"])
|
|
1191
|
-
]))), 128)) : M("", !0)
|
|
1192
|
-
])
|
|
1193
|
-
], 4)), [
|
|
1194
|
-
[Ge, w.value]
|
|
1195
|
-
]);
|
|
1196
|
-
};
|
|
1197
|
-
}
|
|
1198
|
-
}, ut = /* @__PURE__ */ oe(ot, [["__scopeId", "data-v-4089bd1f"]]);
|
|
1199
|
-
const al = (g) => (fe("data-v-4af31cc3"), g = g(), ye(), g), st = { class: "factor-screen" }, rt = { style: { "white-space": "pre-line" } }, it = { class: "custom-header" }, dt = ["id"], ct = {
|
|
942
|
+
const He = (f) => (xe("data-v-28dc31e2"), f = f(), he(), f), Nl = { class: "factor-screen" }, Pl = { style: { "white-space": "pre-line" } }, Bl = { class: "custom-header" }, Gl = ["id"], Yl = {
|
|
1200
943
|
key: 0,
|
|
1201
944
|
style: { flex: "1", "text-align": "right" }
|
|
1202
|
-
},
|
|
945
|
+
}, Jl = { class: "form-row" }, Al = { class: "index" }, Kl = { style: { display: "flex", "align-items": "center", width: "100%", height: "24px" } }, Ql = /* @__PURE__ */ He(() => /* @__PURE__ */ _("span", null, "~", -1)), Zl = /* @__PURE__ */ He(() => /* @__PURE__ */ _("span", null, "&&代表and,||代表or", -1)), Hl = { class: "dialog-footer" }, Wl = {
|
|
1203
946
|
__name: "index",
|
|
1204
|
-
props: /* @__PURE__ */
|
|
947
|
+
props: /* @__PURE__ */ de({
|
|
1205
948
|
config: {
|
|
1206
949
|
type: Object,
|
|
1207
950
|
default: {
|
|
@@ -1230,12 +973,12 @@ const al = (g) => (fe("data-v-4af31cc3"), g = g(), ye(), g), st = { class: "fact
|
|
|
1230
973
|
dataModifiers: {}
|
|
1231
974
|
}),
|
|
1232
975
|
emits: ["update:data"],
|
|
1233
|
-
setup(
|
|
1234
|
-
const
|
|
976
|
+
setup(f) {
|
|
977
|
+
const T = f, h = ce(f, "data"), s = H(), V = H(), U = H(!1), C = H(!1), S = H("模版"), k = H(null), e = H({
|
|
1235
978
|
// 筛选因子列表
|
|
1236
979
|
list: [
|
|
1237
980
|
{
|
|
1238
|
-
cycle:
|
|
981
|
+
cycle: T.config.cycleDefault ?? null,
|
|
1239
982
|
// 周期
|
|
1240
983
|
factor: null,
|
|
1241
984
|
// 因子
|
|
@@ -1250,100 +993,100 @@ const al = (g) => (fe("data-v-4af31cc3"), g = g(), ye(), g), st = { class: "fact
|
|
|
1250
993
|
// 脚本语句
|
|
1251
994
|
factorSelectExpr: ""
|
|
1252
995
|
});
|
|
1253
|
-
|
|
1254
|
-
(
|
|
996
|
+
oe(() => [S.value, U.value], () => {
|
|
997
|
+
(S.value === "模版" || U.value === !1) && V.value.close();
|
|
1255
998
|
}, { deep: !0 });
|
|
1256
|
-
const
|
|
1257
|
-
const { list: l, sqlEnable:
|
|
999
|
+
const P = () => {
|
|
1000
|
+
const { list: l, sqlEnable: v, sqlValue: p, factorSelectExpr: r } = h.value;
|
|
1258
1001
|
e.value = {
|
|
1259
1002
|
list: JSON.parse(JSON.stringify(l)),
|
|
1260
|
-
sqlEnable:
|
|
1003
|
+
sqlEnable: v,
|
|
1261
1004
|
sqlValue: p,
|
|
1262
|
-
factorSelectExpr:
|
|
1263
|
-
}, e.value.list.length ||
|
|
1264
|
-
|
|
1005
|
+
factorSelectExpr: r
|
|
1006
|
+
}, e.value.list.length || M(), U.value = !0, Ve(() => {
|
|
1007
|
+
r ? (S.value = "脚本", s.value.setValue(r)) : S.value = "模版", s.value.resize();
|
|
1265
1008
|
});
|
|
1266
|
-
},
|
|
1267
|
-
if (
|
|
1268
|
-
|
|
1269
|
-
const { list:
|
|
1009
|
+
}, m = () => {
|
|
1010
|
+
if (S.value === "模版")
|
|
1011
|
+
k.value.validate((l) => {
|
|
1012
|
+
const { list: v, sqlEnable: p, sqlValue: r } = e.value;
|
|
1270
1013
|
if (l) {
|
|
1271
1014
|
if (p) {
|
|
1272
|
-
if (!
|
|
1273
|
-
return
|
|
1274
|
-
const
|
|
1275
|
-
if (
|
|
1276
|
-
return
|
|
1015
|
+
if (!r)
|
|
1016
|
+
return J.error("SQL语句不能为空");
|
|
1017
|
+
const y = Me(r), o = v.map((n, $) => `条件${$ + 1}`), w = y.filter((n) => !o.includes(n));
|
|
1018
|
+
if (w.length)
|
|
1019
|
+
return J.error(`请检查SQL语句, 不存在[${w}]`);
|
|
1277
1020
|
}
|
|
1278
|
-
|
|
1279
|
-
list: JSON.parse(JSON.stringify(
|
|
1021
|
+
h.value = {
|
|
1022
|
+
list: JSON.parse(JSON.stringify(v)),
|
|
1280
1023
|
sqlEnable: p,
|
|
1281
|
-
sqlValue:
|
|
1024
|
+
sqlValue: r,
|
|
1282
1025
|
factorSelectExpr: ""
|
|
1283
|
-
},
|
|
1026
|
+
}, U.value = !1;
|
|
1284
1027
|
}
|
|
1285
1028
|
});
|
|
1286
1029
|
else {
|
|
1287
|
-
const l =
|
|
1030
|
+
const l = s.value.getValue();
|
|
1288
1031
|
if (!l)
|
|
1289
|
-
return
|
|
1290
|
-
|
|
1032
|
+
return J.error("请输入脚本语句");
|
|
1033
|
+
h.value = {
|
|
1291
1034
|
list: [],
|
|
1292
1035
|
sqlEnable: 0,
|
|
1293
1036
|
sqlValue: null,
|
|
1294
1037
|
factorSelectExpr: l
|
|
1295
|
-
},
|
|
1038
|
+
}, U.value = !1;
|
|
1296
1039
|
}
|
|
1297
|
-
},
|
|
1040
|
+
}, i = (l) => {
|
|
1298
1041
|
e.value.list.splice(l, 1);
|
|
1299
|
-
},
|
|
1042
|
+
}, M = (l) => {
|
|
1300
1043
|
switch (l) {
|
|
1301
1044
|
case "compare": {
|
|
1302
1045
|
e.value.list.push({
|
|
1303
1046
|
key: "compare",
|
|
1304
|
-
cycle:
|
|
1047
|
+
cycle: T.config.cycleDefault ?? null,
|
|
1305
1048
|
factor: null,
|
|
1306
1049
|
compareType: ">",
|
|
1307
|
-
cycle2:
|
|
1050
|
+
cycle2: T.config.cycleDefault ?? null,
|
|
1308
1051
|
factor2: null
|
|
1309
1052
|
});
|
|
1310
1053
|
break;
|
|
1311
1054
|
}
|
|
1312
1055
|
default: {
|
|
1313
1056
|
e.value.list.push({
|
|
1314
|
-
cycle:
|
|
1057
|
+
cycle: T.config.cycleDefault ?? null,
|
|
1315
1058
|
factor: null,
|
|
1316
1059
|
score: [null, null]
|
|
1317
1060
|
});
|
|
1318
1061
|
break;
|
|
1319
1062
|
}
|
|
1320
1063
|
}
|
|
1321
|
-
},
|
|
1322
|
-
|
|
1064
|
+
}, j = () => {
|
|
1065
|
+
k.value.validate((l) => {
|
|
1323
1066
|
if (l)
|
|
1324
1067
|
if (e.value.sqlValue) {
|
|
1325
|
-
const
|
|
1326
|
-
e.value.sqlValue = e.value.list.reduce((p,
|
|
1068
|
+
const v = Me(e.value.sqlValue);
|
|
1069
|
+
e.value.sqlValue = e.value.list.reduce((p, r, y) => (v.includes(`条件${y + 1}`) || (p += `&& 条件${y + 1} `), p), e.value.sqlValue);
|
|
1327
1070
|
} else
|
|
1328
|
-
e.value.sqlValue = e.value.list.reduce((
|
|
1071
|
+
e.value.sqlValue = e.value.list.reduce((v, p, r) => (r === 0 ? v += `条件${r + 1} ` : v += `&& 条件${r + 1} `, v), "");
|
|
1329
1072
|
});
|
|
1330
|
-
},
|
|
1073
|
+
}, N = (l) => {
|
|
1331
1074
|
switch (l.key) {
|
|
1332
1075
|
case "compare": {
|
|
1333
|
-
const { cycle:
|
|
1334
|
-
let
|
|
1335
|
-
return
|
|
1076
|
+
const { cycle: v, factor: p, compareType: r, cycle2: y, factor2: o } = l;
|
|
1077
|
+
let w = "";
|
|
1078
|
+
return w += ` ${T.config.cycleOptions.find(({ value: n }) => n === v).label}`, w += ` ${T.config.factorOptions.find(({ value: n }) => n === p).label}`, w += ` ${r}`, w += ` ${T.config.cycleOptions.find(({ value: n }) => n === y).label}`, w += ` ${T.config.factorOptions.find(({ value: n }) => n === o).label}`, w;
|
|
1336
1079
|
}
|
|
1337
1080
|
default: {
|
|
1338
|
-
const { cycle:
|
|
1339
|
-
let
|
|
1340
|
-
return
|
|
1081
|
+
const { cycle: v, factor: p, score: r } = l;
|
|
1082
|
+
let y = "";
|
|
1083
|
+
return y += ` ${T.config.cycleOptions.find(({ value: o }) => o === v).label}`, y += ` ${T.config.factorOptions.find(({ value: o }) => o === p).label}`, y += ` ${r[0] || r[0] === 0 ? `${r[0]}分` : "∞"}`, y += " ~", y += ` ${r[1] || r[1] === 0 ? `${r[1]}分` : "∞"}`, y;
|
|
1341
1084
|
}
|
|
1342
1085
|
}
|
|
1343
|
-
},
|
|
1086
|
+
}, Q = (l, v) => {
|
|
1344
1087
|
switch (l) {
|
|
1345
1088
|
case "sqlTag": {
|
|
1346
|
-
|
|
1089
|
+
h.value = {
|
|
1347
1090
|
list: [],
|
|
1348
1091
|
sqlEnable: 0,
|
|
1349
1092
|
sqlValue: null
|
|
@@ -1351,11 +1094,11 @@ const al = (g) => (fe("data-v-4af31cc3"), g = g(), ye(), g), st = { class: "fact
|
|
|
1351
1094
|
break;
|
|
1352
1095
|
}
|
|
1353
1096
|
case "factorTag": {
|
|
1354
|
-
|
|
1097
|
+
h.value.list.splice(v, 1);
|
|
1355
1098
|
break;
|
|
1356
1099
|
}
|
|
1357
1100
|
case "scriptTag": {
|
|
1358
|
-
|
|
1101
|
+
h.value = {
|
|
1359
1102
|
list: [],
|
|
1360
1103
|
sqlEnable: 0,
|
|
1361
1104
|
sqlValue: null,
|
|
@@ -1365,22 +1108,22 @@ const al = (g) => (fe("data-v-4af31cc3"), g = g(), ye(), g), st = { class: "fact
|
|
|
1365
1108
|
}
|
|
1366
1109
|
}
|
|
1367
1110
|
}, x = () => {
|
|
1368
|
-
var
|
|
1369
|
-
const l = (
|
|
1370
|
-
console.log(l),
|
|
1111
|
+
var v, p, r;
|
|
1112
|
+
const l = (r = (p = (v = document.getElementsByClassName("factor-dialog")) == null ? void 0 : v[0]) == null ? void 0 : p.style) == null ? void 0 : r.zIndex;
|
|
1113
|
+
console.log(l), V.value.open(s.value, l);
|
|
1371
1114
|
};
|
|
1372
|
-
return (l,
|
|
1373
|
-
var
|
|
1374
|
-
const p =
|
|
1375
|
-
return
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1115
|
+
return (l, v) => {
|
|
1116
|
+
var G;
|
|
1117
|
+
const p = tl, r = Pe, y = _l, o = Ne, w = bl, n = ll, $ = Ze, c = Te, q = ge, D = be, a = ml, W = ze, ae = we, ue = je, re = fl, ne = Oe, Y = pl("st-varSelectDialog");
|
|
1118
|
+
return u(), g(R, null, [
|
|
1119
|
+
_("div", Nl, [
|
|
1120
|
+
_("div", null, [
|
|
1121
|
+
h.value.sqlEnable && h.value.sqlValue ? (u(), L(r, {
|
|
1379
1122
|
key: 0,
|
|
1380
1123
|
closable: "",
|
|
1381
1124
|
type: "info",
|
|
1382
|
-
title:
|
|
1383
|
-
onClose:
|
|
1125
|
+
title: h.value.sqlValue,
|
|
1126
|
+
onClose: v[0] || (v[0] = (I) => Q("sqlTag"))
|
|
1384
1127
|
}, {
|
|
1385
1128
|
default: d(() => [
|
|
1386
1129
|
t(p, {
|
|
@@ -1389,192 +1132,192 @@ const al = (g) => (fe("data-v-4af31cc3"), g = g(), ye(), g), st = { class: "fact
|
|
|
1389
1132
|
style: { "max-width": "500px" }
|
|
1390
1133
|
}, {
|
|
1391
1134
|
default: d(() => [
|
|
1392
|
-
|
|
1135
|
+
E(K(h.value.sqlValue), 1)
|
|
1393
1136
|
]),
|
|
1394
1137
|
_: 1
|
|
1395
1138
|
})
|
|
1396
1139
|
]),
|
|
1397
1140
|
_: 1
|
|
1398
|
-
}, 8, ["title"])) :
|
|
1399
|
-
!
|
|
1141
|
+
}, 8, ["title"])) : F("", !0),
|
|
1142
|
+
!h.value.sqlEnable && h.value.list.length ? (u(!0), g(R, { key: 1 }, z(h.value.list, (I, Z) => (u(), L(r, {
|
|
1400
1143
|
closable: "",
|
|
1401
1144
|
type: "info",
|
|
1402
|
-
onClose: (
|
|
1145
|
+
onClose: (O) => Q("factorTag", Z)
|
|
1403
1146
|
}, {
|
|
1404
1147
|
default: d(() => [
|
|
1405
|
-
|
|
1148
|
+
E(K(N(I)), 1)
|
|
1406
1149
|
]),
|
|
1407
1150
|
_: 2
|
|
1408
|
-
}, 1032, ["onClose"]))), 256)) :
|
|
1409
|
-
|
|
1151
|
+
}, 1032, ["onClose"]))), 256)) : F("", !0),
|
|
1152
|
+
h.value.factorSelectExpr ? (u(), L(y, {
|
|
1410
1153
|
key: 2,
|
|
1411
1154
|
width: "500",
|
|
1412
1155
|
placement: "bottom-start"
|
|
1413
1156
|
}, {
|
|
1414
1157
|
reference: d(() => [
|
|
1415
|
-
t(
|
|
1158
|
+
t(r, {
|
|
1416
1159
|
closable: "",
|
|
1417
1160
|
type: "info",
|
|
1418
|
-
onClose:
|
|
1161
|
+
onClose: v[1] || (v[1] = (I) => Q("scriptTag"))
|
|
1419
1162
|
}, {
|
|
1420
1163
|
default: d(() => [
|
|
1421
|
-
|
|
1164
|
+
E(" 脚本模式 ")
|
|
1422
1165
|
]),
|
|
1423
1166
|
_: 1
|
|
1424
1167
|
})
|
|
1425
1168
|
]),
|
|
1426
1169
|
default: d(() => [
|
|
1427
|
-
|
|
1170
|
+
_("div", Pl, K(h.value.factorSelectExpr), 1)
|
|
1428
1171
|
]),
|
|
1429
1172
|
_: 1
|
|
1430
|
-
})) :
|
|
1173
|
+
})) : F("", !0),
|
|
1431
1174
|
t(o, {
|
|
1432
1175
|
class: "screen-btn",
|
|
1433
1176
|
type: "primary",
|
|
1434
1177
|
plain: "",
|
|
1435
1178
|
size: "small",
|
|
1436
|
-
icon:
|
|
1437
|
-
onClick:
|
|
1179
|
+
icon: b(me),
|
|
1180
|
+
onClick: P
|
|
1438
1181
|
}, {
|
|
1439
1182
|
default: d(() => [
|
|
1440
|
-
|
|
1183
|
+
E(" 添加因子 ")
|
|
1441
1184
|
]),
|
|
1442
1185
|
_: 1
|
|
1443
1186
|
}, 8, ["icon"])
|
|
1444
1187
|
]),
|
|
1445
|
-
t(
|
|
1188
|
+
t(ne, {
|
|
1446
1189
|
"modal-class": "factor-dialog",
|
|
1447
|
-
modelValue:
|
|
1448
|
-
"onUpdate:modelValue":
|
|
1190
|
+
modelValue: U.value,
|
|
1191
|
+
"onUpdate:modelValue": v[7] || (v[7] = (I) => U.value = I),
|
|
1449
1192
|
width: "1000",
|
|
1450
1193
|
"align-center": "",
|
|
1451
1194
|
"destroy-on-close": ""
|
|
1452
1195
|
}, {
|
|
1453
|
-
header: d(({ titleId:
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
id:
|
|
1457
|
-
class:
|
|
1458
|
-
}, " 因子筛选 ", 10,
|
|
1459
|
-
t(
|
|
1196
|
+
header: d(({ titleId: I, titleClass: Z }) => [
|
|
1197
|
+
_("div", Bl, [
|
|
1198
|
+
_("span", {
|
|
1199
|
+
id: I,
|
|
1200
|
+
class: X(Z)
|
|
1201
|
+
}, " 因子筛选 ", 10, Gl),
|
|
1202
|
+
t(n, {
|
|
1460
1203
|
effect: "dark",
|
|
1461
1204
|
content: "点击查看: 因子使用说明",
|
|
1462
1205
|
placement: "right"
|
|
1463
1206
|
}, {
|
|
1464
1207
|
default: d(() => [
|
|
1465
|
-
t(
|
|
1466
|
-
onClick:
|
|
1208
|
+
t(w, {
|
|
1209
|
+
onClick: v[2] || (v[2] = (O) => C.value = !0)
|
|
1467
1210
|
}, {
|
|
1468
1211
|
default: d(() => [
|
|
1469
|
-
t(
|
|
1212
|
+
t(b(yl))
|
|
1470
1213
|
]),
|
|
1471
1214
|
_: 1
|
|
1472
1215
|
})
|
|
1473
1216
|
]),
|
|
1474
1217
|
_: 1
|
|
1475
1218
|
}),
|
|
1476
|
-
t(
|
|
1477
|
-
modelValue:
|
|
1478
|
-
"onUpdate:modelValue":
|
|
1219
|
+
t(c, {
|
|
1220
|
+
modelValue: S.value,
|
|
1221
|
+
"onUpdate:modelValue": v[3] || (v[3] = (O) => S.value = O),
|
|
1479
1222
|
size: "small",
|
|
1480
1223
|
style: { "margin-left": "12px" }
|
|
1481
1224
|
}, {
|
|
1482
1225
|
default: d(() => [
|
|
1483
|
-
t(
|
|
1226
|
+
t($, {
|
|
1484
1227
|
label: "模版",
|
|
1485
1228
|
value: "模版"
|
|
1486
1229
|
}),
|
|
1487
|
-
t(
|
|
1230
|
+
t($, {
|
|
1488
1231
|
label: "脚本",
|
|
1489
1232
|
value: "脚本"
|
|
1490
1233
|
})
|
|
1491
1234
|
]),
|
|
1492
1235
|
_: 1
|
|
1493
1236
|
}, 8, ["modelValue"]),
|
|
1494
|
-
|
|
1237
|
+
S.value === "脚本" ? (u(), g("div", Yl, [
|
|
1495
1238
|
t(o, {
|
|
1496
1239
|
size: "small",
|
|
1497
1240
|
type: "primary",
|
|
1498
1241
|
onClick: x
|
|
1499
1242
|
}, {
|
|
1500
1243
|
default: d(() => [
|
|
1501
|
-
|
|
1244
|
+
E("变量选择器")
|
|
1502
1245
|
]),
|
|
1503
1246
|
_: 1
|
|
1504
1247
|
})
|
|
1505
|
-
])) :
|
|
1248
|
+
])) : F("", !0)
|
|
1506
1249
|
])
|
|
1507
1250
|
]),
|
|
1508
1251
|
footer: d(() => [
|
|
1509
|
-
|
|
1252
|
+
_("div", Hl, [
|
|
1510
1253
|
t(o, {
|
|
1511
1254
|
type: "primary",
|
|
1512
|
-
onClick:
|
|
1255
|
+
onClick: m
|
|
1513
1256
|
}, {
|
|
1514
1257
|
default: d(() => [
|
|
1515
|
-
|
|
1258
|
+
E("确定")
|
|
1516
1259
|
]),
|
|
1517
1260
|
_: 1
|
|
1518
1261
|
})
|
|
1519
1262
|
])
|
|
1520
1263
|
]),
|
|
1521
1264
|
default: d(() => [
|
|
1522
|
-
|
|
1265
|
+
S.value === "模版" ? (u(), L(re, {
|
|
1523
1266
|
key: 0,
|
|
1524
1267
|
ref_key: "dialogFormRef",
|
|
1525
|
-
ref:
|
|
1268
|
+
ref: k,
|
|
1526
1269
|
model: e.value
|
|
1527
1270
|
}, {
|
|
1528
1271
|
default: d(() => [
|
|
1529
|
-
(
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1272
|
+
(u(!0), g(R, null, z(e.value.list, (I, Z) => (u(), g("div", Jl, [
|
|
1273
|
+
_("span", Al, K(`条件${Z + 1}`), 1),
|
|
1274
|
+
I.key === "compare" ? (u(), g(R, { key: 0 }, [
|
|
1275
|
+
f.config.cycleShow ? (u(), L(a, {
|
|
1533
1276
|
key: 0,
|
|
1534
|
-
prop: "list." +
|
|
1277
|
+
prop: "list." + Z + ".cycle",
|
|
1535
1278
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
1536
1279
|
style: { width: "100px", "margin-right": "10px" }
|
|
1537
1280
|
}, {
|
|
1538
1281
|
default: d(() => [
|
|
1539
|
-
t(
|
|
1540
|
-
modelValue:
|
|
1541
|
-
"onUpdate:modelValue": (
|
|
1282
|
+
t(D, {
|
|
1283
|
+
modelValue: I.cycle,
|
|
1284
|
+
"onUpdate:modelValue": (O) => I.cycle = O,
|
|
1542
1285
|
placeholder: "选择周期",
|
|
1543
1286
|
size: "small"
|
|
1544
1287
|
}, {
|
|
1545
1288
|
default: d(() => [
|
|
1546
|
-
(
|
|
1547
|
-
label:
|
|
1548
|
-
value:
|
|
1549
|
-
key:
|
|
1289
|
+
(u(!0), g(R, null, z(f.config.cycleOptions, ({ label: O, value: B }) => (u(), L(q, {
|
|
1290
|
+
label: O,
|
|
1291
|
+
value: B,
|
|
1292
|
+
key: B
|
|
1550
1293
|
}, null, 8, ["label", "value"]))), 128))
|
|
1551
1294
|
]),
|
|
1552
1295
|
_: 2
|
|
1553
1296
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
1554
1297
|
]),
|
|
1555
1298
|
_: 2
|
|
1556
|
-
}, 1032, ["prop"])) :
|
|
1557
|
-
t(
|
|
1558
|
-
prop: "list." +
|
|
1299
|
+
}, 1032, ["prop"])) : F("", !0),
|
|
1300
|
+
t(a, {
|
|
1301
|
+
prop: "list." + Z + ".factor",
|
|
1559
1302
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
1560
1303
|
style: { width: "132px", "margin-right": "10px" }
|
|
1561
1304
|
}, {
|
|
1562
1305
|
default: d(() => [
|
|
1563
|
-
t(
|
|
1564
|
-
modelValue:
|
|
1565
|
-
"onUpdate:modelValue": (
|
|
1306
|
+
t(D, {
|
|
1307
|
+
modelValue: I.factor,
|
|
1308
|
+
"onUpdate:modelValue": (O) => I.factor = O,
|
|
1566
1309
|
placeholder: "选择因子",
|
|
1567
1310
|
filterable: "",
|
|
1568
1311
|
size: "small",
|
|
1569
1312
|
"no-match-text": "无匹配数据"
|
|
1570
1313
|
}, {
|
|
1571
1314
|
default: d(() => {
|
|
1572
|
-
var
|
|
1315
|
+
var O;
|
|
1573
1316
|
return [
|
|
1574
|
-
(
|
|
1575
|
-
label:
|
|
1576
|
-
value:
|
|
1577
|
-
key:
|
|
1317
|
+
(u(!0), g(R, null, z((O = f.config.factorOptions) == null ? void 0 : O.filter((B) => [4].includes(B.type)), ({ label: B, value: ee }) => (u(), L(q, {
|
|
1318
|
+
label: B,
|
|
1319
|
+
value: ee,
|
|
1320
|
+
key: ee
|
|
1578
1321
|
}, null, 8, ["label", "value"]))), 128))
|
|
1579
1322
|
];
|
|
1580
1323
|
}),
|
|
@@ -1583,18 +1326,18 @@ const al = (g) => (fe("data-v-4af31cc3"), g = g(), ye(), g), st = { class: "fact
|
|
|
1583
1326
|
]),
|
|
1584
1327
|
_: 2
|
|
1585
1328
|
}, 1032, ["prop"]),
|
|
1586
|
-
t(
|
|
1329
|
+
t(a, { style: { width: "52px", "margin-right": "10px" } }, {
|
|
1587
1330
|
default: d(() => [
|
|
1588
|
-
t(
|
|
1589
|
-
modelValue:
|
|
1590
|
-
"onUpdate:modelValue": (
|
|
1331
|
+
t(D, {
|
|
1332
|
+
modelValue: I.compareType,
|
|
1333
|
+
"onUpdate:modelValue": (O) => I.compareType = O,
|
|
1591
1334
|
size: "small"
|
|
1592
1335
|
}, {
|
|
1593
1336
|
default: d(() => [
|
|
1594
|
-
(
|
|
1595
|
-
label:
|
|
1596
|
-
value:
|
|
1597
|
-
key:
|
|
1337
|
+
(u(), g(R, null, z([">", ">=", "<", "<="], (O) => t(q, {
|
|
1338
|
+
label: O,
|
|
1339
|
+
value: O,
|
|
1340
|
+
key: O
|
|
1598
1341
|
}, null, 8, ["label", "value"])), 64))
|
|
1599
1342
|
]),
|
|
1600
1343
|
_: 2
|
|
@@ -1602,52 +1345,52 @@ const al = (g) => (fe("data-v-4af31cc3"), g = g(), ye(), g), st = { class: "fact
|
|
|
1602
1345
|
]),
|
|
1603
1346
|
_: 2
|
|
1604
1347
|
}, 1024),
|
|
1605
|
-
|
|
1348
|
+
f.config.cycleShow ? (u(), L(a, {
|
|
1606
1349
|
key: 1,
|
|
1607
|
-
prop: "list." +
|
|
1350
|
+
prop: "list." + Z + ".cycle2",
|
|
1608
1351
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
1609
1352
|
style: { width: "100px", "margin-right": "10px" }
|
|
1610
1353
|
}, {
|
|
1611
1354
|
default: d(() => [
|
|
1612
|
-
t(
|
|
1613
|
-
modelValue:
|
|
1614
|
-
"onUpdate:modelValue": (
|
|
1355
|
+
t(D, {
|
|
1356
|
+
modelValue: I.cycle2,
|
|
1357
|
+
"onUpdate:modelValue": (O) => I.cycle2 = O,
|
|
1615
1358
|
placeholder: "选择周期",
|
|
1616
1359
|
size: "small"
|
|
1617
1360
|
}, {
|
|
1618
1361
|
default: d(() => [
|
|
1619
|
-
(
|
|
1620
|
-
label:
|
|
1621
|
-
value:
|
|
1622
|
-
key:
|
|
1362
|
+
(u(!0), g(R, null, z(f.config.cycleOptions, ({ label: O, value: B }) => (u(), L(q, {
|
|
1363
|
+
label: O,
|
|
1364
|
+
value: B,
|
|
1365
|
+
key: B
|
|
1623
1366
|
}, null, 8, ["label", "value"]))), 128))
|
|
1624
1367
|
]),
|
|
1625
1368
|
_: 2
|
|
1626
1369
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
1627
1370
|
]),
|
|
1628
1371
|
_: 2
|
|
1629
|
-
}, 1032, ["prop"])) :
|
|
1630
|
-
t(
|
|
1631
|
-
prop: "list." +
|
|
1372
|
+
}, 1032, ["prop"])) : F("", !0),
|
|
1373
|
+
t(a, {
|
|
1374
|
+
prop: "list." + Z + ".factor2",
|
|
1632
1375
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
1633
1376
|
style: { width: "132px", "margin-right": "10px" }
|
|
1634
1377
|
}, {
|
|
1635
1378
|
default: d(() => [
|
|
1636
|
-
t(
|
|
1637
|
-
modelValue:
|
|
1638
|
-
"onUpdate:modelValue": (
|
|
1379
|
+
t(D, {
|
|
1380
|
+
modelValue: I.factor2,
|
|
1381
|
+
"onUpdate:modelValue": (O) => I.factor2 = O,
|
|
1639
1382
|
placeholder: "选择因子",
|
|
1640
1383
|
filterable: "",
|
|
1641
1384
|
size: "small",
|
|
1642
1385
|
"no-match-text": "无匹配数据"
|
|
1643
1386
|
}, {
|
|
1644
1387
|
default: d(() => {
|
|
1645
|
-
var
|
|
1388
|
+
var O;
|
|
1646
1389
|
return [
|
|
1647
|
-
(
|
|
1648
|
-
label:
|
|
1649
|
-
value:
|
|
1650
|
-
key:
|
|
1390
|
+
(u(!0), g(R, null, z((O = f.config.factorOptions) == null ? void 0 : O.filter((B) => [4].includes(B.type)), ({ label: B, value: ee }) => (u(), L(q, {
|
|
1391
|
+
label: B,
|
|
1392
|
+
value: ee,
|
|
1393
|
+
key: ee
|
|
1651
1394
|
}, null, 8, ["label", "value"]))), 128))
|
|
1652
1395
|
];
|
|
1653
1396
|
}),
|
|
@@ -1656,53 +1399,53 @@ const al = (g) => (fe("data-v-4af31cc3"), g = g(), ye(), g), st = { class: "fact
|
|
|
1656
1399
|
]),
|
|
1657
1400
|
_: 2
|
|
1658
1401
|
}, 1032, ["prop"])
|
|
1659
|
-
], 64)) : (
|
|
1660
|
-
|
|
1402
|
+
], 64)) : (u(), g(R, { key: 1 }, [
|
|
1403
|
+
f.config.cycleShow ? (u(), L(a, {
|
|
1661
1404
|
key: 0,
|
|
1662
|
-
prop: "list." +
|
|
1405
|
+
prop: "list." + Z + ".cycle",
|
|
1663
1406
|
rules: { required: !0, message: "周期不能为空", trigger: "blur" },
|
|
1664
1407
|
style: { width: "100px", "margin-right": "10px" }
|
|
1665
1408
|
}, {
|
|
1666
1409
|
default: d(() => [
|
|
1667
|
-
t(
|
|
1668
|
-
modelValue:
|
|
1669
|
-
"onUpdate:modelValue": (
|
|
1410
|
+
t(D, {
|
|
1411
|
+
modelValue: I.cycle,
|
|
1412
|
+
"onUpdate:modelValue": (O) => I.cycle = O,
|
|
1670
1413
|
placeholder: "选择周期",
|
|
1671
1414
|
size: "small"
|
|
1672
1415
|
}, {
|
|
1673
1416
|
default: d(() => [
|
|
1674
|
-
(
|
|
1675
|
-
label:
|
|
1676
|
-
value:
|
|
1677
|
-
key:
|
|
1417
|
+
(u(!0), g(R, null, z(f.config.cycleOptions, ({ label: O, value: B }) => (u(), L(q, {
|
|
1418
|
+
label: O,
|
|
1419
|
+
value: B,
|
|
1420
|
+
key: B
|
|
1678
1421
|
}, null, 8, ["label", "value"]))), 128))
|
|
1679
1422
|
]),
|
|
1680
1423
|
_: 2
|
|
1681
1424
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
1682
1425
|
]),
|
|
1683
1426
|
_: 2
|
|
1684
|
-
}, 1032, ["prop"])) :
|
|
1685
|
-
t(
|
|
1686
|
-
prop: "list." +
|
|
1427
|
+
}, 1032, ["prop"])) : F("", !0),
|
|
1428
|
+
t(a, {
|
|
1429
|
+
prop: "list." + Z + ".factor",
|
|
1687
1430
|
rules: { required: !0, message: "因子不能为空", trigger: "blur" },
|
|
1688
1431
|
style: { width: "194px", "margin-right": "10px" }
|
|
1689
1432
|
}, {
|
|
1690
1433
|
default: d(() => [
|
|
1691
|
-
t(
|
|
1692
|
-
modelValue:
|
|
1693
|
-
"onUpdate:modelValue": (
|
|
1434
|
+
t(D, {
|
|
1435
|
+
modelValue: I.factor,
|
|
1436
|
+
"onUpdate:modelValue": (O) => I.factor = O,
|
|
1694
1437
|
placeholder: "选择因子",
|
|
1695
1438
|
filterable: "",
|
|
1696
1439
|
size: "small",
|
|
1697
1440
|
"no-match-text": "无匹配数据"
|
|
1698
1441
|
}, {
|
|
1699
1442
|
default: d(() => {
|
|
1700
|
-
var
|
|
1443
|
+
var O;
|
|
1701
1444
|
return [
|
|
1702
|
-
(
|
|
1703
|
-
label:
|
|
1704
|
-
value:
|
|
1705
|
-
key:
|
|
1445
|
+
(u(!0), g(R, null, z((O = f.config.factorOptions) == null ? void 0 : O.filter((B) => [1, 3].includes(B.type)), ({ label: B, value: ee }) => (u(), L(q, {
|
|
1446
|
+
label: B,
|
|
1447
|
+
value: ee,
|
|
1448
|
+
key: ee
|
|
1706
1449
|
}, null, 8, ["label", "value"]))), 128))
|
|
1707
1450
|
];
|
|
1708
1451
|
}),
|
|
@@ -1711,23 +1454,23 @@ const al = (g) => (fe("data-v-4af31cc3"), g = g(), ye(), g), st = { class: "fact
|
|
|
1711
1454
|
]),
|
|
1712
1455
|
_: 2
|
|
1713
1456
|
}, 1032, ["prop"]),
|
|
1714
|
-
t(
|
|
1715
|
-
prop: "list." +
|
|
1716
|
-
rules: { validator:
|
|
1457
|
+
t(a, {
|
|
1458
|
+
prop: "list." + Z + ".score",
|
|
1459
|
+
rules: { validator: b(jl), trigger: "blur" },
|
|
1717
1460
|
style: { width: "200px", "margin-right": "10px" }
|
|
1718
1461
|
}, {
|
|
1719
1462
|
default: d(() => [
|
|
1720
|
-
|
|
1721
|
-
t(
|
|
1722
|
-
modelValue:
|
|
1723
|
-
"onUpdate:modelValue": (
|
|
1463
|
+
_("div", Kl, [
|
|
1464
|
+
t(W, {
|
|
1465
|
+
modelValue: I.score[0],
|
|
1466
|
+
"onUpdate:modelValue": (O) => I.score[0] = O,
|
|
1724
1467
|
size: "small",
|
|
1725
1468
|
"controls-position": "right"
|
|
1726
1469
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
1727
|
-
|
|
1728
|
-
t(
|
|
1729
|
-
modelValue:
|
|
1730
|
-
"onUpdate:modelValue": (
|
|
1470
|
+
Ql,
|
|
1471
|
+
t(W, {
|
|
1472
|
+
modelValue: I.score[1],
|
|
1473
|
+
"onUpdate:modelValue": (O) => I.score[1] = O,
|
|
1731
1474
|
size: "small",
|
|
1732
1475
|
"controls-position": "right"
|
|
1733
1476
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1736,11 +1479,11 @@ const al = (g) => (fe("data-v-4af31cc3"), g = g(), ye(), g), st = { class: "fact
|
|
|
1736
1479
|
_: 2
|
|
1737
1480
|
}, 1032, ["prop", "rules"])
|
|
1738
1481
|
], 64)),
|
|
1739
|
-
t(
|
|
1740
|
-
onClick: (
|
|
1482
|
+
t(w, {
|
|
1483
|
+
onClick: (O) => i(Z)
|
|
1741
1484
|
}, {
|
|
1742
1485
|
default: d(() => [
|
|
1743
|
-
t(
|
|
1486
|
+
t(b(gl))
|
|
1744
1487
|
]),
|
|
1745
1488
|
_: 2
|
|
1746
1489
|
}, 1032, ["onClick"])
|
|
@@ -1749,12 +1492,12 @@ const al = (g) => (fe("data-v-4af31cc3"), g = g(), ye(), g), st = { class: "fact
|
|
|
1749
1492
|
type: "primary",
|
|
1750
1493
|
plain: "",
|
|
1751
1494
|
size: "small",
|
|
1752
|
-
icon:
|
|
1753
|
-
onClick:
|
|
1495
|
+
icon: b(me),
|
|
1496
|
+
onClick: M,
|
|
1754
1497
|
style: { "margin-bottom": "10px" }
|
|
1755
1498
|
}, {
|
|
1756
1499
|
default: d(() => [
|
|
1757
|
-
|
|
1500
|
+
E("添加因子")
|
|
1758
1501
|
]),
|
|
1759
1502
|
_: 1
|
|
1760
1503
|
}, 8, ["icon"]),
|
|
@@ -1762,72 +1505,72 @@ const al = (g) => (fe("data-v-4af31cc3"), g = g(), ye(), g), st = { class: "fact
|
|
|
1762
1505
|
type: "primary",
|
|
1763
1506
|
plain: "",
|
|
1764
1507
|
size: "small",
|
|
1765
|
-
icon:
|
|
1766
|
-
onClick:
|
|
1508
|
+
icon: b(me),
|
|
1509
|
+
onClick: v[4] || (v[4] = (I) => M("compare")),
|
|
1767
1510
|
style: { "margin-bottom": "10px" }
|
|
1768
1511
|
}, {
|
|
1769
1512
|
default: d(() => [
|
|
1770
|
-
|
|
1513
|
+
E("添加因子对比")
|
|
1771
1514
|
]),
|
|
1772
1515
|
_: 1
|
|
1773
1516
|
}, 8, ["icon"]),
|
|
1774
|
-
|
|
1775
|
-
t(
|
|
1517
|
+
f.config.sqlShow ? (u(), g(R, { key: 0 }, [
|
|
1518
|
+
t(a, { label: "SQL功能: " }, {
|
|
1776
1519
|
default: d(() => [
|
|
1777
|
-
t(
|
|
1520
|
+
t(c, {
|
|
1778
1521
|
modelValue: e.value.sqlEnable,
|
|
1779
|
-
"onUpdate:modelValue":
|
|
1522
|
+
"onUpdate:modelValue": v[5] || (v[5] = (I) => e.value.sqlEnable = I)
|
|
1780
1523
|
}, {
|
|
1781
1524
|
default: d(() => [
|
|
1782
|
-
t(
|
|
1525
|
+
t(ae, {
|
|
1783
1526
|
label: "关闭",
|
|
1784
1527
|
value: 0
|
|
1785
1528
|
}),
|
|
1786
|
-
t(
|
|
1529
|
+
t(ae, {
|
|
1787
1530
|
label: "启用",
|
|
1788
1531
|
value: 1
|
|
1789
1532
|
})
|
|
1790
1533
|
]),
|
|
1791
1534
|
_: 1
|
|
1792
1535
|
}, 8, ["modelValue"]),
|
|
1793
|
-
e.value.sqlEnable ? (
|
|
1536
|
+
e.value.sqlEnable ? (u(), L(o, {
|
|
1794
1537
|
key: 0,
|
|
1795
1538
|
type: "primary",
|
|
1796
1539
|
size: "small",
|
|
1797
|
-
onClick:
|
|
1540
|
+
onClick: j,
|
|
1798
1541
|
style: { "margin-left": "auto" }
|
|
1799
1542
|
}, {
|
|
1800
1543
|
default: d(() => [
|
|
1801
|
-
|
|
1544
|
+
E("生成SQL")
|
|
1802
1545
|
]),
|
|
1803
1546
|
_: 1
|
|
1804
|
-
})) :
|
|
1547
|
+
})) : F("", !0)
|
|
1805
1548
|
]),
|
|
1806
1549
|
_: 1
|
|
1807
1550
|
}),
|
|
1808
|
-
e.value.sqlEnable ? (
|
|
1551
|
+
e.value.sqlEnable ? (u(), g(R, { key: 0 }, [
|
|
1809
1552
|
t(ue, {
|
|
1810
1553
|
modelValue: e.value.sqlValue,
|
|
1811
|
-
"onUpdate:modelValue":
|
|
1554
|
+
"onUpdate:modelValue": v[6] || (v[6] = (I) => e.value.sqlValue = I),
|
|
1812
1555
|
autosize: { minRows: 4 },
|
|
1813
1556
|
type: "textarea",
|
|
1814
1557
|
style: { "margin-bottom": "10px" }
|
|
1815
1558
|
}, null, 8, ["modelValue"]),
|
|
1816
|
-
|
|
1817
|
-
], 64)) :
|
|
1818
|
-
], 64)) :
|
|
1559
|
+
Zl
|
|
1560
|
+
], 64)) : F("", !0)
|
|
1561
|
+
], 64)) : F("", !0)
|
|
1819
1562
|
]),
|
|
1820
1563
|
_: 1
|
|
1821
|
-
}, 8, ["model"])) :
|
|
1822
|
-
|
|
1823
|
-
style:
|
|
1564
|
+
}, 8, ["model"])) : F("", !0),
|
|
1565
|
+
_("div", {
|
|
1566
|
+
style: Le([
|
|
1824
1567
|
{ width: "968px", height: "400px" },
|
|
1825
|
-
|
|
1568
|
+
S.value === "脚本" ? null : { position: "fixed", top: "-400px", zIndex: -1 }
|
|
1826
1569
|
])
|
|
1827
1570
|
}, [
|
|
1828
|
-
t(
|
|
1571
|
+
t(kl, {
|
|
1829
1572
|
ref_key: "monacoEditorRef",
|
|
1830
|
-
ref:
|
|
1573
|
+
ref: s,
|
|
1831
1574
|
language: "lua"
|
|
1832
1575
|
}, null, 512)
|
|
1833
1576
|
], 4)
|
|
@@ -1835,34 +1578,34 @@ const al = (g) => (fe("data-v-4af31cc3"), g = g(), ye(), g), st = { class: "fact
|
|
|
1835
1578
|
_: 1
|
|
1836
1579
|
}, 8, ["modelValue"])
|
|
1837
1580
|
]),
|
|
1838
|
-
t(
|
|
1839
|
-
visible:
|
|
1840
|
-
"onUpdate:visible":
|
|
1841
|
-
data: (
|
|
1581
|
+
t(zl, {
|
|
1582
|
+
visible: C.value,
|
|
1583
|
+
"onUpdate:visible": v[8] || (v[8] = (I) => C.value = I),
|
|
1584
|
+
data: (G = f.config.factorDescriptions) == null ? void 0 : G.filter((I) => [1, 3].includes(I.type))
|
|
1842
1585
|
}, null, 8, ["visible", "data"]),
|
|
1843
|
-
t(
|
|
1844
|
-
ref_key: "
|
|
1845
|
-
ref:
|
|
1586
|
+
t(Y, {
|
|
1587
|
+
ref_key: "stVarSelectDialogRef",
|
|
1588
|
+
ref: V
|
|
1846
1589
|
}, null, 512)
|
|
1847
1590
|
], 64);
|
|
1848
1591
|
};
|
|
1849
1592
|
}
|
|
1850
|
-
},
|
|
1851
|
-
const
|
|
1593
|
+
}, Xl = /* @__PURE__ */ $e(Wl, [["__scopeId", "data-v-28dc31e2"]]);
|
|
1594
|
+
const pe = (f) => (xe("data-v-3e69da40"), f = f(), he(), f), et = {
|
|
1852
1595
|
key: 0,
|
|
1853
1596
|
class: "common-indicator"
|
|
1854
|
-
},
|
|
1855
|
-
/* @__PURE__ */
|
|
1856
|
-
/* @__PURE__ */
|
|
1857
|
-
], -1)),
|
|
1597
|
+
}, lt = { class: "indicator" }, tt = /* @__PURE__ */ pe(() => /* @__PURE__ */ _("div", { class: "title" }, [
|
|
1598
|
+
/* @__PURE__ */ _("span", null, "常用指标: "),
|
|
1599
|
+
/* @__PURE__ */ _("span", null, "不限")
|
|
1600
|
+
], -1)), at = { class: "options" }, nt = ["onClick"], ot = { class: "tags" }, ut = ["onClick"], rt = { style: { "font-size": "18px" } }, st = {
|
|
1858
1601
|
key: 0,
|
|
1859
1602
|
class: "out-box"
|
|
1860
|
-
},
|
|
1603
|
+
}, it = /* @__PURE__ */ pe(() => /* @__PURE__ */ _("span", null, "自定义: ", -1)), dt = {
|
|
1861
1604
|
key: 0,
|
|
1862
1605
|
class: "convenient-option-box"
|
|
1863
|
-
},
|
|
1606
|
+
}, ct = { class: "out-box" }, pt = /* @__PURE__ */ pe(() => /* @__PURE__ */ _("span", null, "自定义: ", -1)), vt = { key: 0 }, mt = { key: 0 }, ft = { key: 0 }, yt = { key: 1 }, gt = { class: "tFeaturelncomes-option-box" }, bt = { class: "tFeaturelncomes-out-box" }, kt = /* @__PURE__ */ pe(() => /* @__PURE__ */ _("span", null, "自定义: ", -1)), _t = { key: 2 }, Vt = { key: 3 }, xt = { key: 4 }, ht = { key: 5 }, Ot = { key: 6 }, $t = { style: { display: "flex", "align-items": "center" } }, It = { key: 7 }, wt = { class: "dialog-footer" }, Tt = {
|
|
1864
1607
|
__name: "index",
|
|
1865
|
-
props: /* @__PURE__ */
|
|
1608
|
+
props: /* @__PURE__ */ de({
|
|
1866
1609
|
config: { type: Object, default: () => {
|
|
1867
1610
|
} },
|
|
1868
1611
|
varietyMarket: { type: Number, default: () => null },
|
|
@@ -1874,29 +1617,29 @@ const ge = (g) => (fe("data-v-3e69da40"), g = g(), ye(), g), kt = {
|
|
|
1874
1617
|
dataModifiers: {}
|
|
1875
1618
|
}),
|
|
1876
1619
|
emits: ["update:data"],
|
|
1877
|
-
setup(
|
|
1878
|
-
const
|
|
1620
|
+
setup(f) {
|
|
1621
|
+
const T = [
|
|
1879
1622
|
{ label: "近2周", value: "1" },
|
|
1880
1623
|
{ label: "近1个月", value: "2" },
|
|
1881
1624
|
{ label: "近3个月", value: "3" },
|
|
1882
1625
|
{ label: "近6个月", value: "4" },
|
|
1883
1626
|
{ label: "近1年", value: "5" }
|
|
1884
|
-
],
|
|
1627
|
+
], h = [
|
|
1885
1628
|
{ label: "无保留意见", value: 1 },
|
|
1886
1629
|
{ label: "保留意见", value: 2 },
|
|
1887
1630
|
{ label: "否定意见", value: 3 },
|
|
1888
1631
|
{ label: "无法表示意见", value: 4 }
|
|
1889
|
-
],
|
|
1632
|
+
], s = ce(f, "data"), V = f, U = H(!1), C = A(() => {
|
|
1890
1633
|
var x;
|
|
1891
|
-
return (x =
|
|
1892
|
-
}),
|
|
1634
|
+
return (x = V.data.find((l) => l.radioType === "1")) == null ? void 0 : x.key;
|
|
1635
|
+
}), S = A(() => {
|
|
1893
1636
|
let x = [];
|
|
1894
|
-
return
|
|
1895
|
-
const { commonOptionIds:
|
|
1896
|
-
return [.../* @__PURE__ */ new Set([...
|
|
1637
|
+
return V.varietyMarket === null && !V.commonOption.length ? x = V.config.options : (x = V.config.options, V.varietyMarket && (x = x.filter(({ parent: l }) => l.varietyMarketIds.includes(V.varietyMarket))), V.commonOption.length && (x = x.filter(({ parent: l }) => {
|
|
1638
|
+
const { commonOptionIds: v } = l;
|
|
1639
|
+
return [.../* @__PURE__ */ new Set([...v, ...V.commonOption])].length !== [...v, ...V.commonOption].length;
|
|
1897
1640
|
}))), x;
|
|
1898
|
-
}),
|
|
1899
|
-
|
|
1641
|
+
}), k = H({}), e = H({}), P = (x) => {
|
|
1642
|
+
k.value = x;
|
|
1900
1643
|
const l = {
|
|
1901
1644
|
key: x.key,
|
|
1902
1645
|
type: x.type,
|
|
@@ -1959,107 +1702,107 @@ const ge = (g) => (fe("data-v-3e69da40"), g = g(), ye(), g), kt = {
|
|
|
1959
1702
|
...l,
|
|
1960
1703
|
range: [null, null],
|
|
1961
1704
|
unit: x.defaultUnit.length ? [...x.defaultUnit] : [null, null],
|
|
1962
|
-
radioType:
|
|
1705
|
+
radioType: C.value && C.value !== x.key ? "0" : x.defaultRadioType,
|
|
1963
1706
|
// 0数值 1排名
|
|
1964
1707
|
rankRange: x.defaultRankRange || [null, null]
|
|
1965
1708
|
// 默认排名
|
|
1966
1709
|
};
|
|
1967
1710
|
}
|
|
1968
|
-
|
|
1969
|
-
},
|
|
1970
|
-
var l,
|
|
1711
|
+
U.value = !0;
|
|
1712
|
+
}, m = () => {
|
|
1713
|
+
var l, v;
|
|
1971
1714
|
switch (e.value.key) {
|
|
1972
1715
|
case "st": {
|
|
1973
|
-
const { label: p, st:
|
|
1974
|
-
if (
|
|
1975
|
-
return
|
|
1976
|
-
e.value.tagText = `${p}: ${
|
|
1716
|
+
const { label: p, st: r } = e.value;
|
|
1717
|
+
if (r === null)
|
|
1718
|
+
return J.warning("格式错误: 请至少选择一个值");
|
|
1719
|
+
e.value.tagText = `${p}: ${r ? "是" : "否"}`;
|
|
1977
1720
|
break;
|
|
1978
1721
|
}
|
|
1979
1722
|
case "tFeaturelncomes": {
|
|
1980
|
-
const { label: p, rule:
|
|
1981
|
-
if (["", null].includes(
|
|
1982
|
-
return
|
|
1983
|
-
e.value.tagText = `${p}: ${
|
|
1723
|
+
const { label: p, rule: r, withFewYears: y, yearsCount: o, netProfit: w } = e.value;
|
|
1724
|
+
if (["", null].includes(y) || ["", null].includes(o) || ["", null].includes(w))
|
|
1725
|
+
return J.warning("格式错误: 请填写完整");
|
|
1726
|
+
e.value.tagText = `${p}: ${y}年内${o}年以上盈利${r === 1 ? "超" : "跌"}过${w}亿`;
|
|
1984
1727
|
break;
|
|
1985
1728
|
}
|
|
1986
1729
|
case "priceLevels": {
|
|
1987
|
-
const { label: p, priceLevels:
|
|
1988
|
-
if (!
|
|
1989
|
-
return
|
|
1990
|
-
e.value.tagText = `${p}: 已选${
|
|
1730
|
+
const { label: p, priceLevels: r } = e.value;
|
|
1731
|
+
if (!r || r.length === 0)
|
|
1732
|
+
return J.warning("格式错误: 请至少选择一个值");
|
|
1733
|
+
e.value.tagText = `${p}: 已选${r}分位`;
|
|
1991
1734
|
break;
|
|
1992
1735
|
}
|
|
1993
1736
|
case "peTtmLevels": {
|
|
1994
|
-
const { label: p, peTtmLevels:
|
|
1995
|
-
if (!
|
|
1996
|
-
return
|
|
1997
|
-
e.value.tagText = `${p}: 已选${
|
|
1737
|
+
const { label: p, peTtmLevels: r } = e.value;
|
|
1738
|
+
if (!r || r.length === 0)
|
|
1739
|
+
return J.warning("格式错误: 请至少选择一个值");
|
|
1740
|
+
e.value.tagText = `${p}: 已选${r}分位`;
|
|
1998
1741
|
break;
|
|
1999
1742
|
}
|
|
2000
1743
|
case "optionsCpType": {
|
|
2001
|
-
const { label: p, optionsCpType:
|
|
2002
|
-
if (
|
|
2003
|
-
return
|
|
2004
|
-
e.value.tagText = `${p}: ${
|
|
1744
|
+
const { label: p, optionsCpType: r } = e.value;
|
|
1745
|
+
if (r === null)
|
|
1746
|
+
return J.warning("格式错误: 请至少选择一个值");
|
|
1747
|
+
e.value.tagText = `${p}: ${r === 1 ? "看涨" : "看跌"}`;
|
|
2005
1748
|
break;
|
|
2006
1749
|
}
|
|
2007
1750
|
case "perVolumn": {
|
|
2008
|
-
const { label: p, radio:
|
|
2009
|
-
if (!
|
|
2010
|
-
return
|
|
2011
|
-
if (!(
|
|
2012
|
-
return
|
|
2013
|
-
e.value.tagText = `${p}: ${(l =
|
|
1751
|
+
const { label: p, radio: r, levels: y } = e.value;
|
|
1752
|
+
if (!r)
|
|
1753
|
+
return J.warning("格式错误: 请选择时间");
|
|
1754
|
+
if (!(y != null && y.length))
|
|
1755
|
+
return J.warning("格式错误: 请选择分位");
|
|
1756
|
+
e.value.tagText = `${p}: ${(l = T.find((o) => o.value === r)) == null ? void 0 : l.label}${y.map((o) => `${o}分位`).join("、")}`;
|
|
2014
1757
|
break;
|
|
2015
1758
|
}
|
|
2016
1759
|
case "mainFlow": {
|
|
2017
|
-
const { label: p, radioType:
|
|
2018
|
-
if (
|
|
1760
|
+
const { label: p, radioType: r, radio: y, rankRange: o } = e.value, w = (n) => {
|
|
1761
|
+
if (n === "" || n === null || n === void 0)
|
|
2019
1762
|
return !1;
|
|
2020
|
-
const
|
|
2021
|
-
return !isNaN(
|
|
1763
|
+
const $ = Number(n);
|
|
1764
|
+
return !isNaN($);
|
|
2022
1765
|
};
|
|
2023
|
-
if (!
|
|
2024
|
-
return
|
|
2025
|
-
if (!
|
|
2026
|
-
return
|
|
2027
|
-
!["", null].includes(o[0]) && !["", null].includes(o[1]) ? e.value.tagText = `${p}: ${
|
|
1766
|
+
if (!y)
|
|
1767
|
+
return J.warning("格式错误: 请选择时间");
|
|
1768
|
+
if (!w(o[0]) && !w(o[1]))
|
|
1769
|
+
return J.warning(`格式错误: 请填写${r === "0" ? "涨幅范围" : "排名范围"}`);
|
|
1770
|
+
!["", null].includes(o[0]) && !["", null].includes(o[1]) ? e.value.tagText = `${p}: ${y}日${r === "0" ? "涨幅范围" : "排名范围"}: ${o[0]}${r === "0" ? "%" : ""} ~ ${o[1]}${r === "0" ? "%" : ""}` : ["", null].includes(o[0]) ? e.value.tagText = `${p}: ${y}日${r === "0" ? "涨幅范围" : "排名范围"}: ≤${o[1]}${r === "0" ? "%" : ""}` : e.value.tagText = `${p}: ${y}日${r === "0" ? "涨幅范围" : "排名范围"}: ≥${o[0]}${r === "0" ? "%" : ""}`;
|
|
2028
1771
|
break;
|
|
2029
1772
|
}
|
|
2030
1773
|
case "auditOpinionType": {
|
|
2031
|
-
const { label: p, enumType:
|
|
2032
|
-
if (
|
|
2033
|
-
return
|
|
2034
|
-
e.value.tagText = `${p}: ${(
|
|
1774
|
+
const { label: p, enumType: r } = e.value;
|
|
1775
|
+
if (r === null)
|
|
1776
|
+
return J.warning("格式错误: 请至少选择一个值");
|
|
1777
|
+
e.value.tagText = `${p}: ${(v = h.find((y) => y.value === r)) == null ? void 0 : v.label}`;
|
|
2035
1778
|
break;
|
|
2036
1779
|
}
|
|
2037
1780
|
default: {
|
|
2038
|
-
const { label: p, unit:
|
|
1781
|
+
const { label: p, unit: r, radioType: y } = e.value, o = y === "1" ? e.value.rankRange : e.value.range;
|
|
2039
1782
|
if (["", null].includes(o[0]) && ["", null].includes(o[1]))
|
|
2040
|
-
return
|
|
2041
|
-
if (
|
|
2042
|
-
const
|
|
2043
|
-
if (isNaN(
|
|
2044
|
-
return
|
|
2045
|
-
if (
|
|
2046
|
-
return
|
|
2047
|
-
if (
|
|
2048
|
-
return
|
|
1783
|
+
return J.warning("格式错误: 请至少填写一个值");
|
|
1784
|
+
if (y === "1") {
|
|
1785
|
+
const $ = Number(o[0]), c = Number(o[1]);
|
|
1786
|
+
if (isNaN($) || isNaN(c))
|
|
1787
|
+
return J.warning("格式错误: 请填写数字");
|
|
1788
|
+
if ($ < 0 || c < 0)
|
|
1789
|
+
return J.warning("格式错误: 请填写大于0的数字");
|
|
1790
|
+
if ($ > c)
|
|
1791
|
+
return J.warning("格式错误: 请填写正确的排名范围");
|
|
2049
1792
|
}
|
|
2050
|
-
const
|
|
2051
|
-
!["", null].includes(o[0]) && !["", null].includes(o[1]) ? e.value.tagText = `${p}${
|
|
1793
|
+
const w = y === "1" ? "" : r[0] ?? "", n = y === "1" ? "" : r[1] ?? "";
|
|
1794
|
+
!["", null].includes(o[0]) && !["", null].includes(o[1]) ? e.value.tagText = `${p}${y === "1" ? "排名" : ""}: ${o[0]}${w} ~ ${o[1]}${n}` : ["", null].includes(o[0]) ? e.value.tagText = `${p}${y === "1" ? "排名" : ""}: ≤${o[1]}${n}` : e.value.tagText = `${p}${y === "1" ? "排名" : ""}: ≥${o[0]}${w}`;
|
|
2052
1795
|
}
|
|
2053
1796
|
}
|
|
2054
|
-
const x =
|
|
2055
|
-
x === -1 ?
|
|
2056
|
-
},
|
|
2057
|
-
|
|
2058
|
-
},
|
|
2059
|
-
|
|
2060
|
-
},
|
|
1797
|
+
const x = s.value.findIndex(({ key: p }) => p === e.value.key);
|
|
1798
|
+
x === -1 ? s.value.push(e.value) : s.value.splice(x, 1, e.value), U.value = !1;
|
|
1799
|
+
}, i = (x) => {
|
|
1800
|
+
k.value = S.value.find(({ key: l }) => l === x.key), e.value = JSON.parse(JSON.stringify(x)), U.value = !0;
|
|
1801
|
+
}, M = (x) => {
|
|
1802
|
+
s.value.splice(x, 1);
|
|
1803
|
+
}, j = (x) => {
|
|
2061
1804
|
e.value.range = [...x.range], e.value.unit = [...x.unit];
|
|
2062
|
-
},
|
|
1805
|
+
}, N = (x) => {
|
|
2063
1806
|
switch (x) {
|
|
2064
1807
|
case "≤0":
|
|
2065
1808
|
Object.assign(e.value, {
|
|
@@ -2104,112 +1847,112 @@ const ge = (g) => (fe("data-v-3e69da40"), g = g(), ye(), g), kt = {
|
|
|
2104
1847
|
break;
|
|
2105
1848
|
}
|
|
2106
1849
|
};
|
|
2107
|
-
|
|
2108
|
-
() =>
|
|
1850
|
+
oe(
|
|
1851
|
+
() => S.value,
|
|
2109
1852
|
() => {
|
|
2110
|
-
|
|
1853
|
+
s.value.length && (s.value = s.value.filter(({ key: x }) => S.value.find((l) => l.key === x)));
|
|
2111
1854
|
}
|
|
2112
1855
|
);
|
|
2113
|
-
const
|
|
1856
|
+
const Q = () => {
|
|
2114
1857
|
e.value.radio = null, e.value.rankRange = [null, null];
|
|
2115
1858
|
};
|
|
2116
1859
|
return (x, l) => {
|
|
2117
|
-
const
|
|
2118
|
-
return
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
(
|
|
2123
|
-
key:
|
|
2124
|
-
onClick: (
|
|
2125
|
-
},
|
|
1860
|
+
const v = Pe, p = Ze, r = Te, y = je, o = Ne, w = ge, n = be, $ = we, c = ze, q = Oe;
|
|
1861
|
+
return f.config.show && S.value.length ? (u(), g("div", et, [
|
|
1862
|
+
_("div", lt, [
|
|
1863
|
+
tt,
|
|
1864
|
+
_("div", at, [
|
|
1865
|
+
(u(!0), g(R, null, z(S.value, (D) => (u(), g("span", {
|
|
1866
|
+
key: D.key,
|
|
1867
|
+
onClick: (a) => P(D)
|
|
1868
|
+
}, K(D.label), 9, nt))), 128))
|
|
2126
1869
|
])
|
|
2127
1870
|
]),
|
|
2128
|
-
|
|
2129
|
-
(
|
|
1871
|
+
_("div", ot, [
|
|
1872
|
+
(u(!0), g(R, null, z(s.value, (D, a) => (u(), L(v, {
|
|
2130
1873
|
closable: "",
|
|
2131
1874
|
type: "info",
|
|
2132
|
-
onClose: (
|
|
1875
|
+
onClose: (W) => M(a)
|
|
2133
1876
|
}, {
|
|
2134
1877
|
default: d(() => [
|
|
2135
|
-
|
|
2136
|
-
|
|
1878
|
+
_("span", null, K(D.tagText), 1),
|
|
1879
|
+
_("span", {
|
|
2137
1880
|
class: "edit",
|
|
2138
|
-
onClick: (
|
|
2139
|
-
}, "编辑", 8,
|
|
1881
|
+
onClick: (W) => i(D)
|
|
1882
|
+
}, "编辑", 8, ut)
|
|
2140
1883
|
]),
|
|
2141
1884
|
_: 2
|
|
2142
1885
|
}, 1032, ["onClose"]))), 256))
|
|
2143
1886
|
]),
|
|
2144
|
-
t(
|
|
2145
|
-
modelValue:
|
|
2146
|
-
"onUpdate:modelValue": l[26] || (l[26] = (
|
|
2147
|
-
title:
|
|
1887
|
+
t(q, {
|
|
1888
|
+
modelValue: U.value,
|
|
1889
|
+
"onUpdate:modelValue": l[26] || (l[26] = (D) => U.value = D),
|
|
1890
|
+
title: k.value.label,
|
|
2148
1891
|
width: "600",
|
|
2149
1892
|
"align-center": "",
|
|
2150
1893
|
"destroy-on-close": ""
|
|
2151
|
-
},
|
|
1894
|
+
}, ve({
|
|
2152
1895
|
footer: d(() => [
|
|
2153
|
-
|
|
1896
|
+
_("div", wt, [
|
|
2154
1897
|
t(o, {
|
|
2155
1898
|
type: "primary",
|
|
2156
|
-
onClick:
|
|
1899
|
+
onClick: m
|
|
2157
1900
|
}, {
|
|
2158
1901
|
default: d(() => [
|
|
2159
|
-
|
|
1902
|
+
E("确定")
|
|
2160
1903
|
]),
|
|
2161
1904
|
_: 1
|
|
2162
1905
|
})
|
|
2163
1906
|
])
|
|
2164
1907
|
]),
|
|
2165
1908
|
default: d(() => {
|
|
2166
|
-
var
|
|
1909
|
+
var D;
|
|
2167
1910
|
return [
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
t(
|
|
1911
|
+
k.value.type === void 0 && e.value.radioType === "1" ? (u(), g("div", st, [
|
|
1912
|
+
it,
|
|
1913
|
+
t(y, {
|
|
2171
1914
|
modelValue: e.value.rankRange[0],
|
|
2172
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
1915
|
+
"onUpdate:modelValue": l[2] || (l[2] = (a) => e.value.rankRange[0] = a),
|
|
2173
1916
|
style: { flex: "1" }
|
|
2174
1917
|
}, null, 8, ["modelValue"]),
|
|
2175
|
-
|
|
2176
|
-
t(
|
|
1918
|
+
E(" ~ "),
|
|
1919
|
+
t(y, {
|
|
2177
1920
|
modelValue: e.value.rankRange[1],
|
|
2178
|
-
"onUpdate:modelValue": l[3] || (l[3] = (
|
|
1921
|
+
"onUpdate:modelValue": l[3] || (l[3] = (a) => e.value.rankRange[1] = a),
|
|
2179
1922
|
style: { flex: "1" }
|
|
2180
1923
|
}, null, 8, ["modelValue"])
|
|
2181
|
-
])) :
|
|
2182
|
-
(
|
|
2183
|
-
(
|
|
2184
|
-
key:
|
|
2185
|
-
onClick: (
|
|
1924
|
+
])) : k.value.type === void 0 ? (u(), g(R, { key: 1 }, [
|
|
1925
|
+
(D = k.value.convenientOptions) != null && D.length ? (u(), g("div", dt, [
|
|
1926
|
+
(u(!0), g(R, null, z(k.value.convenientOptions, (a) => (u(), L(o, {
|
|
1927
|
+
key: a.text,
|
|
1928
|
+
onClick: (W) => j(a)
|
|
2186
1929
|
}, {
|
|
2187
1930
|
default: d(() => [
|
|
2188
|
-
|
|
1931
|
+
E(K(a.text), 1)
|
|
2189
1932
|
]),
|
|
2190
1933
|
_: 2
|
|
2191
1934
|
}, 1032, ["onClick"]))), 128))
|
|
2192
|
-
])) :
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
t(
|
|
1935
|
+
])) : F("", !0),
|
|
1936
|
+
_("div", ct, [
|
|
1937
|
+
pt,
|
|
1938
|
+
t(y, {
|
|
2196
1939
|
modelValue: e.value.range[0],
|
|
2197
|
-
"onUpdate:modelValue": l[5] || (l[5] = (
|
|
1940
|
+
"onUpdate:modelValue": l[5] || (l[5] = (a) => e.value.range[0] = a),
|
|
2198
1941
|
style: { flex: "1" }
|
|
2199
|
-
},
|
|
2200
|
-
|
|
1942
|
+
}, ve({ _: 2 }, [
|
|
1943
|
+
k.value.unitOptions.length ? {
|
|
2201
1944
|
name: "append",
|
|
2202
1945
|
fn: d(() => [
|
|
2203
|
-
|
|
1946
|
+
k.value.unitOptions.length === 1 ? (u(), g("span", vt, K(e.value.unit[0]), 1)) : (u(), L(n, {
|
|
2204
1947
|
key: 1,
|
|
2205
1948
|
modelValue: e.value.unit[0],
|
|
2206
|
-
"onUpdate:modelValue": l[4] || (l[4] = (
|
|
1949
|
+
"onUpdate:modelValue": l[4] || (l[4] = (a) => e.value.unit[0] = a),
|
|
2207
1950
|
style: { width: "72px" }
|
|
2208
1951
|
}, {
|
|
2209
1952
|
default: d(() => [
|
|
2210
|
-
(
|
|
2211
|
-
label:
|
|
2212
|
-
value:
|
|
1953
|
+
(u(!0), g(R, null, z(k.value.unitOptions, (a) => (u(), L(w, {
|
|
1954
|
+
label: a,
|
|
1955
|
+
value: a
|
|
2213
1956
|
}, null, 8, ["label", "value"]))), 256))
|
|
2214
1957
|
]),
|
|
2215
1958
|
_: 1
|
|
@@ -2218,25 +1961,25 @@ const ge = (g) => (fe("data-v-3e69da40"), g = g(), ye(), g), kt = {
|
|
|
2218
1961
|
key: "0"
|
|
2219
1962
|
} : void 0
|
|
2220
1963
|
]), 1032, ["modelValue"]),
|
|
2221
|
-
|
|
2222
|
-
t(
|
|
1964
|
+
E(" ~ "),
|
|
1965
|
+
t(y, {
|
|
2223
1966
|
modelValue: e.value.range[1],
|
|
2224
|
-
"onUpdate:modelValue": l[7] || (l[7] = (
|
|
1967
|
+
"onUpdate:modelValue": l[7] || (l[7] = (a) => e.value.range[1] = a),
|
|
2225
1968
|
style: { flex: "1" }
|
|
2226
|
-
},
|
|
2227
|
-
|
|
1969
|
+
}, ve({ _: 2 }, [
|
|
1970
|
+
k.value.unitOptions.length ? {
|
|
2228
1971
|
name: "append",
|
|
2229
1972
|
fn: d(() => [
|
|
2230
|
-
|
|
1973
|
+
k.value.unitOptions.length === 1 ? (u(), g("span", mt, K(e.value.unit[1]), 1)) : (u(), L(n, {
|
|
2231
1974
|
key: 1,
|
|
2232
1975
|
modelValue: e.value.unit[1],
|
|
2233
|
-
"onUpdate:modelValue": l[6] || (l[6] = (
|
|
1976
|
+
"onUpdate:modelValue": l[6] || (l[6] = (a) => e.value.unit[1] = a),
|
|
2234
1977
|
style: { width: "72px" }
|
|
2235
1978
|
}, {
|
|
2236
1979
|
default: d(() => [
|
|
2237
|
-
(
|
|
2238
|
-
label:
|
|
2239
|
-
value:
|
|
1980
|
+
(u(!0), g(R, null, z(k.value.unitOptions, (a) => (u(), L(w, {
|
|
1981
|
+
label: a,
|
|
1982
|
+
value: a
|
|
2240
1983
|
}, null, 8, ["label", "value"]))), 256))
|
|
2241
1984
|
]),
|
|
2242
1985
|
_: 1
|
|
@@ -2246,259 +1989,259 @@ const ge = (g) => (fe("data-v-3e69da40"), g = g(), ye(), g), kt = {
|
|
|
2246
1989
|
} : void 0
|
|
2247
1990
|
]), 1032, ["modelValue"])
|
|
2248
1991
|
])
|
|
2249
|
-
], 64)) : (
|
|
2250
|
-
|
|
2251
|
-
t(
|
|
1992
|
+
], 64)) : (u(), g(R, { key: 2 }, [
|
|
1993
|
+
k.value.key === "st" ? (u(), g("div", ft, [
|
|
1994
|
+
t(r, {
|
|
2252
1995
|
modelValue: e.value.st,
|
|
2253
|
-
"onUpdate:modelValue": l[8] || (l[8] = (
|
|
1996
|
+
"onUpdate:modelValue": l[8] || (l[8] = (a) => e.value.st = a)
|
|
2254
1997
|
}, {
|
|
2255
1998
|
default: d(() => [
|
|
2256
|
-
t(
|
|
1999
|
+
t($, {
|
|
2257
2000
|
label: "是",
|
|
2258
2001
|
value: 1
|
|
2259
2002
|
}),
|
|
2260
|
-
t(
|
|
2003
|
+
t($, {
|
|
2261
2004
|
label: "否",
|
|
2262
2005
|
value: 0
|
|
2263
2006
|
})
|
|
2264
2007
|
]),
|
|
2265
2008
|
_: 1
|
|
2266
2009
|
}, 8, ["modelValue"])
|
|
2267
|
-
])) :
|
|
2268
|
-
|
|
2269
|
-
|
|
2010
|
+
])) : F("", !0),
|
|
2011
|
+
k.value.key === "tFeaturelncomes" ? (u(), g("div", yt, [
|
|
2012
|
+
_("div", gt, [
|
|
2270
2013
|
t(o, {
|
|
2271
|
-
onClick: l[9] || (l[9] = (
|
|
2014
|
+
onClick: l[9] || (l[9] = (a) => N("≤0"))
|
|
2272
2015
|
}, {
|
|
2273
2016
|
default: d(() => [
|
|
2274
|
-
|
|
2017
|
+
E("≤0")
|
|
2275
2018
|
]),
|
|
2276
2019
|
_: 1
|
|
2277
2020
|
}),
|
|
2278
2021
|
t(o, {
|
|
2279
|
-
onClick: l[10] || (l[10] = (
|
|
2022
|
+
onClick: l[10] || (l[10] = (a) => N("≥0"))
|
|
2280
2023
|
}, {
|
|
2281
2024
|
default: d(() => [
|
|
2282
|
-
|
|
2025
|
+
E("≥0")
|
|
2283
2026
|
]),
|
|
2284
2027
|
_: 1
|
|
2285
2028
|
}),
|
|
2286
2029
|
t(o, {
|
|
2287
|
-
onClick: l[11] || (l[11] = (
|
|
2030
|
+
onClick: l[11] || (l[11] = (a) => N("五年内有四年以上盈利超过5千万"))
|
|
2288
2031
|
}, {
|
|
2289
2032
|
default: d(() => [
|
|
2290
|
-
|
|
2033
|
+
E("五年内有四年以上盈利超过5千万")
|
|
2291
2034
|
]),
|
|
2292
2035
|
_: 1
|
|
2293
2036
|
}),
|
|
2294
2037
|
t(o, {
|
|
2295
|
-
onClick: l[12] || (l[12] = (
|
|
2038
|
+
onClick: l[12] || (l[12] = (a) => N("≥10亿"))
|
|
2296
2039
|
}, {
|
|
2297
2040
|
default: d(() => [
|
|
2298
|
-
|
|
2041
|
+
E("≥10亿")
|
|
2299
2042
|
]),
|
|
2300
2043
|
_: 1
|
|
2301
2044
|
}),
|
|
2302
2045
|
t(o, {
|
|
2303
|
-
onClick: l[13] || (l[13] = (
|
|
2046
|
+
onClick: l[13] || (l[13] = (a) => N("≥20亿"))
|
|
2304
2047
|
}, {
|
|
2305
2048
|
default: d(() => [
|
|
2306
|
-
|
|
2049
|
+
E("≥20亿")
|
|
2307
2050
|
]),
|
|
2308
2051
|
_: 1
|
|
2309
2052
|
})
|
|
2310
2053
|
]),
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
t(
|
|
2054
|
+
_("div", bt, [
|
|
2055
|
+
kt,
|
|
2056
|
+
_("div", null, [
|
|
2057
|
+
t(c, {
|
|
2315
2058
|
modelValue: e.value.withFewYears,
|
|
2316
|
-
"onUpdate:modelValue": l[14] || (l[14] = (
|
|
2059
|
+
"onUpdate:modelValue": l[14] || (l[14] = (a) => e.value.withFewYears = a),
|
|
2317
2060
|
"controls-position": "right"
|
|
2318
2061
|
}, null, 8, ["modelValue"]),
|
|
2319
|
-
|
|
2320
|
-
t(
|
|
2062
|
+
E(" 年内 "),
|
|
2063
|
+
t(c, {
|
|
2321
2064
|
modelValue: e.value.yearsCount,
|
|
2322
|
-
"onUpdate:modelValue": l[15] || (l[15] = (
|
|
2065
|
+
"onUpdate:modelValue": l[15] || (l[15] = (a) => e.value.yearsCount = a),
|
|
2323
2066
|
"controls-position": "right"
|
|
2324
2067
|
}, null, 8, ["modelValue"]),
|
|
2325
|
-
|
|
2326
|
-
t(
|
|
2068
|
+
E(" 年以上盈利" + K(e.value.rule === 1 ? "超" : "跌") + "过 ", 1),
|
|
2069
|
+
t(c, {
|
|
2327
2070
|
modelValue: e.value.netProfit,
|
|
2328
|
-
"onUpdate:modelValue": l[16] || (l[16] = (
|
|
2071
|
+
"onUpdate:modelValue": l[16] || (l[16] = (a) => e.value.netProfit = a),
|
|
2329
2072
|
"controls-position": "right"
|
|
2330
2073
|
}, null, 8, ["modelValue"]),
|
|
2331
|
-
|
|
2074
|
+
E(" 亿 ")
|
|
2332
2075
|
])
|
|
2333
2076
|
])
|
|
2334
|
-
])) :
|
|
2335
|
-
|
|
2336
|
-
t(
|
|
2077
|
+
])) : F("", !0),
|
|
2078
|
+
k.value.key === "priceLevels" ? (u(), g("div", _t, [
|
|
2079
|
+
t(n, {
|
|
2337
2080
|
modelValue: e.value.priceLevels,
|
|
2338
|
-
"onUpdate:modelValue": l[17] || (l[17] = (
|
|
2081
|
+
"onUpdate:modelValue": l[17] || (l[17] = (a) => e.value.priceLevels = a),
|
|
2339
2082
|
multiple: "",
|
|
2340
2083
|
clearable: "",
|
|
2341
2084
|
placeholder: "请选择",
|
|
2342
2085
|
style: { width: "420px" }
|
|
2343
2086
|
}, {
|
|
2344
2087
|
default: d(() => [
|
|
2345
|
-
(
|
|
2346
|
-
key:
|
|
2347
|
-
label: `${
|
|
2348
|
-
value:
|
|
2088
|
+
(u(), g(R, null, z([1, 2, 3, 4, 5], (a) => t(w, {
|
|
2089
|
+
key: a,
|
|
2090
|
+
label: `${a}分位`,
|
|
2091
|
+
value: a
|
|
2349
2092
|
}, null, 8, ["label", "value"])), 64))
|
|
2350
2093
|
]),
|
|
2351
2094
|
_: 1
|
|
2352
2095
|
}, 8, ["modelValue"])
|
|
2353
|
-
])) :
|
|
2354
|
-
|
|
2355
|
-
t(
|
|
2096
|
+
])) : F("", !0),
|
|
2097
|
+
k.value.key === "peTtmLevels" ? (u(), g("div", Vt, [
|
|
2098
|
+
t(n, {
|
|
2356
2099
|
modelValue: e.value.peTtmLevels,
|
|
2357
|
-
"onUpdate:modelValue": l[18] || (l[18] = (
|
|
2100
|
+
"onUpdate:modelValue": l[18] || (l[18] = (a) => e.value.peTtmLevels = a),
|
|
2358
2101
|
multiple: "",
|
|
2359
2102
|
clearable: "",
|
|
2360
2103
|
placeholder: "请选择",
|
|
2361
2104
|
style: { width: "420px" }
|
|
2362
2105
|
}, {
|
|
2363
2106
|
default: d(() => [
|
|
2364
|
-
(
|
|
2365
|
-
key:
|
|
2366
|
-
label: `${
|
|
2367
|
-
value:
|
|
2107
|
+
(u(), g(R, null, z([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (a) => t(w, {
|
|
2108
|
+
key: a,
|
|
2109
|
+
label: `${a}分位`,
|
|
2110
|
+
value: a
|
|
2368
2111
|
}, null, 8, ["label", "value"])), 64))
|
|
2369
2112
|
]),
|
|
2370
2113
|
_: 1
|
|
2371
2114
|
}, 8, ["modelValue"])
|
|
2372
|
-
])) :
|
|
2373
|
-
|
|
2374
|
-
t(
|
|
2115
|
+
])) : F("", !0),
|
|
2116
|
+
k.value.key === "optionsCpType" ? (u(), g("div", xt, [
|
|
2117
|
+
t(r, {
|
|
2375
2118
|
modelValue: e.value.optionsCpType,
|
|
2376
|
-
"onUpdate:modelValue": l[19] || (l[19] = (
|
|
2119
|
+
"onUpdate:modelValue": l[19] || (l[19] = (a) => e.value.optionsCpType = a)
|
|
2377
2120
|
}, {
|
|
2378
2121
|
default: d(() => [
|
|
2379
|
-
t(
|
|
2122
|
+
t($, {
|
|
2380
2123
|
label: "看涨",
|
|
2381
2124
|
value: 1
|
|
2382
2125
|
}),
|
|
2383
|
-
t(
|
|
2126
|
+
t($, {
|
|
2384
2127
|
label: "看跌",
|
|
2385
2128
|
value: 2
|
|
2386
2129
|
})
|
|
2387
2130
|
]),
|
|
2388
2131
|
_: 1
|
|
2389
2132
|
}, 8, ["modelValue"])
|
|
2390
|
-
])) :
|
|
2391
|
-
|
|
2392
|
-
t(
|
|
2133
|
+
])) : F("", !0),
|
|
2134
|
+
k.value.key === "perVolumn" ? (u(), g("div", ht, [
|
|
2135
|
+
t(r, {
|
|
2393
2136
|
modelValue: e.value.radio,
|
|
2394
|
-
"onUpdate:modelValue": l[20] || (l[20] = (
|
|
2137
|
+
"onUpdate:modelValue": l[20] || (l[20] = (a) => e.value.radio = a)
|
|
2395
2138
|
}, {
|
|
2396
2139
|
default: d(() => [
|
|
2397
|
-
(
|
|
2398
|
-
key:
|
|
2399
|
-
value:
|
|
2140
|
+
(u(), g(R, null, z(T, (a) => t($, {
|
|
2141
|
+
key: a.value,
|
|
2142
|
+
value: a.value
|
|
2400
2143
|
}, {
|
|
2401
2144
|
default: d(() => [
|
|
2402
|
-
|
|
2145
|
+
E(K(a.label), 1)
|
|
2403
2146
|
]),
|
|
2404
2147
|
_: 2
|
|
2405
2148
|
}, 1032, ["value"])), 64))
|
|
2406
2149
|
]),
|
|
2407
2150
|
_: 1
|
|
2408
2151
|
}, 8, ["modelValue"]),
|
|
2409
|
-
t(
|
|
2152
|
+
t(n, {
|
|
2410
2153
|
modelValue: e.value.levels,
|
|
2411
|
-
"onUpdate:modelValue": l[21] || (l[21] = (
|
|
2154
|
+
"onUpdate:modelValue": l[21] || (l[21] = (a) => e.value.levels = a),
|
|
2412
2155
|
multiple: "",
|
|
2413
2156
|
clearable: "",
|
|
2414
2157
|
placeholder: "请选择",
|
|
2415
2158
|
style: { width: "420px" }
|
|
2416
2159
|
}, {
|
|
2417
2160
|
default: d(() => [
|
|
2418
|
-
(
|
|
2419
|
-
key:
|
|
2420
|
-
label: `${
|
|
2421
|
-
value:
|
|
2161
|
+
(u(), g(R, null, z([1, 2, 3, 4, 5], (a) => t(w, {
|
|
2162
|
+
key: a,
|
|
2163
|
+
label: `${a}分位`,
|
|
2164
|
+
value: a
|
|
2422
2165
|
}, null, 8, ["label", "value"])), 64))
|
|
2423
2166
|
]),
|
|
2424
2167
|
_: 1
|
|
2425
2168
|
}, 8, ["modelValue"])
|
|
2426
|
-
])) :
|
|
2427
|
-
|
|
2428
|
-
t(
|
|
2169
|
+
])) : F("", !0),
|
|
2170
|
+
k.value.key === "mainFlow" ? (u(), g("div", Ot, [
|
|
2171
|
+
t(r, {
|
|
2429
2172
|
modelValue: e.value.radio,
|
|
2430
|
-
"onUpdate:modelValue": l[22] || (l[22] = (
|
|
2173
|
+
"onUpdate:modelValue": l[22] || (l[22] = (a) => e.value.radio = a)
|
|
2431
2174
|
}, {
|
|
2432
2175
|
default: d(() => [
|
|
2433
|
-
t(
|
|
2176
|
+
t($, { value: "3" }, {
|
|
2434
2177
|
default: d(() => [
|
|
2435
|
-
|
|
2178
|
+
E("3日")
|
|
2436
2179
|
]),
|
|
2437
2180
|
_: 1
|
|
2438
2181
|
}),
|
|
2439
|
-
t(
|
|
2182
|
+
t($, { value: "5" }, {
|
|
2440
2183
|
default: d(() => [
|
|
2441
|
-
|
|
2184
|
+
E("5日")
|
|
2442
2185
|
]),
|
|
2443
2186
|
_: 1
|
|
2444
2187
|
}),
|
|
2445
|
-
t(
|
|
2188
|
+
t($, { value: "10" }, {
|
|
2446
2189
|
default: d(() => [
|
|
2447
|
-
|
|
2190
|
+
E("10日")
|
|
2448
2191
|
]),
|
|
2449
2192
|
_: 1
|
|
2450
2193
|
}),
|
|
2451
|
-
t(
|
|
2194
|
+
t($, { value: "20" }, {
|
|
2452
2195
|
default: d(() => [
|
|
2453
|
-
|
|
2196
|
+
E("20日")
|
|
2454
2197
|
]),
|
|
2455
2198
|
_: 1
|
|
2456
2199
|
})
|
|
2457
2200
|
]),
|
|
2458
2201
|
_: 1
|
|
2459
2202
|
}, 8, ["modelValue"]),
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
t(
|
|
2203
|
+
_("div", $t, [
|
|
2204
|
+
_("span", null, K(e.value.radioType === "0" ? "涨幅范围" : "排名范围") + ": ", 1),
|
|
2205
|
+
t(y, {
|
|
2463
2206
|
modelValue: e.value.rankRange[0],
|
|
2464
|
-
"onUpdate:modelValue": l[23] || (l[23] = (
|
|
2207
|
+
"onUpdate:modelValue": l[23] || (l[23] = (a) => e.value.rankRange[0] = a),
|
|
2465
2208
|
style: { flex: "1" }
|
|
2466
2209
|
}, null, 8, ["modelValue"]),
|
|
2467
|
-
|
|
2468
|
-
t(
|
|
2210
|
+
E(" ~ "),
|
|
2211
|
+
t(y, {
|
|
2469
2212
|
modelValue: e.value.rankRange[1],
|
|
2470
|
-
"onUpdate:modelValue": l[24] || (l[24] = (
|
|
2213
|
+
"onUpdate:modelValue": l[24] || (l[24] = (a) => e.value.rankRange[1] = a),
|
|
2471
2214
|
style: { flex: "1" }
|
|
2472
2215
|
}, null, 8, ["modelValue"])
|
|
2473
2216
|
])
|
|
2474
|
-
])) :
|
|
2475
|
-
|
|
2476
|
-
t(
|
|
2217
|
+
])) : F("", !0),
|
|
2218
|
+
k.value.key === "auditOpinionType" ? (u(), g("div", It, [
|
|
2219
|
+
t(r, {
|
|
2477
2220
|
modelValue: e.value.enumType,
|
|
2478
|
-
"onUpdate:modelValue": l[25] || (l[25] = (
|
|
2221
|
+
"onUpdate:modelValue": l[25] || (l[25] = (a) => e.value.enumType = a)
|
|
2479
2222
|
}, {
|
|
2480
2223
|
default: d(() => [
|
|
2481
|
-
(
|
|
2482
|
-
key:
|
|
2483
|
-
label:
|
|
2484
|
-
value:
|
|
2224
|
+
(u(), g(R, null, z(h, (a, W) => t($, {
|
|
2225
|
+
key: W,
|
|
2226
|
+
label: a.label,
|
|
2227
|
+
value: a.value
|
|
2485
2228
|
}, null, 8, ["label", "value"])), 64))
|
|
2486
2229
|
]),
|
|
2487
2230
|
_: 1
|
|
2488
2231
|
}, 8, ["modelValue"])
|
|
2489
|
-
])) :
|
|
2232
|
+
])) : F("", !0)
|
|
2490
2233
|
], 64))
|
|
2491
2234
|
];
|
|
2492
2235
|
}),
|
|
2493
2236
|
_: 2
|
|
2494
2237
|
}, [
|
|
2495
|
-
|
|
2238
|
+
k.value.showRankType ? {
|
|
2496
2239
|
name: "header",
|
|
2497
2240
|
fn: d(() => [
|
|
2498
|
-
|
|
2499
|
-
t(
|
|
2241
|
+
_("span", rt, K(k.value.label), 1),
|
|
2242
|
+
t(r, {
|
|
2500
2243
|
modelValue: e.value.radioType,
|
|
2501
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
2244
|
+
"onUpdate:modelValue": l[0] || (l[0] = (D) => e.value.radioType = D),
|
|
2502
2245
|
style: { "vertical-align": "4px", "margin-left": "12px" }
|
|
2503
2246
|
}, {
|
|
2504
2247
|
default: d(() => [
|
|
@@ -2507,7 +2250,7 @@ const ge = (g) => (fe("data-v-3e69da40"), g = g(), ye(), g), kt = {
|
|
|
2507
2250
|
value: "0"
|
|
2508
2251
|
}),
|
|
2509
2252
|
t(p, {
|
|
2510
|
-
disabled:
|
|
2253
|
+
disabled: C.value && C.value !== k.value.key,
|
|
2511
2254
|
label: "排名",
|
|
2512
2255
|
value: "1"
|
|
2513
2256
|
}, null, 8, ["disabled"])
|
|
@@ -2516,15 +2259,15 @@ const ge = (g) => (fe("data-v-3e69da40"), g = g(), ye(), g), kt = {
|
|
|
2516
2259
|
}, 8, ["modelValue"])
|
|
2517
2260
|
]),
|
|
2518
2261
|
key: "0"
|
|
2519
|
-
} :
|
|
2262
|
+
} : k.value.key === "mainFlow" ? {
|
|
2520
2263
|
name: "header",
|
|
2521
2264
|
fn: d(() => [
|
|
2522
|
-
|
|
2523
|
-
t(
|
|
2265
|
+
_("span", { style: { "font-size": "18px" } }, K(k.value.label), 1),
|
|
2266
|
+
t(r, {
|
|
2524
2267
|
modelValue: e.value.radioType,
|
|
2525
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
2268
|
+
"onUpdate:modelValue": l[1] || (l[1] = (D) => e.value.radioType = D),
|
|
2526
2269
|
style: { "vertical-align": "4px", "margin-left": "12px" },
|
|
2527
|
-
onChange:
|
|
2270
|
+
onChange: Q
|
|
2528
2271
|
}, {
|
|
2529
2272
|
default: d(() => [
|
|
2530
2273
|
t(p, {
|
|
@@ -2532,7 +2275,7 @@ const ge = (g) => (fe("data-v-3e69da40"), g = g(), ye(), g), kt = {
|
|
|
2532
2275
|
value: "0"
|
|
2533
2276
|
}),
|
|
2534
2277
|
t(p, {
|
|
2535
|
-
disabled:
|
|
2278
|
+
disabled: C.value && C.value !== k.value.key,
|
|
2536
2279
|
label: "排名范围",
|
|
2537
2280
|
value: "1"
|
|
2538
2281
|
}, null, 8, ["disabled"])
|
|
@@ -2543,38 +2286,38 @@ const ge = (g) => (fe("data-v-3e69da40"), g = g(), ye(), g), kt = {
|
|
|
2543
2286
|
key: "1"
|
|
2544
2287
|
} : void 0
|
|
2545
2288
|
]), 1032, ["modelValue", "title"])
|
|
2546
|
-
])) :
|
|
2289
|
+
])) : F("", !0);
|
|
2547
2290
|
};
|
|
2548
2291
|
}
|
|
2549
|
-
},
|
|
2550
|
-
const
|
|
2292
|
+
}, St = /* @__PURE__ */ $e(Tt, [["__scopeId", "data-v-3e69da40"]]);
|
|
2293
|
+
const te = (f) => (xe("data-v-efd872de"), f = f(), he(), f), Ct = { class: "variety-search" }, Et = {
|
|
2551
2294
|
key: 0,
|
|
2552
2295
|
class: "variety-search-row"
|
|
2553
|
-
},
|
|
2296
|
+
}, Rt = { class: "title" }, Ut = /* @__PURE__ */ te(() => /* @__PURE__ */ _("span", null, "品种市场: ", -1)), Mt = {
|
|
2554
2297
|
key: 1,
|
|
2555
2298
|
class: "variety-search-row"
|
|
2556
|
-
},
|
|
2299
|
+
}, qt = { class: "title" }, Dt = /* @__PURE__ */ te(() => /* @__PURE__ */ _("span", null, "常用选项: ", -1)), Ft = {
|
|
2557
2300
|
key: 2,
|
|
2558
2301
|
class: "variety-search-row"
|
|
2559
|
-
},
|
|
2302
|
+
}, Lt = { class: "title" }, jt = /* @__PURE__ */ te(() => /* @__PURE__ */ _("span", null, "上市板块: ", -1)), zt = {
|
|
2560
2303
|
key: 3,
|
|
2561
2304
|
class: "variety-search-row"
|
|
2562
|
-
},
|
|
2305
|
+
}, Nt = { class: "title" }, Pt = /* @__PURE__ */ te(() => /* @__PURE__ */ _("span", null, "自定标签: ", -1)), Bt = {
|
|
2563
2306
|
key: 4,
|
|
2564
2307
|
class: "variety-search-row"
|
|
2565
|
-
},
|
|
2308
|
+
}, Gt = { class: "title" }, Yt = /* @__PURE__ */ te(() => /* @__PURE__ */ _("span", null, "价差转换: ", -1)), Jt = {
|
|
2566
2309
|
key: 5,
|
|
2567
2310
|
class: "variety-search-row"
|
|
2568
|
-
},
|
|
2311
|
+
}, At = { class: "title" }, Kt = /* @__PURE__ */ te(() => /* @__PURE__ */ _("span", null, "因子筛选: ", -1)), Qt = {
|
|
2569
2312
|
__name: "index",
|
|
2570
|
-
props: /* @__PURE__ */
|
|
2313
|
+
props: /* @__PURE__ */ de({ config: { type: Object, default: {} } }, {
|
|
2571
2314
|
searchData: {},
|
|
2572
2315
|
searchDataModifiers: {}
|
|
2573
2316
|
}),
|
|
2574
2317
|
emits: ["update:searchData"],
|
|
2575
|
-
setup(
|
|
2576
|
-
const
|
|
2577
|
-
|
|
2318
|
+
setup(f, { expose: T }) {
|
|
2319
|
+
const h = f, s = ce(f, "searchData");
|
|
2320
|
+
s.value = Object.assign(s.value, {
|
|
2578
2321
|
// 品种市场
|
|
2579
2322
|
varietyMarket: null,
|
|
2580
2323
|
// 常用选项
|
|
@@ -2598,44 +2341,44 @@ const le = (g) => (fe("data-v-efd872de"), g = g(), ye(), g), Ht = { class: "vari
|
|
|
2598
2341
|
// 常用指标
|
|
2599
2342
|
commonIndicator: []
|
|
2600
2343
|
});
|
|
2601
|
-
const
|
|
2602
|
-
const
|
|
2603
|
-
return Object.keys(
|
|
2604
|
-
const
|
|
2605
|
-
|
|
2606
|
-
}),
|
|
2607
|
-
}),
|
|
2608
|
-
const { varietyMarket:
|
|
2609
|
-
return
|
|
2610
|
-
const
|
|
2611
|
-
return
|
|
2612
|
-
}, []) :
|
|
2613
|
-
}),
|
|
2614
|
-
const { varietyMarket:
|
|
2615
|
-
return
|
|
2616
|
-
}),
|
|
2617
|
-
switch (
|
|
2344
|
+
const V = A(() => {
|
|
2345
|
+
const m = {};
|
|
2346
|
+
return Object.keys(Ue).forEach((i) => {
|
|
2347
|
+
const M = Ue[i], j = h.config[i] ?? {}, N = { ...M, ...j };
|
|
2348
|
+
m[i] = N;
|
|
2349
|
+
}), m;
|
|
2350
|
+
}), U = A(() => V.value.varietyMarket.options), C = A(() => {
|
|
2351
|
+
const { varietyMarket: m } = s.value;
|
|
2352
|
+
return m ? U.value.find(({ value: M }) => M === m).memo.reduce((M, j) => {
|
|
2353
|
+
const N = V.value.commonOption.options.find((Q) => Q.value === j);
|
|
2354
|
+
return N && M.push(N), M;
|
|
2355
|
+
}, []) : V.value.commonOption.options;
|
|
2356
|
+
}), S = A(() => {
|
|
2357
|
+
const { varietyMarket: m } = s.value;
|
|
2358
|
+
return m ? V.value.marketIds.options.filter((i) => i.varietyMarketIds.includes(m)) : V.value.marketIds.options;
|
|
2359
|
+
}), k = A(() => V.value.customTag.options), e = A(() => V.value.jcTranslate.jcOptions), P = (m) => {
|
|
2360
|
+
switch (m) {
|
|
2618
2361
|
case "commonOption": {
|
|
2619
|
-
|
|
2362
|
+
s.value[m] = [];
|
|
2620
2363
|
break;
|
|
2621
2364
|
}
|
|
2622
2365
|
case "marketIds": {
|
|
2623
|
-
|
|
2366
|
+
s.value[m] = [];
|
|
2624
2367
|
break;
|
|
2625
2368
|
}
|
|
2626
2369
|
case "customTag": {
|
|
2627
|
-
|
|
2370
|
+
s.value[m] = [];
|
|
2628
2371
|
break;
|
|
2629
2372
|
}
|
|
2630
2373
|
case "jcTranslate": {
|
|
2631
|
-
|
|
2374
|
+
s.value[m] = {
|
|
2632
2375
|
type: null,
|
|
2633
2376
|
jcList: []
|
|
2634
2377
|
};
|
|
2635
2378
|
break;
|
|
2636
2379
|
}
|
|
2637
2380
|
case "factorScreen": {
|
|
2638
|
-
|
|
2381
|
+
s.value[m] = {
|
|
2639
2382
|
list: [],
|
|
2640
2383
|
sqlEnable: 0,
|
|
2641
2384
|
sqlValue: null,
|
|
@@ -2644,47 +2387,47 @@ const le = (g) => (fe("data-v-efd872de"), g = g(), ye(), g), Ht = { class: "vari
|
|
|
2644
2387
|
break;
|
|
2645
2388
|
}
|
|
2646
2389
|
case "commonIndicator": {
|
|
2647
|
-
|
|
2390
|
+
s.value[m] = [];
|
|
2648
2391
|
break;
|
|
2649
2392
|
}
|
|
2650
2393
|
default: {
|
|
2651
|
-
|
|
2394
|
+
s.value[m] = null;
|
|
2652
2395
|
break;
|
|
2653
2396
|
}
|
|
2654
2397
|
}
|
|
2655
2398
|
};
|
|
2656
|
-
return
|
|
2657
|
-
() =>
|
|
2658
|
-
(
|
|
2659
|
-
var
|
|
2660
|
-
(
|
|
2399
|
+
return oe(
|
|
2400
|
+
() => C.value,
|
|
2401
|
+
(m) => {
|
|
2402
|
+
var i;
|
|
2403
|
+
(i = s.value.commonOption) != null && i.length && (s.value.commonOption = s.value.commonOption.filter((M) => m.find(({ value: j }) => j === M)));
|
|
2661
2404
|
}
|
|
2662
|
-
),
|
|
2663
|
-
() =>
|
|
2664
|
-
(
|
|
2665
|
-
var
|
|
2666
|
-
(
|
|
2405
|
+
), oe(
|
|
2406
|
+
() => S.value,
|
|
2407
|
+
(m) => {
|
|
2408
|
+
var i;
|
|
2409
|
+
(i = s.value.marketIds) != null && i.length && (s.value.marketIds = s.value.marketIds.filter((M) => m.find(({ value: j }) => j === M)));
|
|
2667
2410
|
}
|
|
2668
|
-
),
|
|
2411
|
+
), T({
|
|
2669
2412
|
// 生成接口传参结构的数据
|
|
2670
|
-
formatData: (
|
|
2671
|
-
var
|
|
2413
|
+
formatData: (m) => {
|
|
2414
|
+
var M, j, N, Q, x, l;
|
|
2672
2415
|
console.log("%c[st-varietySearch]: 正在生成接口传参...", "color: tomato");
|
|
2673
|
-
const
|
|
2674
|
-
if (
|
|
2675
|
-
const { jcTranslate:
|
|
2416
|
+
const i = {};
|
|
2417
|
+
if (m.varietyMarket && (i.exchangeId = String(m.varietyMarket)), (M = m.commonOption) != null && M.length && (i.optionId = m.commonOption.join(",")), (j = m.marketIds) != null && j.length && (i.marketIds = m.marketIds), (N = m.customTag) != null && N.length && (i.tagIds = m.customTag), (Q = V.value.jcTranslate) != null && Q.show) {
|
|
2418
|
+
const { jcTranslate: v } = m, { type: p, jcList: r } = v;
|
|
2676
2419
|
switch (p) {
|
|
2677
2420
|
case 1: {
|
|
2678
|
-
|
|
2421
|
+
i.translateType = 1, i.jcType = r.join(",");
|
|
2679
2422
|
break;
|
|
2680
2423
|
}
|
|
2681
2424
|
case 2:
|
|
2682
|
-
|
|
2425
|
+
i.translateType = 2;
|
|
2683
2426
|
}
|
|
2684
2427
|
}
|
|
2685
|
-
if ((x =
|
|
2686
|
-
const { factorScreen:
|
|
2687
|
-
if ((l =
|
|
2428
|
+
if ((x = V.value.factorScreen) != null && x.show) {
|
|
2429
|
+
const { factorScreen: v } = m;
|
|
2430
|
+
if ((l = v == null ? void 0 : v.list) != null && l.length && (i.tbFeatureFactorScores = v.list.map((p) => {
|
|
2688
2431
|
switch (p.key) {
|
|
2689
2432
|
case "compare":
|
|
2690
2433
|
return {
|
|
@@ -2702,147 +2445,147 @@ const le = (g) => (fe("data-v-efd872de"), g = g(), ye(), g), Ht = { class: "vari
|
|
|
2702
2445
|
endScore: p.score[1]
|
|
2703
2446
|
};
|
|
2704
2447
|
}
|
|
2705
|
-
})),
|
|
2706
|
-
const p =
|
|
2707
|
-
var
|
|
2708
|
-
const
|
|
2448
|
+
})), v.sqlEnable) {
|
|
2449
|
+
const p = v.list.reduce((y, o, w) => {
|
|
2450
|
+
var $, c;
|
|
2451
|
+
const n = `条件${w + 1}`;
|
|
2709
2452
|
switch (o.key) {
|
|
2710
2453
|
case "compare": {
|
|
2711
|
-
let
|
|
2712
|
-
(
|
|
2454
|
+
let q = "";
|
|
2455
|
+
($ = V.value.factorScreen) != null && $.cycleShow ? q = `freq_id = ${o.cycle} and factor_id = ${o.factor} ${o.compareType} freq_id = ${o.cycle2} and factor_id = ${o.factor2}` : q = `factor_id = ${o.factor} ${o.compareType} factor_id = ${o.factor2}`, y.set(n, `(${q})`);
|
|
2713
2456
|
break;
|
|
2714
2457
|
}
|
|
2715
2458
|
default: {
|
|
2716
|
-
let
|
|
2717
|
-
(
|
|
2459
|
+
let q = `factor_id = ${o.factor} and `;
|
|
2460
|
+
(c = V.value.factorScreen) != null && c.cycleShow && (q = `freq_id = ${o.cycle} and factor_id = ${o.factor} and `), (o.score[0] || o.score[0] === 0) && (o.score[1] || o.score[1] === 0) ? q += `score >= ${o.score[0]} and score <= ${o.score[1]}` : o.score[0] || o.score[0] === 0 ? q += `score >= ${o.score[0]}` : (o.score[1] || o.score[1] === 0) && (q += `score <= ${o.score[1]}`), y.set(n, `(${q})`);
|
|
2718
2461
|
}
|
|
2719
2462
|
}
|
|
2720
|
-
return
|
|
2463
|
+
return y;
|
|
2721
2464
|
}, /* @__PURE__ */ new Map([]));
|
|
2722
|
-
let
|
|
2723
|
-
for (const [
|
|
2724
|
-
const
|
|
2725
|
-
|
|
2465
|
+
let r = v.sqlValue;
|
|
2466
|
+
for (const [y, o] of p) {
|
|
2467
|
+
const w = new RegExp(y, "g");
|
|
2468
|
+
r = r.replace(w, o);
|
|
2726
2469
|
}
|
|
2727
|
-
|
|
2470
|
+
i.sql = r, i.sqlExpression = v.sqlValue;
|
|
2728
2471
|
}
|
|
2729
|
-
|
|
2472
|
+
i.enableSql = v.sqlEnable === 1 ? 2 : 1, v.factorSelectExpr && (i.factorSelectExpr = v.factorSelectExpr);
|
|
2730
2473
|
}
|
|
2731
2474
|
{
|
|
2732
|
-
const
|
|
2733
|
-
const { key:
|
|
2734
|
-
if (
|
|
2735
|
-
let [
|
|
2736
|
-
|
|
2475
|
+
const v = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"], p = m.commonIndicator.reduce((c, q) => {
|
|
2476
|
+
const { key: D, type: a, range: W, unit: ae, radioType: ue, radio: re, rankRange: ne } = q;
|
|
2477
|
+
if (D === "mainFlow") {
|
|
2478
|
+
let [Y, G] = ne, I = ue === "0" ? `netInfow${re}d` : `last${re}DayMainFlowRank`;
|
|
2479
|
+
c.push({ column: I, start: Y, end: G });
|
|
2737
2480
|
}
|
|
2738
|
-
if (
|
|
2739
|
-
|
|
2481
|
+
if (D === "auditOpinionType")
|
|
2482
|
+
c.push({ column: q.key, enumType: q.enumType });
|
|
2740
2483
|
else if (ue === "1")
|
|
2741
|
-
|
|
2742
|
-
column:
|
|
2743
|
-
start:
|
|
2744
|
-
end:
|
|
2484
|
+
i.sortBy = {
|
|
2485
|
+
column: q.key,
|
|
2486
|
+
start: ne[0] || null,
|
|
2487
|
+
end: ne[1] || null
|
|
2745
2488
|
};
|
|
2746
|
-
else if (["dividendYield", "incrementRevenueLyr", "netProfitGrowthRatioLyr", "fiveYearRoe"].includes(
|
|
2747
|
-
let [
|
|
2748
|
-
["", null].includes(
|
|
2749
|
-
column:
|
|
2750
|
-
start:
|
|
2751
|
-
end:
|
|
2489
|
+
else if (["dividendYield", "incrementRevenueLyr", "netProfitGrowthRatioLyr", "fiveYearRoe"].includes(D)) {
|
|
2490
|
+
let [Y, G] = W;
|
|
2491
|
+
["", null].includes(Y) || (Y = Y / 100), ["", null].includes(G) || (G = G / 100), c.push({
|
|
2492
|
+
column: q.key,
|
|
2493
|
+
start: Y,
|
|
2494
|
+
end: G
|
|
2752
2495
|
});
|
|
2753
|
-
} else if (
|
|
2754
|
-
let [
|
|
2755
|
-
if (!["", null].includes(
|
|
2756
|
-
switch (
|
|
2496
|
+
} else if (a === void 0 && !v.includes(D)) {
|
|
2497
|
+
let [Y, G] = W;
|
|
2498
|
+
if (!["", null].includes(Y))
|
|
2499
|
+
switch (ae[0]) {
|
|
2757
2500
|
case "亿":
|
|
2758
|
-
|
|
2501
|
+
Y = Y * 1e8;
|
|
2759
2502
|
break;
|
|
2760
2503
|
case "千万":
|
|
2761
|
-
|
|
2504
|
+
Y = Y * 1e7;
|
|
2762
2505
|
break;
|
|
2763
2506
|
default:
|
|
2764
|
-
|
|
2507
|
+
Y = Y;
|
|
2765
2508
|
break;
|
|
2766
2509
|
}
|
|
2767
|
-
if (!["", null].includes(
|
|
2768
|
-
switch (
|
|
2510
|
+
if (!["", null].includes(G))
|
|
2511
|
+
switch (ae[1]) {
|
|
2769
2512
|
case "亿":
|
|
2770
|
-
|
|
2513
|
+
G = G * 1e8;
|
|
2771
2514
|
break;
|
|
2772
2515
|
case "千万":
|
|
2773
|
-
|
|
2516
|
+
G = G * 1e7;
|
|
2774
2517
|
break;
|
|
2775
2518
|
default:
|
|
2776
|
-
|
|
2519
|
+
G = G;
|
|
2777
2520
|
break;
|
|
2778
2521
|
}
|
|
2779
|
-
|
|
2780
|
-
column:
|
|
2781
|
-
start:
|
|
2782
|
-
end:
|
|
2522
|
+
c.push({
|
|
2523
|
+
column: q.key,
|
|
2524
|
+
start: Y,
|
|
2525
|
+
end: G
|
|
2783
2526
|
});
|
|
2784
2527
|
}
|
|
2785
|
-
return
|
|
2528
|
+
return c;
|
|
2786
2529
|
}, []);
|
|
2787
|
-
p.length && (
|
|
2788
|
-
const
|
|
2789
|
-
|
|
2790
|
-
const
|
|
2791
|
-
|
|
2792
|
-
const o =
|
|
2793
|
-
o && (
|
|
2794
|
-
const
|
|
2795
|
-
|
|
2796
|
-
const
|
|
2797
|
-
|
|
2798
|
-
const { key:
|
|
2799
|
-
switch (
|
|
2530
|
+
p.length && (i.query = p);
|
|
2531
|
+
const r = m.commonIndicator.find(({ key: c }) => c === "st");
|
|
2532
|
+
r && (i.st = r.st);
|
|
2533
|
+
const y = m.commonIndicator.find(({ key: c }) => c === "tFeaturelncomes");
|
|
2534
|
+
y && (i.netProfitQueryDto = { ...y, netProfit: y.netProfit * 1e8 });
|
|
2535
|
+
const o = m.commonIndicator.find(({ key: c }) => c === "priceLevels");
|
|
2536
|
+
o && (i.priceLevels = o.priceLevels);
|
|
2537
|
+
const w = m.commonIndicator.find(({ key: c }) => c === "peTtmLevels");
|
|
2538
|
+
w && (i.peTtmLevels = w.peTtmLevels);
|
|
2539
|
+
const n = {};
|
|
2540
|
+
m.commonIndicator.forEach((c) => {
|
|
2541
|
+
const { key: q } = c;
|
|
2542
|
+
switch (q) {
|
|
2800
2543
|
case "expireDays":
|
|
2801
|
-
["", null].includes(
|
|
2544
|
+
["", null].includes(c.range[0]) || (n.minExpireDays = c.range[0]), ["", null].includes(c.range[1]) || (n.maxExpireDays = c.range[1]);
|
|
2802
2545
|
break;
|
|
2803
2546
|
case "virtualRealDegree":
|
|
2804
|
-
["", null].includes(
|
|
2547
|
+
["", null].includes(c.range[0]) || (n.minVirtualRealDegree = c.range[0] / 100), ["", null].includes(c.range[1]) || (n.maxVirtualRealDegree = c.range[1] / 100);
|
|
2805
2548
|
break;
|
|
2806
2549
|
case "yearProfitRate":
|
|
2807
|
-
["", null].includes(
|
|
2550
|
+
["", null].includes(c.range[0]) || (n.minYearProfitRate = c.range[0] / 100), ["", null].includes(c.range[1]) || (n.maxYearProfitRate = c.range[1] / 100);
|
|
2808
2551
|
break;
|
|
2809
2552
|
case "impliedVolatility":
|
|
2810
|
-
["", null].includes(
|
|
2553
|
+
["", null].includes(c.range[0]) || (n.minImpliedVolatility = c.range[0] / 100), ["", null].includes(c.range[1]) || (n.maxImpliedVolatility = c.range[1] / 100);
|
|
2811
2554
|
break;
|
|
2812
2555
|
case "levelMultiplier":
|
|
2813
|
-
["", null].includes(
|
|
2556
|
+
["", null].includes(c.range[0]) || (n.minLevelMultiplier = c.range[0]), ["", null].includes(c.range[1]) || (n.maxLevelMultiplier = c.range[1]);
|
|
2814
2557
|
break;
|
|
2815
2558
|
case "turnover":
|
|
2816
|
-
["", null].includes(
|
|
2559
|
+
["", null].includes(c.range[0]) || (n.minTurnover = c.range[0] * 1e4), ["", null].includes(c.range[1]) || (n.maxTurnover = c.range[1] * 1e4);
|
|
2817
2560
|
break;
|
|
2818
2561
|
case "volume":
|
|
2819
|
-
["", null].includes(
|
|
2562
|
+
["", null].includes(c.range[0]) || (n.minVolume = c.range[0]), ["", null].includes(c.range[1]) || (n.maxVolume = c.range[1]);
|
|
2820
2563
|
break;
|
|
2821
2564
|
case "openInterest":
|
|
2822
|
-
["", null].includes(
|
|
2565
|
+
["", null].includes(c.range[0]) || (n.minOpenInterest = c.range[0]), ["", null].includes(c.range[1]) || (n.maxOpenInterest = c.range[1]);
|
|
2823
2566
|
break;
|
|
2824
2567
|
case "optionsCpType":
|
|
2825
|
-
|
|
2568
|
+
n.optionsCpType = c.optionsCpType;
|
|
2826
2569
|
break;
|
|
2827
2570
|
case "optionGear":
|
|
2828
|
-
["", null].includes(
|
|
2571
|
+
["", null].includes(c.range[0]) || (n.minOptionGear = c.range[0]), ["", null].includes(c.range[1]) || (n.maxOptionGear = c.range[1]);
|
|
2829
2572
|
break;
|
|
2830
2573
|
}
|
|
2831
2574
|
});
|
|
2832
|
-
const
|
|
2833
|
-
|
|
2834
|
-
type:
|
|
2835
|
-
value:
|
|
2836
|
-
}), Object.keys(
|
|
2837
|
-
...
|
|
2838
|
-
...
|
|
2575
|
+
const $ = m.commonIndicator.find(({ key: c }) => c === "perVolumn");
|
|
2576
|
+
$ && (i.perVolumn = {
|
|
2577
|
+
type: $.radio,
|
|
2578
|
+
value: $.levels
|
|
2579
|
+
}), Object.keys(n).length && (i.searchOptionDto = {
|
|
2580
|
+
...i.searchOptionDto,
|
|
2581
|
+
...n
|
|
2839
2582
|
});
|
|
2840
2583
|
}
|
|
2841
|
-
return console.log("%c[st-varietySearch]: 接口传参数据生成完毕", "color: green",
|
|
2584
|
+
return console.log("%c[st-varietySearch]: 接口传参数据生成完毕", "color: green", i), i;
|
|
2842
2585
|
},
|
|
2843
2586
|
// 重置函数
|
|
2844
2587
|
reset: () => {
|
|
2845
|
-
|
|
2588
|
+
s.value = {
|
|
2846
2589
|
// 品种市场
|
|
2847
2590
|
varietyMarket: null,
|
|
2848
2591
|
// 常用选项
|
|
@@ -2867,129 +2610,129 @@ const le = (g) => (fe("data-v-efd872de"), g = g(), ye(), g), Ht = { class: "vari
|
|
|
2867
2610
|
commonIndicator: []
|
|
2868
2611
|
};
|
|
2869
2612
|
}
|
|
2870
|
-
}), (
|
|
2871
|
-
var
|
|
2872
|
-
const
|
|
2873
|
-
return
|
|
2874
|
-
(
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
onClick:
|
|
2613
|
+
}), (m, i) => {
|
|
2614
|
+
var v, p, r, y, o, w;
|
|
2615
|
+
const M = we, j = Te, N = ol, Q = ul, x = ge, l = be;
|
|
2616
|
+
return u(), g("div", Ct, [
|
|
2617
|
+
(v = V.value.varietyMarket) != null && v.show ? (u(), g("div", Et, [
|
|
2618
|
+
_("div", Rt, [
|
|
2619
|
+
Ut,
|
|
2620
|
+
_("span", {
|
|
2621
|
+
onClick: i[0] || (i[0] = (n) => P("varietyMarket"))
|
|
2879
2622
|
}, "不限")
|
|
2880
2623
|
]),
|
|
2881
|
-
t(
|
|
2882
|
-
modelValue:
|
|
2883
|
-
"onUpdate:modelValue":
|
|
2624
|
+
t(j, {
|
|
2625
|
+
modelValue: s.value.varietyMarket,
|
|
2626
|
+
"onUpdate:modelValue": i[1] || (i[1] = (n) => s.value.varietyMarket = n),
|
|
2884
2627
|
size: "small"
|
|
2885
2628
|
}, {
|
|
2886
2629
|
default: d(() => [
|
|
2887
|
-
(
|
|
2888
|
-
label:
|
|
2889
|
-
value:
|
|
2890
|
-
key:
|
|
2630
|
+
(u(!0), g(R, null, z(U.value, ({ label: n, value: $ }) => (u(), L(M, {
|
|
2631
|
+
label: n,
|
|
2632
|
+
value: $,
|
|
2633
|
+
key: $
|
|
2891
2634
|
}, null, 8, ["label", "value"]))), 128))
|
|
2892
2635
|
]),
|
|
2893
2636
|
_: 1
|
|
2894
2637
|
}, 8, ["modelValue"])
|
|
2895
|
-
])) :
|
|
2896
|
-
(p =
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
onClick:
|
|
2638
|
+
])) : F("", !0),
|
|
2639
|
+
(p = V.value.commonOption) != null && p.show && C.value.length ? (u(), g("div", Mt, [
|
|
2640
|
+
_("div", qt, [
|
|
2641
|
+
Dt,
|
|
2642
|
+
_("span", {
|
|
2643
|
+
onClick: i[2] || (i[2] = (n) => P("commonOption"))
|
|
2901
2644
|
}, "不限")
|
|
2902
2645
|
]),
|
|
2903
|
-
t(
|
|
2904
|
-
modelValue:
|
|
2905
|
-
"onUpdate:modelValue":
|
|
2646
|
+
t(Q, {
|
|
2647
|
+
modelValue: s.value.commonOption,
|
|
2648
|
+
"onUpdate:modelValue": i[3] || (i[3] = (n) => s.value.commonOption = n),
|
|
2906
2649
|
size: "small"
|
|
2907
2650
|
}, {
|
|
2908
2651
|
default: d(() => [
|
|
2909
|
-
(
|
|
2910
|
-
label:
|
|
2911
|
-
value:
|
|
2912
|
-
key:
|
|
2652
|
+
(u(!0), g(R, null, z(C.value, ({ label: n, value: $ }) => (u(), L(N, {
|
|
2653
|
+
label: n,
|
|
2654
|
+
value: $,
|
|
2655
|
+
key: $
|
|
2913
2656
|
}, null, 8, ["label", "value"]))), 128))
|
|
2914
2657
|
]),
|
|
2915
2658
|
_: 1
|
|
2916
2659
|
}, 8, ["modelValue"])
|
|
2917
|
-
])) :
|
|
2918
|
-
(
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
onClick:
|
|
2660
|
+
])) : F("", !0),
|
|
2661
|
+
(r = V.value.marketIds) != null && r.show && S.value.length ? (u(), g("div", Ft, [
|
|
2662
|
+
_("div", Lt, [
|
|
2663
|
+
jt,
|
|
2664
|
+
_("span", {
|
|
2665
|
+
onClick: i[4] || (i[4] = (n) => P("marketIds"))
|
|
2923
2666
|
}, "不限")
|
|
2924
2667
|
]),
|
|
2925
|
-
t(
|
|
2926
|
-
modelValue:
|
|
2927
|
-
"onUpdate:modelValue":
|
|
2668
|
+
t(Q, {
|
|
2669
|
+
modelValue: s.value.marketIds,
|
|
2670
|
+
"onUpdate:modelValue": i[5] || (i[5] = (n) => s.value.marketIds = n),
|
|
2928
2671
|
size: "small"
|
|
2929
2672
|
}, {
|
|
2930
2673
|
default: d(() => [
|
|
2931
|
-
(
|
|
2932
|
-
label:
|
|
2933
|
-
value:
|
|
2934
|
-
key:
|
|
2674
|
+
(u(!0), g(R, null, z(S.value, ({ label: n, value: $ }) => (u(), L(N, {
|
|
2675
|
+
label: n,
|
|
2676
|
+
value: $,
|
|
2677
|
+
key: $
|
|
2935
2678
|
}, null, 8, ["label", "value"]))), 128))
|
|
2936
2679
|
]),
|
|
2937
2680
|
_: 1
|
|
2938
2681
|
}, 8, ["modelValue"])
|
|
2939
|
-
])) :
|
|
2940
|
-
(
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
onClick:
|
|
2682
|
+
])) : F("", !0),
|
|
2683
|
+
(y = V.value.customTag) != null && y.show && k.value.length ? (u(), g("div", zt, [
|
|
2684
|
+
_("div", Nt, [
|
|
2685
|
+
Pt,
|
|
2686
|
+
_("span", {
|
|
2687
|
+
onClick: i[6] || (i[6] = (n) => P("customTag"))
|
|
2945
2688
|
}, "不限")
|
|
2946
2689
|
]),
|
|
2947
|
-
t(
|
|
2948
|
-
modelValue:
|
|
2949
|
-
"onUpdate:modelValue":
|
|
2690
|
+
t(Q, {
|
|
2691
|
+
modelValue: s.value.customTag,
|
|
2692
|
+
"onUpdate:modelValue": i[7] || (i[7] = (n) => s.value.customTag = n),
|
|
2950
2693
|
size: "small"
|
|
2951
2694
|
}, {
|
|
2952
2695
|
default: d(() => [
|
|
2953
|
-
(
|
|
2954
|
-
label:
|
|
2955
|
-
value:
|
|
2956
|
-
key:
|
|
2696
|
+
(u(!0), g(R, null, z(k.value, ({ label: n, value: $ }) => (u(), L(N, {
|
|
2697
|
+
label: n,
|
|
2698
|
+
value: $,
|
|
2699
|
+
key: $
|
|
2957
2700
|
}, null, 8, ["label", "value"]))), 128))
|
|
2958
2701
|
]),
|
|
2959
2702
|
_: 1
|
|
2960
2703
|
}, 8, ["modelValue"])
|
|
2961
|
-
])) :
|
|
2962
|
-
(o =
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
onClick:
|
|
2704
|
+
])) : F("", !0),
|
|
2705
|
+
(o = V.value.jcTranslate) != null && o.show ? (u(), g("div", Bt, [
|
|
2706
|
+
_("div", Gt, [
|
|
2707
|
+
Yt,
|
|
2708
|
+
_("span", {
|
|
2709
|
+
onClick: i[8] || (i[8] = (n) => P("jcTranslate"))
|
|
2967
2710
|
}, "不限")
|
|
2968
2711
|
]),
|
|
2969
|
-
t(
|
|
2970
|
-
modelValue:
|
|
2971
|
-
"onUpdate:modelValue":
|
|
2712
|
+
t(j, {
|
|
2713
|
+
modelValue: s.value.jcTranslate.type,
|
|
2714
|
+
"onUpdate:modelValue": i[9] || (i[9] = (n) => s.value.jcTranslate.type = n),
|
|
2972
2715
|
size: "small"
|
|
2973
2716
|
}, {
|
|
2974
2717
|
default: d(() => [
|
|
2975
|
-
t(
|
|
2718
|
+
t(M, { value: 2 }, {
|
|
2976
2719
|
default: d(() => [
|
|
2977
|
-
|
|
2720
|
+
E("价差转品种")
|
|
2978
2721
|
]),
|
|
2979
2722
|
_: 1
|
|
2980
2723
|
}),
|
|
2981
|
-
t(
|
|
2724
|
+
t(M, { value: 1 }, {
|
|
2982
2725
|
default: d(() => [
|
|
2983
|
-
|
|
2726
|
+
E("品种转价差")
|
|
2984
2727
|
]),
|
|
2985
2728
|
_: 1
|
|
2986
2729
|
})
|
|
2987
2730
|
]),
|
|
2988
2731
|
_: 1
|
|
2989
2732
|
}, 8, ["modelValue"]),
|
|
2990
|
-
|
|
2991
|
-
modelValue:
|
|
2992
|
-
"onUpdate:modelValue":
|
|
2733
|
+
ke(t(l, {
|
|
2734
|
+
modelValue: s.value.jcTranslate.jcList,
|
|
2735
|
+
"onUpdate:modelValue": i[10] || (i[10] = (n) => s.value.jcTranslate.jcList = n),
|
|
2993
2736
|
size: "small",
|
|
2994
2737
|
multiple: "",
|
|
2995
2738
|
"collapse-tags": "",
|
|
@@ -2998,45 +2741,45 @@ const le = (g) => (fe("data-v-efd872de"), g = g(), ye(), g), Ht = { class: "vari
|
|
|
2998
2741
|
style: { width: "140px" }
|
|
2999
2742
|
}, {
|
|
3000
2743
|
default: d(() => [
|
|
3001
|
-
(
|
|
3002
|
-
key:
|
|
3003
|
-
label:
|
|
3004
|
-
value:
|
|
2744
|
+
(u(!0), g(R, null, z(e.value, (n) => (u(), L(x, {
|
|
2745
|
+
key: n.value,
|
|
2746
|
+
label: n.label,
|
|
2747
|
+
value: n.value
|
|
3005
2748
|
}, null, 8, ["label", "value"]))), 128))
|
|
3006
2749
|
]),
|
|
3007
2750
|
_: 1
|
|
3008
2751
|
}, 8, ["modelValue"]), [
|
|
3009
|
-
[
|
|
2752
|
+
[vl, s.value.jcTranslate.type === 1]
|
|
3010
2753
|
])
|
|
3011
|
-
])) :
|
|
3012
|
-
(
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
onClick:
|
|
2754
|
+
])) : F("", !0),
|
|
2755
|
+
(w = V.value.factorScreen) != null && w.show ? (u(), g("div", Jt, [
|
|
2756
|
+
_("div", At, [
|
|
2757
|
+
Kt,
|
|
2758
|
+
_("span", {
|
|
2759
|
+
onClick: i[11] || (i[11] = (n) => P("factorScreen"))
|
|
3017
2760
|
}, "不限")
|
|
3018
2761
|
]),
|
|
3019
|
-
t(
|
|
3020
|
-
data:
|
|
3021
|
-
"onUpdate:data":
|
|
3022
|
-
config:
|
|
2762
|
+
t(Xl, {
|
|
2763
|
+
data: s.value.factorScreen,
|
|
2764
|
+
"onUpdate:data": i[12] || (i[12] = (n) => s.value.factorScreen = n),
|
|
2765
|
+
config: V.value.factorScreen
|
|
3023
2766
|
}, null, 8, ["data", "config"])
|
|
3024
|
-
])) :
|
|
3025
|
-
t(
|
|
3026
|
-
data:
|
|
3027
|
-
"onUpdate:data":
|
|
3028
|
-
varietyMarket:
|
|
3029
|
-
commonOption:
|
|
3030
|
-
config:
|
|
2767
|
+
])) : F("", !0),
|
|
2768
|
+
t(St, {
|
|
2769
|
+
data: s.value.commonIndicator,
|
|
2770
|
+
"onUpdate:data": i[13] || (i[13] = (n) => s.value.commonIndicator = n),
|
|
2771
|
+
varietyMarket: s.value.varietyMarket,
|
|
2772
|
+
commonOption: s.value.commonOption,
|
|
2773
|
+
config: V.value.commonIndicator
|
|
3031
2774
|
}, null, 8, ["data", "varietyMarket", "commonOption", "config"])
|
|
3032
2775
|
]);
|
|
3033
2776
|
};
|
|
3034
2777
|
}
|
|
3035
|
-
},
|
|
3036
|
-
install(
|
|
3037
|
-
|
|
2778
|
+
}, Zt = /* @__PURE__ */ $e(Qt, [["__scopeId", "data-v-efd872de"]]), Ma = {
|
|
2779
|
+
install(f) {
|
|
2780
|
+
f.component("st-varietySearch", Zt);
|
|
3038
2781
|
}
|
|
3039
2782
|
};
|
|
3040
2783
|
export {
|
|
3041
|
-
|
|
2784
|
+
Ma as default
|
|
3042
2785
|
};
|