st-comp 0.0.219 → 0.0.221
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/CustomFunction.cjs +5 -5
- package/es/CustomFunction.js +362 -299
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +25 -25
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +10 -10
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +425 -394
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +15 -15
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +9 -9
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +11 -11
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +13 -13
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +2 -2
- package/es/Table.cjs +1 -1
- package/es/Table.js +29 -29
- package/es/User.cjs +1 -1
- package/es/User.js +18 -18
- package/es/VarSelectDialog.cjs +1 -1
- package/es/VarSelectDialog.js +17 -17
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +7 -7
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +26 -26
- package/es/VarietyTextCopy.cjs +1 -1
- package/es/VarietyTextCopy.js +9 -9
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +5 -5
- package/es/{_initCloneObject-6429d105.cjs → _initCloneObject-52b6a510.cjs} +1 -1
- package/es/{_initCloneObject-4f4401b6.js → _initCloneObject-eaef9418.js} +2 -2
- package/es/{config-provider-285ead82.cjs → config-provider-a584d81e.cjs} +1 -1
- package/es/{config-provider-e1736401.js → config-provider-b16efd62.js} +3 -3
- package/es/{dropdown-6ba4a93d.cjs → dropdown-071c5d7e.cjs} +1 -1
- package/es/{dropdown-73ca08ef.js → dropdown-a59bba73.js} +2 -2
- package/es/{el-autocomplete-aeb7da33.cjs → el-autocomplete-a07e9439.cjs} +1 -1
- package/es/{el-autocomplete-2180fc5c.js → el-autocomplete-ba808eb6.js} +5 -5
- package/es/{el-button-e8b725f0.js → el-button-c95adb85.js} +3 -3
- package/es/{el-button-0dbb2d4a.cjs → el-button-eec58cff.cjs} +1 -1
- package/es/{el-checkbox-df0def51.js → el-checkbox-7421ccd3.js} +3 -3
- package/es/{el-checkbox-b8c558ca.cjs → el-checkbox-c25236a6.cjs} +1 -1
- package/es/{el-dialog-4330c5bd.js → el-dialog-41ab8417.js} +4 -4
- package/es/{el-dialog-5028c704.cjs → el-dialog-ae86edb8.cjs} +1 -1
- package/es/{el-form-item-f7e8255e.cjs → el-form-item-c3fe189b.cjs} +1 -1
- package/es/{el-form-item-b816e9f3.js → el-form-item-c53c374d.js} +5 -5
- package/es/{el-input-bd1ce1e9.js → el-input-2f75c4ba.js} +4 -4
- package/es/{el-input-2e9268ac.cjs → el-input-7fd293af.cjs} +1 -1
- package/es/{el-input-number-153a3742.cjs → el-input-number-22e21d16.cjs} +1 -1
- package/es/{el-input-number-088d2c66.js → el-input-number-5193fe6d.js} +4 -4
- package/es/{el-loading-03240202.cjs → el-loading-cfd86c15.cjs} +1 -1
- package/es/{el-loading-d0dac75f.js → el-loading-f6022062.js} +1 -1
- package/es/{el-menu-item-b843f5ee.cjs → el-menu-item-17dc717e.cjs} +1 -1
- package/es/{el-menu-item-c7202455.js → el-menu-item-7e881203.js} +4 -4
- package/es/{el-message-3d8d9810.cjs → el-message-5e6a6be9.cjs} +1 -1
- package/es/{el-message-box-7a952ec7.js → el-message-box-a93d2f6a.js} +9 -9
- package/es/{el-message-box-aafae7ee.cjs → el-message-box-c10adb52.cjs} +1 -1
- package/es/{el-message-290a93ff.js → el-message-e544a8f5.js} +5 -5
- package/es/{el-overlay-f72f3f3d.js → el-overlay-09ad71cd.js} +3 -3
- package/es/{el-overlay-ab0b3c66.cjs → el-overlay-9e34965f.cjs} +1 -1
- package/es/{el-popconfirm-a4a50f14.cjs → el-popconfirm-70a976bf.cjs} +1 -1
- package/es/{el-popconfirm-bdcb65fe.js → el-popconfirm-81dcd202.js} +4 -4
- package/es/{el-popper-b0ef8ed3.js → el-popper-b4f97157.js} +1 -1
- package/es/{el-popper-b37ec1ef.cjs → el-popper-b6c99b28.cjs} +1 -1
- package/es/{el-segmented-d0a61f41.js → el-segmented-b868d074.js} +2 -2
- package/es/{el-segmented-f505fd25.cjs → el-segmented-f8fce9ac.cjs} +1 -1
- package/es/{el-select-d63dc0f6.js → el-select-95627997.js} +8 -8
- package/es/{el-select-91145989.cjs → el-select-d8d91db1.cjs} +1 -1
- package/es/{el-table-column-5ad33084.js → el-table-column-376cd907.js} +9 -9
- package/es/{el-table-column-4dae58f0.cjs → el-table-column-c974cb96.cjs} +1 -1
- package/es/{el-tag-2da70fa3.js → el-tag-66cab138.js} +2 -2
- package/es/{el-tag-891b703d.cjs → el-tag-a33c4b22.cjs} +1 -1
- package/es/{el-text-d42a3be4.js → el-text-ac60d0f2.js} +1 -1
- package/es/{el-text-cfd2f326.cjs → el-text-c20a9f48.cjs} +1 -1
- package/es/index-098c2447.cjs +1 -0
- package/es/{index-eb3ca89a.cjs → index-11547a0c.cjs} +1 -1
- package/es/{index-23d35abc.js → index-1f7d4f70.js} +1 -1
- package/es/{index-f50a50b3.cjs → index-298075cf.cjs} +1 -1
- package/es/{index-af3c738f.js → index-57672682.js} +2 -2
- package/es/{index-5108cae0.js → index-844bdd85.js} +2 -2
- package/es/{index-d6a848ac.js → index-88546436.js} +2 -2
- package/es/{index-25bc46bb.cjs → index-9b9ef5dd.cjs} +1 -1
- package/es/{index-598d418b.js → index-a871c3eb.js} +111 -92
- package/es/{index-6c252a43.cjs → index-c108567d.cjs} +1 -1
- package/es/{index-0902dd2e.js → index-d91dc23f.js} +2 -2
- package/es/{index-b99c0c42.js → index-e5566b94.js} +1 -1
- package/es/{index-d7928b14.cjs → index-f3562b52.cjs} +1 -1
- package/es/{index-7a26fd8b.cjs → index-f967d6c1.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-b995a440.js → use-form-common-props-815d48a6.js} +12 -12
- package/es/{use-form-common-props-3b387353.cjs → use-form-common-props-fd9b61a0.cjs} +1 -1
- package/es/{use-global-config-2a4156cd.cjs → use-global-config-30d7d8ce.cjs} +1 -1
- package/es/{use-global-config-e20aee8c.js → use-global-config-b5e9d3d5.js} +2 -2
- package/es/{validator-7dacff4f.cjs → validator-1b8a6128.cjs} +1 -1
- package/es/{validator-6d23708b.js → validator-764a9db0.js} +1 -1
- package/es/{zh-cn-a3c3833a.cjs → zh-cn-90317f62.cjs} +1 -1
- package/es/{zh-cn-7530f035.js → zh-cn-e963c628.js} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +164 -164
- package/lib/{index-f90c4e75.js → index-d3e408b3.js} +16052 -15940
- package/lib/{python-8759beff.js → python-34cb78d0.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/CustomFunction/components/ManageDialog.vue +31 -30
- package/packages/CustomFunction/index.vue +59 -4
- package/packages/KlineBasic/components/AverageTips/index.vue +33 -0
- package/packages/KlineBasic/components/KlineSub/index.vue +2 -2
- package/packages/KlineBasic/components/Tips/index.vue +21 -3
- package/es/index-7a85500c.cjs +0 -1
package/es/KlineBasic.js
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
import "./base-a5af3db3.js";
|
|
2
|
-
import { E as
|
|
3
|
-
import "./el-overlay-
|
|
4
|
-
import "./el-input-
|
|
5
|
-
import { E as
|
|
6
|
-
import { E as Oe } from "./el-button-
|
|
7
|
-
import { E as
|
|
8
|
-
import { E as
|
|
2
|
+
import { E as Be } from "./el-dialog-41ab8417.js";
|
|
3
|
+
import "./el-overlay-09ad71cd.js";
|
|
4
|
+
import "./el-input-2f75c4ba.js";
|
|
5
|
+
import { E as Ie } from "./el-input-number-5193fe6d.js";
|
|
6
|
+
import { E as Oe } from "./el-button-c95adb85.js";
|
|
7
|
+
import { E as $e } from "./el-empty-33cb66f1.js";
|
|
8
|
+
import { E as Pe, a as We } from "./el-menu-item-7e881203.js";
|
|
9
9
|
import "./el-tooltip-4ed993c7.js";
|
|
10
|
-
import "./el-popper-
|
|
11
|
-
import { defineComponent as
|
|
12
|
-
import * as
|
|
10
|
+
import "./el-popper-b4f97157.js";
|
|
11
|
+
import { defineComponent as ye, ref as T, watch as we, nextTick as ge, openBlock as A, createElementBlock as E, Fragment as Q, renderList as ue, normalizeStyle as ce, toDisplayString as ee, computed as te, createVNode as I, onMounted as De, onUnmounted as ke, createElementVNode as U, withCtx as K, createBlock as Me, createCommentVNode as G, renderSlot as _e, createTextVNode as ie, pushScopeId as Ne, popScopeId as qe } from "vue";
|
|
12
|
+
import * as me from "echarts";
|
|
13
13
|
import { d as u } from "./dayjs.min-8313b006.js";
|
|
14
|
-
import { y as Ce, v as ze, U as Ke, K as Ue, V as
|
|
15
|
-
import { E as
|
|
16
|
-
import { _ as
|
|
17
|
-
import "./el-tag-
|
|
18
|
-
import { E as je, a as Ze } from "./el-select-
|
|
14
|
+
import { y as Ce, v as ze, U as Ke, K as Ue, V as ne, x as ve, D as He } from "./index-7ed0999e.js";
|
|
15
|
+
import { E as se } from "./el-message-e544a8f5.js";
|
|
16
|
+
import { _ as X } from "./_plugin-vue_export-helper-dad06003.js";
|
|
17
|
+
import "./el-tag-66cab138.js";
|
|
18
|
+
import { E as je, a as Ze } from "./el-select-95627997.js";
|
|
19
19
|
import "./el-scrollbar-323542e7.js";
|
|
20
|
-
import "./index-
|
|
21
|
-
import "./use-form-common-props-
|
|
20
|
+
import "./index-a871c3eb.js";
|
|
21
|
+
import "./use-form-common-props-815d48a6.js";
|
|
22
22
|
import "./index-960806da.js";
|
|
23
23
|
import "./index-d77a7336.js";
|
|
24
24
|
import "./index-2e331d74.js";
|
|
25
25
|
import "./vnode-5ddb7ed1.js";
|
|
26
26
|
import "./scroll-679bd6bf.js";
|
|
27
|
-
import "./use-global-config-
|
|
28
|
-
import "./index-
|
|
27
|
+
import "./use-global-config-b5e9d3d5.js";
|
|
28
|
+
import "./index-e5566b94.js";
|
|
29
29
|
import "./typescript-7ae59c4c.js";
|
|
30
|
-
import "./index-
|
|
30
|
+
import "./index-d91dc23f.js";
|
|
31
31
|
import "./index-657047bb.js";
|
|
32
|
-
import "./config-provider-
|
|
33
|
-
import "./index-
|
|
34
|
-
import "./index-
|
|
32
|
+
import "./config-provider-b16efd62.js";
|
|
33
|
+
import "./index-844bdd85.js";
|
|
34
|
+
import "./index-57672682.js";
|
|
35
35
|
import "./castArray-7741a212.js";
|
|
36
36
|
import "./debounce-8d53f4dd.js";
|
|
37
37
|
let Z = null;
|
|
38
38
|
const Xe = (n) => {
|
|
39
|
-
const
|
|
40
|
-
handleReq: (
|
|
41
|
-
ze() && (
|
|
39
|
+
const M = Ce(n, {
|
|
40
|
+
handleReq: (S) => {
|
|
41
|
+
ze() && (S.headers.token = Ke());
|
|
42
42
|
},
|
|
43
|
-
handleRes: (
|
|
44
|
-
const { data:
|
|
45
|
-
if (
|
|
43
|
+
handleRes: (S) => {
|
|
44
|
+
const { data: x } = S;
|
|
45
|
+
if (x.code === 401)
|
|
46
46
|
return location.origin.includes("localhost") ? location.href = `${location.origin}/#/404` : Ue(), !0;
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
|
-
|
|
50
|
-
}, Ge = (n) => Z("/middleLayer/kline/getKlineBasic", { ...n, userId:
|
|
51
|
-
const { data: e, time:
|
|
49
|
+
M.get, Z = M.post;
|
|
50
|
+
}, Ge = (n) => Z("/middleLayer/kline/getKlineBasic", { ...n, userId: ne("id") }), Je = (n) => Z("/middleLayer/kline/getKline", n), Qe = async (n) => Z("/alarm/deliversign/addAlarmPrice", { ...n, userId: ne("id") }), et = async (n) => Z("/alarm/deliversign/findAlarmPriceByUserId", { ...n, userId: ne("id") }), Se = async (n) => Z("/alarm/deliversign/updateAlarmPrice", { ...n, userId: ne("id") }), tt = async (n) => Z("/alarm/deliversign/deleteAlarmPrice", { ...n, userId: ne("id") }), { round: J } = ve, nt = (n, M, S, x, v) => {
|
|
51
|
+
const { data: e, time: m } = n, { gridTop: f, gridRight: i, gridLeft: _, maxShowCounts: Y, showSubChart: r } = M;
|
|
52
52
|
return {
|
|
53
53
|
animation: !1,
|
|
54
54
|
grid: {
|
|
55
|
-
top: `${
|
|
56
|
-
right: `${
|
|
55
|
+
top: `${f}px`,
|
|
56
|
+
right: `${i}px`,
|
|
57
57
|
bottom: r ? "6px" : "24px",
|
|
58
|
-
left: `${
|
|
58
|
+
left: `${_}px`
|
|
59
59
|
},
|
|
60
60
|
dataZoom: [
|
|
61
61
|
{
|
|
62
62
|
type: "inside",
|
|
63
|
-
startValue:
|
|
64
|
-
endValue:
|
|
63
|
+
startValue: S,
|
|
64
|
+
endValue: x,
|
|
65
65
|
maxValueSpan: Y
|
|
66
66
|
}
|
|
67
67
|
],
|
|
@@ -74,8 +74,8 @@ const Xe = (n) => {
|
|
|
74
74
|
label: {
|
|
75
75
|
rich: {},
|
|
76
76
|
formatter: (a) => {
|
|
77
|
-
const { axisDimension:
|
|
78
|
-
return
|
|
77
|
+
const { axisDimension: w, value: y } = a;
|
|
78
|
+
return w === "x" ? r ? "" : ["6", "7", "8"].includes(v) ? u(y).format("YYYY-MM-DD") : y : String(J(y));
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
},
|
|
@@ -84,12 +84,12 @@ const Xe = (n) => {
|
|
|
84
84
|
xAxis: {
|
|
85
85
|
show: !r,
|
|
86
86
|
type: "category",
|
|
87
|
-
data:
|
|
87
|
+
data: m,
|
|
88
88
|
splitLine: {
|
|
89
89
|
show: !1
|
|
90
90
|
},
|
|
91
91
|
axisLabel: {
|
|
92
|
-
formatter: (a) => ["6", "7", "8"].includes(
|
|
92
|
+
formatter: (a) => ["6", "7", "8"].includes(v) ? u(a).format("YYYY-MM-DD") : a
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
yAxis: {
|
|
@@ -104,8 +104,8 @@ const Xe = (n) => {
|
|
|
104
104
|
color: "#333"
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
|
-
min: (a) =>
|
|
108
|
-
max: (a) =>
|
|
107
|
+
min: (a) => J(a.min),
|
|
108
|
+
max: (a) => J(a.max)
|
|
109
109
|
},
|
|
110
110
|
series: [
|
|
111
111
|
{
|
|
@@ -149,13 +149,13 @@ const Xe = (n) => {
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
|
-
}, ot = (n,
|
|
153
|
-
const { variety: e, featureId:
|
|
154
|
-
return
|
|
155
|
-
const { warnPrice:
|
|
156
|
-
if (
|
|
152
|
+
}, ot = (n, M, S, x, v) => {
|
|
153
|
+
const { variety: e, featureId: m, featureType: f } = S, { gridTop: i, gridLeft: _, gridRight: Y } = x;
|
|
154
|
+
return M.reduce((r, a) => {
|
|
155
|
+
const { warnPrice: w } = a, y = n == null ? void 0 : n.convertToPixel({ yAxisIndex: 0 }, w);
|
|
156
|
+
if (y <= i || y >= (n == null ? void 0 : n.getHeight()))
|
|
157
157
|
return r;
|
|
158
|
-
let
|
|
158
|
+
let V = 0;
|
|
159
159
|
return [
|
|
160
160
|
...r,
|
|
161
161
|
{
|
|
@@ -168,13 +168,13 @@ const Xe = (n) => {
|
|
|
168
168
|
type: "line",
|
|
169
169
|
info: a,
|
|
170
170
|
shape: {
|
|
171
|
-
x1:
|
|
171
|
+
x1: _,
|
|
172
172
|
// 开始X坐标
|
|
173
|
-
y1:
|
|
173
|
+
y1: y,
|
|
174
174
|
// 开始Y坐标
|
|
175
175
|
x2: (n == null ? void 0 : n.getWidth()) - Y,
|
|
176
176
|
// 结束X坐标
|
|
177
|
-
y2:
|
|
177
|
+
y2: y
|
|
178
178
|
// 结束Y坐标
|
|
179
179
|
},
|
|
180
180
|
style: {
|
|
@@ -188,10 +188,10 @@ const Xe = (n) => {
|
|
|
188
188
|
type: "text",
|
|
189
189
|
info: a,
|
|
190
190
|
x: (n == null ? void 0 : n.getWidth()) - Y,
|
|
191
|
-
y:
|
|
191
|
+
y: y - 5,
|
|
192
192
|
style: {
|
|
193
193
|
fill: "#FFF",
|
|
194
|
-
text:
|
|
194
|
+
text: w,
|
|
195
195
|
stroke: "#000",
|
|
196
196
|
lineWidth: 1,
|
|
197
197
|
opacity: 1
|
|
@@ -201,36 +201,36 @@ const Xe = (n) => {
|
|
|
201
201
|
],
|
|
202
202
|
// 事件:开始拖拽
|
|
203
203
|
ondragstart: (k) => {
|
|
204
|
-
|
|
204
|
+
V = k.offsetY;
|
|
205
205
|
},
|
|
206
206
|
ondrag: (k) => {
|
|
207
207
|
var P;
|
|
208
208
|
if (k.target && k.target.childAt(1)) {
|
|
209
|
-
const
|
|
210
|
-
(P = k.target.childAt(1)) == null || P.animate("style", !1).when(1, { text:
|
|
209
|
+
const L = n.convertFromPixel({ yAxisIndex: 0 }, y + (k.offsetY - V));
|
|
210
|
+
(P = k.target.childAt(1)) == null || P.animate("style", !1).when(1, { text: J(L, 3) }).start();
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
// 事件:结束拖拽
|
|
214
214
|
ondragend: async (k) => {
|
|
215
|
-
const
|
|
216
|
-
if (
|
|
217
|
-
const
|
|
215
|
+
const L = k.offsetY - V;
|
|
216
|
+
if (L !== 0) {
|
|
217
|
+
const B = n == null ? void 0 : n.convertFromPixel({ yAxisIndex: 0 }, L + y), c = {
|
|
218
218
|
id: a.id,
|
|
219
|
-
warnPrice:
|
|
220
|
-
featureId:
|
|
219
|
+
warnPrice: J(B, 3),
|
|
220
|
+
featureId: m,
|
|
221
221
|
//品种id
|
|
222
222
|
featureCode: e,
|
|
223
223
|
//品种代码
|
|
224
|
-
featureType:
|
|
224
|
+
featureType: f
|
|
225
225
|
//品种类型
|
|
226
226
|
};
|
|
227
|
-
await
|
|
227
|
+
await Se(c), se.success("画线预警修改成功"), v && v();
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
];
|
|
232
232
|
}, []);
|
|
233
|
-
}, at =
|
|
233
|
+
}, at = /* @__PURE__ */ ye({
|
|
234
234
|
__name: "index",
|
|
235
235
|
props: {
|
|
236
236
|
// 提示数据
|
|
@@ -240,17 +240,29 @@ const Xe = (n) => {
|
|
|
240
240
|
}
|
|
241
241
|
},
|
|
242
242
|
setup(n) {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
243
|
+
const M = n, S = T(null), x = T([]);
|
|
244
|
+
return we(() => M.data, () => {
|
|
245
|
+
x.value.length === 0 && ge(() => {
|
|
246
|
+
Array.from(S.value.children).forEach((v, e) => {
|
|
247
|
+
var m, f, i;
|
|
248
|
+
(i = String((f = (m = M.data) == null ? void 0 : m[e]) == null ? void 0 : f.value)) != null && i.includes("%") ? x.value[e] = "70px" : x.value[e] = `${v.offsetWidth + 14}px`;
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
}), (v, e) => (A(), E("div", {
|
|
252
|
+
class: "kline-tips",
|
|
253
|
+
ref_key: "tipsRef",
|
|
254
|
+
ref: S
|
|
255
|
+
}, [
|
|
256
|
+
(A(!0), E(Q, null, ue(n.data, (m, f) => (A(), E("div", {
|
|
257
|
+
key: f,
|
|
246
258
|
class: "kline-tips-item",
|
|
247
|
-
style:
|
|
248
|
-
},
|
|
249
|
-
]));
|
|
259
|
+
style: ce({ color: m.color, width: x.value[f] ? x.value[f] : null })
|
|
260
|
+
}, ee(m.label) + " " + ee(m.value), 5))), 128))
|
|
261
|
+
], 512));
|
|
250
262
|
}
|
|
251
263
|
});
|
|
252
|
-
const
|
|
253
|
-
const
|
|
264
|
+
const Ye = /* @__PURE__ */ X(at, [["__scopeId", "data-v-fda69be8"]]);
|
|
265
|
+
const rt = { class: "kline-tips" }, lt = {
|
|
254
266
|
__name: "index",
|
|
255
267
|
props: {
|
|
256
268
|
// 提示数据
|
|
@@ -264,35 +276,54 @@ const it = { class: "kline-tips" }, lt = {
|
|
|
264
276
|
}
|
|
265
277
|
},
|
|
266
278
|
setup(n) {
|
|
267
|
-
const { round:
|
|
268
|
-
const { data:
|
|
269
|
-
if (
|
|
270
|
-
const
|
|
271
|
-
{ label: "开", value:
|
|
272
|
-
{ label: "高", value:
|
|
273
|
-
{ label: "低", value:
|
|
274
|
-
{ label: "收", value:
|
|
279
|
+
const { round: M, formatValue: S } = ve, x = n, v = te(() => {
|
|
280
|
+
const { data: m, activeIndex: f } = x;
|
|
281
|
+
if (m.data && m.data[f]) {
|
|
282
|
+
const i = m.data[f], _ = [
|
|
283
|
+
{ label: "开", value: i[0] },
|
|
284
|
+
{ label: "高", value: i[3] },
|
|
285
|
+
{ label: "低", value: i[2] },
|
|
286
|
+
{ label: "收", value: i[1] }
|
|
275
287
|
];
|
|
276
|
-
|
|
288
|
+
i[4] !== null && _.push({ label: "额", value: S(i[4]) });
|
|
277
289
|
let Y;
|
|
278
|
-
return
|
|
290
|
+
return i[6] > 0 ? Y = "red" : i[6] < 0 && (Y = "green"), _.push({ label: "涨跌", value: `${M(i[6])}%`, color: Y }), _;
|
|
279
291
|
}
|
|
280
292
|
return [];
|
|
281
|
-
}), e =
|
|
282
|
-
var
|
|
283
|
-
const { data:
|
|
284
|
-
return ((
|
|
293
|
+
}), e = te(() => {
|
|
294
|
+
var i;
|
|
295
|
+
const { data: m, activeIndex: f } = x;
|
|
296
|
+
return ((i = m == null ? void 0 : m.mainIndicator) == null ? void 0 : i.map((_) => ({ label: _.key, value: M(_.data[f]), color: _.color }))) || [];
|
|
285
297
|
});
|
|
286
|
-
return (
|
|
287
|
-
|
|
288
|
-
|
|
298
|
+
return (m, f) => (A(), E("div", rt, [
|
|
299
|
+
I(Ye, { data: v.value }, null, 8, ["data"]),
|
|
300
|
+
I(Ye, { data: e.value }, null, 8, ["data"])
|
|
301
|
+
]));
|
|
302
|
+
}
|
|
303
|
+
}, it = /* @__PURE__ */ X(lt, [["__scopeId", "data-v-ffa125ec"]]), st = { class: "kline-averageTips" }, ut = /* @__PURE__ */ ye({
|
|
304
|
+
__name: "index",
|
|
305
|
+
props: {
|
|
306
|
+
// 提示数据
|
|
307
|
+
data: {
|
|
308
|
+
type: Array,
|
|
309
|
+
require: !0
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
setup(n) {
|
|
313
|
+
return (M, S) => (A(), E("div", st, [
|
|
314
|
+
(A(!0), E(Q, null, ue(n.data, (x, v) => (A(), E("div", {
|
|
315
|
+
key: v,
|
|
316
|
+
class: "kline-averageTips-item",
|
|
317
|
+
style: ce({ color: x.color, width: `calc(100% / ${n.data.length} - 10px)` })
|
|
318
|
+
}, ee(x.label) + " " + ee(x.value), 5))), 128))
|
|
289
319
|
]));
|
|
290
320
|
}
|
|
291
|
-
}
|
|
292
|
-
const
|
|
321
|
+
});
|
|
322
|
+
const ct = /* @__PURE__ */ X(ut, [["__scopeId", "data-v-c47865cb"]]);
|
|
323
|
+
const dt = { class: "klineSub" }, ft = { class: "klineSub-tips" }, pt = {
|
|
293
324
|
key: 0,
|
|
294
325
|
class: "klineSub-tips-select"
|
|
295
|
-
},
|
|
326
|
+
}, mt = {
|
|
296
327
|
__name: "index",
|
|
297
328
|
props: {
|
|
298
329
|
cycle: {
|
|
@@ -308,57 +339,57 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
|
|
|
308
339
|
// 副图指标列表
|
|
309
340
|
},
|
|
310
341
|
emits: ["update:modelValue"],
|
|
311
|
-
setup(n, { expose:
|
|
312
|
-
const { round:
|
|
313
|
-
let
|
|
314
|
-
const
|
|
342
|
+
setup(n, { expose: M, emit: S }) {
|
|
343
|
+
const { round: x } = ve;
|
|
344
|
+
let v, e;
|
|
345
|
+
const m = S, f = n, i = T(), _ = te({
|
|
315
346
|
get() {
|
|
316
|
-
return
|
|
347
|
+
return f.modelValue;
|
|
317
348
|
},
|
|
318
349
|
set(a) {
|
|
319
|
-
|
|
350
|
+
m("update:modelValue", a);
|
|
320
351
|
}
|
|
321
|
-
}), Y =
|
|
322
|
-
var
|
|
323
|
-
const { data: a, activeIndex:
|
|
324
|
-
return ((
|
|
352
|
+
}), Y = te(() => {
|
|
353
|
+
var y;
|
|
354
|
+
const { data: a, activeIndex: w } = f;
|
|
355
|
+
return ((y = a == null ? void 0 : a.subIndicator) == null ? void 0 : y.map((V) => ({ label: V.key, color: V.color, value: V.data[w] || "-" }))) || [];
|
|
325
356
|
});
|
|
326
|
-
|
|
327
|
-
|
|
357
|
+
De(() => {
|
|
358
|
+
v = me.init(i.value);
|
|
328
359
|
let a = !0;
|
|
329
360
|
e = new ResizeObserver(() => {
|
|
330
361
|
if (a) {
|
|
331
362
|
a = null;
|
|
332
363
|
return;
|
|
333
364
|
}
|
|
334
|
-
|
|
335
|
-
}), e.observe(
|
|
336
|
-
}),
|
|
337
|
-
|
|
365
|
+
v.resize();
|
|
366
|
+
}), e.observe(i.value);
|
|
367
|
+
}), ke(() => {
|
|
368
|
+
v.dispose(), e.disconnect(), e = null;
|
|
338
369
|
});
|
|
339
|
-
const r = (a,
|
|
340
|
-
const
|
|
341
|
-
return
|
|
370
|
+
const r = (a, w) => {
|
|
371
|
+
const y = a[w], V = w === 0 ? a[w] : a[w - 1];
|
|
372
|
+
return y[0] === y[1] ? y[0] >= V[1] ? {
|
|
342
373
|
color: "transparent",
|
|
343
374
|
borderColor: "#FF0000"
|
|
344
375
|
} : {
|
|
345
376
|
color: "#00FFFF"
|
|
346
|
-
} :
|
|
377
|
+
} : y[1] > y[0] ? {
|
|
347
378
|
color: "transparent",
|
|
348
379
|
borderColor: "#FF0000"
|
|
349
380
|
} : {
|
|
350
381
|
color: "#00FFFF"
|
|
351
382
|
};
|
|
352
383
|
};
|
|
353
|
-
return
|
|
384
|
+
return M({
|
|
354
385
|
connect: (a) => {
|
|
355
|
-
|
|
386
|
+
me.connect([a, v]);
|
|
356
387
|
},
|
|
357
388
|
// 联动
|
|
358
|
-
draw: (a,
|
|
359
|
-
|
|
360
|
-
const { startValue:
|
|
361
|
-
if (
|
|
389
|
+
draw: (a, w) => {
|
|
390
|
+
ge(() => {
|
|
391
|
+
const { startValue: y, endValue: V, maxValueSpan: k } = a, { leftYAxisRange: P, rightYAxisRange: L } = f.data.subIndicator[0], B = f.data.subIndicator.map((c) => {
|
|
392
|
+
if (c.series === "bar")
|
|
362
393
|
return {
|
|
363
394
|
name: "subMain",
|
|
364
395
|
xAxisIndex: 0,
|
|
@@ -366,10 +397,10 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
|
|
|
366
397
|
type: "bar",
|
|
367
398
|
silent: !0,
|
|
368
399
|
symbol: "none",
|
|
369
|
-
data:
|
|
400
|
+
data: c.data.map((N, C) => c.seriesColor === "kline" ? {
|
|
370
401
|
value: N,
|
|
371
|
-
itemStyle: r(
|
|
372
|
-
} :
|
|
402
|
+
itemStyle: r(f.data.data, C)
|
|
403
|
+
} : c.seriesColor === "value" ? {
|
|
373
404
|
value: N,
|
|
374
405
|
itemStyle: {
|
|
375
406
|
color: N >= 0 ? "#FF0000" : "#00FFFF"
|
|
@@ -377,41 +408,41 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
|
|
|
377
408
|
} : {
|
|
378
409
|
value: N,
|
|
379
410
|
itemStyle: {
|
|
380
|
-
color:
|
|
411
|
+
color: c.seriesColor
|
|
381
412
|
}
|
|
382
413
|
})
|
|
383
414
|
};
|
|
384
|
-
if (
|
|
415
|
+
if (c.series === "line")
|
|
385
416
|
return {
|
|
386
417
|
xAxisIndex: 0,
|
|
387
|
-
yAxisIndex:
|
|
388
|
-
name:
|
|
418
|
+
yAxisIndex: c.yAxis === "right" ? 2 : 1,
|
|
419
|
+
name: c.key,
|
|
389
420
|
type: "line",
|
|
390
421
|
silent: !0,
|
|
391
422
|
symbol: "none",
|
|
392
|
-
data:
|
|
423
|
+
data: c.data,
|
|
393
424
|
lineStyle: {
|
|
394
425
|
width: 1
|
|
395
426
|
},
|
|
396
427
|
itemStyle: {
|
|
397
|
-
color:
|
|
428
|
+
color: c.color
|
|
398
429
|
}
|
|
399
430
|
};
|
|
400
431
|
});
|
|
401
|
-
|
|
432
|
+
v.setOption(
|
|
402
433
|
{
|
|
403
434
|
animation: !1,
|
|
404
435
|
grid: {
|
|
405
|
-
left: `${
|
|
436
|
+
left: `${w.gridLeft}px`,
|
|
406
437
|
top: "10px",
|
|
407
|
-
right: `${
|
|
438
|
+
right: `${w.gridRight}px`,
|
|
408
439
|
bottom: "20px"
|
|
409
440
|
},
|
|
410
441
|
dataZoom: [
|
|
411
442
|
{
|
|
412
443
|
type: "inside",
|
|
413
|
-
startValue:
|
|
414
|
-
endValue:
|
|
444
|
+
startValue: y,
|
|
445
|
+
endValue: V,
|
|
415
446
|
maxValueSpan: k
|
|
416
447
|
}
|
|
417
448
|
],
|
|
@@ -423,12 +454,12 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
|
|
|
423
454
|
type: "cross",
|
|
424
455
|
label: {
|
|
425
456
|
rich: {},
|
|
426
|
-
formatter: (
|
|
427
|
-
const { axisDimension: N, value: C } =
|
|
457
|
+
formatter: (c) => {
|
|
458
|
+
const { axisDimension: N, value: C } = c;
|
|
428
459
|
if (N === "x")
|
|
429
|
-
return ["6", "7", "8"].includes(
|
|
430
|
-
if (
|
|
431
|
-
return String(
|
|
460
|
+
return ["6", "7", "8"].includes(f.cycle) ? u(C).format("YYYY-MM-DD") : C;
|
|
461
|
+
if (c.axisIndex === 1)
|
|
462
|
+
return String(x(C));
|
|
432
463
|
}
|
|
433
464
|
}
|
|
434
465
|
},
|
|
@@ -436,7 +467,7 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
|
|
|
436
467
|
},
|
|
437
468
|
xAxis: {
|
|
438
469
|
type: "category",
|
|
439
|
-
data:
|
|
470
|
+
data: f.data.time,
|
|
440
471
|
axisLine: {
|
|
441
472
|
show: !0
|
|
442
473
|
},
|
|
@@ -444,7 +475,7 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
|
|
|
444
475
|
show: !1
|
|
445
476
|
},
|
|
446
477
|
axisLabel: {
|
|
447
|
-
formatter: (
|
|
478
|
+
formatter: (c) => ["6", "7", "8"].includes(f.cycle) ? u(c).format("YYYY-MM-DD") : c
|
|
448
479
|
}
|
|
449
480
|
},
|
|
450
481
|
yAxis: [
|
|
@@ -453,8 +484,8 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
|
|
|
453
484
|
},
|
|
454
485
|
{
|
|
455
486
|
position: "left",
|
|
456
|
-
min: P === "cover" ? (
|
|
457
|
-
max: P === "cover" ? (
|
|
487
|
+
min: P === "cover" ? (c) => c.min : null,
|
|
488
|
+
max: P === "cover" ? (c) => c.max : null,
|
|
458
489
|
splitNumber: 1,
|
|
459
490
|
axisLine: {
|
|
460
491
|
show: !0
|
|
@@ -469,8 +500,8 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
|
|
|
469
500
|
},
|
|
470
501
|
{
|
|
471
502
|
position: "right",
|
|
472
|
-
min:
|
|
473
|
-
max:
|
|
503
|
+
min: L === "cover" ? (c) => c.min : null,
|
|
504
|
+
max: L === "cover" ? (c) => c.max : null,
|
|
474
505
|
splitNumber: 1,
|
|
475
506
|
axisLine: {
|
|
476
507
|
show: !1
|
|
@@ -483,27 +514,27 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
|
|
|
483
514
|
}
|
|
484
515
|
}
|
|
485
516
|
],
|
|
486
|
-
series:
|
|
517
|
+
series: B
|
|
487
518
|
},
|
|
488
519
|
!0
|
|
489
520
|
);
|
|
490
521
|
});
|
|
491
522
|
}
|
|
492
523
|
// 重置
|
|
493
|
-
}), (a,
|
|
494
|
-
const
|
|
495
|
-
return
|
|
496
|
-
U("div",
|
|
497
|
-
Y.value.length ? (
|
|
498
|
-
|
|
499
|
-
modelValue:
|
|
500
|
-
"onUpdate:modelValue":
|
|
524
|
+
}), (a, w) => {
|
|
525
|
+
const y = je, V = Ze;
|
|
526
|
+
return A(), E("div", dt, [
|
|
527
|
+
U("div", ft, [
|
|
528
|
+
Y.value.length ? (A(), E("div", pt, [
|
|
529
|
+
I(V, {
|
|
530
|
+
modelValue: _.value,
|
|
531
|
+
"onUpdate:modelValue": w[0] || (w[0] = (k) => _.value = k),
|
|
501
532
|
size: "small",
|
|
502
533
|
"popper-class": "element-dark",
|
|
503
534
|
class: "element-dark subIndicator"
|
|
504
535
|
}, {
|
|
505
536
|
default: K(() => [
|
|
506
|
-
(
|
|
537
|
+
(A(!0), E(Q, null, ue(n.subIndicatorList, (k) => (A(), Me(y, {
|
|
507
538
|
key: k.value,
|
|
508
539
|
label: k.label,
|
|
509
540
|
value: k.value
|
|
@@ -511,73 +542,73 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
|
|
|
511
542
|
]),
|
|
512
543
|
_: 1
|
|
513
544
|
}, 8, ["modelValue"])
|
|
514
|
-
])) :
|
|
515
|
-
|
|
545
|
+
])) : G("", !0),
|
|
546
|
+
I(ct, { data: Y.value }, null, 8, ["data"])
|
|
516
547
|
]),
|
|
517
548
|
U("div", {
|
|
518
549
|
class: "klineSub-chart",
|
|
519
550
|
ref_key: "subChartRef",
|
|
520
|
-
ref:
|
|
551
|
+
ref: i
|
|
521
552
|
}, null, 512)
|
|
522
553
|
]);
|
|
523
554
|
};
|
|
524
555
|
}
|
|
525
|
-
},
|
|
556
|
+
}, yt = /* @__PURE__ */ X(mt, [["__scopeId", "data-v-7ec4c8cf"]]), gt = /* @__PURE__ */ ye({
|
|
526
557
|
__name: "index",
|
|
527
558
|
emits: ["closeContextMenuCallBack"],
|
|
528
|
-
setup(n, { emit:
|
|
529
|
-
const
|
|
559
|
+
setup(n, { emit: M }) {
|
|
560
|
+
const S = M, x = T(), v = T(), e = T({
|
|
530
561
|
display: "none",
|
|
531
562
|
top: "0px",
|
|
532
563
|
left: "0px"
|
|
533
|
-
}),
|
|
534
|
-
e.value.display = "none",
|
|
535
|
-
},
|
|
536
|
-
if (
|
|
537
|
-
const { offsetX:
|
|
538
|
-
if (
|
|
564
|
+
}), m = () => {
|
|
565
|
+
e.value.display = "none", S("closeContextMenuCallBack"), document.removeEventListener("click", m);
|
|
566
|
+
}, f = (i) => {
|
|
567
|
+
if (i.preventDefault(), e.value.display === "block") {
|
|
568
|
+
const { offsetX: _, offsetY: Y } = i, { offsetWidth: r, offsetHeight: a } = v.value;
|
|
569
|
+
if (_ <= r && Y <= a)
|
|
539
570
|
return;
|
|
540
571
|
}
|
|
541
|
-
|
|
572
|
+
x.value.click(), e.value = {
|
|
542
573
|
display: "block",
|
|
543
|
-
top: `${
|
|
544
|
-
left: `${
|
|
545
|
-
},
|
|
546
|
-
const
|
|
547
|
-
Y.left + Y.width >=
|
|
548
|
-
}), document.addEventListener("click",
|
|
574
|
+
top: `${i.offsetY}px`,
|
|
575
|
+
left: `${i.offsetX}px`
|
|
576
|
+
}, ge(() => {
|
|
577
|
+
const _ = x.value.getBoundingClientRect(), Y = v.value.getBoundingClientRect();
|
|
578
|
+
Y.left + Y.width >= _.right && (e.value.left = `${i.offsetX - Y.width}px`), Y.top + Y.height >= _.bottom && (console.log("高度超出"), e.value.top = `${i.offsetY - Y.height}px`);
|
|
579
|
+
}), document.addEventListener("click", m);
|
|
549
580
|
};
|
|
550
|
-
return (
|
|
581
|
+
return (i, _) => (A(), E("div", {
|
|
551
582
|
ref_key: "contextmenuRef",
|
|
552
|
-
ref:
|
|
583
|
+
ref: x,
|
|
553
584
|
class: "contextmenu",
|
|
554
|
-
onContextmenu:
|
|
555
|
-
onMouseleave:
|
|
585
|
+
onContextmenu: f,
|
|
586
|
+
onMouseleave: m
|
|
556
587
|
}, [
|
|
557
|
-
|
|
558
|
-
e.value.display !== "none" ? (
|
|
588
|
+
_e(i.$slots, "default", {}, void 0, !0),
|
|
589
|
+
e.value.display !== "none" ? (A(), E("div", {
|
|
559
590
|
key: 0,
|
|
560
591
|
ref_key: "contextmenuContentRef",
|
|
561
|
-
ref:
|
|
592
|
+
ref: v,
|
|
562
593
|
class: "contextmenu-popover",
|
|
563
|
-
style:
|
|
594
|
+
style: ce(e.value)
|
|
564
595
|
}, [
|
|
565
|
-
|
|
566
|
-
], 4)) :
|
|
596
|
+
_e(i.$slots, "popover", {}, void 0, !0)
|
|
597
|
+
], 4)) : G("", !0)
|
|
567
598
|
], 544));
|
|
568
599
|
}
|
|
569
600
|
});
|
|
570
|
-
const
|
|
571
|
-
const
|
|
601
|
+
const vt = /* @__PURE__ */ X(gt, [["__scopeId", "data-v-811db6b4"]]);
|
|
602
|
+
const Le = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), bt = { class: "klineBasic-tips" }, xt = {
|
|
572
603
|
key: 0,
|
|
573
604
|
class: "klineBasic-sub"
|
|
574
|
-
},
|
|
605
|
+
}, ht = {
|
|
575
606
|
key: 1,
|
|
576
607
|
class: "klineBasic-empty"
|
|
577
|
-
},
|
|
608
|
+
}, _t = {
|
|
578
609
|
key: 2,
|
|
579
610
|
class: "klineBasic-error"
|
|
580
|
-
}, Yt = /* @__PURE__ */
|
|
611
|
+
}, Yt = /* @__PURE__ */ Le(() => /* @__PURE__ */ U("div", { class: "klineBasic-error-content" }, "加载失败,请刷新重试", -1)), wt = { style: { "text-align": "center" } }, Dt = /* @__PURE__ */ Le(() => /* @__PURE__ */ U("span", { style: { "margin-right": "10px" } }, "预警价格:", -1)), kt = { class: "dialog-footer" }, Mt = {
|
|
581
612
|
__name: "index",
|
|
582
613
|
props: {
|
|
583
614
|
variety: {
|
|
@@ -645,10 +676,10 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
|
|
|
645
676
|
// 时段框选
|
|
646
677
|
},
|
|
647
678
|
emits: ["change", "getFactorData"],
|
|
648
|
-
setup(n, { expose:
|
|
649
|
-
const
|
|
650
|
-
let
|
|
651
|
-
const Y =
|
|
679
|
+
setup(n, { expose: M, emit: S }) {
|
|
680
|
+
const x = [{ label: "画线预警", key: "drawWarningLine" }];
|
|
681
|
+
let v = null, e = null, m, f, i = !1, _ = !1;
|
|
682
|
+
const Y = S, r = n, a = T(!1), w = T(!1), y = T(!1), V = T(null), k = T(null), P = T("VOL"), L = T(0), B = T({}), c = T([]), N = T({}), C = T(!1), oe = T(""), de = T([...x]), H = te(() => ({
|
|
652
683
|
defaultShowCounts: 500,
|
|
653
684
|
// 默认展示条数
|
|
654
685
|
addCounts: 2e3,
|
|
@@ -671,235 +702,235 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
|
|
|
671
702
|
// 是否获取因子数据
|
|
672
703
|
...r.config
|
|
673
704
|
}));
|
|
674
|
-
|
|
705
|
+
we(
|
|
675
706
|
() => {
|
|
676
|
-
var
|
|
677
|
-
return [r.variety, r.cycle, r.mainIndicator, P.value, (
|
|
707
|
+
var l, t;
|
|
708
|
+
return [r.variety, r.cycle, r.mainIndicator, P.value, (l = r.indicatorStore) == null ? void 0 : l.filterIndicator, (t = r.indicatorStore) == null ? void 0 : t.customIndicator];
|
|
678
709
|
},
|
|
679
710
|
() => {
|
|
680
|
-
|
|
711
|
+
fe();
|
|
681
712
|
},
|
|
682
713
|
{ deep: !0 }
|
|
683
|
-
),
|
|
684
|
-
Xe(r.env),
|
|
685
|
-
}),
|
|
686
|
-
e == null || e.off("datazoom"), e == null || e.off("highlight"), e == null || e.off("globalout"), e == null || e.dispose(),
|
|
714
|
+
), De(() => {
|
|
715
|
+
Xe(r.env), fe(), window.addEventListener("keydown", be);
|
|
716
|
+
}), ke(() => {
|
|
717
|
+
e == null || e.off("datazoom"), e == null || e.off("highlight"), e == null || e.off("globalout"), e == null || e.dispose(), v == null || v.dispose(), window.removeEventListener("keydown", be);
|
|
687
718
|
});
|
|
688
|
-
const
|
|
689
|
-
e || (e =
|
|
719
|
+
const Te = () => {
|
|
720
|
+
e || (e = me.init(V.value), Ae(), H.value.showSubChart && k.value.connect(e), v = He(V.value), v.listen(() => {
|
|
690
721
|
requestAnimationFrame(() => {
|
|
691
722
|
e.resize();
|
|
692
723
|
});
|
|
693
724
|
}));
|
|
694
|
-
},
|
|
725
|
+
}, be = ({ code: l, ctrlKey: t }) => {
|
|
695
726
|
if (!(t || a.value))
|
|
696
727
|
return;
|
|
697
|
-
const { xAxis:
|
|
698
|
-
let { startValue: o, endValue:
|
|
699
|
-
if (
|
|
700
|
-
switch (
|
|
728
|
+
const { xAxis: g, dataZoom: d } = e.getOption(), { data: p } = (g == null ? void 0 : g[0]) ?? { data: [] };
|
|
729
|
+
let { startValue: o, endValue: s } = (d == null ? void 0 : d[0]) ?? {};
|
|
730
|
+
if (p != null && p.length) {
|
|
731
|
+
switch (l) {
|
|
701
732
|
case "ArrowUp": {
|
|
702
|
-
if (
|
|
733
|
+
if (s - o < 5)
|
|
703
734
|
return;
|
|
704
|
-
const
|
|
705
|
-
o = o +
|
|
735
|
+
const D = Math.floor((s - o) / 2) + 1;
|
|
736
|
+
o = o + D, s - o < 5 && (o = s - 4);
|
|
706
737
|
break;
|
|
707
738
|
}
|
|
708
739
|
case "ArrowDown": {
|
|
709
|
-
const
|
|
710
|
-
o = o -
|
|
740
|
+
const D = Math.min(500, s - o);
|
|
741
|
+
o = o - D - 1;
|
|
711
742
|
break;
|
|
712
743
|
}
|
|
713
744
|
case "ArrowLeft": {
|
|
714
|
-
o > 0 && (o -= 1,
|
|
745
|
+
o > 0 && (o -= 1, s -= 1), L.value > 0 && (L.value -= 1);
|
|
715
746
|
break;
|
|
716
747
|
}
|
|
717
748
|
case "ArrowRight": {
|
|
718
|
-
|
|
749
|
+
s < p.length - 1 && (o += 1, s += 1), a.value && L.value < p.length - 1 && (L.value += 1);
|
|
719
750
|
break;
|
|
720
751
|
}
|
|
721
752
|
}
|
|
722
753
|
e.dispatchAction({
|
|
723
754
|
type: "dataZoom",
|
|
724
755
|
startValue: o,
|
|
725
|
-
endValue:
|
|
756
|
+
endValue: s
|
|
726
757
|
}), e.dispatchAction({
|
|
727
758
|
type: "updateAxisPointer",
|
|
728
759
|
seriesIndex: 0,
|
|
729
|
-
dataIndex: a.value ?
|
|
760
|
+
dataIndex: a.value ? L.value : null
|
|
730
761
|
}), e.dispatchAction({
|
|
731
762
|
type: "highlight",
|
|
732
|
-
dataIndex: a.value ?
|
|
763
|
+
dataIndex: a.value ? L.value : s
|
|
733
764
|
});
|
|
734
765
|
}
|
|
735
|
-
},
|
|
766
|
+
}, Ae = () => {
|
|
736
767
|
e == null || e.on("datazoom", (t) => {
|
|
737
|
-
clearTimeout(
|
|
738
|
-
var
|
|
739
|
-
const { loadCheckCounts:
|
|
740
|
-
if ((
|
|
741
|
-
const { startValue:
|
|
742
|
-
|
|
768
|
+
clearTimeout(f), f = setTimeout(() => {
|
|
769
|
+
var d, p, o, s;
|
|
770
|
+
const { loadCheckCounts: g } = H.value;
|
|
771
|
+
if ((p = (d = e == null ? void 0 : e.getOption()) == null ? void 0 : d.dataZoom) != null && p[0]) {
|
|
772
|
+
const { startValue: D } = (s = (o = e == null ? void 0 : e.getOption()) == null ? void 0 : o.dataZoom) == null ? void 0 : s[0];
|
|
773
|
+
D < g && i === !1 && _ === !1 && (i = !0, Fe("history")), ae();
|
|
743
774
|
}
|
|
744
|
-
clearTimeout(
|
|
775
|
+
clearTimeout(f);
|
|
745
776
|
}, 100);
|
|
746
777
|
}), e == null || e.on("highlight", (t) => {
|
|
747
|
-
var
|
|
748
|
-
let
|
|
749
|
-
t.batch && (
|
|
750
|
-
|
|
778
|
+
var d, p;
|
|
779
|
+
let g = t.dataIndex || -1;
|
|
780
|
+
t.batch && (g = typeof ((d = t == null ? void 0 : t.batch[0]) == null ? void 0 : d.dataIndex) == "number" ? (p = t == null ? void 0 : t.batch[0]) == null ? void 0 : p.dataIndex : -1), clearTimeout(m), m = setTimeout(() => {
|
|
781
|
+
L.value = g, clearTimeout(m);
|
|
751
782
|
}, 20);
|
|
752
783
|
}), e == null || e.on("globalout", () => {
|
|
753
|
-
var
|
|
754
|
-
const t = (
|
|
755
|
-
|
|
784
|
+
var g, d, p;
|
|
785
|
+
const t = (p = (d = (g = e == null ? void 0 : e.getOption()) == null ? void 0 : g.dataZoom) == null ? void 0 : d[0]) == null ? void 0 : p.endValue;
|
|
786
|
+
L.value = t;
|
|
756
787
|
});
|
|
757
|
-
let
|
|
788
|
+
let l = null;
|
|
758
789
|
e == null || e.on("contextmenu", (t) => {
|
|
759
|
-
|
|
760
|
-
t.componentType === "graphic" && (N.value = t.info,
|
|
790
|
+
l = setTimeout(() => {
|
|
791
|
+
t.componentType === "graphic" && (N.value = t.info, de.value = [
|
|
761
792
|
{ label: "删除画线", key: "deleteWarningLine" },
|
|
762
793
|
{ label: "修改画线", key: "changeWarningLine" }
|
|
763
|
-
]), clearTimeout(
|
|
794
|
+
]), clearTimeout(l), l = null;
|
|
764
795
|
});
|
|
765
796
|
});
|
|
766
|
-
},
|
|
767
|
-
var
|
|
797
|
+
}, fe = async () => {
|
|
798
|
+
var l, t, g, d, p, o;
|
|
768
799
|
try {
|
|
769
800
|
if (!r.variety || !r.cycle)
|
|
770
801
|
return;
|
|
771
|
-
const { variety:
|
|
772
|
-
variety:
|
|
773
|
-
featureId:
|
|
774
|
-
cycle:
|
|
775
|
-
mainIndicatorList:
|
|
802
|
+
const { variety: s, featureId: D, cycle: F, indicatorStore: h, mainIndicator: q, right: z, startTime: j, endTime: R } = r, { defaultShowCounts: O, addCounts: b, showWarningLine: pe, getFactorData: le } = H.value, $ = {
|
|
803
|
+
variety: s,
|
|
804
|
+
featureId: D,
|
|
805
|
+
cycle: F,
|
|
806
|
+
mainIndicatorList: h.getIndicatorParams(q),
|
|
776
807
|
subIndicator: P.value,
|
|
777
808
|
right: z,
|
|
778
|
-
showWarningLine:
|
|
779
|
-
getFactorData:
|
|
809
|
+
showWarningLine: pe,
|
|
810
|
+
getFactorData: le
|
|
780
811
|
};
|
|
781
|
-
j &&
|
|
812
|
+
j && R ? ($.startTime = j, $.endTime = R) : j ? ($.startTime = j, $.limit = O + b) : R ? ($.endTime = R, $.limit = O + b) : ($.endTime = u().add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), $.limit = O + b);
|
|
782
813
|
const W = await Ge($);
|
|
783
|
-
if ((
|
|
784
|
-
|
|
814
|
+
if ((g = (t = (l = W == null ? void 0 : W.body) == null ? void 0 : l.kline) == null ? void 0 : t.time) != null && g.length)
|
|
815
|
+
w.value = !1, y.value = !1;
|
|
785
816
|
else {
|
|
786
|
-
|
|
817
|
+
w.value = !0, y.value = !1;
|
|
787
818
|
return;
|
|
788
819
|
}
|
|
789
|
-
|
|
790
|
-
} catch (
|
|
791
|
-
throw
|
|
820
|
+
B.value = (d = W == null ? void 0 : W.body) == null ? void 0 : d.kline, c.value = ((p = W == null ? void 0 : W.body) == null ? void 0 : p.warningLine) || [], xe(), ae(), le && Y("getFactorData", (o = W == null ? void 0 : W.body) == null ? void 0 : o.factor);
|
|
821
|
+
} catch (s) {
|
|
822
|
+
throw y.value = !0, w.value = !1, new Error(s);
|
|
792
823
|
}
|
|
793
|
-
}, Fe = async (
|
|
794
|
-
const { variety: t, cycle:
|
|
795
|
-
if (
|
|
796
|
-
const
|
|
824
|
+
}, Fe = async (l) => {
|
|
825
|
+
const { variety: t, cycle: g, indicatorStore: d, mainIndicator: p, right: o } = r, { addCounts: s } = H.value, { time: D } = B.value;
|
|
826
|
+
if (l === "history") {
|
|
827
|
+
const F = await Je({
|
|
797
828
|
variety: t,
|
|
798
|
-
cycle:
|
|
799
|
-
endTime:
|
|
800
|
-
limit:
|
|
801
|
-
mainIndicatorList:
|
|
829
|
+
cycle: g,
|
|
830
|
+
endTime: D[0],
|
|
831
|
+
limit: s,
|
|
832
|
+
mainIndicatorList: d.getIndicatorParams(p),
|
|
802
833
|
subIndicator: P.value,
|
|
803
834
|
right: o
|
|
804
835
|
});
|
|
805
|
-
|
|
806
|
-
time: [...
|
|
807
|
-
data: [...
|
|
808
|
-
mainIndicator:
|
|
836
|
+
B.value = {
|
|
837
|
+
time: [...F.body.time, ...B.value.time.slice(1)],
|
|
838
|
+
data: [...F.body.data, ...B.value.data.slice(1)],
|
|
839
|
+
mainIndicator: B.value.mainIndicator.map((h, q) => {
|
|
809
840
|
var z;
|
|
810
841
|
return {
|
|
811
|
-
...
|
|
812
|
-
data: [...((z =
|
|
842
|
+
...h,
|
|
843
|
+
data: [...((z = F.body.mainIndicator[q]) == null ? void 0 : z.data) ?? [], ...h.data.slice(1)]
|
|
813
844
|
};
|
|
814
845
|
}),
|
|
815
|
-
subIndicator:
|
|
846
|
+
subIndicator: B.value.subIndicator.map((h, q) => {
|
|
816
847
|
var z;
|
|
817
848
|
return {
|
|
818
|
-
...
|
|
819
|
-
data: [...((z =
|
|
849
|
+
...h,
|
|
850
|
+
data: [...((z = F.body.subIndicator[q]) == null ? void 0 : z.data) ?? [], ...h.data.slice(1)]
|
|
820
851
|
};
|
|
821
852
|
})
|
|
822
|
-
},
|
|
853
|
+
}, xe(!0), F.body.data.length < s && (_ = !0), i = !1;
|
|
823
854
|
}
|
|
824
|
-
},
|
|
855
|
+
}, xe = (l = !1) => {
|
|
825
856
|
var q, z, j;
|
|
826
|
-
|
|
827
|
-
const { time: t } =
|
|
828
|
-
let
|
|
829
|
-
if (
|
|
830
|
-
const
|
|
831
|
-
|
|
857
|
+
Te();
|
|
858
|
+
const { time: t } = B.value, { gridRight: g, gridLeft: d, defaultShowCounts: p, maxShowCounts: o, showSubChart: s } = H.value;
|
|
859
|
+
let D = t.length - 1 - p, F = t.length - 1;
|
|
860
|
+
if (l) {
|
|
861
|
+
const R = e.getOption(), O = (z = (q = R == null ? void 0 : R.xAxis) == null ? void 0 : q[0]) == null ? void 0 : z.data, b = (j = R == null ? void 0 : R.dataZoom) == null ? void 0 : j[0], pe = O[b == null ? void 0 : b.startValue], le = O[b == null ? void 0 : b.endValue];
|
|
862
|
+
D = t.findIndex(($) => $ === pe), F = t.findIndex(($) => $ === le);
|
|
832
863
|
}
|
|
833
|
-
const
|
|
834
|
-
if (e.setOption(
|
|
835
|
-
let
|
|
864
|
+
const h = nt(B.value, H.value, D, F, r.cycle);
|
|
865
|
+
if (e.setOption(h, !0), L.value = F, r.brushRange) {
|
|
866
|
+
let R = null, O = null;
|
|
836
867
|
switch (r.cycle) {
|
|
837
868
|
case "6": {
|
|
838
|
-
|
|
869
|
+
R = t.find((b) => new Date(b).getTime() >= new Date(r.brushRange[0]).getTime() || u(b).format("YYYY-MM-DD") === u(r.brushRange[0]).format("YYYY-MM-DD")), O = t.findLast((b) => new Date(b).getTime() <= new Date(r.brushRange[1]).getTime() || u(b).format("YYYY-MM-DD") === u(r.brushRange[1]).format("YYYY-MM-DD"));
|
|
839
870
|
break;
|
|
840
871
|
}
|
|
841
872
|
case "7": {
|
|
842
|
-
|
|
873
|
+
R = t.find((b) => u(b).day(5).format("YYYY-MM-DD") === u(r.brushRange[0]).day(5).format("YYYY-MM-DD")), O = t.findLast((b) => u(b).day(5).format("YYYY-MM-DD") === u(r.brushRange[1]).day(5).format("YYYY-MM-DD"));
|
|
843
874
|
break;
|
|
844
875
|
}
|
|
845
876
|
case "8": {
|
|
846
|
-
|
|
877
|
+
R = t.find((b) => u(b).endOf("month").format("YYYY-MM-DD") === u(r.brushRange[0]).endOf("month").format("YYYY-MM-DD")), O = t.findLast((b) => u(b).endOf("month").format("YYYY-MM-DD") === u(r.brushRange[1]).endOf("month").format("YYYY-MM-DD"));
|
|
847
878
|
break;
|
|
848
879
|
}
|
|
849
880
|
default:
|
|
850
|
-
|
|
881
|
+
R = t.find((b) => new Date(b).getTime() >= new Date(r.brushRange[0]).getTime()), O = t.findLast((b) => new Date(b).getTime() <= new Date(r.brushRange[1]).getTime());
|
|
851
882
|
}
|
|
852
|
-
console.log(
|
|
883
|
+
console.log(R, O), e.dispatchAction({
|
|
853
884
|
type: "brush",
|
|
854
885
|
areas: [
|
|
855
886
|
{
|
|
856
887
|
brushType: "lineX",
|
|
857
|
-
coordRange: [
|
|
888
|
+
coordRange: [R, O],
|
|
858
889
|
xAxisIndex: 0
|
|
859
890
|
}
|
|
860
891
|
]
|
|
861
892
|
});
|
|
862
893
|
}
|
|
863
|
-
|
|
864
|
-
},
|
|
894
|
+
s && k.value.draw({ startValue: D, endValue: F, maxValueSpan: o }, { gridLeft: d, gridRight: g }), he();
|
|
895
|
+
}, ae = () => {
|
|
865
896
|
if (!e)
|
|
866
897
|
return;
|
|
867
|
-
const
|
|
868
|
-
|
|
898
|
+
const l = e == null ? void 0 : e.getOption();
|
|
899
|
+
l && (e == null || e.setOption(
|
|
869
900
|
{
|
|
870
|
-
...
|
|
901
|
+
...l,
|
|
871
902
|
graphic: [
|
|
872
|
-
...ot(e,
|
|
873
|
-
|
|
903
|
+
...ot(e, c.value, r, H.value, () => {
|
|
904
|
+
re();
|
|
874
905
|
})
|
|
875
906
|
]
|
|
876
907
|
},
|
|
877
908
|
!0
|
|
878
|
-
),
|
|
879
|
-
},
|
|
880
|
-
const { time:
|
|
881
|
-
if (r.brushRange && (
|
|
882
|
-
let t = u(r.brushRange[0]).format("YYYY-MM-DD 00:00:00"),
|
|
909
|
+
), he());
|
|
910
|
+
}, he = () => {
|
|
911
|
+
const { time: l } = B.value;
|
|
912
|
+
if (r.brushRange && (l != null && l.length)) {
|
|
913
|
+
let t = u(r.brushRange[0]).format("YYYY-MM-DD 00:00:00"), g = u(r.brushRange[1]).format("YYYY-MM-DD 23:59:59"), d = null, p = null;
|
|
883
914
|
switch (r.cycle) {
|
|
884
915
|
case "6": {
|
|
885
|
-
|
|
916
|
+
d = l.find((o) => u(o).format("YYYY-MM-DD") === u(t).format("YYYY-MM-DD")), p = d;
|
|
886
917
|
break;
|
|
887
918
|
}
|
|
888
919
|
case "7": {
|
|
889
|
-
|
|
920
|
+
d = l.find((o) => u(o).day(5).format("YYYY-MM-DD") === u(t).day(5).format("YYYY-MM-DD")), p = l.findLast((o) => u(o).day(5).format("YYYY-MM-DD") === u(g).day(5).format("YYYY-MM-DD"));
|
|
890
921
|
break;
|
|
891
922
|
}
|
|
892
923
|
case "8": {
|
|
893
|
-
|
|
924
|
+
d = l.find((o) => u(o).endOf("month").format("YYYY-MM-DD") === u(t).endOf("month").format("YYYY-MM-DD")), p = l.findLast((o) => u(o).endOf("month").format("YYYY-MM-DD") === u(g).endOf("month").format("YYYY-MM-DD"));
|
|
894
925
|
break;
|
|
895
926
|
}
|
|
896
927
|
default:
|
|
897
|
-
|
|
898
|
-
const
|
|
899
|
-
return
|
|
900
|
-
}),
|
|
901
|
-
const
|
|
902
|
-
return
|
|
928
|
+
d = l.find((o) => {
|
|
929
|
+
const s = u(o).format("YYYY-MM-DD") === u(t).format("YYYY-MM-DD"), D = new Date(o).getTime() >= new Date(t).getTime();
|
|
930
|
+
return s && D;
|
|
931
|
+
}), p = l.findLast((o) => {
|
|
932
|
+
const s = u(o).format("YYYY-MM-DD") === u(g).format("YYYY-MM-DD"), D = new Date(o).getTime() <= new Date(g).getTime();
|
|
933
|
+
return s && D;
|
|
903
934
|
});
|
|
904
935
|
}
|
|
905
936
|
e.dispatchAction({
|
|
@@ -907,28 +938,28 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
|
|
|
907
938
|
areas: [
|
|
908
939
|
{
|
|
909
940
|
brushType: "lineX",
|
|
910
|
-
coordRange: [
|
|
941
|
+
coordRange: [d, p],
|
|
911
942
|
xAxisIndex: 0
|
|
912
943
|
}
|
|
913
944
|
]
|
|
914
945
|
});
|
|
915
946
|
}
|
|
916
|
-
},
|
|
917
|
-
const
|
|
918
|
-
|
|
919
|
-
}, Re = async (
|
|
920
|
-
const { variety: t, varietyName:
|
|
921
|
-
if (
|
|
922
|
-
const o = e == null ? void 0 : e.getOption(),
|
|
947
|
+
}, re = async () => {
|
|
948
|
+
const l = await et({ featureId: r.featureId });
|
|
949
|
+
c.value = (l == null ? void 0 : l.body) || [], ae(), Y("change", "warningLine", c.value);
|
|
950
|
+
}, Re = async (l) => {
|
|
951
|
+
const { variety: t, varietyName: g, featureId: d, featureType: p } = r;
|
|
952
|
+
if (l.key === "drawWarningLine") {
|
|
953
|
+
const o = e == null ? void 0 : e.getOption(), s = o.tooltip[0];
|
|
923
954
|
e == null || e.setOption({
|
|
924
955
|
...o,
|
|
925
956
|
// 指示器样式
|
|
926
957
|
tooltip: {
|
|
927
|
-
...
|
|
958
|
+
...s,
|
|
928
959
|
// 坐标轴指示器
|
|
929
960
|
axisPointer: {
|
|
930
961
|
// 保留原有部分配置
|
|
931
|
-
...
|
|
962
|
+
...s.axisPointer,
|
|
932
963
|
// X轴指示线的宽度
|
|
933
964
|
lineStyle: {
|
|
934
965
|
width: 0
|
|
@@ -940,25 +971,25 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
|
|
|
940
971
|
// 文本标签
|
|
941
972
|
label: {
|
|
942
973
|
// 保留原有部分配置
|
|
943
|
-
...
|
|
974
|
+
...s.axisPointer.label,
|
|
944
975
|
// 颜色改为透明
|
|
945
976
|
backgroundColor: "transparent",
|
|
946
977
|
// 仅显示Y轴值
|
|
947
|
-
formatter: (
|
|
978
|
+
formatter: (F) => ""
|
|
948
979
|
}
|
|
949
980
|
}
|
|
950
981
|
}
|
|
951
982
|
});
|
|
952
|
-
const
|
|
953
|
-
e == null || e.getZr().off("mousedown",
|
|
954
|
-
const
|
|
983
|
+
const D = async (F) => {
|
|
984
|
+
e == null || e.getZr().off("mousedown", D);
|
|
985
|
+
const h = e == null ? void 0 : e.convertFromPixel({ yAxisIndex: 0 }, F.offsetY), q = Math.round(h * 1e3) / 1e3;
|
|
955
986
|
e == null || e.setOption({
|
|
956
987
|
...o,
|
|
957
988
|
// 指示器样式
|
|
958
989
|
tooltip: {
|
|
959
|
-
...
|
|
990
|
+
...s,
|
|
960
991
|
axisPointer: {
|
|
961
|
-
...
|
|
992
|
+
...s.axisPointer,
|
|
962
993
|
lineStyle: {
|
|
963
994
|
width: 1
|
|
964
995
|
},
|
|
@@ -966,7 +997,7 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
|
|
|
966
997
|
width: 1
|
|
967
998
|
},
|
|
968
999
|
label: {
|
|
969
|
-
...
|
|
1000
|
+
...s.axisPointer.label,
|
|
970
1001
|
backgroundColor: null
|
|
971
1002
|
}
|
|
972
1003
|
}
|
|
@@ -974,75 +1005,75 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
|
|
|
974
1005
|
}), await Qe({
|
|
975
1006
|
featureCode: t,
|
|
976
1007
|
//品种代码
|
|
977
|
-
featureName:
|
|
1008
|
+
featureName: g,
|
|
978
1009
|
//品种名称
|
|
979
|
-
featureId:
|
|
1010
|
+
featureId: d,
|
|
980
1011
|
//品种id
|
|
981
|
-
featureType:
|
|
1012
|
+
featureType: p,
|
|
982
1013
|
//品种类型
|
|
983
1014
|
warnPrice: q
|
|
984
|
-
}),
|
|
1015
|
+
}), se.success("画线预警成功!"), re();
|
|
985
1016
|
};
|
|
986
|
-
e == null || e.getZr().on("mousedown",
|
|
1017
|
+
e == null || e.getZr().on("mousedown", D);
|
|
987
1018
|
} else
|
|
988
|
-
|
|
989
|
-
},
|
|
990
|
-
const { variety:
|
|
991
|
-
await
|
|
1019
|
+
l.key === "deleteWarningLine" ? (await tt({ id: N.value.id }), se.success("画线预警删除成功"), re()) : l.key === "changeWarningLine" && (C.value = !0, oe.value = N.value.warnPrice);
|
|
1020
|
+
}, Ve = async () => {
|
|
1021
|
+
const { variety: l, varietyName: t, featureId: g, featureType: d } = r;
|
|
1022
|
+
await Se({
|
|
992
1023
|
id: N.value.id,
|
|
993
|
-
featureCode:
|
|
1024
|
+
featureCode: l,
|
|
994
1025
|
//品种代码
|
|
995
1026
|
featureName: t,
|
|
996
1027
|
//品种名称
|
|
997
|
-
featureId:
|
|
1028
|
+
featureId: g,
|
|
998
1029
|
//品种id
|
|
999
|
-
featureType:
|
|
1030
|
+
featureType: d,
|
|
1000
1031
|
//品种类型
|
|
1001
|
-
warnPrice:
|
|
1002
|
-
}),
|
|
1003
|
-
},
|
|
1004
|
-
|
|
1032
|
+
warnPrice: oe.value
|
|
1033
|
+
}), se.success("画线预警修改成功"), re();
|
|
1034
|
+
}, Ee = () => {
|
|
1035
|
+
de.value = [...x];
|
|
1005
1036
|
};
|
|
1006
|
-
return
|
|
1007
|
-
draw: (
|
|
1008
|
-
|
|
1037
|
+
return M({
|
|
1038
|
+
draw: (l, t) => {
|
|
1039
|
+
l === "warningLine" && (c.value = t, ae());
|
|
1009
1040
|
}
|
|
1010
|
-
}), (
|
|
1011
|
-
var
|
|
1012
|
-
const
|
|
1013
|
-
return
|
|
1041
|
+
}), (l, t) => {
|
|
1042
|
+
var F;
|
|
1043
|
+
const g = Pe, d = We, p = $e, o = Oe, s = Ie, D = Be;
|
|
1044
|
+
return A(), E(Q, null, [
|
|
1014
1045
|
U("div", {
|
|
1015
1046
|
class: "klineBasic",
|
|
1016
|
-
onMousemove: t[1] || (t[1] = (
|
|
1017
|
-
onMouseout: t[2] || (t[2] = (
|
|
1047
|
+
onMousemove: t[1] || (t[1] = (h) => a.value = !0),
|
|
1048
|
+
onMouseout: t[2] || (t[2] = (h) => a.value = !1)
|
|
1018
1049
|
}, [
|
|
1019
|
-
U("div",
|
|
1020
|
-
|
|
1021
|
-
data:
|
|
1022
|
-
activeIndex:
|
|
1050
|
+
U("div", bt, [
|
|
1051
|
+
I(it, {
|
|
1052
|
+
data: B.value,
|
|
1053
|
+
activeIndex: L.value
|
|
1023
1054
|
}, null, 8, ["data", "activeIndex"])
|
|
1024
1055
|
]),
|
|
1025
1056
|
U("div", {
|
|
1026
1057
|
class: "klineBasic-main",
|
|
1027
|
-
style:
|
|
1058
|
+
style: ce({ height: H.value.showSubChart ? "70%" : "100%" })
|
|
1028
1059
|
}, [
|
|
1029
|
-
|
|
1060
|
+
I(vt, { onCloseContextMenuCallBack: Ee }, {
|
|
1030
1061
|
popover: K(() => [
|
|
1031
|
-
|
|
1062
|
+
I(d, { style: {
|
|
1032
1063
|
borderRadius: "4px",
|
|
1033
1064
|
overflow: "hidden",
|
|
1034
1065
|
background: "#fff",
|
|
1035
1066
|
borderRight: 0
|
|
1036
1067
|
} }, {
|
|
1037
1068
|
default: K(() => [
|
|
1038
|
-
(
|
|
1069
|
+
(A(!0), E(Q, null, ue(de.value, (h) => (A(), Me(g, {
|
|
1039
1070
|
style: { height: "36px" },
|
|
1040
|
-
key:
|
|
1041
|
-
index:
|
|
1042
|
-
onClick: (q) => Re(
|
|
1071
|
+
key: h.key,
|
|
1072
|
+
index: h.key,
|
|
1073
|
+
onClick: (q) => Re(h)
|
|
1043
1074
|
}, {
|
|
1044
1075
|
default: K(() => [
|
|
1045
|
-
|
|
1076
|
+
ie(ee(h.label), 1)
|
|
1046
1077
|
]),
|
|
1047
1078
|
_: 2
|
|
1048
1079
|
}, 1032, ["index", "onClick"]))), 128))
|
|
@@ -1053,76 +1084,76 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
|
|
|
1053
1084
|
default: K(() => [
|
|
1054
1085
|
U("div", {
|
|
1055
1086
|
ref_key: "klineBasicMainRef",
|
|
1056
|
-
ref:
|
|
1087
|
+
ref: V,
|
|
1057
1088
|
style: { height: "100%" }
|
|
1058
1089
|
}, null, 512)
|
|
1059
1090
|
]),
|
|
1060
1091
|
_: 1
|
|
1061
1092
|
})
|
|
1062
1093
|
], 4),
|
|
1063
|
-
H.value.showSubChart ? (
|
|
1064
|
-
|
|
1094
|
+
H.value.showSubChart ? (A(), E("div", xt, [
|
|
1095
|
+
I(yt, {
|
|
1065
1096
|
ref_key: "klineSubRef",
|
|
1066
1097
|
ref: k,
|
|
1067
1098
|
modelValue: P.value,
|
|
1068
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1069
|
-
data:
|
|
1099
|
+
"onUpdate:modelValue": t[0] || (t[0] = (h) => P.value = h),
|
|
1100
|
+
data: B.value,
|
|
1070
1101
|
cycle: n.cycle,
|
|
1071
|
-
activeIndex:
|
|
1072
|
-
subIndicatorList: (
|
|
1102
|
+
activeIndex: L.value,
|
|
1103
|
+
subIndicatorList: (F = n.indicatorStore) == null ? void 0 : F.subIndicatorList
|
|
1073
1104
|
}, null, 8, ["modelValue", "data", "cycle", "activeIndex", "subIndicatorList"])
|
|
1074
|
-
])) :
|
|
1075
|
-
|
|
1076
|
-
|
|
1105
|
+
])) : G("", !0),
|
|
1106
|
+
w.value ? (A(), E("div", ht, [
|
|
1107
|
+
I(p, {
|
|
1077
1108
|
class: "klineBasic-empty-content",
|
|
1078
1109
|
description: "暂无数据"
|
|
1079
1110
|
})
|
|
1080
|
-
])) :
|
|
1081
|
-
|
|
1111
|
+
])) : G("", !0),
|
|
1112
|
+
y.value ? (A(), E("div", _t, [
|
|
1082
1113
|
Yt,
|
|
1083
|
-
U("div",
|
|
1084
|
-
|
|
1114
|
+
U("div", wt, [
|
|
1115
|
+
I(o, { onClick: fe }, {
|
|
1085
1116
|
default: K(() => [
|
|
1086
|
-
|
|
1117
|
+
ie("刷新")
|
|
1087
1118
|
]),
|
|
1088
1119
|
_: 1
|
|
1089
1120
|
})
|
|
1090
1121
|
])
|
|
1091
|
-
])) :
|
|
1122
|
+
])) : G("", !0)
|
|
1092
1123
|
], 32),
|
|
1093
|
-
|
|
1124
|
+
I(D, {
|
|
1094
1125
|
modelValue: C.value,
|
|
1095
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
1126
|
+
"onUpdate:modelValue": t[5] || (t[5] = (h) => C.value = h),
|
|
1096
1127
|
title: "画线预警-修改价格",
|
|
1097
1128
|
width: "30%",
|
|
1098
1129
|
"align-center": ""
|
|
1099
1130
|
}, {
|
|
1100
1131
|
footer: K(() => [
|
|
1101
|
-
U("span",
|
|
1102
|
-
|
|
1103
|
-
onClick: t[4] || (t[4] = (
|
|
1132
|
+
U("span", kt, [
|
|
1133
|
+
I(o, {
|
|
1134
|
+
onClick: t[4] || (t[4] = (h) => C.value = !1)
|
|
1104
1135
|
}, {
|
|
1105
1136
|
default: K(() => [
|
|
1106
|
-
|
|
1137
|
+
ie("取消")
|
|
1107
1138
|
]),
|
|
1108
1139
|
_: 1
|
|
1109
1140
|
}),
|
|
1110
|
-
|
|
1141
|
+
I(o, {
|
|
1111
1142
|
type: "primary",
|
|
1112
|
-
onClick:
|
|
1143
|
+
onClick: Ve
|
|
1113
1144
|
}, {
|
|
1114
1145
|
default: K(() => [
|
|
1115
|
-
|
|
1146
|
+
ie("确定")
|
|
1116
1147
|
]),
|
|
1117
1148
|
_: 1
|
|
1118
1149
|
})
|
|
1119
1150
|
])
|
|
1120
1151
|
]),
|
|
1121
1152
|
default: K(() => [
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
modelValue:
|
|
1125
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
1153
|
+
Dt,
|
|
1154
|
+
I(s, {
|
|
1155
|
+
modelValue: oe.value,
|
|
1156
|
+
"onUpdate:modelValue": t[3] || (t[3] = (h) => oe.value = h),
|
|
1126
1157
|
placeholder: "输入预警价格"
|
|
1127
1158
|
}, null, 8, ["modelValue"])
|
|
1128
1159
|
]),
|
|
@@ -1131,11 +1162,11 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
|
|
|
1131
1162
|
], 64);
|
|
1132
1163
|
};
|
|
1133
1164
|
}
|
|
1134
|
-
},
|
|
1165
|
+
}, St = /* @__PURE__ */ X(Mt, [["__scopeId", "data-v-9e6456be"]]), cn = {
|
|
1135
1166
|
install(n) {
|
|
1136
|
-
n.component("st-klineBasic",
|
|
1167
|
+
n.component("st-klineBasic", St);
|
|
1137
1168
|
}
|
|
1138
1169
|
};
|
|
1139
1170
|
export {
|
|
1140
|
-
|
|
1171
|
+
cn as default
|
|
1141
1172
|
};
|