st-comp 0.0.164 → 0.0.166
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.d.ts +3 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +3 -3
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +16 -14
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +492 -614
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +16 -16
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +477 -766
- package/es/KlineConfig.cjs +1 -0
- package/es/KlineConfig.js +703 -0
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +14 -14
- package/es/KlinePlus.cjs +6 -0
- package/es/KlinePlus.js +1212 -0
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +21 -20
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +100 -279
- package/es/User.cjs +1 -1
- package/es/User.js +41 -39
- package/es/VarSelectDialog.cjs +1 -1
- package/es/VarSelectDialog.js +23 -22
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +34 -32
- package/es/VirtualTable.cjs +5 -5
- package/es/VirtualTable.js +1018 -1056
- package/es/{_initCloneObject-47814efa.cjs → _initCloneObject-9ccbb113.cjs} +1 -1
- package/es/{_initCloneObject-c939f3af.js → _initCloneObject-a9305c1e.js} +3 -3
- package/es/base-4bcd2756.js +304 -0
- package/es/base-bdc10baa.cjs +5 -0
- package/es/{castArray-a78ae889.cjs → castArray-37eb9980.cjs} +1 -1
- package/es/{castArray-2440268f.js → castArray-681d750b.js} +1 -1
- package/es/{config-provider-722dca36.js → config-provider-93846ae3.js} +9 -9
- package/es/config-provider-ec6b09df.cjs +1 -0
- package/es/dayjs.min-19fb125f.cjs +1 -0
- package/es/dayjs.min-54a4e095.js +296 -0
- package/es/{debounce-82e23c4b.js → debounce-51046b06.js} +1 -1
- package/es/{debounce-cf26af24.cjs → debounce-9e323221.cjs} +1 -1
- package/es/{dropdown-6f8379f0.js → dropdown-65e74de8.js} +6 -6
- package/es/{dropdown-790d31ea.cjs → dropdown-b2dab5bb.cjs} +1 -1
- package/es/{el-autocomplete-75762ef9.js → el-autocomplete-5064d466.js} +9 -9
- package/es/{el-autocomplete-84de99ba.cjs → el-autocomplete-814993af.cjs} +1 -1
- package/es/el-button-960edd49.cjs +1 -0
- package/es/{el-button-2e878325.js → el-button-d39472d3.js} +37 -36
- package/es/{el-checkbox-group-45247bbf.cjs → el-checkbox-group-020b49f5.cjs} +1 -1
- package/es/{el-checkbox-group-5e4f32f0.js → el-checkbox-group-779f353a.js} +2 -2
- package/es/el-dialog-cd484c1f.cjs +1 -0
- package/es/el-dialog-f45ec2a1.js +267 -0
- package/es/el-divider-40c50ce7.cjs +1 -0
- package/es/el-divider-7cf13678.js +45 -0
- package/es/{el-empty-2ece1134.cjs → el-empty-627ec09e.cjs} +1 -1
- package/es/{el-empty-7f8acbdc.js → el-empty-64b2ea8a.js} +2 -2
- package/es/{el-form-item-45ba08ff.js → el-form-item-b31e7a98.js} +8 -8
- package/es/{el-form-item-47e255d4.cjs → el-form-item-e1c3104b.cjs} +2 -2
- package/es/{el-input-1323afd2.js → el-input-42315ac4.js} +48 -48
- package/es/{el-input-cb340042.cjs → el-input-5163bda3.cjs} +1 -1
- package/es/{el-input-number-0f194f3f.cjs → el-input-number-eb54cde4.cjs} +1 -1
- package/es/{el-input-number-991f8bfc.js → el-input-number-ebd64e22.js} +19 -19
- package/es/el-loading-15a5501c.cjs +1 -0
- package/es/el-loading-5d29f26d.js +187 -0
- package/es/{el-menu-item-4c9eb7ad.cjs → el-menu-item-ac89e804.cjs} +1 -1
- package/es/{el-menu-item-dbbcd01a.js → el-menu-item-d62e0a3f.js} +32 -32
- package/es/el-message-ad87b9dd.cjs +1 -0
- package/es/{el-message-03e6f342.js → el-message-bd1d2c82.js} +17 -17
- package/es/el-overlay-690b50aa.js +269 -0
- package/es/el-overlay-e5d318c3.cjs +1 -0
- package/es/{el-popconfirm-8372cd13.js → el-popconfirm-88bbd066.js} +13 -13
- package/es/{el-popconfirm-86503f8a.cjs → el-popconfirm-a497b279.cjs} +1 -1
- package/es/{el-popper-7adbf1c6.cjs → el-popper-14a9d493.cjs} +1 -1
- package/es/{el-popper-b5315f5b.js → el-popper-85365d5b.js} +63 -63
- package/es/{el-scrollbar-ac525239.cjs → el-scrollbar-8bf765f2.cjs} +1 -1
- package/es/{el-scrollbar-4dc1493a.js → el-scrollbar-bcf29780.js} +21 -21
- package/es/el-segmented-84707138.js +136 -0
- package/es/el-segmented-bccd9f2a.cjs +1 -0
- package/es/{el-select-31f8ac8a.cjs → el-select-1d2309a1.cjs} +1 -1
- package/es/{el-select-a4ad7c8b.js → el-select-d3bce4d1.js} +13 -13
- package/es/{el-table-column-2e7132b3.js → el-table-column-9691b26d.js} +19 -18
- package/es/el-table-column-be9a76bb.cjs +14 -0
- package/es/{el-tag-a79385c6.js → el-tag-6036f51c.js} +39 -39
- package/es/{el-tag-9732314f.cjs → el-tag-8d49d4d2.cjs} +1 -1
- package/es/{index-375e8de4.cjs → index-02ca0096.cjs} +1 -1
- package/es/{index-afc88a4b.cjs → index-19fa1fcf.cjs} +1 -1
- package/es/{index-733cd68a.js → index-21fb27eb.js} +17 -17
- package/es/{index-e5fe37a4.js → index-3425f2f0.js} +10 -10
- package/es/{index-1d85ba4b.cjs → index-5b81f4da.cjs} +1 -1
- package/es/index-8d3c5e96.cjs +3 -0
- package/es/{index-97d24ab7.js → index-8ee89b40.js} +16 -16
- package/es/{index-9e6e8d03.cjs → index-a99a5307.cjs} +1 -1
- package/es/{index-58521b9e.cjs → index-b90c746b.cjs} +1 -1
- package/es/index-c45ac024.js +14 -0
- package/es/{index-f5b9b211.js → index-cb8157f2.js} +2 -2
- package/es/{index-e6a36e09.js → index-d3c37134.js} +7 -7
- package/es/{index-65b4113e.cjs → index-d94bae37.cjs} +1 -1
- package/es/{index-2d9c78d4.cjs → index-e348d5e8.cjs} +1 -1
- package/es/{index-57a7323a.js → index-ef7c4392.js} +11 -11
- package/es/{index-e3353eeb.js → index-fbe85773.js} +13 -13
- package/es/{raf-f46caea0.cjs → raf-07cb6953.cjs} +1 -1
- package/es/{raf-c817c3f7.js → raf-36faa519.js} +1 -1
- package/es/{scroll-4fe7a76f.js → scroll-0277d145.js} +1 -1
- package/es/{scroll-339681d4.cjs → scroll-4769a65d.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-04fb0752.js → use-form-common-props-54c31983.js} +40 -40
- package/es/{use-form-common-props-74a96df2.cjs → use-form-common-props-592797e2.cjs} +1 -1
- package/es/use-global-config-584b62f1.cjs +1 -0
- package/es/use-global-config-946f61a4.js +73 -0
- package/es/{vnode-b15eb11b.cjs → vnode-1b827c99.cjs} +1 -1
- package/es/{vnode-0fd3003d.js → vnode-dfc92f20.js} +1 -1
- package/es/{zh-cn-cac8283b.js → zh-cn-5066f5e9.js} +2 -2
- package/es/{zh-cn-36f34912.cjs → zh-cn-b24a7dc9.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +217 -212
- package/lib/{index-5f63dc2e.js → index-80531492.js} +39042 -37182
- package/lib/{python-5918f7d5.js → python-20a1a5fc.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineConfig/config.js +39 -0
- package/packages/KlineConfig/index.ts +8 -0
- package/packages/KlineConfig/index.vue +315 -0
- package/packages/KlinePlus/components/SliderChart.vue +218 -0
- package/packages/KlinePlus/components/Tips.vue +36 -0
- package/packages/KlinePlus/images/buy.svg +1 -0
- package/packages/KlinePlus/images/sell.svg +1 -0
- package/packages/KlinePlus/images/t.svg +1 -0
- package/packages/KlinePlus/index.ts +8 -0
- package/packages/KlinePlus/index.vue +880 -0
- package/packages/KlinePlus/utils.js +705 -0
- package/packages/index.ts +4 -0
- package/src/pages/KlineConfig/index.vue +20 -0
- package/src/pages/KlinePlus/index.vue +180 -0
- package/src/router/routes.ts +10 -0
- package/es/base-0ca7c43a.cjs +0 -5
- package/es/base-b56cf478.js +0 -303
- package/es/config-provider-cfbb9cd8.cjs +0 -1
- package/es/el-button-62966947.cjs +0 -1
- package/es/el-message-d5ed7a4f.cjs +0 -1
- package/es/el-overlay-41994f67.cjs +0 -1
- package/es/el-overlay-47b665a0.js +0 -521
- package/es/el-table-column-bdc46568.cjs +0 -14
- package/es/index-0baeaec7.js +0 -82
- package/es/index-2f958e56.cjs +0 -3
package/es/KlineBasic.js
CHANGED
|
@@ -1,356 +1,67 @@
|
|
|
1
|
-
import "./base-
|
|
2
|
-
import { E as
|
|
3
|
-
import "./el-
|
|
4
|
-
import
|
|
5
|
-
import { E as
|
|
6
|
-
import { E as
|
|
7
|
-
import { E as
|
|
1
|
+
import "./base-4bcd2756.js";
|
|
2
|
+
import { E as Ee } from "./el-dialog-f45ec2a1.js";
|
|
3
|
+
import "./el-overlay-690b50aa.js";
|
|
4
|
+
import "./el-input-42315ac4.js";
|
|
5
|
+
import { E as Be } from "./el-input-number-ebd64e22.js";
|
|
6
|
+
import { E as Oe } from "./el-button-d39472d3.js";
|
|
7
|
+
import { E as Ie } from "./el-empty-64b2ea8a.js";
|
|
8
|
+
import { E as $e, a as Pe } from "./el-menu-item-d62e0a3f.js";
|
|
8
9
|
import "./el-tooltip-4ed993c7.js";
|
|
9
|
-
import "./el-popper-
|
|
10
|
-
import { defineComponent as
|
|
11
|
-
import * as
|
|
12
|
-
import {
|
|
13
|
-
import { y as
|
|
14
|
-
import { E as
|
|
15
|
-
import { _ as
|
|
16
|
-
import "./el-tag-
|
|
17
|
-
import { E as
|
|
18
|
-
import "./el-scrollbar-
|
|
19
|
-
import "./
|
|
20
|
-
import "./index-
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import "./index-
|
|
24
|
-
import "./
|
|
25
|
-
import "./
|
|
10
|
+
import "./el-popper-85365d5b.js";
|
|
11
|
+
import { defineComponent as he, openBlock as E, createElementBlock as O, Fragment as le, renderList as me, normalizeStyle as ye, toDisplayString as ce, computed as G, createVNode as B, ref as R, onMounted as _e, onUnmounted as we, nextTick as De, createElementVNode as K, withCtx as z, createBlock as ke, createCommentVNode as Z, renderSlot as Ye, watch as We, createTextVNode as re, pushScopeId as Ne, popScopeId as qe } from "vue";
|
|
12
|
+
import * as fe from "echarts";
|
|
13
|
+
import { d as u } from "./dayjs.min-54a4e095.js";
|
|
14
|
+
import { y as Ce, v as ze, U as Ke, K as Ue, V as J, x as ge, D as He } from "./index-7ed0999e.js";
|
|
15
|
+
import { E as ie } from "./el-message-bd1d2c82.js";
|
|
16
|
+
import { _ as Q } from "./_plugin-vue_export-helper-dad06003.js";
|
|
17
|
+
import "./el-tag-6036f51c.js";
|
|
18
|
+
import { E as je, a as Ze } from "./el-select-d3bce4d1.js";
|
|
19
|
+
import "./el-scrollbar-bcf29780.js";
|
|
20
|
+
import "./index-21fb27eb.js";
|
|
21
|
+
import "./index-3425f2f0.js";
|
|
22
|
+
import "./use-form-common-props-54c31983.js";
|
|
23
|
+
import "./index-ef7c4392.js";
|
|
24
|
+
import "./index-c45ac024.js";
|
|
25
|
+
import "./vnode-dfc92f20.js";
|
|
26
|
+
import "./scroll-0277d145.js";
|
|
27
|
+
import "./use-global-config-946f61a4.js";
|
|
26
28
|
import "./typescript-7ae59c4c.js";
|
|
27
|
-
import "./index-
|
|
29
|
+
import "./index-fbe85773.js";
|
|
28
30
|
import "./index-657047bb.js";
|
|
29
|
-
import "./
|
|
30
|
-
import "./
|
|
31
|
-
import "./
|
|
32
|
-
import "./
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
var a = ["th", "st", "nd", "rd"], n = d % 100;
|
|
40
|
-
return "[" + d + (a[(n - 20) % 10] || a[n] || a[0]) + "]";
|
|
41
|
-
} }, N = function(d, a, n) {
|
|
42
|
-
var s = String(d);
|
|
43
|
-
return !s || s.length >= a ? d : "" + Array(a + 1 - s.length).join(n) + d;
|
|
44
|
-
}, x = { s: N, z: function(d) {
|
|
45
|
-
var a = -d.utcOffset(), n = Math.abs(a), s = Math.floor(n / 60), r = n % 60;
|
|
46
|
-
return (a <= 0 ? "+" : "-") + N(s, 2, "0") + ":" + N(r, 2, "0");
|
|
47
|
-
}, m: function d(a, n) {
|
|
48
|
-
if (a.date() < n.date())
|
|
49
|
-
return -d(n, a);
|
|
50
|
-
var s = 12 * (n.year() - a.year()) + (n.month() - a.month()), r = a.clone().add(s, i), m = n - r < 0, y = a.clone().add(s + (m ? -1 : 1), i);
|
|
51
|
-
return +(-(s + (n - r) / (m ? r - y : y - r)) || 0);
|
|
52
|
-
}, a: function(d) {
|
|
53
|
-
return d < 0 ? Math.ceil(d) || 0 : Math.floor(d);
|
|
54
|
-
}, p: function(d) {
|
|
55
|
-
return { M: i, y: $, w: O, d: M, D: b, h: g, m: w, s: L, ms: e, Q: c }[d] || String(d || "").toLowerCase().replace(/s$/, "");
|
|
56
|
-
}, u: function(d) {
|
|
57
|
-
return d === void 0;
|
|
58
|
-
} }, j = "en", C = {};
|
|
59
|
-
C[j] = I;
|
|
60
|
-
var ae = "$isDayjsObject", oe = function(d) {
|
|
61
|
-
return d instanceof le || !(!d || !d[ae]);
|
|
62
|
-
}, K = function d(a, n, s) {
|
|
63
|
-
var r;
|
|
64
|
-
if (!a)
|
|
65
|
-
return j;
|
|
66
|
-
if (typeof a == "string") {
|
|
67
|
-
var m = a.toLowerCase();
|
|
68
|
-
C[m] && (r = m), n && (C[m] = n, r = m);
|
|
69
|
-
var y = a.split("-");
|
|
70
|
-
if (!r && y.length > 1)
|
|
71
|
-
return d(y[0]);
|
|
72
|
-
} else {
|
|
73
|
-
var F = a.name;
|
|
74
|
-
C[F] = a, r = F;
|
|
75
|
-
}
|
|
76
|
-
return !s && r && (j = r), r || !s && j;
|
|
77
|
-
}, P = function(d, a) {
|
|
78
|
-
if (oe(d))
|
|
79
|
-
return d.clone();
|
|
80
|
-
var n = typeof a == "object" ? a : {};
|
|
81
|
-
return n.date = d, n.args = arguments, new le(n);
|
|
82
|
-
}, k = x;
|
|
83
|
-
k.l = K, k.i = oe, k.w = function(d, a) {
|
|
84
|
-
return P(d, { locale: a.$L, utc: a.$u, x: a.$x, $offset: a.$offset });
|
|
85
|
-
};
|
|
86
|
-
var le = function() {
|
|
87
|
-
function d(n) {
|
|
88
|
-
this.$L = K(n.locale, null, !0), this.parse(n), this.$x = this.$x || n.x || {}, this[ae] = !0;
|
|
89
|
-
}
|
|
90
|
-
var a = d.prototype;
|
|
91
|
-
return a.parse = function(n) {
|
|
92
|
-
this.$d = function(s) {
|
|
93
|
-
var r = s.date, m = s.utc;
|
|
94
|
-
if (r === null)
|
|
95
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
96
|
-
if (k.u(r))
|
|
97
|
-
return /* @__PURE__ */ new Date();
|
|
98
|
-
if (r instanceof Date)
|
|
99
|
-
return new Date(r);
|
|
100
|
-
if (typeof r == "string" && !/Z$/i.test(r)) {
|
|
101
|
-
var y = r.match(R);
|
|
102
|
-
if (y) {
|
|
103
|
-
var F = y[2] - 1 || 0, o = (y[7] || "0").substring(0, 3);
|
|
104
|
-
return m ? new Date(Date.UTC(y[1], F, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, o)) : new Date(y[1], F, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, o);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return new Date(r);
|
|
108
|
-
}(n), this.init();
|
|
109
|
-
}, a.init = function() {
|
|
110
|
-
var n = this.$d;
|
|
111
|
-
this.$y = n.getFullYear(), this.$M = n.getMonth(), this.$D = n.getDate(), this.$W = n.getDay(), this.$H = n.getHours(), this.$m = n.getMinutes(), this.$s = n.getSeconds(), this.$ms = n.getMilliseconds();
|
|
112
|
-
}, a.$utils = function() {
|
|
113
|
-
return k;
|
|
114
|
-
}, a.isValid = function() {
|
|
115
|
-
return this.$d.toString() !== W;
|
|
116
|
-
}, a.isSame = function(n, s) {
|
|
117
|
-
var r = P(n);
|
|
118
|
-
return this.startOf(s) <= r && r <= this.endOf(s);
|
|
119
|
-
}, a.isAfter = function(n, s) {
|
|
120
|
-
return P(n) < this.startOf(s);
|
|
121
|
-
}, a.isBefore = function(n, s) {
|
|
122
|
-
return this.endOf(s) < P(n);
|
|
123
|
-
}, a.$g = function(n, s, r) {
|
|
124
|
-
return k.u(n) ? this[s] : this.set(r, n);
|
|
125
|
-
}, a.unix = function() {
|
|
126
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
127
|
-
}, a.valueOf = function() {
|
|
128
|
-
return this.$d.getTime();
|
|
129
|
-
}, a.startOf = function(n, s) {
|
|
130
|
-
var r = this, m = !!k.u(s) || s, y = k.p(n), F = function(S, Y) {
|
|
131
|
-
var _ = k.w(r.$u ? Date.UTC(r.$y, Y, S) : new Date(r.$y, Y, S), r);
|
|
132
|
-
return m ? _ : _.endOf(M);
|
|
133
|
-
}, o = function(S, Y) {
|
|
134
|
-
return k.w(r.toDate()[S].apply(r.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Y)), r);
|
|
135
|
-
}, t = this.$W, f = this.$M, p = this.$D, v = "set" + (this.$u ? "UTC" : "");
|
|
136
|
-
switch (y) {
|
|
137
|
-
case $:
|
|
138
|
-
return m ? F(1, 0) : F(31, 11);
|
|
139
|
-
case i:
|
|
140
|
-
return m ? F(1, f) : F(0, f + 1);
|
|
141
|
-
case O:
|
|
142
|
-
var l = this.$locale().weekStart || 0, h = (t < l ? t + 7 : t) - l;
|
|
143
|
-
return F(m ? p - h : p + (6 - h), f);
|
|
144
|
-
case M:
|
|
145
|
-
case b:
|
|
146
|
-
return o(v + "Hours", 0);
|
|
147
|
-
case g:
|
|
148
|
-
return o(v + "Minutes", 1);
|
|
149
|
-
case w:
|
|
150
|
-
return o(v + "Seconds", 2);
|
|
151
|
-
case L:
|
|
152
|
-
return o(v + "Milliseconds", 3);
|
|
153
|
-
default:
|
|
154
|
-
return this.clone();
|
|
155
|
-
}
|
|
156
|
-
}, a.endOf = function(n) {
|
|
157
|
-
return this.startOf(n, !1);
|
|
158
|
-
}, a.$set = function(n, s) {
|
|
159
|
-
var r, m = k.p(n), y = "set" + (this.$u ? "UTC" : ""), F = (r = {}, r[M] = y + "Date", r[b] = y + "Date", r[i] = y + "Month", r[$] = y + "FullYear", r[g] = y + "Hours", r[w] = y + "Minutes", r[L] = y + "Seconds", r[e] = y + "Milliseconds", r)[m], o = m === M ? this.$D + (s - this.$W) : s;
|
|
160
|
-
if (m === i || m === $) {
|
|
161
|
-
var t = this.clone().set(b, 1);
|
|
162
|
-
t.$d[F](o), t.init(), this.$d = t.set(b, Math.min(this.$D, t.daysInMonth())).$d;
|
|
163
|
-
} else
|
|
164
|
-
F && this.$d[F](o);
|
|
165
|
-
return this.init(), this;
|
|
166
|
-
}, a.set = function(n, s) {
|
|
167
|
-
return this.clone().$set(n, s);
|
|
168
|
-
}, a.get = function(n) {
|
|
169
|
-
return this[k.p(n)]();
|
|
170
|
-
}, a.add = function(n, s) {
|
|
171
|
-
var r, m = this;
|
|
172
|
-
n = Number(n);
|
|
173
|
-
var y = k.p(s), F = function(f) {
|
|
174
|
-
var p = P(m);
|
|
175
|
-
return k.w(p.date(p.date() + Math.round(f * n)), m);
|
|
176
|
-
};
|
|
177
|
-
if (y === i)
|
|
178
|
-
return this.set(i, this.$M + n);
|
|
179
|
-
if (y === $)
|
|
180
|
-
return this.set($, this.$y + n);
|
|
181
|
-
if (y === M)
|
|
182
|
-
return F(1);
|
|
183
|
-
if (y === O)
|
|
184
|
-
return F(7);
|
|
185
|
-
var o = (r = {}, r[w] = V, r[g] = T, r[L] = B, r)[y] || 1, t = this.$d.getTime() + n * o;
|
|
186
|
-
return k.w(t, this);
|
|
187
|
-
}, a.subtract = function(n, s) {
|
|
188
|
-
return this.add(-1 * n, s);
|
|
189
|
-
}, a.format = function(n) {
|
|
190
|
-
var s = this, r = this.$locale();
|
|
191
|
-
if (!this.isValid())
|
|
192
|
-
return r.invalidDate || W;
|
|
193
|
-
var m = n || "YYYY-MM-DDTHH:mm:ssZ", y = k.z(this), F = this.$H, o = this.$m, t = this.$M, f = r.weekdays, p = r.months, v = r.meridiem, l = function(Y, _, U, re) {
|
|
194
|
-
return Y && (Y[_] || Y(s, m)) || U[_].slice(0, re);
|
|
195
|
-
}, h = function(Y) {
|
|
196
|
-
return k.s(F % 12 || 12, Y, "0");
|
|
197
|
-
}, S = v || function(Y, _, U) {
|
|
198
|
-
var re = Y < 12 ? "AM" : "PM";
|
|
199
|
-
return U ? re.toLowerCase() : re;
|
|
200
|
-
};
|
|
201
|
-
return m.replace(Z, function(Y, _) {
|
|
202
|
-
return _ || function(U) {
|
|
203
|
-
switch (U) {
|
|
204
|
-
case "YY":
|
|
205
|
-
return String(s.$y).slice(-2);
|
|
206
|
-
case "YYYY":
|
|
207
|
-
return k.s(s.$y, 4, "0");
|
|
208
|
-
case "M":
|
|
209
|
-
return t + 1;
|
|
210
|
-
case "MM":
|
|
211
|
-
return k.s(t + 1, 2, "0");
|
|
212
|
-
case "MMM":
|
|
213
|
-
return l(r.monthsShort, t, p, 3);
|
|
214
|
-
case "MMMM":
|
|
215
|
-
return l(p, t);
|
|
216
|
-
case "D":
|
|
217
|
-
return s.$D;
|
|
218
|
-
case "DD":
|
|
219
|
-
return k.s(s.$D, 2, "0");
|
|
220
|
-
case "d":
|
|
221
|
-
return String(s.$W);
|
|
222
|
-
case "dd":
|
|
223
|
-
return l(r.weekdaysMin, s.$W, f, 2);
|
|
224
|
-
case "ddd":
|
|
225
|
-
return l(r.weekdaysShort, s.$W, f, 3);
|
|
226
|
-
case "dddd":
|
|
227
|
-
return f[s.$W];
|
|
228
|
-
case "H":
|
|
229
|
-
return String(F);
|
|
230
|
-
case "HH":
|
|
231
|
-
return k.s(F, 2, "0");
|
|
232
|
-
case "h":
|
|
233
|
-
return h(1);
|
|
234
|
-
case "hh":
|
|
235
|
-
return h(2);
|
|
236
|
-
case "a":
|
|
237
|
-
return S(F, o, !0);
|
|
238
|
-
case "A":
|
|
239
|
-
return S(F, o, !1);
|
|
240
|
-
case "m":
|
|
241
|
-
return String(o);
|
|
242
|
-
case "mm":
|
|
243
|
-
return k.s(o, 2, "0");
|
|
244
|
-
case "s":
|
|
245
|
-
return String(s.$s);
|
|
246
|
-
case "ss":
|
|
247
|
-
return k.s(s.$s, 2, "0");
|
|
248
|
-
case "SSS":
|
|
249
|
-
return k.s(s.$ms, 3, "0");
|
|
250
|
-
case "Z":
|
|
251
|
-
return y;
|
|
252
|
-
}
|
|
253
|
-
return null;
|
|
254
|
-
}(Y) || y.replace(":", "");
|
|
255
|
-
});
|
|
256
|
-
}, a.utcOffset = function() {
|
|
257
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
258
|
-
}, a.diff = function(n, s, r) {
|
|
259
|
-
var m, y = this, F = k.p(s), o = P(n), t = (o.utcOffset() - this.utcOffset()) * V, f = this - o, p = function() {
|
|
260
|
-
return k.m(y, o);
|
|
261
|
-
};
|
|
262
|
-
switch (F) {
|
|
263
|
-
case $:
|
|
264
|
-
m = p() / 12;
|
|
265
|
-
break;
|
|
266
|
-
case i:
|
|
267
|
-
m = p();
|
|
268
|
-
break;
|
|
269
|
-
case c:
|
|
270
|
-
m = p() / 3;
|
|
271
|
-
break;
|
|
272
|
-
case O:
|
|
273
|
-
m = (f - t) / 6048e5;
|
|
274
|
-
break;
|
|
275
|
-
case M:
|
|
276
|
-
m = (f - t) / 864e5;
|
|
277
|
-
break;
|
|
278
|
-
case g:
|
|
279
|
-
m = f / T;
|
|
280
|
-
break;
|
|
281
|
-
case w:
|
|
282
|
-
m = f / V;
|
|
283
|
-
break;
|
|
284
|
-
case L:
|
|
285
|
-
m = f / B;
|
|
286
|
-
break;
|
|
287
|
-
default:
|
|
288
|
-
m = f;
|
|
289
|
-
}
|
|
290
|
-
return r ? m : k.a(m);
|
|
291
|
-
}, a.daysInMonth = function() {
|
|
292
|
-
return this.endOf(i).$D;
|
|
293
|
-
}, a.$locale = function() {
|
|
294
|
-
return C[this.$L];
|
|
295
|
-
}, a.locale = function(n, s) {
|
|
296
|
-
if (!n)
|
|
297
|
-
return this.$L;
|
|
298
|
-
var r = this.clone(), m = K(n, s, !0);
|
|
299
|
-
return m && (r.$L = m), r;
|
|
300
|
-
}, a.clone = function() {
|
|
301
|
-
return k.w(this.$d, this);
|
|
302
|
-
}, a.toDate = function() {
|
|
303
|
-
return new Date(this.valueOf());
|
|
304
|
-
}, a.toJSON = function() {
|
|
305
|
-
return this.isValid() ? this.toISOString() : null;
|
|
306
|
-
}, a.toISOString = function() {
|
|
307
|
-
return this.$d.toISOString();
|
|
308
|
-
}, a.toString = function() {
|
|
309
|
-
return this.$d.toUTCString();
|
|
310
|
-
}, d;
|
|
311
|
-
}(), ue = le.prototype;
|
|
312
|
-
return P.prototype = ue, [["$ms", e], ["$s", L], ["$m", w], ["$H", g], ["$W", M], ["$M", i], ["$y", $], ["$D", b]].forEach(function(d) {
|
|
313
|
-
ue[d[1]] = function(a) {
|
|
314
|
-
return this.$g(a, d[0], d[1]);
|
|
315
|
-
};
|
|
316
|
-
}), P.extend = function(d, a) {
|
|
317
|
-
return d.$i || (d(a, le, P), d.$i = !0), P;
|
|
318
|
-
}, P.locale = K, P.isDayjs = oe, P.unix = function(d) {
|
|
319
|
-
return P(1e3 * d);
|
|
320
|
-
}, P.en = C[j], P.Ls = C, P.p = {}, P;
|
|
321
|
-
});
|
|
322
|
-
})(Fe);
|
|
323
|
-
var Qe = Fe.exports;
|
|
324
|
-
const D = /* @__PURE__ */ Ue(Qe);
|
|
325
|
-
let se = null;
|
|
326
|
-
const et = (u) => {
|
|
327
|
-
const E = qe(u, {
|
|
328
|
-
handleReq: (B) => {
|
|
329
|
-
ze() && (B.headers.token = Ze());
|
|
31
|
+
import "./_commonjsHelpers-10dfc225.js";
|
|
32
|
+
import "./config-provider-93846ae3.js";
|
|
33
|
+
import "./index-d3c37134.js";
|
|
34
|
+
import "./castArray-681d750b.js";
|
|
35
|
+
import "./debounce-51046b06.js";
|
|
36
|
+
let j = null;
|
|
37
|
+
const Xe = (n) => {
|
|
38
|
+
const k = Ce(n, {
|
|
39
|
+
handleReq: (A) => {
|
|
40
|
+
ze() && (A.headers.token = Ke());
|
|
330
41
|
},
|
|
331
|
-
handleRes: (
|
|
332
|
-
const { data:
|
|
333
|
-
if (
|
|
334
|
-
return location.origin.includes("localhost") ? location.href = `${location.origin}/#/404` :
|
|
42
|
+
handleRes: (A) => {
|
|
43
|
+
const { data: D } = A;
|
|
44
|
+
if (D.code === 401)
|
|
45
|
+
return location.origin.includes("localhost") ? location.href = `${location.origin}/#/404` : Ue(), !0;
|
|
335
46
|
}
|
|
336
47
|
});
|
|
337
|
-
|
|
338
|
-
},
|
|
339
|
-
const { data: e, time:
|
|
48
|
+
k.get, j = k.post;
|
|
49
|
+
}, Ge = (n) => j("/middleLayer/kline/getKlineBasic", { ...n, userId: J("id") }), Je = (n) => j("/middleLayer/kline/getKline", n), Qe = async (n) => j("/alarm/deliversign/addAlarmPrice", { ...n, userId: J("id") }), et = async (n) => j("/alarm/deliversign/findAlarmPriceByUserId", { ...n, userId: J("id") }), Me = async (n) => j("/alarm/deliversign/updateAlarmPrice", { ...n, userId: J("id") }), tt = async (n) => j("/alarm/deliversign/deleteAlarmPrice", { ...n, userId: J("id") }), { round: X } = ge, nt = (n, k, A, D, g) => {
|
|
50
|
+
const { data: e, time: h } = n, { gridTop: b, gridRight: s, gridLeft: x, maxShowCounts: Y, showSubChart: r } = k;
|
|
340
51
|
return {
|
|
341
52
|
animation: !1,
|
|
342
53
|
grid: {
|
|
343
|
-
top: `${
|
|
344
|
-
right: `${
|
|
345
|
-
bottom:
|
|
346
|
-
left: `${
|
|
54
|
+
top: `${b}px`,
|
|
55
|
+
right: `${s}px`,
|
|
56
|
+
bottom: r ? "6px" : "24px",
|
|
57
|
+
left: `${x}px`
|
|
347
58
|
},
|
|
348
59
|
dataZoom: [
|
|
349
60
|
{
|
|
350
61
|
type: "inside",
|
|
351
|
-
startValue:
|
|
352
|
-
endValue:
|
|
353
|
-
maxValueSpan:
|
|
62
|
+
startValue: A,
|
|
63
|
+
endValue: D,
|
|
64
|
+
maxValueSpan: Y
|
|
354
65
|
}
|
|
355
66
|
],
|
|
356
67
|
tooltip: {
|
|
@@ -361,23 +72,23 @@ const et = (u) => {
|
|
|
361
72
|
type: "cross",
|
|
362
73
|
label: {
|
|
363
74
|
rich: {},
|
|
364
|
-
formatter: (
|
|
365
|
-
const { axisDimension:
|
|
366
|
-
return
|
|
75
|
+
formatter: (a) => {
|
|
76
|
+
const { axisDimension: _, value: p } = a;
|
|
77
|
+
return _ === "x" ? r ? "" : ["6", "7", "8"].includes(g) ? u(p).format("YYYY-MM-DD") : p : String(X(p));
|
|
367
78
|
}
|
|
368
79
|
}
|
|
369
80
|
},
|
|
370
81
|
formatter: () => ""
|
|
371
82
|
},
|
|
372
83
|
xAxis: {
|
|
373
|
-
show: !
|
|
84
|
+
show: !r,
|
|
374
85
|
type: "category",
|
|
375
|
-
data:
|
|
86
|
+
data: h,
|
|
376
87
|
splitLine: {
|
|
377
88
|
show: !1
|
|
378
89
|
},
|
|
379
90
|
axisLabel: {
|
|
380
|
-
formatter: (
|
|
91
|
+
formatter: (a) => ["6", "7", "8"].includes(g) ? u(a).format("YYYY-MM-DD") : a
|
|
381
92
|
}
|
|
382
93
|
},
|
|
383
94
|
yAxis: {
|
|
@@ -392,8 +103,8 @@ const et = (u) => {
|
|
|
392
103
|
color: "#333"
|
|
393
104
|
}
|
|
394
105
|
},
|
|
395
|
-
min: (
|
|
396
|
-
max: (
|
|
106
|
+
min: (a) => X(a.min),
|
|
107
|
+
max: (a) => X(a.max)
|
|
397
108
|
},
|
|
398
109
|
series: [
|
|
399
110
|
{
|
|
@@ -407,17 +118,17 @@ const et = (u) => {
|
|
|
407
118
|
borderWidth: 1
|
|
408
119
|
}
|
|
409
120
|
},
|
|
410
|
-
...
|
|
411
|
-
name:
|
|
121
|
+
...n.mainIndicator.map((a) => ({
|
|
122
|
+
name: a.key,
|
|
412
123
|
type: "line",
|
|
413
124
|
silent: !0,
|
|
414
125
|
symbol: "none",
|
|
415
|
-
data:
|
|
126
|
+
data: a.data,
|
|
416
127
|
lineStyle: {
|
|
417
|
-
width:
|
|
128
|
+
width: a.width || 1
|
|
418
129
|
},
|
|
419
130
|
itemStyle: {
|
|
420
|
-
color:
|
|
131
|
+
color: a.color
|
|
421
132
|
}
|
|
422
133
|
}))
|
|
423
134
|
],
|
|
@@ -437,32 +148,32 @@ const et = (u) => {
|
|
|
437
148
|
}
|
|
438
149
|
}
|
|
439
150
|
};
|
|
440
|
-
},
|
|
441
|
-
const { variety: e, featureId:
|
|
442
|
-
return
|
|
443
|
-
const { warnPrice:
|
|
444
|
-
if (
|
|
445
|
-
return
|
|
446
|
-
let
|
|
151
|
+
}, ot = (n, k, A, D, g) => {
|
|
152
|
+
const { variety: e, featureId: h, featureType: b } = A, { gridTop: s, gridLeft: x, gridRight: Y } = D;
|
|
153
|
+
return k.reduce((r, a) => {
|
|
154
|
+
const { warnPrice: _ } = a, p = n == null ? void 0 : n.convertToPixel({ yAxisIndex: 0 }, _);
|
|
155
|
+
if (p <= s || p >= (n == null ? void 0 : n.getHeight()))
|
|
156
|
+
return r;
|
|
157
|
+
let F = 0;
|
|
447
158
|
return [
|
|
448
|
-
...
|
|
159
|
+
...r,
|
|
449
160
|
{
|
|
450
161
|
type: "group",
|
|
451
162
|
name: "warningLine",
|
|
452
|
-
info:
|
|
163
|
+
info: a,
|
|
453
164
|
draggable: "vertical",
|
|
454
165
|
children: [
|
|
455
166
|
{
|
|
456
167
|
type: "line",
|
|
457
|
-
info:
|
|
168
|
+
info: a,
|
|
458
169
|
shape: {
|
|
459
|
-
x1:
|
|
170
|
+
x1: x,
|
|
460
171
|
// 开始X坐标
|
|
461
|
-
y1:
|
|
172
|
+
y1: p,
|
|
462
173
|
// 开始Y坐标
|
|
463
|
-
x2: (
|
|
174
|
+
x2: (n == null ? void 0 : n.getWidth()) - Y,
|
|
464
175
|
// 结束X坐标
|
|
465
|
-
y2:
|
|
176
|
+
y2: p
|
|
466
177
|
// 结束Y坐标
|
|
467
178
|
},
|
|
468
179
|
style: {
|
|
@@ -474,12 +185,12 @@ const et = (u) => {
|
|
|
474
185
|
},
|
|
475
186
|
{
|
|
476
187
|
type: "text",
|
|
477
|
-
info:
|
|
478
|
-
x: (
|
|
479
|
-
y:
|
|
188
|
+
info: a,
|
|
189
|
+
x: (n == null ? void 0 : n.getWidth()) - Y,
|
|
190
|
+
y: p - 5,
|
|
480
191
|
style: {
|
|
481
192
|
fill: "#FFF",
|
|
482
|
-
text:
|
|
193
|
+
text: _,
|
|
483
194
|
stroke: "#000",
|
|
484
195
|
lineWidth: 1,
|
|
485
196
|
opacity: 1
|
|
@@ -488,37 +199,37 @@ const et = (u) => {
|
|
|
488
199
|
}
|
|
489
200
|
],
|
|
490
201
|
// 事件:开始拖拽
|
|
491
|
-
ondragstart: (
|
|
492
|
-
|
|
202
|
+
ondragstart: (M) => {
|
|
203
|
+
F = M.offsetY;
|
|
493
204
|
},
|
|
494
|
-
ondrag: (
|
|
495
|
-
var
|
|
496
|
-
if (
|
|
497
|
-
const
|
|
498
|
-
(
|
|
205
|
+
ondrag: (M) => {
|
|
206
|
+
var P;
|
|
207
|
+
if (M.target && M.target.childAt(1)) {
|
|
208
|
+
const S = n.convertFromPixel({ yAxisIndex: 0 }, p + (M.offsetY - F));
|
|
209
|
+
(P = M.target.childAt(1)) == null || P.animate("style", !1).when(1, { text: X(S, 3) }).start();
|
|
499
210
|
}
|
|
500
211
|
},
|
|
501
212
|
// 事件:结束拖拽
|
|
502
|
-
ondragend: async (
|
|
503
|
-
const
|
|
504
|
-
if (
|
|
505
|
-
const
|
|
506
|
-
id:
|
|
507
|
-
warnPrice:
|
|
508
|
-
featureId:
|
|
213
|
+
ondragend: async (M) => {
|
|
214
|
+
const S = M.offsetY - F;
|
|
215
|
+
if (S !== 0) {
|
|
216
|
+
const V = n == null ? void 0 : n.convertFromPixel({ yAxisIndex: 0 }, S + p), d = {
|
|
217
|
+
id: a.id,
|
|
218
|
+
warnPrice: X(V, 3),
|
|
219
|
+
featureId: h,
|
|
509
220
|
//品种id
|
|
510
221
|
featureCode: e,
|
|
511
222
|
//品种代码
|
|
512
|
-
featureType:
|
|
223
|
+
featureType: b
|
|
513
224
|
//品种类型
|
|
514
225
|
};
|
|
515
|
-
await
|
|
226
|
+
await Me(d), ie.success("画线预警修改成功"), g && g();
|
|
516
227
|
}
|
|
517
228
|
}
|
|
518
229
|
}
|
|
519
230
|
];
|
|
520
231
|
}, []);
|
|
521
|
-
},
|
|
232
|
+
}, at = { class: "kline-tips" }, rt = /* @__PURE__ */ he({
|
|
522
233
|
__name: "index",
|
|
523
234
|
props: {
|
|
524
235
|
// 提示数据
|
|
@@ -527,18 +238,18 @@ const et = (u) => {
|
|
|
527
238
|
require: !0
|
|
528
239
|
}
|
|
529
240
|
},
|
|
530
|
-
setup(
|
|
531
|
-
return (
|
|
532
|
-
(
|
|
533
|
-
key:
|
|
241
|
+
setup(n) {
|
|
242
|
+
return (k, A) => (E(), O("div", at, [
|
|
243
|
+
(E(!0), O(le, null, me(n.data, (D, g) => (E(), O("div", {
|
|
244
|
+
key: g,
|
|
534
245
|
class: "kline-tips-item",
|
|
535
|
-
style:
|
|
536
|
-
},
|
|
246
|
+
style: ye({ color: D.color })
|
|
247
|
+
}, ce(D.label) + " " + ce(D.value), 5))), 128))
|
|
537
248
|
]));
|
|
538
249
|
}
|
|
539
250
|
});
|
|
540
|
-
const
|
|
541
|
-
const
|
|
251
|
+
const pe = /* @__PURE__ */ Q(rt, [["__scopeId", "data-v-f83b6b36"]]);
|
|
252
|
+
const it = { class: "kline-tips" }, lt = {
|
|
542
253
|
__name: "index",
|
|
543
254
|
props: {
|
|
544
255
|
// 提示数据
|
|
@@ -551,36 +262,36 @@ const ct = { class: "kline-tips" }, dt = {
|
|
|
551
262
|
require: !0
|
|
552
263
|
}
|
|
553
264
|
},
|
|
554
|
-
setup(
|
|
555
|
-
const { round:
|
|
556
|
-
const { data:
|
|
557
|
-
if (
|
|
558
|
-
const
|
|
559
|
-
{ label: "开", value:
|
|
560
|
-
{ label: "高", value:
|
|
561
|
-
{ label: "低", value:
|
|
562
|
-
{ label: "收", value:
|
|
265
|
+
setup(n) {
|
|
266
|
+
const { round: k, formatValue: A } = ge, D = n, g = G(() => {
|
|
267
|
+
const { data: h, activeIndex: b } = D;
|
|
268
|
+
if (h.data && h.data[b]) {
|
|
269
|
+
const s = h.data[b], x = [
|
|
270
|
+
{ label: "开", value: k(s[0]) },
|
|
271
|
+
{ label: "高", value: k(s[3]) },
|
|
272
|
+
{ label: "低", value: k(s[2]) },
|
|
273
|
+
{ label: "收", value: k(s[1]) }
|
|
563
274
|
];
|
|
564
|
-
|
|
565
|
-
let
|
|
566
|
-
return
|
|
275
|
+
s[4] !== null && x.push({ label: "额", value: A(s[4]) });
|
|
276
|
+
let Y;
|
|
277
|
+
return s[6] > 0 ? Y = "red" : s[6] < 0 && (Y = "green"), x.push({ label: "涨跌", value: `${k(s[6])}%`, color: Y }), x;
|
|
567
278
|
}
|
|
568
279
|
return [];
|
|
569
|
-
}), e =
|
|
570
|
-
var
|
|
571
|
-
const { data:
|
|
572
|
-
return ((
|
|
280
|
+
}), e = G(() => {
|
|
281
|
+
var s;
|
|
282
|
+
const { data: h, activeIndex: b } = D;
|
|
283
|
+
return ((s = h == null ? void 0 : h.mainIndicator) == null ? void 0 : s.map((x) => ({ label: x.key, value: k(x.data[b]), color: x.color }))) || [];
|
|
573
284
|
});
|
|
574
|
-
return (
|
|
575
|
-
|
|
576
|
-
|
|
285
|
+
return (h, b) => (E(), O("div", it, [
|
|
286
|
+
B(pe, { data: g.value }, null, 8, ["data"]),
|
|
287
|
+
B(pe, { data: e.value }, null, 8, ["data"])
|
|
577
288
|
]));
|
|
578
289
|
}
|
|
579
|
-
},
|
|
580
|
-
const
|
|
290
|
+
}, st = /* @__PURE__ */ Q(lt, [["__scopeId", "data-v-64b5c2a3"]]);
|
|
291
|
+
const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
|
|
581
292
|
key: 0,
|
|
582
293
|
class: "klineSub-tips-select"
|
|
583
|
-
},
|
|
294
|
+
}, ft = {
|
|
584
295
|
__name: "index",
|
|
585
296
|
props: {
|
|
586
297
|
cycle: {
|
|
@@ -596,57 +307,57 @@ const pt = { class: "klineSub" }, mt = { class: "klineSub-tips" }, yt = {
|
|
|
596
307
|
// 副图指标列表
|
|
597
308
|
},
|
|
598
309
|
emits: ["update:modelValue"],
|
|
599
|
-
setup(
|
|
600
|
-
const { round:
|
|
601
|
-
let
|
|
602
|
-
const
|
|
310
|
+
setup(n, { expose: k, emit: A }) {
|
|
311
|
+
const { round: D } = ge;
|
|
312
|
+
let g, e;
|
|
313
|
+
const h = A, b = n, s = R(), x = G({
|
|
603
314
|
get() {
|
|
604
|
-
return
|
|
315
|
+
return b.modelValue;
|
|
605
316
|
},
|
|
606
|
-
set(
|
|
607
|
-
|
|
317
|
+
set(a) {
|
|
318
|
+
h("update:modelValue", a);
|
|
608
319
|
}
|
|
609
|
-
}),
|
|
610
|
-
var
|
|
611
|
-
const { data:
|
|
612
|
-
return ((
|
|
320
|
+
}), Y = G(() => {
|
|
321
|
+
var p;
|
|
322
|
+
const { data: a, activeIndex: _ } = b;
|
|
323
|
+
return ((p = a == null ? void 0 : a.subIndicator) == null ? void 0 : p.map((F) => ({ label: F.key, color: F.color, value: F.data[_] || "-" }))) || [];
|
|
613
324
|
});
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
let
|
|
325
|
+
_e(() => {
|
|
326
|
+
g = fe.init(s.value);
|
|
327
|
+
let a = !0;
|
|
617
328
|
e = new ResizeObserver(() => {
|
|
618
|
-
if (
|
|
619
|
-
|
|
329
|
+
if (a) {
|
|
330
|
+
a = null;
|
|
620
331
|
return;
|
|
621
332
|
}
|
|
622
|
-
|
|
623
|
-
}), e.observe(
|
|
624
|
-
}),
|
|
625
|
-
|
|
333
|
+
g.resize();
|
|
334
|
+
}), e.observe(s.value);
|
|
335
|
+
}), we(() => {
|
|
336
|
+
g.dispose(), e.disconnect(), e = null;
|
|
626
337
|
});
|
|
627
|
-
const
|
|
628
|
-
const
|
|
629
|
-
return
|
|
338
|
+
const r = (a, _) => {
|
|
339
|
+
const p = a[_], F = _ === 0 ? a[_] : a[_ - 1];
|
|
340
|
+
return p[0] === p[1] ? p[0] >= F[1] ? {
|
|
630
341
|
color: "transparent",
|
|
631
342
|
borderColor: "#FF0000"
|
|
632
343
|
} : {
|
|
633
344
|
color: "#00FFFF"
|
|
634
|
-
} :
|
|
345
|
+
} : p[1] > p[0] ? {
|
|
635
346
|
color: "transparent",
|
|
636
347
|
borderColor: "#FF0000"
|
|
637
348
|
} : {
|
|
638
349
|
color: "#00FFFF"
|
|
639
350
|
};
|
|
640
351
|
};
|
|
641
|
-
return
|
|
642
|
-
connect: (
|
|
643
|
-
|
|
352
|
+
return k({
|
|
353
|
+
connect: (a) => {
|
|
354
|
+
fe.connect([a, g]);
|
|
644
355
|
},
|
|
645
356
|
// 联动
|
|
646
|
-
draw: (
|
|
647
|
-
|
|
648
|
-
const { startValue:
|
|
649
|
-
if (
|
|
357
|
+
draw: (a, _) => {
|
|
358
|
+
De(() => {
|
|
359
|
+
const { startValue: p, endValue: F, maxValueSpan: M } = a, { leftYAxisRange: P, rightYAxisRange: S } = b.data.subIndicator[0], V = b.data.subIndicator.map((d) => {
|
|
360
|
+
if (d.series === "bar")
|
|
650
361
|
return {
|
|
651
362
|
name: "subMain",
|
|
652
363
|
xAxisIndex: 0,
|
|
@@ -654,53 +365,53 @@ const pt = { class: "klineSub" }, mt = { class: "klineSub-tips" }, yt = {
|
|
|
654
365
|
type: "bar",
|
|
655
366
|
silent: !0,
|
|
656
367
|
symbol: "none",
|
|
657
|
-
data:
|
|
658
|
-
value:
|
|
659
|
-
itemStyle:
|
|
660
|
-
} :
|
|
661
|
-
value:
|
|
368
|
+
data: d.data.map((N, C) => d.seriesColor === "kline" ? {
|
|
369
|
+
value: N,
|
|
370
|
+
itemStyle: r(b.data.data, C)
|
|
371
|
+
} : d.seriesColor === "value" ? {
|
|
372
|
+
value: N,
|
|
662
373
|
itemStyle: {
|
|
663
|
-
color:
|
|
374
|
+
color: N >= 0 ? "#FF0000" : "#00FFFF"
|
|
664
375
|
}
|
|
665
376
|
} : {
|
|
666
|
-
value:
|
|
377
|
+
value: N,
|
|
667
378
|
itemStyle: {
|
|
668
|
-
color:
|
|
379
|
+
color: d.seriesColor
|
|
669
380
|
}
|
|
670
381
|
})
|
|
671
382
|
};
|
|
672
|
-
if (
|
|
383
|
+
if (d.series === "line")
|
|
673
384
|
return {
|
|
674
385
|
xAxisIndex: 0,
|
|
675
|
-
yAxisIndex:
|
|
676
|
-
name:
|
|
386
|
+
yAxisIndex: d.yAxis === "right" ? 2 : 1,
|
|
387
|
+
name: d.key,
|
|
677
388
|
type: "line",
|
|
678
389
|
silent: !0,
|
|
679
390
|
symbol: "none",
|
|
680
|
-
data:
|
|
391
|
+
data: d.data,
|
|
681
392
|
lineStyle: {
|
|
682
393
|
width: 1
|
|
683
394
|
},
|
|
684
395
|
itemStyle: {
|
|
685
|
-
color:
|
|
396
|
+
color: d.color
|
|
686
397
|
}
|
|
687
398
|
};
|
|
688
399
|
});
|
|
689
|
-
|
|
400
|
+
g.setOption(
|
|
690
401
|
{
|
|
691
402
|
animation: !1,
|
|
692
403
|
grid: {
|
|
693
|
-
left: `${
|
|
404
|
+
left: `${_.gridLeft}px`,
|
|
694
405
|
top: "10px",
|
|
695
|
-
right: `${
|
|
406
|
+
right: `${_.gridRight}px`,
|
|
696
407
|
bottom: "20px"
|
|
697
408
|
},
|
|
698
409
|
dataZoom: [
|
|
699
410
|
{
|
|
700
411
|
type: "inside",
|
|
701
|
-
startValue:
|
|
702
|
-
endValue:
|
|
703
|
-
maxValueSpan:
|
|
412
|
+
startValue: p,
|
|
413
|
+
endValue: F,
|
|
414
|
+
maxValueSpan: M
|
|
704
415
|
}
|
|
705
416
|
],
|
|
706
417
|
tooltip: {
|
|
@@ -711,12 +422,12 @@ const pt = { class: "klineSub" }, mt = { class: "klineSub-tips" }, yt = {
|
|
|
711
422
|
type: "cross",
|
|
712
423
|
label: {
|
|
713
424
|
rich: {},
|
|
714
|
-
formatter: (
|
|
715
|
-
const { axisDimension:
|
|
716
|
-
if (
|
|
717
|
-
return ["6", "7", "8"].includes(
|
|
718
|
-
if (
|
|
719
|
-
return String(
|
|
425
|
+
formatter: (d) => {
|
|
426
|
+
const { axisDimension: N, value: C } = d;
|
|
427
|
+
if (N === "x")
|
|
428
|
+
return ["6", "7", "8"].includes(b.cycle) ? u(C).format("YYYY-MM-DD") : C;
|
|
429
|
+
if (d.axisIndex === 1)
|
|
430
|
+
return String(D(C));
|
|
720
431
|
}
|
|
721
432
|
}
|
|
722
433
|
},
|
|
@@ -724,7 +435,7 @@ const pt = { class: "klineSub" }, mt = { class: "klineSub-tips" }, yt = {
|
|
|
724
435
|
},
|
|
725
436
|
xAxis: {
|
|
726
437
|
type: "category",
|
|
727
|
-
data:
|
|
438
|
+
data: b.data.time,
|
|
728
439
|
axisLine: {
|
|
729
440
|
show: !0
|
|
730
441
|
},
|
|
@@ -732,7 +443,7 @@ const pt = { class: "klineSub" }, mt = { class: "klineSub-tips" }, yt = {
|
|
|
732
443
|
show: !1
|
|
733
444
|
},
|
|
734
445
|
axisLabel: {
|
|
735
|
-
formatter: (
|
|
446
|
+
formatter: (d) => ["6", "7", "8"].includes(b.cycle) ? u(d).format("YYYY-MM-DD") : d
|
|
736
447
|
}
|
|
737
448
|
},
|
|
738
449
|
yAxis: [
|
|
@@ -741,8 +452,8 @@ const pt = { class: "klineSub" }, mt = { class: "klineSub-tips" }, yt = {
|
|
|
741
452
|
},
|
|
742
453
|
{
|
|
743
454
|
position: "left",
|
|
744
|
-
min:
|
|
745
|
-
max:
|
|
455
|
+
min: P === "cover" ? (d) => d.min : null,
|
|
456
|
+
max: P === "cover" ? (d) => d.max : null,
|
|
746
457
|
splitNumber: 1,
|
|
747
458
|
axisLine: {
|
|
748
459
|
show: !0
|
|
@@ -757,8 +468,8 @@ const pt = { class: "klineSub" }, mt = { class: "klineSub-tips" }, yt = {
|
|
|
757
468
|
},
|
|
758
469
|
{
|
|
759
470
|
position: "right",
|
|
760
|
-
min:
|
|
761
|
-
max:
|
|
471
|
+
min: S === "cover" ? (d) => d.min : null,
|
|
472
|
+
max: S === "cover" ? (d) => d.max : null,
|
|
762
473
|
splitNumber: 1,
|
|
763
474
|
axisLine: {
|
|
764
475
|
show: !1
|
|
@@ -771,101 +482,101 @@ const pt = { class: "klineSub" }, mt = { class: "klineSub-tips" }, yt = {
|
|
|
771
482
|
}
|
|
772
483
|
}
|
|
773
484
|
],
|
|
774
|
-
series:
|
|
485
|
+
series: V
|
|
775
486
|
},
|
|
776
487
|
!0
|
|
777
488
|
);
|
|
778
489
|
});
|
|
779
490
|
}
|
|
780
491
|
// 重置
|
|
781
|
-
}), (
|
|
782
|
-
const
|
|
783
|
-
return
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
modelValue:
|
|
788
|
-
"onUpdate:modelValue":
|
|
492
|
+
}), (a, _) => {
|
|
493
|
+
const p = je, F = Ze;
|
|
494
|
+
return E(), O("div", ut, [
|
|
495
|
+
K("div", dt, [
|
|
496
|
+
Y.value.length ? (E(), O("div", ct, [
|
|
497
|
+
B(F, {
|
|
498
|
+
modelValue: x.value,
|
|
499
|
+
"onUpdate:modelValue": _[0] || (_[0] = (M) => x.value = M),
|
|
789
500
|
size: "small",
|
|
790
501
|
"popper-class": "element-dark",
|
|
791
502
|
class: "element-dark subIndicator"
|
|
792
503
|
}, {
|
|
793
|
-
default:
|
|
794
|
-
(
|
|
795
|
-
key:
|
|
796
|
-
label:
|
|
797
|
-
value:
|
|
504
|
+
default: z(() => [
|
|
505
|
+
(E(!0), O(le, null, me(n.subIndicatorList, (M) => (E(), ke(p, {
|
|
506
|
+
key: M.value,
|
|
507
|
+
label: M.label,
|
|
508
|
+
value: M.value
|
|
798
509
|
}, null, 8, ["label", "value"]))), 128))
|
|
799
510
|
]),
|
|
800
511
|
_: 1
|
|
801
512
|
}, 8, ["modelValue"])
|
|
802
|
-
])) :
|
|
803
|
-
|
|
513
|
+
])) : Z("", !0),
|
|
514
|
+
B(pe, { data: Y.value }, null, 8, ["data"])
|
|
804
515
|
]),
|
|
805
|
-
|
|
516
|
+
K("div", {
|
|
806
517
|
class: "klineSub-chart",
|
|
807
518
|
ref_key: "subChartRef",
|
|
808
|
-
ref:
|
|
519
|
+
ref: s
|
|
809
520
|
}, null, 512)
|
|
810
521
|
]);
|
|
811
522
|
};
|
|
812
523
|
}
|
|
813
|
-
},
|
|
524
|
+
}, pt = /* @__PURE__ */ Q(ft, [["__scopeId", "data-v-ab519de5"]]), mt = /* @__PURE__ */ he({
|
|
814
525
|
__name: "index",
|
|
815
526
|
emits: ["closeContextMenuCallBack"],
|
|
816
|
-
setup(
|
|
817
|
-
const
|
|
527
|
+
setup(n, { emit: k }) {
|
|
528
|
+
const A = k, D = R(), g = R(), e = R({
|
|
818
529
|
display: "none",
|
|
819
530
|
top: "0px",
|
|
820
531
|
left: "0px"
|
|
821
|
-
}),
|
|
822
|
-
e.value.display = "none",
|
|
823
|
-
},
|
|
824
|
-
if (
|
|
825
|
-
const { offsetX:
|
|
826
|
-
if (
|
|
532
|
+
}), h = () => {
|
|
533
|
+
e.value.display = "none", A("closeContextMenuCallBack"), document.removeEventListener("click", h);
|
|
534
|
+
}, b = (s) => {
|
|
535
|
+
if (s.preventDefault(), e.value.display === "block") {
|
|
536
|
+
const { offsetX: x, offsetY: Y } = s, { offsetWidth: r, offsetHeight: a } = g.value;
|
|
537
|
+
if (x <= r && Y <= a)
|
|
827
538
|
return;
|
|
828
539
|
}
|
|
829
|
-
|
|
540
|
+
D.value.click(), e.value = {
|
|
830
541
|
display: "block",
|
|
831
|
-
top: `${
|
|
832
|
-
left: `${
|
|
833
|
-
},
|
|
834
|
-
const
|
|
835
|
-
|
|
836
|
-
}), document.addEventListener("click",
|
|
542
|
+
top: `${s.offsetY}px`,
|
|
543
|
+
left: `${s.offsetX}px`
|
|
544
|
+
}, De(() => {
|
|
545
|
+
const x = D.value.getBoundingClientRect(), Y = g.value.getBoundingClientRect();
|
|
546
|
+
Y.left + Y.width >= x.right && (e.value.left = `${s.offsetX - Y.width}px`), Y.top + Y.height >= x.bottom && (console.log("高度超出"), e.value.top = `${s.offsetY - Y.height}px`);
|
|
547
|
+
}), document.addEventListener("click", h);
|
|
837
548
|
};
|
|
838
|
-
return (
|
|
549
|
+
return (s, x) => (E(), O("div", {
|
|
839
550
|
ref_key: "contextmenuRef",
|
|
840
|
-
ref:
|
|
551
|
+
ref: D,
|
|
841
552
|
class: "contextmenu",
|
|
842
|
-
onContextmenu:
|
|
843
|
-
onMouseleave:
|
|
553
|
+
onContextmenu: b,
|
|
554
|
+
onMouseleave: h
|
|
844
555
|
}, [
|
|
845
|
-
|
|
846
|
-
e.value.display !== "none" ? (
|
|
556
|
+
Ye(s.$slots, "default", {}, void 0, !0),
|
|
557
|
+
e.value.display !== "none" ? (E(), O("div", {
|
|
847
558
|
key: 0,
|
|
848
559
|
ref_key: "contextmenuContentRef",
|
|
849
|
-
ref:
|
|
560
|
+
ref: g,
|
|
850
561
|
class: "contextmenu-popover",
|
|
851
|
-
style:
|
|
562
|
+
style: ye(e.value)
|
|
852
563
|
}, [
|
|
853
|
-
|
|
854
|
-
], 4)) :
|
|
564
|
+
Ye(s.$slots, "popover", {}, void 0, !0)
|
|
565
|
+
], 4)) : Z("", !0)
|
|
855
566
|
], 544));
|
|
856
567
|
}
|
|
857
568
|
});
|
|
858
|
-
const
|
|
859
|
-
const
|
|
569
|
+
const yt = /* @__PURE__ */ Q(mt, [["__scopeId", "data-v-811db6b4"]]);
|
|
570
|
+
const Se = (n) => (Ne("data-v-79254471"), n = n(), qe(), n), gt = { class: "klineBasic-tips" }, vt = {
|
|
860
571
|
key: 0,
|
|
861
572
|
class: "klineBasic-sub"
|
|
862
|
-
},
|
|
573
|
+
}, bt = {
|
|
863
574
|
key: 1,
|
|
864
575
|
class: "klineBasic-empty"
|
|
865
|
-
},
|
|
576
|
+
}, xt = {
|
|
866
577
|
key: 2,
|
|
867
578
|
class: "klineBasic-error"
|
|
868
|
-
},
|
|
579
|
+
}, Yt = /* @__PURE__ */ Se(() => /* @__PURE__ */ K("div", { class: "klineBasic-error-content" }, "加载失败,请刷新重试", -1)), ht = { style: { "text-align": "center" } }, _t = /* @__PURE__ */ Se(() => /* @__PURE__ */ K("span", { style: { "margin-right": "10px" } }, "预警价格:", -1)), wt = { class: "dialog-footer" }, Dt = {
|
|
869
580
|
__name: "index",
|
|
870
581
|
props: {
|
|
871
582
|
variety: {
|
|
@@ -933,10 +644,10 @@ const Ve = (u) => (Ce("data-v-79254471"), u = u(), He(), u), xt = { class: "klin
|
|
|
933
644
|
// 时段框选
|
|
934
645
|
},
|
|
935
646
|
emits: ["change", "getFactorData"],
|
|
936
|
-
setup(
|
|
937
|
-
const
|
|
938
|
-
let
|
|
939
|
-
const
|
|
647
|
+
setup(n, { expose: k, emit: A }) {
|
|
648
|
+
const D = [{ label: "画线预警", key: "drawWarningLine" }];
|
|
649
|
+
let g = null, e = null, h, b, s = !1, x = !1;
|
|
650
|
+
const Y = A, r = n, a = R(!1), _ = R(!1), p = R(!1), F = R(null), M = R(null), P = R("VOL"), S = R(0), V = R({}), d = R([]), N = R({}), C = R(!1), ee = R(""), se = R([...D]), U = G(() => ({
|
|
940
651
|
defaultShowCounts: 500,
|
|
941
652
|
// 默认展示条数
|
|
942
653
|
addCounts: 2e3,
|
|
@@ -957,231 +668,231 @@ const Ve = (u) => (Ce("data-v-79254471"), u = u(), He(), u), xt = { class: "klin
|
|
|
957
668
|
// 是否展示预警线
|
|
958
669
|
getFactorData: !0,
|
|
959
670
|
// 是否获取因子数据
|
|
960
|
-
...
|
|
671
|
+
...r.config
|
|
961
672
|
}));
|
|
962
|
-
|
|
673
|
+
We(
|
|
963
674
|
() => {
|
|
964
|
-
var
|
|
965
|
-
return [
|
|
675
|
+
var i, t;
|
|
676
|
+
return [r.variety, r.cycle, r.mainIndicator, P.value, (i = r.indicatorStore) == null ? void 0 : i.filterIndicator, (t = r.indicatorStore) == null ? void 0 : t.customIndicator];
|
|
966
677
|
},
|
|
967
678
|
() => {
|
|
968
679
|
ue();
|
|
969
680
|
},
|
|
970
681
|
{ deep: !0 }
|
|
971
|
-
),
|
|
972
|
-
|
|
973
|
-
}),
|
|
974
|
-
e == null || e.off("datazoom"), e == null || e.off("highlight"), e == null || e.off("globalout"), e == null || e.dispose(),
|
|
682
|
+
), _e(() => {
|
|
683
|
+
Xe(r.env), ue(), window.addEventListener("keydown", ve);
|
|
684
|
+
}), we(() => {
|
|
685
|
+
e == null || e.off("datazoom"), e == null || e.off("highlight"), e == null || e.off("globalout"), e == null || e.dispose(), g == null || g.dispose(), window.removeEventListener("keydown", ve);
|
|
975
686
|
});
|
|
976
|
-
const
|
|
977
|
-
e || (e =
|
|
687
|
+
const Le = () => {
|
|
688
|
+
e || (e = fe.init(F.value), Te(), U.value.showSubChart && M.value.connect(e), g = He(F.value), g.listen(() => {
|
|
978
689
|
requestAnimationFrame(() => {
|
|
979
690
|
e.resize();
|
|
980
691
|
});
|
|
981
692
|
}));
|
|
982
|
-
},
|
|
983
|
-
if (!(t ||
|
|
693
|
+
}, ve = ({ code: i, ctrlKey: t }) => {
|
|
694
|
+
if (!(t || a.value))
|
|
984
695
|
return;
|
|
985
|
-
const { xAxis:
|
|
986
|
-
let { startValue:
|
|
987
|
-
if (
|
|
988
|
-
switch (
|
|
696
|
+
const { xAxis: m, dataZoom: c } = e.getOption(), { data: f } = (m == null ? void 0 : m[0]) ?? { data: [] };
|
|
697
|
+
let { startValue: o, endValue: l } = (c == null ? void 0 : c[0]) ?? {};
|
|
698
|
+
if (f != null && f.length) {
|
|
699
|
+
switch (i) {
|
|
989
700
|
case "ArrowUp": {
|
|
990
|
-
if (
|
|
701
|
+
if (l - o < 5)
|
|
991
702
|
return;
|
|
992
|
-
const
|
|
993
|
-
|
|
703
|
+
const w = Math.floor((l - o) / 2) + 1;
|
|
704
|
+
o = o + w, l - o < 5 && (o = l - 4);
|
|
994
705
|
break;
|
|
995
706
|
}
|
|
996
707
|
case "ArrowDown": {
|
|
997
|
-
const
|
|
998
|
-
|
|
708
|
+
const w = Math.min(500, l - o);
|
|
709
|
+
o = o - w - 1;
|
|
999
710
|
break;
|
|
1000
711
|
}
|
|
1001
712
|
case "ArrowLeft": {
|
|
1002
|
-
|
|
713
|
+
o > 0 && (o -= 1, l -= 1), S.value > 0 && (S.value -= 1);
|
|
1003
714
|
break;
|
|
1004
715
|
}
|
|
1005
716
|
case "ArrowRight": {
|
|
1006
|
-
|
|
717
|
+
l < f.length - 1 && (o += 1, l += 1), a.value && S.value < f.length - 1 && (S.value += 1);
|
|
1007
718
|
break;
|
|
1008
719
|
}
|
|
1009
720
|
}
|
|
1010
721
|
e.dispatchAction({
|
|
1011
722
|
type: "dataZoom",
|
|
1012
|
-
startValue:
|
|
1013
|
-
endValue:
|
|
723
|
+
startValue: o,
|
|
724
|
+
endValue: l
|
|
1014
725
|
}), e.dispatchAction({
|
|
1015
726
|
type: "updateAxisPointer",
|
|
1016
727
|
seriesIndex: 0,
|
|
1017
|
-
dataIndex:
|
|
728
|
+
dataIndex: a.value ? S.value : null
|
|
1018
729
|
}), e.dispatchAction({
|
|
1019
730
|
type: "highlight",
|
|
1020
|
-
dataIndex:
|
|
731
|
+
dataIndex: a.value ? S.value : l
|
|
1021
732
|
});
|
|
1022
733
|
}
|
|
1023
|
-
},
|
|
734
|
+
}, Te = () => {
|
|
1024
735
|
e == null || e.on("datazoom", (t) => {
|
|
1025
|
-
clearTimeout(
|
|
1026
|
-
var
|
|
1027
|
-
const { loadCheckCounts:
|
|
1028
|
-
if ((
|
|
1029
|
-
const { startValue:
|
|
1030
|
-
|
|
736
|
+
clearTimeout(b), b = setTimeout(() => {
|
|
737
|
+
var c, f, o, l;
|
|
738
|
+
const { loadCheckCounts: m } = U.value;
|
|
739
|
+
if ((f = (c = e == null ? void 0 : e.getOption()) == null ? void 0 : c.dataZoom) != null && f[0]) {
|
|
740
|
+
const { startValue: w } = (l = (o = e == null ? void 0 : e.getOption()) == null ? void 0 : o.dataZoom) == null ? void 0 : l[0];
|
|
741
|
+
w < m && s === !1 && x === !1 && (s = !0, Fe("history")), te();
|
|
1031
742
|
}
|
|
1032
|
-
clearTimeout(
|
|
743
|
+
clearTimeout(b);
|
|
1033
744
|
}, 100);
|
|
1034
745
|
}), e == null || e.on("highlight", (t) => {
|
|
1035
|
-
var
|
|
1036
|
-
let
|
|
1037
|
-
t.batch && (
|
|
1038
|
-
|
|
746
|
+
var c, f;
|
|
747
|
+
let m = t.dataIndex || -1;
|
|
748
|
+
t.batch && (m = typeof ((c = t == null ? void 0 : t.batch[0]) == null ? void 0 : c.dataIndex) == "number" ? (f = t == null ? void 0 : t.batch[0]) == null ? void 0 : f.dataIndex : -1), clearTimeout(h), h = setTimeout(() => {
|
|
749
|
+
S.value = m, clearTimeout(h);
|
|
1039
750
|
}, 20);
|
|
1040
751
|
}), e == null || e.on("globalout", () => {
|
|
1041
|
-
var
|
|
1042
|
-
const t = (
|
|
1043
|
-
|
|
752
|
+
var m, c, f;
|
|
753
|
+
const t = (f = (c = (m = e == null ? void 0 : e.getOption()) == null ? void 0 : m.dataZoom) == null ? void 0 : c[0]) == null ? void 0 : f.endValue;
|
|
754
|
+
S.value = t;
|
|
1044
755
|
});
|
|
1045
|
-
let
|
|
756
|
+
let i = null;
|
|
1046
757
|
e == null || e.on("contextmenu", (t) => {
|
|
1047
|
-
|
|
1048
|
-
t.componentType === "graphic" && (
|
|
758
|
+
i = setTimeout(() => {
|
|
759
|
+
t.componentType === "graphic" && (N.value = t.info, se.value = [
|
|
1049
760
|
{ label: "删除画线", key: "deleteWarningLine" },
|
|
1050
761
|
{ label: "修改画线", key: "changeWarningLine" }
|
|
1051
|
-
]), clearTimeout(
|
|
762
|
+
]), clearTimeout(i), i = null;
|
|
1052
763
|
});
|
|
1053
764
|
});
|
|
1054
765
|
}, ue = async () => {
|
|
1055
|
-
var
|
|
766
|
+
var i, t, m, c, f, o;
|
|
1056
767
|
try {
|
|
1057
|
-
if (!
|
|
768
|
+
if (!r.variety || !r.cycle)
|
|
1058
769
|
return;
|
|
1059
|
-
const { variety:
|
|
1060
|
-
variety:
|
|
1061
|
-
featureId:
|
|
1062
|
-
cycle:
|
|
1063
|
-
mainIndicatorList:
|
|
1064
|
-
subIndicator:
|
|
1065
|
-
right:
|
|
1066
|
-
showWarningLine:
|
|
1067
|
-
getFactorData:
|
|
770
|
+
const { variety: l, featureId: w, cycle: L, indicatorStore: v, mainIndicator: q, right: oe, startTime: H, endTime: T } = r, { defaultShowCounts: I, addCounts: y, showWarningLine: de, getFactorData: ae } = U.value, $ = {
|
|
771
|
+
variety: l,
|
|
772
|
+
featureId: w,
|
|
773
|
+
cycle: L,
|
|
774
|
+
mainIndicatorList: v.getIndicatorParams(q),
|
|
775
|
+
subIndicator: P.value,
|
|
776
|
+
right: oe,
|
|
777
|
+
showWarningLine: de,
|
|
778
|
+
getFactorData: ae
|
|
1068
779
|
};
|
|
1069
|
-
|
|
1070
|
-
const
|
|
1071
|
-
if ((
|
|
1072
|
-
|
|
780
|
+
H && T ? ($.startTime = H, $.endTime = T) : H ? ($.startTime = H, $.limit = I + y) : T ? ($.endTime = T, $.limit = I + y) : ($.endTime = u().add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), $.limit = I + y);
|
|
781
|
+
const W = await Ge($);
|
|
782
|
+
if ((m = (t = (i = W == null ? void 0 : W.body) == null ? void 0 : i.kline) == null ? void 0 : t.time) != null && m.length)
|
|
783
|
+
_.value = !1, p.value = !1;
|
|
1073
784
|
else {
|
|
1074
|
-
|
|
785
|
+
_.value = !0, p.value = !1;
|
|
1075
786
|
return;
|
|
1076
787
|
}
|
|
1077
|
-
|
|
1078
|
-
} catch (
|
|
1079
|
-
throw
|
|
788
|
+
V.value = (c = W == null ? void 0 : W.body) == null ? void 0 : c.kline, d.value = ((f = W == null ? void 0 : W.body) == null ? void 0 : f.warningLine) || [], be(), te(), ae && Y("getFactorData", (o = W == null ? void 0 : W.body) == null ? void 0 : o.factor);
|
|
789
|
+
} catch (l) {
|
|
790
|
+
throw p.value = !0, _.value = !1, new Error(l);
|
|
1080
791
|
}
|
|
1081
|
-
},
|
|
1082
|
-
const { variety: t, cycle:
|
|
1083
|
-
if (
|
|
1084
|
-
const
|
|
792
|
+
}, Fe = async (i) => {
|
|
793
|
+
const { variety: t, cycle: m, indicatorStore: c, mainIndicator: f, right: o } = r, { addCounts: l } = U.value, { time: w } = V.value;
|
|
794
|
+
if (i === "history") {
|
|
795
|
+
const L = await Je({
|
|
1085
796
|
variety: t,
|
|
1086
|
-
cycle:
|
|
1087
|
-
endTime:
|
|
1088
|
-
limit:
|
|
1089
|
-
mainIndicatorList:
|
|
1090
|
-
subIndicator:
|
|
1091
|
-
right:
|
|
797
|
+
cycle: m,
|
|
798
|
+
endTime: w[0],
|
|
799
|
+
limit: l,
|
|
800
|
+
mainIndicatorList: c.getIndicatorParams(f),
|
|
801
|
+
subIndicator: P.value,
|
|
802
|
+
right: o
|
|
1092
803
|
});
|
|
1093
|
-
|
|
1094
|
-
time: [...
|
|
1095
|
-
data: [...
|
|
1096
|
-
mainIndicator:
|
|
1097
|
-
...
|
|
1098
|
-
data: [...
|
|
804
|
+
V.value = {
|
|
805
|
+
time: [...L.body.time, ...V.value.time.slice(1)],
|
|
806
|
+
data: [...L.body.data, ...V.value.data.slice(1)],
|
|
807
|
+
mainIndicator: V.value.mainIndicator.map((v, q) => ({
|
|
808
|
+
...v,
|
|
809
|
+
data: [...L.body.mainIndicator[q].data, ...v.data.slice(1)]
|
|
1099
810
|
})),
|
|
1100
|
-
subIndicator:
|
|
1101
|
-
...
|
|
1102
|
-
data: [...
|
|
811
|
+
subIndicator: V.value.subIndicator.map((v, q) => ({
|
|
812
|
+
...v,
|
|
813
|
+
data: [...L.body.subIndicator[q].data, ...v.data.slice(1)]
|
|
1103
814
|
}))
|
|
1104
|
-
},
|
|
815
|
+
}, be(!0), L.body.data.length < l && (x = !0), s = !1;
|
|
1105
816
|
}
|
|
1106
|
-
},
|
|
1107
|
-
var
|
|
1108
|
-
|
|
1109
|
-
const { time: t } =
|
|
1110
|
-
let
|
|
1111
|
-
if (
|
|
1112
|
-
const
|
|
1113
|
-
|
|
817
|
+
}, be = (i = !1) => {
|
|
818
|
+
var q, oe, H;
|
|
819
|
+
Le();
|
|
820
|
+
const { time: t } = V.value, { gridRight: m, gridLeft: c, defaultShowCounts: f, maxShowCounts: o, showSubChart: l } = U.value;
|
|
821
|
+
let w = t.length - 1 - f, L = t.length - 1;
|
|
822
|
+
if (i) {
|
|
823
|
+
const T = e.getOption(), I = (oe = (q = T == null ? void 0 : T.xAxis) == null ? void 0 : q[0]) == null ? void 0 : oe.data, y = (H = T == null ? void 0 : T.dataZoom) == null ? void 0 : H[0], de = I[y == null ? void 0 : y.startValue], ae = I[y == null ? void 0 : y.endValue];
|
|
824
|
+
w = t.findIndex(($) => $ === de), L = t.findIndex(($) => $ === ae);
|
|
1114
825
|
}
|
|
1115
|
-
const
|
|
1116
|
-
if (e.setOption(
|
|
1117
|
-
let
|
|
1118
|
-
switch (
|
|
826
|
+
const v = nt(V.value, U.value, w, L, r.cycle);
|
|
827
|
+
if (e.setOption(v, !0), S.value = L, r.brushRange) {
|
|
828
|
+
let T = null, I = null;
|
|
829
|
+
switch (r.cycle) {
|
|
1119
830
|
case "6": {
|
|
1120
|
-
|
|
831
|
+
T = t.find((y) => new Date(y).getTime() >= new Date(r.brushRange[0]).getTime() || u(y).format("YYYY-MM-DD") === u(r.brushRange[0]).format("YYYY-MM-DD")), I = t.findLast((y) => new Date(y).getTime() <= new Date(r.brushRange[1]).getTime() || u(y).format("YYYY-MM-DD") === u(r.brushRange[1]).format("YYYY-MM-DD"));
|
|
1121
832
|
break;
|
|
1122
833
|
}
|
|
1123
834
|
case "7": {
|
|
1124
|
-
|
|
835
|
+
T = t.find((y) => u(y).day(5).format("YYYY-MM-DD") === u(r.brushRange[0]).day(5).format("YYYY-MM-DD")), I = t.findLast((y) => u(y).day(5).format("YYYY-MM-DD") === u(r.brushRange[1]).day(5).format("YYYY-MM-DD"));
|
|
1125
836
|
break;
|
|
1126
837
|
}
|
|
1127
838
|
case "8": {
|
|
1128
|
-
|
|
839
|
+
T = t.find((y) => u(y).endOf("month").format("YYYY-MM-DD") === u(r.brushRange[0]).endOf("month").format("YYYY-MM-DD")), I = t.findLast((y) => u(y).endOf("month").format("YYYY-MM-DD") === u(r.brushRange[1]).endOf("month").format("YYYY-MM-DD"));
|
|
1129
840
|
break;
|
|
1130
841
|
}
|
|
1131
842
|
default:
|
|
1132
|
-
|
|
843
|
+
T = t.find((y) => new Date(y).getTime() >= new Date(r.brushRange[0]).getTime()), I = t.findLast((y) => new Date(y).getTime() <= new Date(r.brushRange[1]).getTime());
|
|
1133
844
|
}
|
|
1134
|
-
console.log(
|
|
845
|
+
console.log(T, I), e.dispatchAction({
|
|
1135
846
|
type: "brush",
|
|
1136
847
|
areas: [
|
|
1137
848
|
{
|
|
1138
849
|
brushType: "lineX",
|
|
1139
|
-
coordRange: [
|
|
850
|
+
coordRange: [T, I],
|
|
1140
851
|
xAxisIndex: 0
|
|
1141
852
|
}
|
|
1142
853
|
]
|
|
1143
854
|
});
|
|
1144
855
|
}
|
|
1145
|
-
|
|
1146
|
-
},
|
|
856
|
+
l && M.value.draw({ startValue: w, endValue: L, maxValueSpan: o }, { gridLeft: c, gridRight: m }), xe();
|
|
857
|
+
}, te = () => {
|
|
1147
858
|
if (!e)
|
|
1148
859
|
return;
|
|
1149
|
-
const
|
|
1150
|
-
|
|
860
|
+
const i = e == null ? void 0 : e.getOption();
|
|
861
|
+
i && (e == null || e.setOption(
|
|
1151
862
|
{
|
|
1152
|
-
...
|
|
863
|
+
...i,
|
|
1153
864
|
graphic: [
|
|
1154
|
-
...
|
|
1155
|
-
|
|
865
|
+
...ot(e, d.value, r, U.value, () => {
|
|
866
|
+
ne();
|
|
1156
867
|
})
|
|
1157
868
|
]
|
|
1158
869
|
},
|
|
1159
870
|
!0
|
|
1160
|
-
),
|
|
1161
|
-
},
|
|
1162
|
-
const { time:
|
|
1163
|
-
if (
|
|
1164
|
-
let t =
|
|
1165
|
-
switch (
|
|
871
|
+
), xe());
|
|
872
|
+
}, xe = () => {
|
|
873
|
+
const { time: i } = V.value;
|
|
874
|
+
if (r.brushRange && (i != null && i.length)) {
|
|
875
|
+
let t = u(r.brushRange[0]).format("YYYY-MM-DD 00:00:00"), m = u(r.brushRange[1]).format("YYYY-MM-DD 23:59:59"), c = null, f = null;
|
|
876
|
+
switch (r.cycle) {
|
|
1166
877
|
case "6": {
|
|
1167
|
-
|
|
878
|
+
c = i.find((o) => u(o).format("YYYY-MM-DD") === u(t).format("YYYY-MM-DD")), f = c;
|
|
1168
879
|
break;
|
|
1169
880
|
}
|
|
1170
881
|
case "7": {
|
|
1171
|
-
|
|
882
|
+
c = i.find((o) => u(o).day(5).format("YYYY-MM-DD") === u(t).day(5).format("YYYY-MM-DD")), f = i.findLast((o) => u(o).day(5).format("YYYY-MM-DD") === u(m).day(5).format("YYYY-MM-DD"));
|
|
1172
883
|
break;
|
|
1173
884
|
}
|
|
1174
885
|
case "8": {
|
|
1175
|
-
|
|
886
|
+
c = i.find((o) => u(o).endOf("month").format("YYYY-MM-DD") === u(t).endOf("month").format("YYYY-MM-DD")), f = i.findLast((o) => u(o).endOf("month").format("YYYY-MM-DD") === u(m).endOf("month").format("YYYY-MM-DD"));
|
|
1176
887
|
break;
|
|
1177
888
|
}
|
|
1178
889
|
default:
|
|
1179
|
-
|
|
1180
|
-
const
|
|
1181
|
-
return
|
|
1182
|
-
}),
|
|
1183
|
-
const
|
|
1184
|
-
return
|
|
890
|
+
c = i.find((o) => {
|
|
891
|
+
const l = u(o).format("YYYY-MM-DD") === u(t).format("YYYY-MM-DD"), w = new Date(o).getTime() >= new Date(t).getTime();
|
|
892
|
+
return l && w;
|
|
893
|
+
}), f = i.findLast((o) => {
|
|
894
|
+
const l = u(o).format("YYYY-MM-DD") === u(m).format("YYYY-MM-DD"), w = new Date(o).getTime() <= new Date(m).getTime();
|
|
895
|
+
return l && w;
|
|
1185
896
|
});
|
|
1186
897
|
}
|
|
1187
898
|
e.dispatchAction({
|
|
@@ -1189,28 +900,28 @@ const Ve = (u) => (Ce("data-v-79254471"), u = u(), He(), u), xt = { class: "klin
|
|
|
1189
900
|
areas: [
|
|
1190
901
|
{
|
|
1191
902
|
brushType: "lineX",
|
|
1192
|
-
coordRange: [
|
|
903
|
+
coordRange: [c, f],
|
|
1193
904
|
xAxisIndex: 0
|
|
1194
905
|
}
|
|
1195
906
|
]
|
|
1196
907
|
});
|
|
1197
908
|
}
|
|
1198
|
-
},
|
|
1199
|
-
const
|
|
1200
|
-
|
|
1201
|
-
},
|
|
1202
|
-
const { variety: t, varietyName:
|
|
1203
|
-
if (
|
|
1204
|
-
const
|
|
909
|
+
}, ne = async () => {
|
|
910
|
+
const i = await et({ featureId: r.featureId });
|
|
911
|
+
d.value = (i == null ? void 0 : i.body) || [], te(), Y("change", "warningLine", d.value);
|
|
912
|
+
}, Re = async (i) => {
|
|
913
|
+
const { variety: t, varietyName: m, featureId: c, featureType: f } = r;
|
|
914
|
+
if (i.key === "drawWarningLine") {
|
|
915
|
+
const o = e == null ? void 0 : e.getOption(), l = o.tooltip[0];
|
|
1205
916
|
e == null || e.setOption({
|
|
1206
|
-
...
|
|
917
|
+
...o,
|
|
1207
918
|
// 指示器样式
|
|
1208
919
|
tooltip: {
|
|
1209
|
-
...
|
|
920
|
+
...l,
|
|
1210
921
|
// 坐标轴指示器
|
|
1211
922
|
axisPointer: {
|
|
1212
923
|
// 保留原有部分配置
|
|
1213
|
-
...
|
|
924
|
+
...l.axisPointer,
|
|
1214
925
|
// X轴指示线的宽度
|
|
1215
926
|
lineStyle: {
|
|
1216
927
|
width: 0
|
|
@@ -1222,25 +933,25 @@ const Ve = (u) => (Ce("data-v-79254471"), u = u(), He(), u), xt = { class: "klin
|
|
|
1222
933
|
// 文本标签
|
|
1223
934
|
label: {
|
|
1224
935
|
// 保留原有部分配置
|
|
1225
|
-
...
|
|
936
|
+
...l.axisPointer.label,
|
|
1226
937
|
// 颜色改为透明
|
|
1227
938
|
backgroundColor: "transparent",
|
|
1228
939
|
// 仅显示Y轴值
|
|
1229
|
-
formatter: (
|
|
940
|
+
formatter: (L) => ""
|
|
1230
941
|
}
|
|
1231
942
|
}
|
|
1232
943
|
}
|
|
1233
944
|
});
|
|
1234
|
-
const
|
|
1235
|
-
e == null || e.getZr().off("mousedown",
|
|
1236
|
-
const
|
|
945
|
+
const w = async (L) => {
|
|
946
|
+
e == null || e.getZr().off("mousedown", w);
|
|
947
|
+
const v = e == null ? void 0 : e.convertFromPixel({ yAxisIndex: 0 }, L.offsetY), q = Math.round(v * 1e3) / 1e3;
|
|
1237
948
|
e == null || e.setOption({
|
|
1238
|
-
...
|
|
949
|
+
...o,
|
|
1239
950
|
// 指示器样式
|
|
1240
951
|
tooltip: {
|
|
1241
|
-
...
|
|
952
|
+
...l,
|
|
1242
953
|
axisPointer: {
|
|
1243
|
-
...
|
|
954
|
+
...l.axisPointer,
|
|
1244
955
|
lineStyle: {
|
|
1245
956
|
width: 1
|
|
1246
957
|
},
|
|
@@ -1248,83 +959,83 @@ const Ve = (u) => (Ce("data-v-79254471"), u = u(), He(), u), xt = { class: "klin
|
|
|
1248
959
|
width: 1
|
|
1249
960
|
},
|
|
1250
961
|
label: {
|
|
1251
|
-
...
|
|
962
|
+
...l.axisPointer.label,
|
|
1252
963
|
backgroundColor: null
|
|
1253
964
|
}
|
|
1254
965
|
}
|
|
1255
966
|
}
|
|
1256
|
-
}), await
|
|
967
|
+
}), await Qe({
|
|
1257
968
|
featureCode: t,
|
|
1258
969
|
//品种代码
|
|
1259
|
-
featureName:
|
|
970
|
+
featureName: m,
|
|
1260
971
|
//品种名称
|
|
1261
|
-
featureId:
|
|
972
|
+
featureId: c,
|
|
1262
973
|
//品种id
|
|
1263
|
-
featureType:
|
|
974
|
+
featureType: f,
|
|
1264
975
|
//品种类型
|
|
1265
|
-
warnPrice:
|
|
1266
|
-
}),
|
|
976
|
+
warnPrice: q
|
|
977
|
+
}), ie.success("画线预警成功!"), ne();
|
|
1267
978
|
};
|
|
1268
|
-
e == null || e.getZr().on("mousedown",
|
|
979
|
+
e == null || e.getZr().on("mousedown", w);
|
|
1269
980
|
} else
|
|
1270
|
-
|
|
1271
|
-
},
|
|
1272
|
-
const { variety:
|
|
1273
|
-
await
|
|
1274
|
-
id:
|
|
1275
|
-
featureCode:
|
|
981
|
+
i.key === "deleteWarningLine" ? (await tt({ id: N.value.id }), ie.success("画线预警删除成功"), ne()) : i.key === "changeWarningLine" && (C.value = !0, ee.value = N.value.warnPrice);
|
|
982
|
+
}, Ae = async () => {
|
|
983
|
+
const { variety: i, varietyName: t, featureId: m, featureType: c } = r;
|
|
984
|
+
await Me({
|
|
985
|
+
id: N.value.id,
|
|
986
|
+
featureCode: i,
|
|
1276
987
|
//品种代码
|
|
1277
988
|
featureName: t,
|
|
1278
989
|
//品种名称
|
|
1279
|
-
featureId:
|
|
990
|
+
featureId: m,
|
|
1280
991
|
//品种id
|
|
1281
|
-
featureType:
|
|
992
|
+
featureType: c,
|
|
1282
993
|
//品种类型
|
|
1283
|
-
warnPrice:
|
|
1284
|
-
}),
|
|
1285
|
-
},
|
|
1286
|
-
|
|
994
|
+
warnPrice: ee.value
|
|
995
|
+
}), ie.success("画线预警修改成功"), ne();
|
|
996
|
+
}, Ve = () => {
|
|
997
|
+
se.value = [...D];
|
|
1287
998
|
};
|
|
1288
|
-
return
|
|
1289
|
-
draw: (
|
|
1290
|
-
|
|
999
|
+
return k({
|
|
1000
|
+
draw: (i, t) => {
|
|
1001
|
+
i === "warningLine" && (d.value = t, te());
|
|
1291
1002
|
}
|
|
1292
|
-
}), (
|
|
1293
|
-
var
|
|
1294
|
-
const
|
|
1295
|
-
return
|
|
1296
|
-
|
|
1003
|
+
}), (i, t) => {
|
|
1004
|
+
var L;
|
|
1005
|
+
const m = $e, c = Pe, f = Ie, o = Oe, l = Be, w = Ee;
|
|
1006
|
+
return E(), O(le, null, [
|
|
1007
|
+
K("div", {
|
|
1297
1008
|
class: "klineBasic",
|
|
1298
|
-
onMousemove: t[1] || (t[1] = (
|
|
1299
|
-
onMouseout: t[2] || (t[2] = (
|
|
1009
|
+
onMousemove: t[1] || (t[1] = (v) => a.value = !0),
|
|
1010
|
+
onMouseout: t[2] || (t[2] = (v) => a.value = !1)
|
|
1300
1011
|
}, [
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
data:
|
|
1304
|
-
activeIndex:
|
|
1012
|
+
K("div", gt, [
|
|
1013
|
+
B(st, {
|
|
1014
|
+
data: V.value,
|
|
1015
|
+
activeIndex: S.value
|
|
1305
1016
|
}, null, 8, ["data", "activeIndex"])
|
|
1306
1017
|
]),
|
|
1307
|
-
|
|
1018
|
+
K("div", {
|
|
1308
1019
|
class: "klineBasic-main",
|
|
1309
|
-
style:
|
|
1020
|
+
style: ye({ height: U.value.showSubChart ? "70%" : "100%" })
|
|
1310
1021
|
}, [
|
|
1311
|
-
|
|
1312
|
-
popover:
|
|
1313
|
-
|
|
1022
|
+
B(yt, { onCloseContextMenuCallBack: Ve }, {
|
|
1023
|
+
popover: z(() => [
|
|
1024
|
+
B(c, { style: {
|
|
1314
1025
|
borderRadius: "4px",
|
|
1315
1026
|
overflow: "hidden",
|
|
1316
1027
|
background: "#fff",
|
|
1317
1028
|
borderRight: 0
|
|
1318
1029
|
} }, {
|
|
1319
|
-
default:
|
|
1320
|
-
(
|
|
1030
|
+
default: z(() => [
|
|
1031
|
+
(E(!0), O(le, null, me(se.value, (v) => (E(), ke(m, {
|
|
1321
1032
|
style: { height: "36px" },
|
|
1322
|
-
key:
|
|
1323
|
-
index:
|
|
1324
|
-
onClick: (
|
|
1033
|
+
key: v.key,
|
|
1034
|
+
index: v.key,
|
|
1035
|
+
onClick: (q) => Re(v)
|
|
1325
1036
|
}, {
|
|
1326
|
-
default:
|
|
1327
|
-
|
|
1037
|
+
default: z(() => [
|
|
1038
|
+
re(ce(v.label), 1)
|
|
1328
1039
|
]),
|
|
1329
1040
|
_: 2
|
|
1330
1041
|
}, 1032, ["index", "onClick"]))), 128))
|
|
@@ -1332,79 +1043,79 @@ const Ve = (u) => (Ce("data-v-79254471"), u = u(), He(), u), xt = { class: "klin
|
|
|
1332
1043
|
_: 1
|
|
1333
1044
|
})
|
|
1334
1045
|
]),
|
|
1335
|
-
default:
|
|
1336
|
-
|
|
1046
|
+
default: z(() => [
|
|
1047
|
+
K("div", {
|
|
1337
1048
|
ref_key: "klineBasicMainRef",
|
|
1338
|
-
ref:
|
|
1049
|
+
ref: F,
|
|
1339
1050
|
style: { height: "100%" }
|
|
1340
1051
|
}, null, 512)
|
|
1341
1052
|
]),
|
|
1342
1053
|
_: 1
|
|
1343
1054
|
})
|
|
1344
1055
|
], 4),
|
|
1345
|
-
|
|
1346
|
-
|
|
1056
|
+
U.value.showSubChart ? (E(), O("div", vt, [
|
|
1057
|
+
B(pt, {
|
|
1347
1058
|
ref_key: "klineSubRef",
|
|
1348
|
-
ref:
|
|
1349
|
-
modelValue:
|
|
1350
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1351
|
-
data:
|
|
1352
|
-
cycle:
|
|
1353
|
-
activeIndex:
|
|
1354
|
-
subIndicatorList: (
|
|
1059
|
+
ref: M,
|
|
1060
|
+
modelValue: P.value,
|
|
1061
|
+
"onUpdate:modelValue": t[0] || (t[0] = (v) => P.value = v),
|
|
1062
|
+
data: V.value,
|
|
1063
|
+
cycle: n.cycle,
|
|
1064
|
+
activeIndex: S.value,
|
|
1065
|
+
subIndicatorList: (L = n.indicatorStore) == null ? void 0 : L.subIndicatorList
|
|
1355
1066
|
}, null, 8, ["modelValue", "data", "cycle", "activeIndex", "subIndicatorList"])
|
|
1356
|
-
])) :
|
|
1357
|
-
|
|
1358
|
-
|
|
1067
|
+
])) : Z("", !0),
|
|
1068
|
+
_.value ? (E(), O("div", bt, [
|
|
1069
|
+
B(f, {
|
|
1359
1070
|
class: "klineBasic-empty-content",
|
|
1360
1071
|
description: "暂无数据"
|
|
1361
1072
|
})
|
|
1362
|
-
])) :
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
default:
|
|
1368
|
-
|
|
1073
|
+
])) : Z("", !0),
|
|
1074
|
+
p.value ? (E(), O("div", xt, [
|
|
1075
|
+
Yt,
|
|
1076
|
+
K("div", ht, [
|
|
1077
|
+
B(o, { onClick: ue }, {
|
|
1078
|
+
default: z(() => [
|
|
1079
|
+
re("刷新")
|
|
1369
1080
|
]),
|
|
1370
1081
|
_: 1
|
|
1371
1082
|
})
|
|
1372
1083
|
])
|
|
1373
|
-
])) :
|
|
1084
|
+
])) : Z("", !0)
|
|
1374
1085
|
], 32),
|
|
1375
|
-
|
|
1086
|
+
B(w, {
|
|
1376
1087
|
modelValue: C.value,
|
|
1377
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
1088
|
+
"onUpdate:modelValue": t[5] || (t[5] = (v) => C.value = v),
|
|
1378
1089
|
title: "画线预警-修改价格",
|
|
1379
1090
|
width: "30%",
|
|
1380
1091
|
"align-center": ""
|
|
1381
1092
|
}, {
|
|
1382
|
-
footer:
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
onClick: t[4] || (t[4] = (
|
|
1093
|
+
footer: z(() => [
|
|
1094
|
+
K("span", wt, [
|
|
1095
|
+
B(o, {
|
|
1096
|
+
onClick: t[4] || (t[4] = (v) => C.value = !1)
|
|
1386
1097
|
}, {
|
|
1387
|
-
default:
|
|
1388
|
-
|
|
1098
|
+
default: z(() => [
|
|
1099
|
+
re("取消")
|
|
1389
1100
|
]),
|
|
1390
1101
|
_: 1
|
|
1391
1102
|
}),
|
|
1392
|
-
|
|
1103
|
+
B(o, {
|
|
1393
1104
|
type: "primary",
|
|
1394
|
-
onClick:
|
|
1105
|
+
onClick: Ae
|
|
1395
1106
|
}, {
|
|
1396
|
-
default:
|
|
1397
|
-
|
|
1107
|
+
default: z(() => [
|
|
1108
|
+
re("确定")
|
|
1398
1109
|
]),
|
|
1399
1110
|
_: 1
|
|
1400
1111
|
})
|
|
1401
1112
|
])
|
|
1402
1113
|
]),
|
|
1403
|
-
default:
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
modelValue:
|
|
1407
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
1114
|
+
default: z(() => [
|
|
1115
|
+
_t,
|
|
1116
|
+
B(l, {
|
|
1117
|
+
modelValue: ee.value,
|
|
1118
|
+
"onUpdate:modelValue": t[3] || (t[3] = (v) => ee.value = v),
|
|
1408
1119
|
placeholder: "输入预警价格"
|
|
1409
1120
|
}, null, 8, ["modelValue"])
|
|
1410
1121
|
]),
|
|
@@ -1413,9 +1124,9 @@ const Ve = (u) => (Ce("data-v-79254471"), u = u(), He(), u), xt = { class: "klin
|
|
|
1413
1124
|
], 64);
|
|
1414
1125
|
};
|
|
1415
1126
|
}
|
|
1416
|
-
},
|
|
1417
|
-
install(
|
|
1418
|
-
|
|
1127
|
+
}, kt = /* @__PURE__ */ Q(Dt, [["__scopeId", "data-v-79254471"]]), ln = {
|
|
1128
|
+
install(n) {
|
|
1129
|
+
n.component("st-klineBasic", kt);
|
|
1419
1130
|
}
|
|
1420
1131
|
};
|
|
1421
1132
|
export {
|