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