st-comp 0.0.151 → 0.0.152

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