st-comp 0.0.281 → 0.0.283
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +399 -397
- package/es/VarietySearch.cjs +14 -14
- package/es/VarietySearch.js +1354 -1320
- package/es/VarietyTextCopy.cjs +1 -1
- package/es/VarietyTextCopy.js +1 -1
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +159 -159
- package/lib/{index-7282d3be.js → index-a2ca50a2.js} +7540 -7504
- package/lib/{python-418be57d.js → python-91f34759.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/es/KlineBasic.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { E as
|
|
2
|
-
import { E as
|
|
3
|
-
import { E as
|
|
4
|
-
import { E as
|
|
5
|
-
import { E as
|
|
6
|
-
import { E as
|
|
1
|
+
import { E as We } from "./el-button-ee9fe159.js";
|
|
2
|
+
import { E as qe } from "./el-dialog-060b3735.js";
|
|
3
|
+
import { E as ze } from "./el-empty-552baf04.js";
|
|
4
|
+
import { E as Ze } from "./el-input-number-484fb184.js";
|
|
5
|
+
import { E as Ke, a as Ue } from "./el-menu-item-0ac22681.js";
|
|
6
|
+
import { E as fe } from "./index-e2e58ea9.js";
|
|
7
7
|
import { d as F } from "./base-dd156b8e.js";
|
|
8
8
|
import "./el-overlay-cb5c85aa.js";
|
|
9
9
|
import "./el-input-d23f5442.js";
|
|
10
10
|
import "./el-popper-0454c8e8.js";
|
|
11
11
|
import "./el-tooltip-4ed993c7.js";
|
|
12
|
-
import { defineComponent as
|
|
13
|
-
import * as
|
|
14
|
-
import { y as
|
|
12
|
+
import { defineComponent as _e, ref as A, watch as te, nextTick as ne, openBlock as T, createElementBlock as V, Fragment as oe, renderList as pe, normalizeStyle as me, toDisplayString as ae, computed as le, createVNode as B, onMounted as Me, onUnmounted as Le, createElementVNode as K, withCtx as z, createBlock as Fe, createCommentVNode as G, renderSlot as De, createTextVNode as de } from "vue";
|
|
13
|
+
import * as be from "echarts";
|
|
14
|
+
import { y as He, V as je, R as Ce, A as Xe, U as ie, x as he, D as Ge, j as ce } from "./index-53cc4e43.js";
|
|
15
15
|
import "./el-message-4ed993c7.js";
|
|
16
16
|
import { _ as J } from "./_plugin-vue_export-helper-dad06003.js";
|
|
17
|
-
import { E as
|
|
17
|
+
import { E as Je, a as Qe } from "./el-select-a573c78b.js";
|
|
18
18
|
import "./el-scrollbar-0a42c1d0.js";
|
|
19
19
|
import "./el-tag-2d8a3fe7.js";
|
|
20
20
|
import "./index-6a52dc7c.js";
|
|
@@ -36,34 +36,34 @@ import "./castArray-18eb6a41.js";
|
|
|
36
36
|
import "./index-d9379af4.js";
|
|
37
37
|
import "./index-c09fc6f5.js";
|
|
38
38
|
let C = null;
|
|
39
|
-
const
|
|
40
|
-
const w =
|
|
39
|
+
const et = (o) => {
|
|
40
|
+
const w = He(o, {
|
|
41
41
|
handleReq: (h) => {
|
|
42
|
-
|
|
42
|
+
je() && (h.headers.token = Ce());
|
|
43
43
|
},
|
|
44
44
|
handleRes: (h) => {
|
|
45
45
|
const { data: r } = h;
|
|
46
46
|
if (r.code === 401)
|
|
47
|
-
return location.origin.includes("localhost") ? location.href = `${location.origin}/#/404` :
|
|
47
|
+
return location.origin.includes("localhost") ? location.href = `${location.origin}/#/404` : Xe(), !0;
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
w.get, C = w.post;
|
|
51
|
-
},
|
|
52
|
-
const { data: e, time: m } = o, { gridTop:
|
|
51
|
+
}, tt = (o) => C("/middleLayer/kline/getKlineBasic", { ...o, userId: ie("id") }), nt = (o) => C("/middleLayer/kline/getKline", o), ot = async (o) => C("/alarm/deliversign/addAlarmPrice", { ...o, userId: ie("id") }), at = async (o) => C("/alarm/deliversign/findAlarmPriceByUserId", { ...o, userId: ie("id") }), Ae = async (o) => C("/alarm/deliversign/updateAlarmPrice", { ...o, userId: ie("id") }), lt = async (o) => C("/alarm/deliversign/deleteAlarmPrice", { ...o, userId: ie("id") }), { round: j } = he, it = (o, w, h, r, i) => {
|
|
52
|
+
const { data: e, time: m } = o, { gridTop: u, gridRight: f, gridLeft: p, maxShowCounts: g, showSubChart: S } = w;
|
|
53
53
|
return {
|
|
54
54
|
animation: !1,
|
|
55
55
|
grid: {
|
|
56
|
-
top: `${
|
|
57
|
-
right: `${
|
|
58
|
-
bottom:
|
|
59
|
-
left: `${
|
|
56
|
+
top: `${u}px`,
|
|
57
|
+
right: `${f}px`,
|
|
58
|
+
bottom: S ? "6px" : "24px",
|
|
59
|
+
left: `${p}px`
|
|
60
60
|
},
|
|
61
61
|
dataZoom: [
|
|
62
62
|
{
|
|
63
63
|
type: "inside",
|
|
64
64
|
startValue: h,
|
|
65
65
|
endValue: r,
|
|
66
|
-
maxValueSpan:
|
|
66
|
+
maxValueSpan: g
|
|
67
67
|
}
|
|
68
68
|
],
|
|
69
69
|
tooltip: {
|
|
@@ -74,23 +74,23 @@ const Qe = (o) => {
|
|
|
74
74
|
type: "cross",
|
|
75
75
|
label: {
|
|
76
76
|
rich: {},
|
|
77
|
-
formatter: (
|
|
78
|
-
const { axisDimension:
|
|
79
|
-
return
|
|
77
|
+
formatter: (v) => {
|
|
78
|
+
const { axisDimension: a, value: b } = v;
|
|
79
|
+
return a === "x" ? S ? "" : ["6", "7", "8"].includes(i) ? F(b).format("YYYY-MM-DD") : b : String(j(b));
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
formatter: () => ""
|
|
84
84
|
},
|
|
85
85
|
xAxis: {
|
|
86
|
-
show: !
|
|
86
|
+
show: !S,
|
|
87
87
|
type: "category",
|
|
88
88
|
data: m,
|
|
89
89
|
splitLine: {
|
|
90
90
|
show: !1
|
|
91
91
|
},
|
|
92
92
|
axisLabel: {
|
|
93
|
-
formatter: (
|
|
93
|
+
formatter: (v) => ["6", "7", "8"].includes(i) ? F(v).format("YYYY-MM-DD") : v
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
yAxis: {
|
|
@@ -105,8 +105,8 @@ const Qe = (o) => {
|
|
|
105
105
|
color: "#333"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
-
min: (
|
|
109
|
-
max: (
|
|
108
|
+
min: (v) => j(v.min),
|
|
109
|
+
max: (v) => j(v.max)
|
|
110
110
|
},
|
|
111
111
|
series: [
|
|
112
112
|
{
|
|
@@ -120,17 +120,17 @@ const Qe = (o) => {
|
|
|
120
120
|
borderWidth: 1
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
|
-
...o.mainIndicator.map((
|
|
124
|
-
name:
|
|
123
|
+
...o.mainIndicator.map((v) => ({
|
|
124
|
+
name: v.key,
|
|
125
125
|
type: "line",
|
|
126
126
|
silent: !0,
|
|
127
127
|
symbol: "none",
|
|
128
|
-
data:
|
|
128
|
+
data: v.data,
|
|
129
129
|
lineStyle: {
|
|
130
|
-
width:
|
|
130
|
+
width: v.width || 1
|
|
131
131
|
},
|
|
132
132
|
itemStyle: {
|
|
133
|
-
color:
|
|
133
|
+
color: v.color
|
|
134
134
|
}
|
|
135
135
|
}))
|
|
136
136
|
],
|
|
@@ -150,32 +150,32 @@ const Qe = (o) => {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
|
-
},
|
|
154
|
-
const { variety: e, featureId: m, featureType:
|
|
155
|
-
return w.reduce((
|
|
156
|
-
const { warnPrice:
|
|
157
|
-
if (
|
|
158
|
-
return
|
|
153
|
+
}, rt = (o, w, h, r, i) => {
|
|
154
|
+
const { variety: e, featureId: m, featureType: u } = h, { gridTop: f, gridLeft: p, gridRight: g } = r;
|
|
155
|
+
return w.reduce((S, v) => {
|
|
156
|
+
const { warnPrice: a } = v, b = o == null ? void 0 : o.convertToPixel({ yAxisIndex: 0 }, a);
|
|
157
|
+
if (b <= f || b >= (o == null ? void 0 : o.getHeight()))
|
|
158
|
+
return S;
|
|
159
159
|
let L = 0;
|
|
160
160
|
return [
|
|
161
|
-
...
|
|
161
|
+
...S,
|
|
162
162
|
{
|
|
163
163
|
type: "group",
|
|
164
164
|
name: "warningLine",
|
|
165
|
-
info:
|
|
165
|
+
info: v,
|
|
166
166
|
draggable: "vertical",
|
|
167
167
|
children: [
|
|
168
168
|
{
|
|
169
169
|
type: "line",
|
|
170
|
-
info:
|
|
170
|
+
info: v,
|
|
171
171
|
shape: {
|
|
172
|
-
x1:
|
|
172
|
+
x1: p,
|
|
173
173
|
// 开始X坐标
|
|
174
|
-
y1:
|
|
174
|
+
y1: b,
|
|
175
175
|
// 开始Y坐标
|
|
176
|
-
x2: (o == null ? void 0 : o.getWidth()) -
|
|
176
|
+
x2: (o == null ? void 0 : o.getWidth()) - g,
|
|
177
177
|
// 结束X坐标
|
|
178
|
-
y2:
|
|
178
|
+
y2: b
|
|
179
179
|
// 结束Y坐标
|
|
180
180
|
},
|
|
181
181
|
style: {
|
|
@@ -187,12 +187,12 @@ const Qe = (o) => {
|
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
type: "text",
|
|
190
|
-
info:
|
|
191
|
-
x: (o == null ? void 0 : o.getWidth()) -
|
|
192
|
-
y:
|
|
190
|
+
info: v,
|
|
191
|
+
x: (o == null ? void 0 : o.getWidth()) - g,
|
|
192
|
+
y: b - 5,
|
|
193
193
|
style: {
|
|
194
194
|
fill: "#FFF",
|
|
195
|
-
text:
|
|
195
|
+
text: a,
|
|
196
196
|
stroke: "#000",
|
|
197
197
|
lineWidth: 1,
|
|
198
198
|
opacity: 1
|
|
@@ -201,38 +201,38 @@ const Qe = (o) => {
|
|
|
201
201
|
}
|
|
202
202
|
],
|
|
203
203
|
// 事件:开始拖拽
|
|
204
|
-
ondragstart: (
|
|
205
|
-
L =
|
|
204
|
+
ondragstart: (Y) => {
|
|
205
|
+
L = Y.offsetY;
|
|
206
206
|
},
|
|
207
|
-
ondrag: (
|
|
208
|
-
var
|
|
209
|
-
if (
|
|
210
|
-
const
|
|
211
|
-
(
|
|
207
|
+
ondrag: (Y) => {
|
|
208
|
+
var E;
|
|
209
|
+
if (Y.target && Y.target.childAt(1)) {
|
|
210
|
+
const $ = o.convertFromPixel({ yAxisIndex: 0 }, b + (Y.offsetY - L));
|
|
211
|
+
(E = Y.target.childAt(1)) == null || E.animate("style", !1).when(1, { text: j($, 3) }).start();
|
|
212
212
|
}
|
|
213
213
|
},
|
|
214
214
|
// 事件:结束拖拽
|
|
215
|
-
ondragend: async (
|
|
216
|
-
const
|
|
217
|
-
if (
|
|
218
|
-
const
|
|
219
|
-
id:
|
|
220
|
-
warnPrice: j(
|
|
215
|
+
ondragend: async (Y) => {
|
|
216
|
+
const $ = Y.offsetY - L;
|
|
217
|
+
if ($ !== 0) {
|
|
218
|
+
const W = o == null ? void 0 : o.convertFromPixel({ yAxisIndex: 0 }, $ + b), R = {
|
|
219
|
+
id: v.id,
|
|
220
|
+
warnPrice: j(W, 3),
|
|
221
221
|
featureId: m,
|
|
222
222
|
//品种id
|
|
223
223
|
featureCode: e,
|
|
224
224
|
//品种代码
|
|
225
|
-
featureType:
|
|
225
|
+
featureType: u
|
|
226
226
|
//品种类型
|
|
227
227
|
};
|
|
228
|
-
await
|
|
228
|
+
await Ae(R), fe.success("画线预警修改成功"), i && i();
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
];
|
|
233
233
|
}, []);
|
|
234
234
|
};
|
|
235
|
-
function
|
|
235
|
+
function Te(o) {
|
|
236
236
|
function w(r) {
|
|
237
237
|
if (typeof r == "number")
|
|
238
238
|
return Number.isFinite(r) ? r : null;
|
|
@@ -259,7 +259,7 @@ function Ae(o) {
|
|
|
259
259
|
return "-";
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
const
|
|
262
|
+
const st = /* @__PURE__ */ _e({
|
|
263
263
|
__name: "index",
|
|
264
264
|
props: {
|
|
265
265
|
// 提示数据
|
|
@@ -273,25 +273,25 @@ const rt = /* @__PURE__ */ be({
|
|
|
273
273
|
return te(() => w.data, () => {
|
|
274
274
|
r.value.length === 0 && ne(() => {
|
|
275
275
|
Array.from(h.value.children).forEach((i, e) => {
|
|
276
|
-
var m,
|
|
277
|
-
((
|
|
276
|
+
var m, u, f, p, g, S, v, a;
|
|
277
|
+
((u = (m = w.data) == null ? void 0 : m[e]) == null ? void 0 : u.label) === "涨跌" ? r.value[e] = "85px" : ((p = (f = w.data) == null ? void 0 : f[e]) == null ? void 0 : p.label) === "至今涨幅" ? r.value[e] = "115px" : ((S = (g = w.data) == null ? void 0 : g[e]) == null ? void 0 : S.label) === "额" ? r.value[e] = "85px" : ["开", "高", "低", "收"].includes((a = (v = w.data) == null ? void 0 : v[e]) == null ? void 0 : a.label) ? r.value[e] = `${i.offsetWidth + 24}px` : r.value[e] = `${i.offsetWidth + 36}px`;
|
|
278
278
|
});
|
|
279
279
|
});
|
|
280
|
-
}), (i, e) => (T(),
|
|
280
|
+
}), (i, e) => (T(), V("div", {
|
|
281
281
|
class: "kline-tips",
|
|
282
282
|
ref_key: "tipsRef",
|
|
283
283
|
ref: h
|
|
284
284
|
}, [
|
|
285
|
-
(T(!0),
|
|
286
|
-
key:
|
|
285
|
+
(T(!0), V(oe, null, pe(o.data, (m, u) => (T(), V("div", {
|
|
286
|
+
key: u,
|
|
287
287
|
class: "kline-tips-item",
|
|
288
|
-
style:
|
|
288
|
+
style: me({ color: m.color, width: r.value[u] ? r.value[u] : null })
|
|
289
289
|
}, ae(m.label) + " " + ae(m.value), 5))), 128))
|
|
290
290
|
], 512));
|
|
291
291
|
}
|
|
292
292
|
});
|
|
293
|
-
const
|
|
294
|
-
const
|
|
293
|
+
const Se = /* @__PURE__ */ J(st, [["__scopeId", "data-v-0ed8d951"]]);
|
|
294
|
+
const ut = { class: "kline-tips" }, dt = {
|
|
295
295
|
__name: "index",
|
|
296
296
|
props: {
|
|
297
297
|
// 提示数据
|
|
@@ -309,44 +309,44 @@ const st = { class: "kline-tips" }, ut = {
|
|
|
309
309
|
}
|
|
310
310
|
},
|
|
311
311
|
setup(o) {
|
|
312
|
-
const { round: w, formatValue: h } =
|
|
312
|
+
const { round: w, formatValue: h } = he, r = o, i = A(null);
|
|
313
313
|
te(() => r.activeIndex, () => {
|
|
314
|
-
var
|
|
315
|
-
i.value === null && (i.value = ((
|
|
314
|
+
var u;
|
|
315
|
+
i.value === null && (i.value = ((u = r.data.data[r.activeIndex]) == null ? void 0 : u[1]) ?? 0);
|
|
316
316
|
}), te(() => r.data, () => {
|
|
317
|
-
var
|
|
318
|
-
i.value === null && (i.value = ((
|
|
317
|
+
var u;
|
|
318
|
+
i.value === null && (i.value = ((u = r.data.data[r.activeIndex]) == null ? void 0 : u[1]) ?? 0);
|
|
319
319
|
}), te(() => r.variety, () => {
|
|
320
320
|
i.value = null;
|
|
321
321
|
});
|
|
322
322
|
const e = le(() => {
|
|
323
|
-
const { data:
|
|
324
|
-
if (
|
|
325
|
-
const
|
|
326
|
-
{ label: "开", value:
|
|
327
|
-
{ label: "高", value:
|
|
328
|
-
{ label: "低", value:
|
|
329
|
-
{ label: "收", value:
|
|
323
|
+
const { data: u, activeIndex: f } = r;
|
|
324
|
+
if (u.data && u.data[f]) {
|
|
325
|
+
const p = u.data[f], g = [
|
|
326
|
+
{ label: "开", value: p[0] },
|
|
327
|
+
{ label: "高", value: p[3] },
|
|
328
|
+
{ label: "低", value: p[2] },
|
|
329
|
+
{ label: "收", value: p[1] }
|
|
330
330
|
];
|
|
331
|
-
|
|
332
|
-
let
|
|
333
|
-
|
|
334
|
-
const
|
|
335
|
-
let
|
|
336
|
-
return
|
|
331
|
+
p[4] !== null && g.push({ label: "额", value: h(p[4]) });
|
|
332
|
+
let S;
|
|
333
|
+
p[6] > 0 ? S = "red" : p[6] < 0 && (S = "green"), g.push({ label: "涨跌", value: `${w(p[6])}%`, color: S });
|
|
334
|
+
const v = (i.value / p[1] - 1) * 100;
|
|
335
|
+
let a;
|
|
336
|
+
return v > 0 ? a = "red" : v < 0 && (a = "green"), g.push({ label: "至今涨幅", value: `${w(v)}%`, color: a }), g;
|
|
337
337
|
}
|
|
338
338
|
return [];
|
|
339
339
|
}), m = le(() => {
|
|
340
|
-
var
|
|
341
|
-
const { data:
|
|
342
|
-
return ((
|
|
340
|
+
var p;
|
|
341
|
+
const { data: u, activeIndex: f } = r;
|
|
342
|
+
return ((p = u == null ? void 0 : u.mainIndicator) == null ? void 0 : p.map((g) => ({ label: g.key, value: Te(g.data[f]), color: g.color }))) || [];
|
|
343
343
|
});
|
|
344
|
-
return (
|
|
345
|
-
|
|
346
|
-
|
|
344
|
+
return (u, f) => (T(), V("div", ut, [
|
|
345
|
+
B(Se, { data: e.value }, null, 8, ["data"]),
|
|
346
|
+
B(Se, { data: m.value }, null, 8, ["data"])
|
|
347
347
|
]));
|
|
348
348
|
}
|
|
349
|
-
},
|
|
349
|
+
}, ct = /* @__PURE__ */ J(dt, [["__scopeId", "data-v-db894a3c"]]), ft = { class: "kline-averageTips" }, pt = /* @__PURE__ */ _e({
|
|
350
350
|
__name: "index",
|
|
351
351
|
props: {
|
|
352
352
|
// 提示数据
|
|
@@ -356,20 +356,20 @@ const st = { class: "kline-tips" }, ut = {
|
|
|
356
356
|
}
|
|
357
357
|
},
|
|
358
358
|
setup(o) {
|
|
359
|
-
return (w, h) => (T(),
|
|
360
|
-
(T(!0),
|
|
359
|
+
return (w, h) => (T(), V("div", ft, [
|
|
360
|
+
(T(!0), V(oe, null, pe(o.data, (r, i) => (T(), V("div", {
|
|
361
361
|
key: i,
|
|
362
362
|
class: "kline-averageTips-item",
|
|
363
|
-
style:
|
|
363
|
+
style: me({ color: r.color })
|
|
364
364
|
}, ae(r.label) + " " + ae(r.value), 5))), 128))
|
|
365
365
|
]));
|
|
366
366
|
}
|
|
367
367
|
});
|
|
368
|
-
const
|
|
369
|
-
const
|
|
368
|
+
const mt = /* @__PURE__ */ J(pt, [["__scopeId", "data-v-c544514b"]]);
|
|
369
|
+
const vt = { class: "klineSub" }, yt = { class: "klineSub-tips" }, gt = {
|
|
370
370
|
key: 0,
|
|
371
371
|
class: "klineSub-tips-select"
|
|
372
|
-
},
|
|
372
|
+
}, xt = {
|
|
373
373
|
__name: "index",
|
|
374
374
|
props: {
|
|
375
375
|
cycle: {
|
|
@@ -383,40 +383,40 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
|
|
|
383
383
|
},
|
|
384
384
|
emits: ["update:modelValue"],
|
|
385
385
|
setup(o, { expose: w, emit: h }) {
|
|
386
|
-
const { round: r } =
|
|
386
|
+
const { round: r } = he;
|
|
387
387
|
let i = null, e = null;
|
|
388
|
-
const m = A(!0),
|
|
388
|
+
const m = A(!0), u = h, f = o, p = A(), g = le({
|
|
389
389
|
get() {
|
|
390
|
-
return
|
|
390
|
+
return f.modelValue;
|
|
391
391
|
},
|
|
392
|
-
set(
|
|
393
|
-
|
|
392
|
+
set(a) {
|
|
393
|
+
u("update:modelValue", a);
|
|
394
394
|
}
|
|
395
|
-
}),
|
|
395
|
+
}), S = le(() => {
|
|
396
396
|
var L;
|
|
397
397
|
if (!m.value)
|
|
398
398
|
return [];
|
|
399
|
-
const { data:
|
|
400
|
-
return ((L =
|
|
399
|
+
const { data: a, activeIndex: b } = f;
|
|
400
|
+
return ((L = a == null ? void 0 : a.subIndicator) == null ? void 0 : L.map((Y) => ({ label: Y.key, color: Y.color, value: Te(Y.data[b]) }))) || [];
|
|
401
401
|
});
|
|
402
|
-
|
|
403
|
-
if (m.value = !0, !
|
|
402
|
+
Me(() => {
|
|
403
|
+
if (m.value = !0, !p.value)
|
|
404
404
|
return;
|
|
405
|
-
i =
|
|
406
|
-
let
|
|
405
|
+
i = be.init(p.value);
|
|
406
|
+
let a = !0;
|
|
407
407
|
e = new ResizeObserver(() => {
|
|
408
|
-
if (
|
|
409
|
-
|
|
408
|
+
if (a) {
|
|
409
|
+
a = !1;
|
|
410
410
|
return;
|
|
411
411
|
}
|
|
412
412
|
m.value && i && !i.isDisposed() && i.resize();
|
|
413
|
-
}), e.observe(
|
|
414
|
-
}),
|
|
413
|
+
}), e.observe(p.value);
|
|
414
|
+
}), Le(() => {
|
|
415
415
|
m.value = !1, i && !i.isDisposed() && (i.dispose(), i = null), e && (e.disconnect(), e = null);
|
|
416
416
|
});
|
|
417
|
-
const
|
|
418
|
-
const L =
|
|
419
|
-
return L[0] === L[1] ? L[0] >=
|
|
417
|
+
const v = (a, b) => {
|
|
418
|
+
const L = a[b], Y = b === 0 ? a[b] : a[b - 1];
|
|
419
|
+
return L[0] === L[1] ? L[0] >= Y[1] ? {
|
|
420
420
|
color: "transparent",
|
|
421
421
|
borderColor: "#FF0000"
|
|
422
422
|
} : {
|
|
@@ -429,15 +429,15 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
|
|
|
429
429
|
};
|
|
430
430
|
};
|
|
431
431
|
return w({
|
|
432
|
-
connect: (
|
|
433
|
-
!m.value || !i || i.isDisposed() ||
|
|
432
|
+
connect: (a) => {
|
|
433
|
+
!m.value || !i || i.isDisposed() || be.connect([a, i]);
|
|
434
434
|
},
|
|
435
|
-
draw: (
|
|
435
|
+
draw: (a, b) => {
|
|
436
436
|
!m.value || !i || i.isDisposed() || ne(() => {
|
|
437
437
|
if (!m.value || !i || i.isDisposed())
|
|
438
438
|
return;
|
|
439
|
-
const { startValue: L, endValue:
|
|
440
|
-
if (
|
|
439
|
+
const { startValue: L, endValue: Y, maxValueSpan: E } = a, { leftYAxisRange: $, rightYAxisRange: W } = f.data.subIndicator[0], R = f.data.subIndicator.map((s) => {
|
|
440
|
+
if (s.series === "bar")
|
|
441
441
|
return {
|
|
442
442
|
name: "subMain",
|
|
443
443
|
xAxisIndex: 0,
|
|
@@ -445,35 +445,35 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
|
|
|
445
445
|
type: "bar",
|
|
446
446
|
silent: !0,
|
|
447
447
|
symbol: "none",
|
|
448
|
-
data:
|
|
449
|
-
value:
|
|
450
|
-
itemStyle:
|
|
451
|
-
} :
|
|
452
|
-
value:
|
|
448
|
+
data: s.data.map((N, q) => s.seriesColor === "kline" ? {
|
|
449
|
+
value: N,
|
|
450
|
+
itemStyle: v(f.data.data, q)
|
|
451
|
+
} : s.seriesColor === "value" ? {
|
|
452
|
+
value: N,
|
|
453
453
|
itemStyle: {
|
|
454
|
-
color:
|
|
454
|
+
color: N >= 0 ? "#FF0000" : "#00FFFF"
|
|
455
455
|
}
|
|
456
456
|
} : {
|
|
457
|
-
value:
|
|
457
|
+
value: N,
|
|
458
458
|
itemStyle: {
|
|
459
|
-
color:
|
|
459
|
+
color: s.seriesColor
|
|
460
460
|
}
|
|
461
461
|
})
|
|
462
462
|
};
|
|
463
|
-
if (
|
|
463
|
+
if (s.series === "line")
|
|
464
464
|
return {
|
|
465
465
|
xAxisIndex: 0,
|
|
466
|
-
yAxisIndex:
|
|
467
|
-
name:
|
|
466
|
+
yAxisIndex: s.yAxis === "right" ? 2 : 1,
|
|
467
|
+
name: s.key,
|
|
468
468
|
type: "line",
|
|
469
469
|
silent: !0,
|
|
470
470
|
symbol: "none",
|
|
471
|
-
data:
|
|
471
|
+
data: s.data,
|
|
472
472
|
lineStyle: {
|
|
473
473
|
width: 1
|
|
474
474
|
},
|
|
475
475
|
itemStyle: {
|
|
476
|
-
color:
|
|
476
|
+
color: s.color
|
|
477
477
|
}
|
|
478
478
|
};
|
|
479
479
|
});
|
|
@@ -481,17 +481,17 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
|
|
|
481
481
|
{
|
|
482
482
|
animation: !1,
|
|
483
483
|
grid: {
|
|
484
|
-
left: `${
|
|
484
|
+
left: `${b.gridLeft}px`,
|
|
485
485
|
top: "10px",
|
|
486
|
-
right: `${
|
|
486
|
+
right: `${b.gridRight}px`,
|
|
487
487
|
bottom: "20px"
|
|
488
488
|
},
|
|
489
489
|
dataZoom: [
|
|
490
490
|
{
|
|
491
491
|
type: "inside",
|
|
492
492
|
startValue: L,
|
|
493
|
-
endValue:
|
|
494
|
-
maxValueSpan:
|
|
493
|
+
endValue: Y,
|
|
494
|
+
maxValueSpan: E
|
|
495
495
|
}
|
|
496
496
|
],
|
|
497
497
|
tooltip: {
|
|
@@ -502,11 +502,11 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
|
|
|
502
502
|
type: "cross",
|
|
503
503
|
label: {
|
|
504
504
|
rich: {},
|
|
505
|
-
formatter: (
|
|
506
|
-
const { axisDimension:
|
|
507
|
-
if (
|
|
508
|
-
return ["6", "7", "8"].includes(
|
|
509
|
-
if (
|
|
505
|
+
formatter: (s) => {
|
|
506
|
+
const { axisDimension: N, value: q } = s;
|
|
507
|
+
if (N === "x")
|
|
508
|
+
return ["6", "7", "8"].includes(f.cycle) ? F(q).format("YYYY-MM-DD") : q;
|
|
509
|
+
if (s.axisIndex === 1)
|
|
510
510
|
return String(r(q));
|
|
511
511
|
}
|
|
512
512
|
}
|
|
@@ -515,7 +515,7 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
|
|
|
515
515
|
},
|
|
516
516
|
xAxis: {
|
|
517
517
|
type: "category",
|
|
518
|
-
data:
|
|
518
|
+
data: f.data.time,
|
|
519
519
|
axisLine: {
|
|
520
520
|
show: !0
|
|
521
521
|
},
|
|
@@ -523,7 +523,7 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
|
|
|
523
523
|
show: !1
|
|
524
524
|
},
|
|
525
525
|
axisLabel: {
|
|
526
|
-
formatter: (
|
|
526
|
+
formatter: (s) => ["6", "7", "8"].includes(f.cycle) ? F(s).format("YYYY-MM-DD") : s
|
|
527
527
|
}
|
|
528
528
|
},
|
|
529
529
|
yAxis: [
|
|
@@ -532,8 +532,8 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
|
|
|
532
532
|
},
|
|
533
533
|
{
|
|
534
534
|
position: "left",
|
|
535
|
-
min:
|
|
536
|
-
max:
|
|
535
|
+
min: $ === "cover" ? (s) => s.min : null,
|
|
536
|
+
max: $ === "cover" ? (s) => s.max : null,
|
|
537
537
|
splitNumber: 1,
|
|
538
538
|
axisLine: {
|
|
539
539
|
show: !0
|
|
@@ -548,8 +548,8 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
|
|
|
548
548
|
},
|
|
549
549
|
{
|
|
550
550
|
position: "right",
|
|
551
|
-
min:
|
|
552
|
-
max:
|
|
551
|
+
min: W === "cover" ? (s) => s.min : null,
|
|
552
|
+
max: W === "cover" ? (s) => s.max : null,
|
|
553
553
|
splitNumber: 1,
|
|
554
554
|
axisLine: {
|
|
555
555
|
show: !1
|
|
@@ -562,45 +562,45 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
|
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
],
|
|
565
|
-
series:
|
|
565
|
+
series: R
|
|
566
566
|
},
|
|
567
567
|
!0
|
|
568
568
|
);
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
|
-
}), (
|
|
572
|
-
const L =
|
|
573
|
-
return T(),
|
|
574
|
-
K("div",
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
modelValue:
|
|
578
|
-
"onUpdate:modelValue":
|
|
571
|
+
}), (a, b) => {
|
|
572
|
+
const L = Je, Y = Qe;
|
|
573
|
+
return T(), V("div", vt, [
|
|
574
|
+
K("div", yt, [
|
|
575
|
+
S.value.length ? (T(), V("div", gt, [
|
|
576
|
+
B(Y, {
|
|
577
|
+
modelValue: g.value,
|
|
578
|
+
"onUpdate:modelValue": b[0] || (b[0] = (E) => g.value = E),
|
|
579
579
|
size: "small",
|
|
580
580
|
"popper-class": "element-dark",
|
|
581
581
|
class: "element-dark subIndicator"
|
|
582
582
|
}, {
|
|
583
583
|
default: z(() => [
|
|
584
|
-
(T(!0),
|
|
585
|
-
key:
|
|
586
|
-
label:
|
|
587
|
-
value:
|
|
584
|
+
(T(!0), V(oe, null, pe(o.subIndicatorList, (E) => (T(), Fe(L, {
|
|
585
|
+
key: E.value,
|
|
586
|
+
label: E.label,
|
|
587
|
+
value: E.value
|
|
588
588
|
}, null, 8, ["label", "value"]))), 128))
|
|
589
589
|
]),
|
|
590
590
|
_: 1
|
|
591
591
|
}, 8, ["modelValue"])
|
|
592
592
|
])) : G("", !0),
|
|
593
|
-
|
|
593
|
+
B(mt, { data: S.value }, null, 8, ["data"])
|
|
594
594
|
]),
|
|
595
595
|
K("div", {
|
|
596
596
|
class: "klineSub-chart",
|
|
597
597
|
ref_key: "subChartRef",
|
|
598
|
-
ref:
|
|
598
|
+
ref: p
|
|
599
599
|
}, null, 512)
|
|
600
600
|
]);
|
|
601
601
|
};
|
|
602
602
|
}
|
|
603
|
-
},
|
|
603
|
+
}, bt = /* @__PURE__ */ J(xt, [["__scopeId", "data-v-6e6b5f5b"]]), _t = /* @__PURE__ */ _e({
|
|
604
604
|
__name: "index",
|
|
605
605
|
emits: ["closeContextMenuCallBack"],
|
|
606
606
|
setup(o, { emit: w }) {
|
|
@@ -610,55 +610,55 @@ const mt = { class: "klineSub" }, vt = { class: "klineSub-tips" }, yt = {
|
|
|
610
610
|
left: "0px"
|
|
611
611
|
}), m = () => {
|
|
612
612
|
e.value.display = "none", h("closeContextMenuCallBack"), document.removeEventListener("click", m);
|
|
613
|
-
},
|
|
614
|
-
if (
|
|
615
|
-
const { offsetX:
|
|
616
|
-
if (
|
|
613
|
+
}, u = (f) => {
|
|
614
|
+
if (f.preventDefault(), e.value.display === "block") {
|
|
615
|
+
const { offsetX: p, offsetY: g } = f, { offsetWidth: S, offsetHeight: v } = i.value;
|
|
616
|
+
if (p <= S && g <= v)
|
|
617
617
|
return;
|
|
618
618
|
}
|
|
619
619
|
r.value.click(), e.value = {
|
|
620
620
|
display: "block",
|
|
621
|
-
top: `${
|
|
622
|
-
left: `${
|
|
621
|
+
top: `${f.offsetY}px`,
|
|
622
|
+
left: `${f.offsetX}px`
|
|
623
623
|
}, ne(() => {
|
|
624
|
-
const
|
|
625
|
-
|
|
624
|
+
const p = r.value.getBoundingClientRect(), g = i.value.getBoundingClientRect();
|
|
625
|
+
g.left + g.width >= p.right && (e.value.left = `${f.offsetX - g.width}px`), g.top + g.height >= p.bottom && (console.log("高度超出"), e.value.top = `${f.offsetY - g.height}px`);
|
|
626
626
|
}), document.addEventListener("click", m);
|
|
627
627
|
};
|
|
628
|
-
return (
|
|
628
|
+
return (f, p) => (T(), V("div", {
|
|
629
629
|
ref_key: "contextmenuRef",
|
|
630
630
|
ref: r,
|
|
631
631
|
class: "contextmenu",
|
|
632
|
-
onContextmenu:
|
|
632
|
+
onContextmenu: u,
|
|
633
633
|
onMouseleave: m
|
|
634
634
|
}, [
|
|
635
|
-
|
|
636
|
-
e.value.display !== "none" ? (T(),
|
|
635
|
+
De(f.$slots, "default", {}, void 0, !0),
|
|
636
|
+
e.value.display !== "none" ? (T(), V("div", {
|
|
637
637
|
key: 0,
|
|
638
638
|
ref_key: "contextmenuContentRef",
|
|
639
639
|
ref: i,
|
|
640
640
|
class: "contextmenu-popover",
|
|
641
|
-
style:
|
|
641
|
+
style: me(e.value)
|
|
642
642
|
}, [
|
|
643
|
-
|
|
643
|
+
De(f.$slots, "popover", {}, void 0, !0)
|
|
644
644
|
], 4)) : G("", !0)
|
|
645
645
|
], 544));
|
|
646
646
|
}
|
|
647
647
|
});
|
|
648
|
-
const
|
|
649
|
-
const
|
|
648
|
+
const ht = /* @__PURE__ */ J(_t, [["__scopeId", "data-v-8d581ce9"]]);
|
|
649
|
+
const wt = {
|
|
650
650
|
key: 0,
|
|
651
651
|
class: "klineBasic-tips"
|
|
652
|
-
},
|
|
652
|
+
}, kt = {
|
|
653
653
|
key: 1,
|
|
654
654
|
class: "klineBasic-sub"
|
|
655
|
-
},
|
|
655
|
+
}, Yt = {
|
|
656
656
|
key: 2,
|
|
657
657
|
class: "klineBasic-empty"
|
|
658
|
-
},
|
|
658
|
+
}, Dt = {
|
|
659
659
|
key: 3,
|
|
660
660
|
class: "klineBasic-error"
|
|
661
|
-
},
|
|
661
|
+
}, St = { style: { "text-align": "center" } }, Mt = { class: "dialog-footer" }, Lt = {
|
|
662
662
|
__name: "index",
|
|
663
663
|
props: {
|
|
664
664
|
variety: {
|
|
@@ -717,8 +717,10 @@ const ht = {
|
|
|
717
717
|
emits: ["change", "getFactorData"],
|
|
718
718
|
setup(o, { expose: w, emit: h }) {
|
|
719
719
|
const r = [{ label: "画线预警", key: "drawWarningLine" }];
|
|
720
|
-
let i = null, e = null, m = null,
|
|
721
|
-
const
|
|
720
|
+
let i = null, e = null, m = null, u = null, f = null, p = !1, g = !1;
|
|
721
|
+
const S = h, v = (n, t) => {
|
|
722
|
+
console.error(`[KlineBasic] ${n}`, t);
|
|
723
|
+
}, a = o, b = A(!1), L = A(!1), Y = A(!1), E = A(null), $ = A(null), W = A("VOL"), R = A(0), s = A({}), N = A([]), q = A({}), re = A(!1), se = A(""), ve = A([...r]), I = le(() => ({
|
|
722
724
|
defaultShowCounts: 500,
|
|
723
725
|
addCounts: 2e3,
|
|
724
726
|
maxShowCounts: 5e3,
|
|
@@ -730,70 +732,70 @@ const ht = {
|
|
|
730
732
|
showWarningLine: !0,
|
|
731
733
|
getFactorData: !0,
|
|
732
734
|
...a.config
|
|
733
|
-
})),
|
|
734
|
-
e || (e =
|
|
735
|
+
})), Ve = () => {
|
|
736
|
+
e || (e = be.init(E.value), Ne(), I.value.showSubChart && $.value.connect(e), i = Ge(E.value), i.listen(() => {
|
|
735
737
|
requestAnimationFrame(() => {
|
|
736
738
|
e == null || e.resize(), Q();
|
|
737
739
|
});
|
|
738
740
|
}));
|
|
739
|
-
},
|
|
741
|
+
}, ye = () => {
|
|
740
742
|
e && !e.isDisposed() && e.hideLoading();
|
|
741
|
-
},
|
|
743
|
+
}, we = (n = !1) => {
|
|
742
744
|
m && (cancelAnimationFrame(m), m = null), m = requestAnimationFrame(() => {
|
|
743
|
-
|
|
744
|
-
|
|
745
|
+
Ee(n), m = requestAnimationFrame(() => {
|
|
746
|
+
Re(), m = requestAnimationFrame(() => {
|
|
745
747
|
Q(), m = null;
|
|
746
748
|
});
|
|
747
749
|
});
|
|
748
750
|
});
|
|
749
|
-
},
|
|
750
|
-
var
|
|
751
|
+
}, Ee = (n = !1) => {
|
|
752
|
+
var d, k, D;
|
|
751
753
|
if (!e || e.isDisposed())
|
|
752
754
|
return;
|
|
753
|
-
const { time: t } =
|
|
754
|
-
let
|
|
755
|
+
const { time: t } = s.value, { defaultShowCounts: y } = I.value;
|
|
756
|
+
let c = t.length - 1 - y, x = t.length - 1;
|
|
755
757
|
if (n && e) {
|
|
756
|
-
const M = e.getOption(),
|
|
757
|
-
if (
|
|
758
|
-
const U =
|
|
758
|
+
const M = e.getOption(), _ = (k = (d = M == null ? void 0 : M.xAxis) == null ? void 0 : d[0]) == null ? void 0 : k.data, O = (D = M == null ? void 0 : M.dataZoom) == null ? void 0 : D[0];
|
|
759
|
+
if (_ != null && _.length && O) {
|
|
760
|
+
const U = _[O.startValue], H = _[O.endValue];
|
|
759
761
|
if (U && H) {
|
|
760
|
-
const
|
|
761
|
-
|
|
762
|
+
const xe = t.findIndex((ee) => new Date(ee).getTime() >= new Date(U).getTime()), X = t.findLastIndex((ee) => new Date(ee).getTime() <= new Date(H).getTime());
|
|
763
|
+
c = xe !== -1 ? xe : 0, x = X !== -1 ? X : t.length - 1, c > x && (c = Math.max(0, x - Math.min(100, t.length - 1)));
|
|
762
764
|
}
|
|
763
765
|
}
|
|
764
766
|
}
|
|
765
|
-
const l =
|
|
767
|
+
const l = it(s.value, I.value, c, x, a.cycle);
|
|
766
768
|
requestAnimationFrame(() => {
|
|
767
|
-
e == null || e.setOption(l, !0),
|
|
768
|
-
|
|
769
|
+
e == null || e.setOption(l, !0), R.value = x, requestAnimationFrame(() => {
|
|
770
|
+
Be();
|
|
769
771
|
});
|
|
770
772
|
});
|
|
771
|
-
},
|
|
772
|
-
var
|
|
773
|
-
if (!
|
|
773
|
+
}, Re = () => {
|
|
774
|
+
var k;
|
|
775
|
+
if (!I.value.showSubChart || !$.value)
|
|
774
776
|
return;
|
|
775
|
-
const { time: n } =
|
|
776
|
-
let l = n.length - 1 -
|
|
777
|
+
const { time: n } = s.value, { gridLeft: t, gridRight: y, maxShowCounts: c, defaultShowCounts: x } = I.value;
|
|
778
|
+
let l = n.length - 1 - x, d = n.length - 1;
|
|
777
779
|
if (e && !e.isDisposed()) {
|
|
778
|
-
const
|
|
779
|
-
if ((
|
|
780
|
-
const { startValue: M, endValue:
|
|
781
|
-
M !== void 0 &&
|
|
780
|
+
const D = e.getOption();
|
|
781
|
+
if ((k = D == null ? void 0 : D.dataZoom) != null && k[0]) {
|
|
782
|
+
const { startValue: M, endValue: _ } = D.dataZoom[0];
|
|
783
|
+
M !== void 0 && _ !== void 0 && (l = M, d = _);
|
|
782
784
|
}
|
|
783
785
|
}
|
|
784
786
|
requestAnimationFrame(() => {
|
|
785
|
-
var
|
|
786
|
-
(
|
|
787
|
+
var D;
|
|
788
|
+
(D = $.value) == null || D.draw({ startValue: l, endValue: d, maxValueSpan: c }, { gridLeft: t, gridRight: y });
|
|
787
789
|
});
|
|
788
790
|
}, Q = () => {
|
|
789
|
-
e && (
|
|
791
|
+
e && (u && (cancelAnimationFrame(u), u = null), u = requestAnimationFrame(() => {
|
|
790
792
|
if (!(e == null ? void 0 : e.getOption()))
|
|
791
793
|
return;
|
|
792
|
-
const t = e == null ? void 0 : e.getWidth(),
|
|
793
|
-
!t || !
|
|
794
|
+
const t = e == null ? void 0 : e.getWidth(), y = e == null ? void 0 : e.getHeight();
|
|
795
|
+
!t || !y || (e == null || e.setOption(
|
|
794
796
|
{
|
|
795
|
-
graphic:
|
|
796
|
-
|
|
797
|
+
graphic: rt(e, N.value, a, I.value, () => {
|
|
798
|
+
ue();
|
|
797
799
|
})
|
|
798
800
|
},
|
|
799
801
|
{
|
|
@@ -801,54 +803,54 @@ const ht = {
|
|
|
801
803
|
replaceMerge: ["graphic"],
|
|
802
804
|
lazyUpdate: !0
|
|
803
805
|
}
|
|
804
|
-
),
|
|
806
|
+
), u = null);
|
|
805
807
|
}));
|
|
806
|
-
},
|
|
807
|
-
|
|
808
|
-
const { time: n } =
|
|
808
|
+
}, Be = () => {
|
|
809
|
+
f && cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
810
|
+
const { time: n } = s.value;
|
|
809
811
|
if (!a.brushRange || !(n != null && n.length) || !e)
|
|
810
812
|
return;
|
|
811
|
-
let t = F(a.brushRange[0]).format("YYYY-MM-DD 00:00:00"),
|
|
813
|
+
let t = F(a.brushRange[0]).format("YYYY-MM-DD 00:00:00"), y = F(a.brushRange[1]).format("YYYY-MM-DD 23:59:59"), c = null, x = null;
|
|
812
814
|
switch (String(a.cycle)) {
|
|
813
815
|
case "6": {
|
|
814
|
-
|
|
816
|
+
c = n.find((l) => F(l).format("YYYY-MM-DD") === F(t).format("YYYY-MM-DD")), x = c;
|
|
815
817
|
break;
|
|
816
818
|
}
|
|
817
819
|
case "7": {
|
|
818
|
-
|
|
820
|
+
c = n.find((l) => F(l).day(5).format("YYYY-MM-DD") === F(t).day(5).format("YYYY-MM-DD")), x = n.findLast((l) => F(l).day(5).format("YYYY-MM-DD") === F(y).day(5).format("YYYY-MM-DD"));
|
|
819
821
|
break;
|
|
820
822
|
}
|
|
821
823
|
case "8": {
|
|
822
|
-
|
|
824
|
+
c = n.find((l) => F(l).endOf("month").format("YYYY-MM-DD") === F(t).endOf("month").format("YYYY-MM-DD")), x = n.findLast((l) => F(l).endOf("month").format("YYYY-MM-DD") === F(y).endOf("month").format("YYYY-MM-DD"));
|
|
823
825
|
break;
|
|
824
826
|
}
|
|
825
827
|
default:
|
|
826
|
-
|
|
827
|
-
const
|
|
828
|
-
return
|
|
829
|
-
}),
|
|
830
|
-
const
|
|
831
|
-
return
|
|
828
|
+
c = n.find((l) => {
|
|
829
|
+
const d = F(l).format("YYYY-MM-DD") === F(t).format("YYYY-MM-DD"), k = new Date(l).getTime() >= new Date(t).getTime();
|
|
830
|
+
return d && k;
|
|
831
|
+
}), x = n.findLast((l) => {
|
|
832
|
+
const d = F(l).format("YYYY-MM-DD") === F(y).format("YYYY-MM-DD"), k = new Date(l).getTime() <= new Date(y).getTime();
|
|
833
|
+
return d && k;
|
|
832
834
|
});
|
|
833
835
|
}
|
|
834
|
-
|
|
836
|
+
c && x && e.dispatchAction({
|
|
835
837
|
type: "brush",
|
|
836
838
|
areas: [
|
|
837
839
|
{
|
|
838
840
|
brushType: "lineX",
|
|
839
|
-
coordRange: [
|
|
841
|
+
coordRange: [c, x],
|
|
840
842
|
xAxisIndex: 0
|
|
841
843
|
}
|
|
842
844
|
]
|
|
843
|
-
}),
|
|
845
|
+
}), f = null;
|
|
844
846
|
});
|
|
845
|
-
},
|
|
846
|
-
var n, t,
|
|
847
|
+
}, ge = async () => {
|
|
848
|
+
var n, t, y, c, x, l;
|
|
847
849
|
try {
|
|
848
850
|
if (!a.variety || !a.cycle)
|
|
849
851
|
return;
|
|
850
|
-
const { variety:
|
|
851
|
-
|
|
852
|
+
const { variety: d, featureId: k, cycle: D, indicatorStore: M, mainIndicator: _, right: O, startTime: U, endTime: H } = a, { defaultShowCounts: xe, addCounts: X, showWarningLine: ee, getFactorData: Ye } = I.value;
|
|
853
|
+
Ve(), e && !e.isDisposed() && e.showLoading({
|
|
852
854
|
text: "加载中...",
|
|
853
855
|
color: "#409eff",
|
|
854
856
|
textColor: "#fff",
|
|
@@ -856,249 +858,249 @@ const ht = {
|
|
|
856
858
|
zlevel: 0
|
|
857
859
|
});
|
|
858
860
|
const Z = {
|
|
859
|
-
variety:
|
|
860
|
-
featureId:
|
|
861
|
-
cycle:
|
|
862
|
-
mainIndicatorList: M.getIndicatorParams(
|
|
863
|
-
subIndicator:
|
|
861
|
+
variety: d,
|
|
862
|
+
featureId: k,
|
|
863
|
+
cycle: D,
|
|
864
|
+
mainIndicatorList: M.getIndicatorParams(_),
|
|
865
|
+
subIndicator: W.value,
|
|
864
866
|
right: O,
|
|
865
867
|
showWarningLine: ee,
|
|
866
|
-
getFactorData:
|
|
868
|
+
getFactorData: Ye
|
|
867
869
|
};
|
|
868
870
|
U && H ? (Z.startTime = U, Z.endTime = H) : U ? (Z.startTime = U, Z.limit = X) : H ? (Z.endTime = H, Z.limit = X) : (Z.endTime = F().add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), Z.limit = X);
|
|
869
|
-
const P = await
|
|
870
|
-
if (!((
|
|
871
|
-
|
|
871
|
+
const P = await tt(Z);
|
|
872
|
+
if (!((y = (t = (n = P == null ? void 0 : P.body) == null ? void 0 : n.kline) == null ? void 0 : t.time) != null && y.length)) {
|
|
873
|
+
L.value = !0, Y.value = !1, ye();
|
|
872
874
|
return;
|
|
873
875
|
}
|
|
874
|
-
|
|
875
|
-
} catch (
|
|
876
|
-
|
|
876
|
+
L.value = !1, Y.value = !1, s.value = (c = P == null ? void 0 : P.body) == null ? void 0 : c.kline, N.value = ((x = P == null ? void 0 : P.body) == null ? void 0 : x.warningLine) || [], await ne(), we(!1), Ye && S("getFactorData", (l = P == null ? void 0 : P.body) == null ? void 0 : l.factor), ye();
|
|
877
|
+
} catch (d) {
|
|
878
|
+
ye(), console.error("KlineBasic getMainData 失败:", d), Y.value = !0, L.value = !1;
|
|
877
879
|
}
|
|
878
|
-
},
|
|
879
|
-
const { variety: t, cycle:
|
|
880
|
+
}, $e = async (n) => {
|
|
881
|
+
const { variety: t, cycle: y, indicatorStore: c, mainIndicator: x, right: l } = a, { addCounts: d } = I.value, { time: k } = s.value;
|
|
880
882
|
if (n === "history") {
|
|
881
|
-
const
|
|
883
|
+
const D = await nt({
|
|
882
884
|
variety: t,
|
|
883
|
-
cycle:
|
|
884
|
-
endTime:
|
|
885
|
-
limit:
|
|
886
|
-
mainIndicatorList:
|
|
887
|
-
subIndicator:
|
|
885
|
+
cycle: y,
|
|
886
|
+
endTime: k[0],
|
|
887
|
+
limit: d,
|
|
888
|
+
mainIndicatorList: c.getIndicatorParams(x),
|
|
889
|
+
subIndicator: W.value,
|
|
888
890
|
right: l
|
|
889
891
|
});
|
|
890
|
-
|
|
891
|
-
time: [...
|
|
892
|
-
data: [...
|
|
893
|
-
mainIndicator:
|
|
892
|
+
s.value = {
|
|
893
|
+
time: [...D.body.time, ...s.value.time.slice(1)],
|
|
894
|
+
data: [...D.body.data, ...s.value.data.slice(1)],
|
|
895
|
+
mainIndicator: s.value.mainIndicator.map((M, _) => {
|
|
894
896
|
var O;
|
|
895
897
|
return {
|
|
896
898
|
...M,
|
|
897
|
-
data: [...((O =
|
|
899
|
+
data: [...((O = D.body.mainIndicator[_]) == null ? void 0 : O.data) ?? [], ...M.data.slice(1)]
|
|
898
900
|
};
|
|
899
901
|
}),
|
|
900
|
-
subIndicator:
|
|
902
|
+
subIndicator: s.value.subIndicator.map((M, _) => {
|
|
901
903
|
var O;
|
|
902
904
|
return {
|
|
903
905
|
...M,
|
|
904
|
-
data: [...((O =
|
|
906
|
+
data: [...((O = D.body.subIndicator[_]) == null ? void 0 : O.data) ?? [], ...M.data.slice(1)]
|
|
905
907
|
};
|
|
906
908
|
})
|
|
907
|
-
}, console.log("触发了加载更多数据"), await ne(),
|
|
909
|
+
}, console.log("触发了加载更多数据"), await ne(), we(!0), D.body.data.length < d && (g = !0, console.log("历史数据已经全部加载完毕")), p = !1;
|
|
908
910
|
}
|
|
909
|
-
},
|
|
910
|
-
if (!(t ||
|
|
911
|
+
}, ke = ({ code: n, ctrlKey: t }) => {
|
|
912
|
+
if (!(t || b.value))
|
|
911
913
|
return;
|
|
912
|
-
const { xAxis:
|
|
913
|
-
let { startValue: l, endValue:
|
|
914
|
-
if (
|
|
914
|
+
const { xAxis: y, dataZoom: c } = e.getOption(), { data: x } = (y == null ? void 0 : y[0]) ?? { data: [] };
|
|
915
|
+
let { startValue: l, endValue: d } = (c == null ? void 0 : c[0]) ?? {};
|
|
916
|
+
if (x != null && x.length) {
|
|
915
917
|
switch (n) {
|
|
916
918
|
case "ArrowUp": {
|
|
917
|
-
if (
|
|
919
|
+
if (d - l < 5)
|
|
918
920
|
return;
|
|
919
|
-
const
|
|
920
|
-
l = l +
|
|
921
|
+
const k = Math.floor((d - l) / 2) + 1;
|
|
922
|
+
l = l + k, d - l < 5 && (l = d - 4);
|
|
921
923
|
break;
|
|
922
924
|
}
|
|
923
925
|
case "ArrowDown": {
|
|
924
|
-
const
|
|
925
|
-
l = l -
|
|
926
|
+
const k = Math.min(500, d - l);
|
|
927
|
+
l = l - k - 1;
|
|
926
928
|
break;
|
|
927
929
|
}
|
|
928
930
|
case "ArrowLeft": {
|
|
929
|
-
l > 0 && (l -= 1,
|
|
931
|
+
l > 0 && (l -= 1, d -= 1), R.value > 0 && (R.value -= 1);
|
|
930
932
|
break;
|
|
931
933
|
}
|
|
932
934
|
case "ArrowRight": {
|
|
933
|
-
|
|
935
|
+
d < x.length - 1 && (l += 1, d += 1), b.value && R.value < x.length - 1 && (R.value += 1);
|
|
934
936
|
break;
|
|
935
937
|
}
|
|
936
938
|
}
|
|
937
939
|
requestAnimationFrame(() => {
|
|
938
|
-
e.dispatchAction({ type: "dataZoom", startValue: l, endValue:
|
|
940
|
+
e.dispatchAction({ type: "dataZoom", startValue: l, endValue: d }), e.dispatchAction({
|
|
939
941
|
type: "updateAxisPointer",
|
|
940
942
|
seriesIndex: 0,
|
|
941
|
-
dataIndex:
|
|
943
|
+
dataIndex: b.value ? R.value : null
|
|
942
944
|
}), e.dispatchAction({
|
|
943
945
|
type: "highlight",
|
|
944
|
-
dataIndex:
|
|
946
|
+
dataIndex: b.value ? R.value : d
|
|
945
947
|
});
|
|
946
948
|
});
|
|
947
949
|
}
|
|
948
|
-
},
|
|
950
|
+
}, Ne = () => {
|
|
949
951
|
e == null || e.on(
|
|
950
952
|
"datazoom",
|
|
951
|
-
|
|
952
|
-
var
|
|
953
|
-
const { loadCheckCounts: t } =
|
|
954
|
-
if ((
|
|
955
|
-
const { startValue:
|
|
956
|
-
|
|
953
|
+
ce((n) => {
|
|
954
|
+
var y, c, x, l;
|
|
955
|
+
const { loadCheckCounts: t } = I.value;
|
|
956
|
+
if ((c = (y = e == null ? void 0 : e.getOption()) == null ? void 0 : y.dataZoom) != null && c[0]) {
|
|
957
|
+
const { startValue: d } = (l = (x = e == null ? void 0 : e.getOption()) == null ? void 0 : x.dataZoom) == null ? void 0 : l[0];
|
|
958
|
+
d < t && !p && !g && (p = !0, $e("history").catch((k) => v("加载历史数据失败", k))), Q();
|
|
957
959
|
}
|
|
958
960
|
}, 100)
|
|
959
961
|
), e == null || e.on(
|
|
960
962
|
"highlight",
|
|
961
|
-
|
|
962
|
-
var
|
|
963
|
+
ce((n) => {
|
|
964
|
+
var y, c;
|
|
963
965
|
let t = n.dataIndex || -1;
|
|
964
|
-
n.batch && (t = typeof ((
|
|
966
|
+
n.batch && (t = typeof ((y = n == null ? void 0 : n.batch[0]) == null ? void 0 : y.dataIndex) == "number" ? (c = n == null ? void 0 : n.batch[0]) == null ? void 0 : c.dataIndex : -1), R.value = t;
|
|
965
967
|
}, 20)
|
|
966
968
|
), e == null || e.on(
|
|
967
969
|
"globalout",
|
|
968
|
-
|
|
969
|
-
var n, t,
|
|
970
|
+
ce(() => {
|
|
971
|
+
var n, t, y;
|
|
970
972
|
if (e) {
|
|
971
|
-
const
|
|
972
|
-
|
|
973
|
+
const c = (y = (t = (n = e == null ? void 0 : e.getOption()) == null ? void 0 : n.dataZoom) == null ? void 0 : t[0]) == null ? void 0 : y.endValue;
|
|
974
|
+
R.value = c;
|
|
973
975
|
}
|
|
974
976
|
}, 30)
|
|
975
977
|
), e == null || e.on(
|
|
976
978
|
"contextmenu",
|
|
977
|
-
|
|
978
|
-
n.componentType === "graphic" && (
|
|
979
|
+
ce((n) => {
|
|
980
|
+
n.componentType === "graphic" && (q.value = n.info, ve.value = [
|
|
979
981
|
{ label: "删除画线", key: "deleteWarningLine" },
|
|
980
982
|
{ label: "修改画线", key: "changeWarningLine" }
|
|
981
983
|
]);
|
|
982
984
|
}, 0)
|
|
983
985
|
);
|
|
984
|
-
},
|
|
985
|
-
const n = await
|
|
986
|
-
|
|
987
|
-
},
|
|
988
|
-
const { variety: t, varietyName:
|
|
986
|
+
}, ue = async () => {
|
|
987
|
+
const n = await at({ featureId: a.featureId });
|
|
988
|
+
N.value = (n == null ? void 0 : n.body) || [], Q(), S("change", "warningLine", N.value);
|
|
989
|
+
}, Oe = async (n) => {
|
|
990
|
+
const { variety: t, varietyName: y, featureId: c, featureType: x } = a;
|
|
989
991
|
if (n.key === "drawWarningLine") {
|
|
990
|
-
const l = e == null ? void 0 : e.getOption(),
|
|
992
|
+
const l = e == null ? void 0 : e.getOption(), d = l.tooltip[0];
|
|
991
993
|
e == null || e.setOption({
|
|
992
994
|
...l,
|
|
993
995
|
tooltip: {
|
|
994
|
-
...
|
|
996
|
+
...d,
|
|
995
997
|
axisPointer: {
|
|
996
|
-
...
|
|
998
|
+
...d.axisPointer,
|
|
997
999
|
lineStyle: { width: 0 },
|
|
998
1000
|
crossStyle: { width: 2 },
|
|
999
1001
|
label: {
|
|
1000
|
-
...
|
|
1002
|
+
...d.axisPointer.label,
|
|
1001
1003
|
backgroundColor: "transparent",
|
|
1002
1004
|
formatter: () => ""
|
|
1003
1005
|
}
|
|
1004
1006
|
}
|
|
1005
1007
|
}
|
|
1006
1008
|
});
|
|
1007
|
-
const
|
|
1008
|
-
e == null || e.getZr().off("mousedown",
|
|
1009
|
-
const M = e == null ? void 0 : e.convertFromPixel({ yAxisIndex: 0 },
|
|
1009
|
+
const k = async (D) => {
|
|
1010
|
+
e == null || e.getZr().off("mousedown", k);
|
|
1011
|
+
const M = e == null ? void 0 : e.convertFromPixel({ yAxisIndex: 0 }, D.offsetY), _ = Math.round(M * 1e3) / 1e3;
|
|
1010
1012
|
e == null || e.setOption({
|
|
1011
1013
|
...l,
|
|
1012
1014
|
tooltip: {
|
|
1013
|
-
...
|
|
1015
|
+
...d,
|
|
1014
1016
|
axisPointer: {
|
|
1015
|
-
...
|
|
1017
|
+
...d.axisPointer,
|
|
1016
1018
|
lineStyle: { width: 1 },
|
|
1017
1019
|
crossStyle: { width: 1 },
|
|
1018
1020
|
label: {
|
|
1019
|
-
...
|
|
1021
|
+
...d.axisPointer.label,
|
|
1020
1022
|
backgroundColor: null
|
|
1021
1023
|
}
|
|
1022
1024
|
}
|
|
1023
1025
|
}
|
|
1024
|
-
}), await
|
|
1026
|
+
}), await ot({
|
|
1025
1027
|
featureCode: t,
|
|
1026
|
-
featureName:
|
|
1027
|
-
featureId:
|
|
1028
|
-
featureType:
|
|
1029
|
-
warnPrice:
|
|
1030
|
-
}),
|
|
1028
|
+
featureName: y,
|
|
1029
|
+
featureId: c,
|
|
1030
|
+
featureType: x,
|
|
1031
|
+
warnPrice: _
|
|
1032
|
+
}), fe.success("画线预警成功!"), ue();
|
|
1031
1033
|
};
|
|
1032
|
-
e == null || e.getZr().on("mousedown",
|
|
1034
|
+
e == null || e.getZr().on("mousedown", k);
|
|
1033
1035
|
} else
|
|
1034
|
-
n.key === "deleteWarningLine" ? (await
|
|
1035
|
-
},
|
|
1036
|
-
const { variety: n, varietyName: t, featureId:
|
|
1037
|
-
await
|
|
1038
|
-
id:
|
|
1036
|
+
n.key === "deleteWarningLine" ? (await lt({ id: q.value.id }), fe.success("画线预警删除成功"), ue()) : n.key === "changeWarningLine" && (re.value = !0, se.value = q.value.warnPrice);
|
|
1037
|
+
}, Pe = async () => {
|
|
1038
|
+
const { variety: n, varietyName: t, featureId: y, featureType: c } = a;
|
|
1039
|
+
await Ae({
|
|
1040
|
+
id: q.value.id,
|
|
1039
1041
|
featureCode: n,
|
|
1040
1042
|
featureName: t,
|
|
1041
|
-
featureId:
|
|
1042
|
-
featureType:
|
|
1043
|
-
warnPrice:
|
|
1044
|
-
}),
|
|
1045
|
-
},
|
|
1046
|
-
|
|
1043
|
+
featureId: y,
|
|
1044
|
+
featureType: c,
|
|
1045
|
+
warnPrice: se.value
|
|
1046
|
+
}), fe.success("画线预警修改成功"), ue();
|
|
1047
|
+
}, Ie = () => {
|
|
1048
|
+
ve.value = [...r];
|
|
1047
1049
|
};
|
|
1048
|
-
return
|
|
1049
|
-
|
|
1050
|
+
return Me(() => {
|
|
1051
|
+
et(a.env), ge().catch((n) => v("初始化数据失败", n)), window.addEventListener("keydown", ke);
|
|
1050
1052
|
}), te(
|
|
1051
1053
|
() => {
|
|
1052
1054
|
var n, t;
|
|
1053
|
-
return [a.variety, a.cycle, a.mainIndicator,
|
|
1055
|
+
return [a.variety, a.cycle, a.mainIndicator, W.value, (n = a.indicatorStore) == null ? void 0 : n.filterIndicator, (t = a.indicatorStore) == null ? void 0 : t.customIndicator];
|
|
1054
1056
|
},
|
|
1055
1057
|
() => {
|
|
1056
|
-
|
|
1058
|
+
p = !1, g = !1, ge().catch((n) => v("参数变化后刷新失败", n));
|
|
1057
1059
|
},
|
|
1058
1060
|
{ deep: !0 }
|
|
1059
|
-
),
|
|
1060
|
-
m && (cancelAnimationFrame(m), m = null),
|
|
1061
|
+
), Le(() => {
|
|
1062
|
+
m && (cancelAnimationFrame(m), m = null), u && (cancelAnimationFrame(u), u = null), e == null || e.off("datazoom"), e == null || e.off("highlight"), e == null || e.off("globalout"), e == null || e.dispose(), i == null || i.dispose(), window.removeEventListener("keydown", ke);
|
|
1061
1063
|
}), w({
|
|
1062
1064
|
draw: (n, t) => {
|
|
1063
|
-
n === "warningLine" && (
|
|
1065
|
+
n === "warningLine" && (N.value = t, Q());
|
|
1064
1066
|
}
|
|
1065
1067
|
}), (n, t) => {
|
|
1066
|
-
var
|
|
1067
|
-
const
|
|
1068
|
-
return T(),
|
|
1068
|
+
var D, M;
|
|
1069
|
+
const y = Ke, c = Ue, x = ze, l = We, d = Ze, k = qe;
|
|
1070
|
+
return T(), V(oe, null, [
|
|
1069
1071
|
K("div", {
|
|
1070
1072
|
class: "klineBasic",
|
|
1071
|
-
onMousemove: t[1] || (t[1] = (
|
|
1072
|
-
onMouseout: t[2] || (t[2] = (
|
|
1073
|
+
onMousemove: t[1] || (t[1] = (_) => b.value = !0),
|
|
1074
|
+
onMouseout: t[2] || (t[2] = (_) => b.value = !1)
|
|
1073
1075
|
}, [
|
|
1074
|
-
(
|
|
1075
|
-
|
|
1076
|
+
(D = s.value.time) != null && D.length ? (T(), V("div", wt, [
|
|
1077
|
+
B(ct, {
|
|
1076
1078
|
variety: o.variety,
|
|
1077
|
-
data:
|
|
1078
|
-
activeIndex:
|
|
1079
|
+
data: s.value,
|
|
1080
|
+
activeIndex: R.value
|
|
1079
1081
|
}, null, 8, ["variety", "data", "activeIndex"])
|
|
1080
1082
|
])) : G("", !0),
|
|
1081
1083
|
K("div", {
|
|
1082
1084
|
class: "klineBasic-main",
|
|
1083
|
-
style:
|
|
1085
|
+
style: me({ height: I.value.showSubChart ? "70%" : "100%" })
|
|
1084
1086
|
}, [
|
|
1085
|
-
|
|
1087
|
+
B(ht, { onCloseContextMenuCallBack: Ie }, {
|
|
1086
1088
|
popover: z(() => [
|
|
1087
|
-
|
|
1089
|
+
B(c, { style: {
|
|
1088
1090
|
borderRadius: "4px",
|
|
1089
1091
|
overflow: "hidden",
|
|
1090
1092
|
background: "#fff",
|
|
1091
1093
|
borderRight: 0
|
|
1092
1094
|
} }, {
|
|
1093
1095
|
default: z(() => [
|
|
1094
|
-
(T(!0),
|
|
1096
|
+
(T(!0), V(oe, null, pe(ve.value, (_) => (T(), Fe(y, {
|
|
1095
1097
|
style: { height: "36px" },
|
|
1096
|
-
key:
|
|
1097
|
-
index:
|
|
1098
|
-
onClick: (O) =>
|
|
1098
|
+
key: _.key,
|
|
1099
|
+
index: _.key,
|
|
1100
|
+
onClick: (O) => Oe(_)
|
|
1099
1101
|
}, {
|
|
1100
1102
|
default: z(() => [
|
|
1101
|
-
|
|
1103
|
+
de(ae(_.label), 1)
|
|
1102
1104
|
]),
|
|
1103
1105
|
_: 2
|
|
1104
1106
|
}, 1032, ["index", "onClick"]))), 128))
|
|
@@ -1109,66 +1111,66 @@ const ht = {
|
|
|
1109
1111
|
default: z(() => [
|
|
1110
1112
|
K("div", {
|
|
1111
1113
|
ref_key: "klineBasicMainRef",
|
|
1112
|
-
ref:
|
|
1114
|
+
ref: E,
|
|
1113
1115
|
style: { height: "100%" }
|
|
1114
1116
|
}, null, 512)
|
|
1115
1117
|
]),
|
|
1116
1118
|
_: 1
|
|
1117
1119
|
})
|
|
1118
1120
|
], 4),
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
+
I.value.showSubChart ? (T(), V("div", kt, [
|
|
1122
|
+
B(bt, {
|
|
1121
1123
|
ref_key: "klineSubRef",
|
|
1122
|
-
ref:
|
|
1123
|
-
modelValue:
|
|
1124
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1125
|
-
data:
|
|
1124
|
+
ref: $,
|
|
1125
|
+
modelValue: W.value,
|
|
1126
|
+
"onUpdate:modelValue": t[0] || (t[0] = (_) => W.value = _),
|
|
1127
|
+
data: s.value,
|
|
1126
1128
|
cycle: o.cycle,
|
|
1127
|
-
activeIndex:
|
|
1129
|
+
activeIndex: R.value,
|
|
1128
1130
|
subIndicatorList: (M = o.indicatorStore) == null ? void 0 : M.subIndicatorList
|
|
1129
1131
|
}, null, 8, ["modelValue", "data", "cycle", "activeIndex", "subIndicatorList"])
|
|
1130
1132
|
])) : G("", !0),
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
+
L.value ? (T(), V("div", Yt, [
|
|
1134
|
+
B(x, {
|
|
1133
1135
|
class: "klineBasic-empty-content",
|
|
1134
1136
|
description: "暂无数据"
|
|
1135
1137
|
})
|
|
1136
1138
|
])) : G("", !0),
|
|
1137
|
-
|
|
1139
|
+
Y.value ? (T(), V("div", Dt, [
|
|
1138
1140
|
t[7] || (t[7] = K("div", { class: "klineBasic-error-content" }, "加载失败,请刷新重试", -1)),
|
|
1139
|
-
K("div",
|
|
1140
|
-
|
|
1141
|
+
K("div", St, [
|
|
1142
|
+
B(l, { onClick: ge }, {
|
|
1141
1143
|
default: z(() => [...t[6] || (t[6] = [
|
|
1142
|
-
|
|
1144
|
+
de("刷新", -1)
|
|
1143
1145
|
])]),
|
|
1144
1146
|
_: 1
|
|
1145
1147
|
})
|
|
1146
1148
|
])
|
|
1147
1149
|
])) : G("", !0)
|
|
1148
1150
|
], 32),
|
|
1149
|
-
|
|
1150
|
-
modelValue:
|
|
1151
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
1151
|
+
B(k, {
|
|
1152
|
+
modelValue: re.value,
|
|
1153
|
+
"onUpdate:modelValue": t[5] || (t[5] = (_) => re.value = _),
|
|
1152
1154
|
title: "画线预警-修改价格",
|
|
1153
1155
|
width: "30%",
|
|
1154
1156
|
"align-center": ""
|
|
1155
1157
|
}, {
|
|
1156
1158
|
footer: z(() => [
|
|
1157
|
-
K("span",
|
|
1158
|
-
|
|
1159
|
-
onClick: t[4] || (t[4] = (
|
|
1159
|
+
K("span", Mt, [
|
|
1160
|
+
B(l, {
|
|
1161
|
+
onClick: t[4] || (t[4] = (_) => re.value = !1)
|
|
1160
1162
|
}, {
|
|
1161
1163
|
default: z(() => [...t[8] || (t[8] = [
|
|
1162
|
-
|
|
1164
|
+
de("取消", -1)
|
|
1163
1165
|
])]),
|
|
1164
1166
|
_: 1
|
|
1165
1167
|
}),
|
|
1166
|
-
|
|
1168
|
+
B(l, {
|
|
1167
1169
|
type: "primary",
|
|
1168
|
-
onClick:
|
|
1170
|
+
onClick: Pe
|
|
1169
1171
|
}, {
|
|
1170
1172
|
default: z(() => [...t[9] || (t[9] = [
|
|
1171
|
-
|
|
1173
|
+
de("确定", -1)
|
|
1172
1174
|
])]),
|
|
1173
1175
|
_: 1
|
|
1174
1176
|
})
|
|
@@ -1176,9 +1178,9 @@ const ht = {
|
|
|
1176
1178
|
]),
|
|
1177
1179
|
default: z(() => [
|
|
1178
1180
|
t[10] || (t[10] = K("span", { style: { "margin-right": "10px" } }, "预警价格:", -1)),
|
|
1179
|
-
|
|
1180
|
-
modelValue:
|
|
1181
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
1181
|
+
B(d, {
|
|
1182
|
+
modelValue: se.value,
|
|
1183
|
+
"onUpdate:modelValue": t[3] || (t[3] = (_) => se.value = _),
|
|
1182
1184
|
placeholder: "输入预警价格"
|
|
1183
1185
|
}, null, 8, ["modelValue"])
|
|
1184
1186
|
]),
|
|
@@ -1187,11 +1189,11 @@ const ht = {
|
|
|
1187
1189
|
], 64);
|
|
1188
1190
|
};
|
|
1189
1191
|
}
|
|
1190
|
-
},
|
|
1192
|
+
}, Ft = /* @__PURE__ */ J(Lt, [["__scopeId", "data-v-4361ce24"]]), pn = {
|
|
1191
1193
|
install(o) {
|
|
1192
|
-
o.component("st-klineBasic",
|
|
1194
|
+
o.component("st-klineBasic", Ft);
|
|
1193
1195
|
}
|
|
1194
1196
|
};
|
|
1195
1197
|
export {
|
|
1196
|
-
|
|
1198
|
+
pn as default
|
|
1197
1199
|
};
|