st-comp 0.0.128 → 0.0.130

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