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.
Files changed (111) hide show
  1. package/es/CustomFunction.cjs +5 -5
  2. package/es/CustomFunction.js +362 -299
  3. package/es/FactorWarning.cjs +1 -1
  4. package/es/FactorWarning.js +25 -25
  5. package/es/Kline.cjs +1 -1
  6. package/es/Kline.js +10 -10
  7. package/es/KlineBasic.cjs +1 -1
  8. package/es/KlineBasic.js +425 -394
  9. package/es/KlineConfig.cjs +1 -1
  10. package/es/KlineConfig.js +15 -15
  11. package/es/KlineNew.cjs +1 -1
  12. package/es/KlineNew.js +9 -9
  13. package/es/KlinePlus.cjs +1 -1
  14. package/es/KlinePlus.js +11 -11
  15. package/es/Pagination.cjs +1 -1
  16. package/es/Pagination.js +13 -13
  17. package/es/PasswordPrompt.cjs +1 -1
  18. package/es/PasswordPrompt.js +2 -2
  19. package/es/Table.cjs +1 -1
  20. package/es/Table.js +29 -29
  21. package/es/User.cjs +1 -1
  22. package/es/User.js +18 -18
  23. package/es/VarSelectDialog.cjs +1 -1
  24. package/es/VarSelectDialog.js +17 -17
  25. package/es/VarietyAutoComplete.cjs +1 -1
  26. package/es/VarietyAutoComplete.js +7 -7
  27. package/es/VarietySearch.cjs +1 -1
  28. package/es/VarietySearch.js +26 -26
  29. package/es/VarietyTextCopy.cjs +1 -1
  30. package/es/VarietyTextCopy.js +9 -9
  31. package/es/VirtualTable.cjs +1 -1
  32. package/es/VirtualTable.js +5 -5
  33. package/es/{_initCloneObject-6429d105.cjs → _initCloneObject-52b6a510.cjs} +1 -1
  34. package/es/{_initCloneObject-4f4401b6.js → _initCloneObject-eaef9418.js} +2 -2
  35. package/es/{config-provider-285ead82.cjs → config-provider-a584d81e.cjs} +1 -1
  36. package/es/{config-provider-e1736401.js → config-provider-b16efd62.js} +3 -3
  37. package/es/{dropdown-6ba4a93d.cjs → dropdown-071c5d7e.cjs} +1 -1
  38. package/es/{dropdown-73ca08ef.js → dropdown-a59bba73.js} +2 -2
  39. package/es/{el-autocomplete-aeb7da33.cjs → el-autocomplete-a07e9439.cjs} +1 -1
  40. package/es/{el-autocomplete-2180fc5c.js → el-autocomplete-ba808eb6.js} +5 -5
  41. package/es/{el-button-e8b725f0.js → el-button-c95adb85.js} +3 -3
  42. package/es/{el-button-0dbb2d4a.cjs → el-button-eec58cff.cjs} +1 -1
  43. package/es/{el-checkbox-df0def51.js → el-checkbox-7421ccd3.js} +3 -3
  44. package/es/{el-checkbox-b8c558ca.cjs → el-checkbox-c25236a6.cjs} +1 -1
  45. package/es/{el-dialog-4330c5bd.js → el-dialog-41ab8417.js} +4 -4
  46. package/es/{el-dialog-5028c704.cjs → el-dialog-ae86edb8.cjs} +1 -1
  47. package/es/{el-form-item-f7e8255e.cjs → el-form-item-c3fe189b.cjs} +1 -1
  48. package/es/{el-form-item-b816e9f3.js → el-form-item-c53c374d.js} +5 -5
  49. package/es/{el-input-bd1ce1e9.js → el-input-2f75c4ba.js} +4 -4
  50. package/es/{el-input-2e9268ac.cjs → el-input-7fd293af.cjs} +1 -1
  51. package/es/{el-input-number-153a3742.cjs → el-input-number-22e21d16.cjs} +1 -1
  52. package/es/{el-input-number-088d2c66.js → el-input-number-5193fe6d.js} +4 -4
  53. package/es/{el-loading-03240202.cjs → el-loading-cfd86c15.cjs} +1 -1
  54. package/es/{el-loading-d0dac75f.js → el-loading-f6022062.js} +1 -1
  55. package/es/{el-menu-item-b843f5ee.cjs → el-menu-item-17dc717e.cjs} +1 -1
  56. package/es/{el-menu-item-c7202455.js → el-menu-item-7e881203.js} +4 -4
  57. package/es/{el-message-3d8d9810.cjs → el-message-5e6a6be9.cjs} +1 -1
  58. package/es/{el-message-box-7a952ec7.js → el-message-box-a93d2f6a.js} +9 -9
  59. package/es/{el-message-box-aafae7ee.cjs → el-message-box-c10adb52.cjs} +1 -1
  60. package/es/{el-message-290a93ff.js → el-message-e544a8f5.js} +5 -5
  61. package/es/{el-overlay-f72f3f3d.js → el-overlay-09ad71cd.js} +3 -3
  62. package/es/{el-overlay-ab0b3c66.cjs → el-overlay-9e34965f.cjs} +1 -1
  63. package/es/{el-popconfirm-a4a50f14.cjs → el-popconfirm-70a976bf.cjs} +1 -1
  64. package/es/{el-popconfirm-bdcb65fe.js → el-popconfirm-81dcd202.js} +4 -4
  65. package/es/{el-popper-b0ef8ed3.js → el-popper-b4f97157.js} +1 -1
  66. package/es/{el-popper-b37ec1ef.cjs → el-popper-b6c99b28.cjs} +1 -1
  67. package/es/{el-segmented-d0a61f41.js → el-segmented-b868d074.js} +2 -2
  68. package/es/{el-segmented-f505fd25.cjs → el-segmented-f8fce9ac.cjs} +1 -1
  69. package/es/{el-select-d63dc0f6.js → el-select-95627997.js} +8 -8
  70. package/es/{el-select-91145989.cjs → el-select-d8d91db1.cjs} +1 -1
  71. package/es/{el-table-column-5ad33084.js → el-table-column-376cd907.js} +9 -9
  72. package/es/{el-table-column-4dae58f0.cjs → el-table-column-c974cb96.cjs} +1 -1
  73. package/es/{el-tag-2da70fa3.js → el-tag-66cab138.js} +2 -2
  74. package/es/{el-tag-891b703d.cjs → el-tag-a33c4b22.cjs} +1 -1
  75. package/es/{el-text-d42a3be4.js → el-text-ac60d0f2.js} +1 -1
  76. package/es/{el-text-cfd2f326.cjs → el-text-c20a9f48.cjs} +1 -1
  77. package/es/index-098c2447.cjs +1 -0
  78. package/es/{index-eb3ca89a.cjs → index-11547a0c.cjs} +1 -1
  79. package/es/{index-23d35abc.js → index-1f7d4f70.js} +1 -1
  80. package/es/{index-f50a50b3.cjs → index-298075cf.cjs} +1 -1
  81. package/es/{index-af3c738f.js → index-57672682.js} +2 -2
  82. package/es/{index-5108cae0.js → index-844bdd85.js} +2 -2
  83. package/es/{index-d6a848ac.js → index-88546436.js} +2 -2
  84. package/es/{index-25bc46bb.cjs → index-9b9ef5dd.cjs} +1 -1
  85. package/es/{index-598d418b.js → index-a871c3eb.js} +111 -92
  86. package/es/{index-6c252a43.cjs → index-c108567d.cjs} +1 -1
  87. package/es/{index-0902dd2e.js → index-d91dc23f.js} +2 -2
  88. package/es/{index-b99c0c42.js → index-e5566b94.js} +1 -1
  89. package/es/{index-d7928b14.cjs → index-f3562b52.cjs} +1 -1
  90. package/es/{index-7a26fd8b.cjs → index-f967d6c1.cjs} +1 -1
  91. package/es/style.css +1 -1
  92. package/es/{use-form-common-props-b995a440.js → use-form-common-props-815d48a6.js} +12 -12
  93. package/es/{use-form-common-props-3b387353.cjs → use-form-common-props-fd9b61a0.cjs} +1 -1
  94. package/es/{use-global-config-2a4156cd.cjs → use-global-config-30d7d8ce.cjs} +1 -1
  95. package/es/{use-global-config-e20aee8c.js → use-global-config-b5e9d3d5.js} +2 -2
  96. package/es/{validator-7dacff4f.cjs → validator-1b8a6128.cjs} +1 -1
  97. package/es/{validator-6d23708b.js → validator-764a9db0.js} +1 -1
  98. package/es/{zh-cn-a3c3833a.cjs → zh-cn-90317f62.cjs} +1 -1
  99. package/es/{zh-cn-7530f035.js → zh-cn-e963c628.js} +1 -1
  100. package/lib/bundle.js +1 -1
  101. package/lib/bundle.umd.cjs +164 -164
  102. package/lib/{index-f90c4e75.js → index-d3e408b3.js} +16052 -15940
  103. package/lib/{python-8759beff.js → python-34cb78d0.js} +1 -1
  104. package/lib/style.css +1 -1
  105. package/package.json +1 -1
  106. package/packages/CustomFunction/components/ManageDialog.vue +31 -30
  107. package/packages/CustomFunction/index.vue +59 -4
  108. package/packages/KlineBasic/components/AverageTips/index.vue +33 -0
  109. package/packages/KlineBasic/components/KlineSub/index.vue +2 -2
  110. package/packages/KlineBasic/components/Tips/index.vue +21 -3
  111. 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 Ee } from "./el-dialog-4330c5bd.js";
3
- import "./el-overlay-f72f3f3d.js";
4
- import "./el-input-bd1ce1e9.js";
5
- import { E as Be } from "./el-input-number-088d2c66.js";
6
- import { E as Oe } from "./el-button-e8b725f0.js";
7
- import { E as Ie } from "./el-empty-33cb66f1.js";
8
- import { E as $e, a as Pe } from "./el-menu-item-c7202455.js";
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-b0ef8ed3.js";
11
- import { defineComponent as he, openBlock as E, createElementBlock as O, Fragment as le, renderList as me, normalizeStyle as ye, toDisplayString as ce, computed as J, createVNode as B, ref as F, onMounted as _e, onUnmounted as we, nextTick as De, createElementVNode as U, withCtx as K, createBlock as ke, createCommentVNode as X, renderSlot as Ye, watch as We, createTextVNode as re, pushScopeId as Ne, popScopeId as qe } from "vue";
12
- import * as fe from "echarts";
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 Q, x as ge, D as He } from "./index-7ed0999e.js";
15
- import { E as ie } from "./el-message-290a93ff.js";
16
- import { _ as ee } from "./_plugin-vue_export-helper-dad06003.js";
17
- import "./el-tag-2da70fa3.js";
18
- import { E as je, a as Ze } from "./el-select-d63dc0f6.js";
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-598d418b.js";
21
- import "./use-form-common-props-b995a440.js";
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-e20aee8c.js";
28
- import "./index-b99c0c42.js";
27
+ import "./use-global-config-b5e9d3d5.js";
28
+ import "./index-e5566b94.js";
29
29
  import "./typescript-7ae59c4c.js";
30
- import "./index-0902dd2e.js";
30
+ import "./index-d91dc23f.js";
31
31
  import "./index-657047bb.js";
32
- import "./config-provider-e1736401.js";
33
- import "./index-5108cae0.js";
34
- import "./index-af3c738f.js";
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 R = Ce(n, {
40
- handleReq: (A) => {
41
- ze() && (A.headers.token = Ke());
39
+ const M = Ce(n, {
40
+ handleReq: (S) => {
41
+ ze() && (S.headers.token = Ke());
42
42
  },
43
- handleRes: (A) => {
44
- const { data: D } = A;
45
- if (D.code === 401)
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
- R.get, Z = R.post;
50
- }, Ge = (n) => Z("/middleLayer/kline/getKlineBasic", { ...n, userId: Q("id") }), Je = (n) => Z("/middleLayer/kline/getKline", n), Qe = async (n) => Z("/alarm/deliversign/addAlarmPrice", { ...n, userId: Q("id") }), et = async (n) => Z("/alarm/deliversign/findAlarmPriceByUserId", { ...n, userId: Q("id") }), Me = async (n) => Z("/alarm/deliversign/updateAlarmPrice", { ...n, userId: Q("id") }), tt = async (n) => Z("/alarm/deliversign/deleteAlarmPrice", { ...n, userId: Q("id") }), { round: G } = ge, nt = (n, R, A, D, g) => {
51
- const { data: e, time: h } = n, { gridTop: b, gridRight: s, gridLeft: x, maxShowCounts: Y, showSubChart: r } = R;
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: `${b}px`,
56
- right: `${s}px`,
55
+ top: `${f}px`,
56
+ right: `${i}px`,
57
57
  bottom: r ? "6px" : "24px",
58
- left: `${x}px`
58
+ left: `${_}px`
59
59
  },
60
60
  dataZoom: [
61
61
  {
62
62
  type: "inside",
63
- startValue: A,
64
- endValue: D,
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: _, value: p } = a;
78
- return _ === "x" ? r ? "" : ["6", "7", "8"].includes(g) ? u(p).format("YYYY-MM-DD") : p : String(G(p));
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: h,
87
+ data: m,
88
88
  splitLine: {
89
89
  show: !1
90
90
  },
91
91
  axisLabel: {
92
- formatter: (a) => ["6", "7", "8"].includes(g) ? u(a).format("YYYY-MM-DD") : a
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) => G(a.min),
108
- max: (a) => G(a.max)
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, R, A, D, g) => {
153
- const { variety: e, featureId: h, featureType: b } = A, { gridTop: s, gridLeft: x, gridRight: Y } = D;
154
- return R.reduce((r, a) => {
155
- const { warnPrice: _ } = a, p = n == null ? void 0 : n.convertToPixel({ yAxisIndex: 0 }, _);
156
- if (p <= s || p >= (n == null ? void 0 : n.getHeight()))
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 T = 0;
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: x,
171
+ x1: _,
172
172
  // 开始X坐标
173
- y1: p,
173
+ y1: y,
174
174
  // 开始Y坐标
175
175
  x2: (n == null ? void 0 : n.getWidth()) - Y,
176
176
  // 结束X坐标
177
- y2: p
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: p - 5,
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
- T = k.offsetY;
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 M = n.convertFromPixel({ yAxisIndex: 0 }, p + (k.offsetY - T));
210
- (P = k.target.childAt(1)) == null || P.animate("style", !1).when(1, { text: G(M, 3) }).start();
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 M = k.offsetY - T;
216
- if (M !== 0) {
217
- const V = n == null ? void 0 : n.convertFromPixel({ yAxisIndex: 0 }, M + p), d = {
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: G(V, 3),
220
- featureId: h,
219
+ warnPrice: J(B, 3),
220
+ featureId: m,
221
221
  //品种id
222
222
  featureCode: e,
223
223
  //品种代码
224
- featureType: b
224
+ featureType: f
225
225
  //品种类型
226
226
  };
227
- await Me(d), ie.success("画线预警修改成功"), g && g();
227
+ await Se(c), se.success("画线预警修改成功"), v && v();
228
228
  }
229
229
  }
230
230
  }
231
231
  ];
232
232
  }, []);
233
- }, at = { class: "kline-tips" }, rt = /* @__PURE__ */ he({
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
- return (R, A) => (E(), O("div", at, [
244
- (E(!0), O(le, null, me(n.data, (D, g) => (E(), O("div", {
245
- key: g,
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: ye({ color: D.color })
248
- }, ce(D.label) + " " + ce(D.value), 5))), 128))
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 pe = /* @__PURE__ */ ee(rt, [["__scopeId", "data-v-f83b6b36"]]);
253
- const it = { class: "kline-tips" }, lt = {
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: R, formatValue: A } = ge, D = n, g = J(() => {
268
- const { data: h, activeIndex: b } = D;
269
- if (h.data && h.data[b]) {
270
- const s = h.data[b], x = [
271
- { label: "开", value: s[0] },
272
- { label: "高", value: s[3] },
273
- { label: "低", value: s[2] },
274
- { label: "收", value: s[1] }
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
- s[4] !== null && x.push({ label: "额", value: A(s[4]) });
288
+ i[4] !== null && _.push({ label: "额", value: S(i[4]) });
277
289
  let Y;
278
- return s[6] > 0 ? Y = "red" : s[6] < 0 && (Y = "green"), x.push({ label: "涨跌", value: `${R(s[6])}%`, color: Y }), x;
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 = J(() => {
282
- var s;
283
- const { data: h, activeIndex: b } = D;
284
- return ((s = h == null ? void 0 : h.mainIndicator) == null ? void 0 : s.map((x) => ({ label: x.key, value: R(x.data[b]), color: x.color }))) || [];
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 (h, b) => (E(), O("div", it, [
287
- B(pe, { data: g.value }, null, 8, ["data"]),
288
- B(pe, { data: e.value }, null, 8, ["data"])
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
- }, st = /* @__PURE__ */ ee(lt, [["__scopeId", "data-v-ffa125ec"]]);
292
- const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
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
- }, ft = {
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: R, emit: A }) {
312
- const { round: D } = ge;
313
- let g, e;
314
- const h = A, b = n, s = F(), x = J({
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 b.modelValue;
347
+ return f.modelValue;
317
348
  },
318
349
  set(a) {
319
- h("update:modelValue", a);
350
+ m("update:modelValue", a);
320
351
  }
321
- }), Y = J(() => {
322
- var p;
323
- const { data: a, activeIndex: _ } = b;
324
- return ((p = a == null ? void 0 : a.subIndicator) == null ? void 0 : p.map((T) => ({ label: T.key, color: T.color, value: T.data[_] || "-" }))) || [];
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
- _e(() => {
327
- g = fe.init(s.value);
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
- g.resize();
335
- }), e.observe(s.value);
336
- }), we(() => {
337
- g.dispose(), e.disconnect(), e = null;
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 p = a[_], T = _ === 0 ? a[_] : a[_ - 1];
341
- return p[0] === p[1] ? p[0] >= T[1] ? {
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
- } : p[1] > p[0] ? {
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 R({
384
+ return M({
354
385
  connect: (a) => {
355
- fe.connect([a, g]);
386
+ me.connect([a, v]);
356
387
  },
357
388
  // 联动
358
- draw: (a, _) => {
359
- De(() => {
360
- const { startValue: p, endValue: T, maxValueSpan: k } = a, { leftYAxisRange: P, rightYAxisRange: M } = b.data.subIndicator[0], V = b.data.subIndicator.map((d) => {
361
- if (d.series === "bar")
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: d.data.map((N, C) => d.seriesColor === "kline" ? {
400
+ data: c.data.map((N, C) => c.seriesColor === "kline" ? {
370
401
  value: N,
371
- itemStyle: r(b.data.data, C)
372
- } : d.seriesColor === "value" ? {
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: d.seriesColor
411
+ color: c.seriesColor
381
412
  }
382
413
  })
383
414
  };
384
- if (d.series === "line")
415
+ if (c.series === "line")
385
416
  return {
386
417
  xAxisIndex: 0,
387
- yAxisIndex: d.yAxis === "right" ? 2 : 1,
388
- name: d.key,
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: d.data,
423
+ data: c.data,
393
424
  lineStyle: {
394
425
  width: 1
395
426
  },
396
427
  itemStyle: {
397
- color: d.color
428
+ color: c.color
398
429
  }
399
430
  };
400
431
  });
401
- g.setOption(
432
+ v.setOption(
402
433
  {
403
434
  animation: !1,
404
435
  grid: {
405
- left: `${_.gridLeft}px`,
436
+ left: `${w.gridLeft}px`,
406
437
  top: "10px",
407
- right: `${_.gridRight}px`,
438
+ right: `${w.gridRight}px`,
408
439
  bottom: "20px"
409
440
  },
410
441
  dataZoom: [
411
442
  {
412
443
  type: "inside",
413
- startValue: p,
414
- endValue: T,
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: (d) => {
427
- const { axisDimension: N, value: C } = d;
457
+ formatter: (c) => {
458
+ const { axisDimension: N, value: C } = c;
428
459
  if (N === "x")
429
- return ["6", "7", "8"].includes(b.cycle) ? u(C).format("YYYY-MM-DD") : C;
430
- if (d.axisIndex === 1)
431
- return String(D(C));
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: b.data.time,
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: (d) => ["6", "7", "8"].includes(b.cycle) ? u(d).format("YYYY-MM-DD") : d
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" ? (d) => d.min : null,
457
- max: P === "cover" ? (d) => d.max : null,
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: M === "cover" ? (d) => d.min : null,
473
- max: M === "cover" ? (d) => d.max : null,
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: V
517
+ series: B
487
518
  },
488
519
  !0
489
520
  );
490
521
  });
491
522
  }
492
523
  // 重置
493
- }), (a, _) => {
494
- const p = je, T = Ze;
495
- return E(), O("div", ut, [
496
- U("div", dt, [
497
- Y.value.length ? (E(), O("div", ct, [
498
- B(T, {
499
- modelValue: x.value,
500
- "onUpdate:modelValue": _[0] || (_[0] = (k) => x.value = k),
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
- (E(!0), O(le, null, me(n.subIndicatorList, (k) => (E(), ke(p, {
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
- ])) : X("", !0),
515
- B(pe, { data: Y.value }, null, 8, ["data"])
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: s
551
+ ref: i
521
552
  }, null, 512)
522
553
  ]);
523
554
  };
524
555
  }
525
- }, pt = /* @__PURE__ */ ee(ft, [["__scopeId", "data-v-ab519de5"]]), mt = /* @__PURE__ */ he({
556
+ }, yt = /* @__PURE__ */ X(mt, [["__scopeId", "data-v-7ec4c8cf"]]), gt = /* @__PURE__ */ ye({
526
557
  __name: "index",
527
558
  emits: ["closeContextMenuCallBack"],
528
- setup(n, { emit: R }) {
529
- const A = R, D = F(), g = F(), e = F({
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
- }), h = () => {
534
- e.value.display = "none", A("closeContextMenuCallBack"), document.removeEventListener("click", h);
535
- }, b = (s) => {
536
- if (s.preventDefault(), e.value.display === "block") {
537
- const { offsetX: x, offsetY: Y } = s, { offsetWidth: r, offsetHeight: a } = g.value;
538
- if (x <= r && Y <= a)
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
- D.value.click(), e.value = {
572
+ x.value.click(), e.value = {
542
573
  display: "block",
543
- top: `${s.offsetY}px`,
544
- left: `${s.offsetX}px`
545
- }, De(() => {
546
- const x = D.value.getBoundingClientRect(), Y = g.value.getBoundingClientRect();
547
- Y.left + Y.width >= x.right && (e.value.left = `${s.offsetX - Y.width}px`), Y.top + Y.height >= x.bottom && (console.log("高度超出"), e.value.top = `${s.offsetY - Y.height}px`);
548
- }), document.addEventListener("click", h);
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 (s, x) => (E(), O("div", {
581
+ return (i, _) => (A(), E("div", {
551
582
  ref_key: "contextmenuRef",
552
- ref: D,
583
+ ref: x,
553
584
  class: "contextmenu",
554
- onContextmenu: b,
555
- onMouseleave: h
585
+ onContextmenu: f,
586
+ onMouseleave: m
556
587
  }, [
557
- Ye(s.$slots, "default", {}, void 0, !0),
558
- e.value.display !== "none" ? (E(), O("div", {
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: g,
592
+ ref: v,
562
593
  class: "contextmenu-popover",
563
- style: ye(e.value)
594
+ style: ce(e.value)
564
595
  }, [
565
- Ye(s.$slots, "popover", {}, void 0, !0)
566
- ], 4)) : X("", !0)
596
+ _e(i.$slots, "popover", {}, void 0, !0)
597
+ ], 4)) : G("", !0)
567
598
  ], 544));
568
599
  }
569
600
  });
570
- const yt = /* @__PURE__ */ ee(mt, [["__scopeId", "data-v-811db6b4"]]);
571
- const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klineBasic-tips" }, vt = {
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
- }, bt = {
605
+ }, ht = {
575
606
  key: 1,
576
607
  class: "klineBasic-empty"
577
- }, xt = {
608
+ }, _t = {
578
609
  key: 2,
579
610
  class: "klineBasic-error"
580
- }, Yt = /* @__PURE__ */ Se(() => /* @__PURE__ */ U("div", { class: "klineBasic-error-content" }, "加载失败,请刷新重试", -1)), ht = { style: { "text-align": "center" } }, _t = /* @__PURE__ */ Se(() => /* @__PURE__ */ U("span", { style: { "margin-right": "10px" } }, "预警价格:", -1)), wt = { class: "dialog-footer" }, Dt = {
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: R, emit: A }) {
649
- const D = [{ label: "画线预警", key: "drawWarningLine" }];
650
- let g = null, e = null, h, b, s = !1, x = !1;
651
- const Y = A, r = n, a = F(!1), _ = F(!1), p = F(!1), T = F(null), k = F(null), P = F("VOL"), M = F(0), V = F({}), d = F([]), N = F({}), C = F(!1), te = F(""), se = F([...D]), H = J(() => ({
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
- We(
705
+ we(
675
706
  () => {
676
- var i, t;
677
- return [r.variety, r.cycle, r.mainIndicator, P.value, (i = r.indicatorStore) == null ? void 0 : i.filterIndicator, (t = r.indicatorStore) == null ? void 0 : t.customIndicator];
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
- ue();
711
+ fe();
681
712
  },
682
713
  { deep: !0 }
683
- ), _e(() => {
684
- Xe(r.env), ue(), window.addEventListener("keydown", ve);
685
- }), we(() => {
686
- e == null || e.off("datazoom"), e == null || e.off("highlight"), e == null || e.off("globalout"), e == null || e.dispose(), g == null || g.dispose(), window.removeEventListener("keydown", ve);
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 Le = () => {
689
- e || (e = fe.init(T.value), Te(), H.value.showSubChart && k.value.connect(e), g = He(T.value), g.listen(() => {
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
- }, ve = ({ code: i, ctrlKey: t }) => {
725
+ }, be = ({ code: l, ctrlKey: t }) => {
695
726
  if (!(t || a.value))
696
727
  return;
697
- const { xAxis: m, dataZoom: c } = e.getOption(), { data: f } = (m == null ? void 0 : m[0]) ?? { data: [] };
698
- let { startValue: o, endValue: l } = (c == null ? void 0 : c[0]) ?? {};
699
- if (f != null && f.length) {
700
- switch (i) {
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 (l - o < 5)
733
+ if (s - o < 5)
703
734
  return;
704
- const w = Math.floor((l - o) / 2) + 1;
705
- o = o + w, l - o < 5 && (o = l - 4);
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 w = Math.min(500, l - o);
710
- o = o - w - 1;
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, l -= 1), M.value > 0 && (M.value -= 1);
745
+ o > 0 && (o -= 1, s -= 1), L.value > 0 && (L.value -= 1);
715
746
  break;
716
747
  }
717
748
  case "ArrowRight": {
718
- l < f.length - 1 && (o += 1, l += 1), a.value && M.value < f.length - 1 && (M.value += 1);
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: l
756
+ endValue: s
726
757
  }), e.dispatchAction({
727
758
  type: "updateAxisPointer",
728
759
  seriesIndex: 0,
729
- dataIndex: a.value ? M.value : null
760
+ dataIndex: a.value ? L.value : null
730
761
  }), e.dispatchAction({
731
762
  type: "highlight",
732
- dataIndex: a.value ? M.value : l
763
+ dataIndex: a.value ? L.value : s
733
764
  });
734
765
  }
735
- }, Te = () => {
766
+ }, Ae = () => {
736
767
  e == null || e.on("datazoom", (t) => {
737
- clearTimeout(b), b = setTimeout(() => {
738
- var c, f, o, l;
739
- const { loadCheckCounts: m } = H.value;
740
- if ((f = (c = e == null ? void 0 : e.getOption()) == null ? void 0 : c.dataZoom) != null && f[0]) {
741
- const { startValue: w } = (l = (o = e == null ? void 0 : e.getOption()) == null ? void 0 : o.dataZoom) == null ? void 0 : l[0];
742
- w < m && s === !1 && x === !1 && (s = !0, Fe("history")), ne();
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(b);
775
+ clearTimeout(f);
745
776
  }, 100);
746
777
  }), e == null || e.on("highlight", (t) => {
747
- var c, f;
748
- let m = t.dataIndex || -1;
749
- t.batch && (m = typeof ((c = t == null ? void 0 : t.batch[0]) == null ? void 0 : c.dataIndex) == "number" ? (f = t == null ? void 0 : t.batch[0]) == null ? void 0 : f.dataIndex : -1), clearTimeout(h), h = setTimeout(() => {
750
- M.value = m, clearTimeout(h);
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 m, c, f;
754
- const t = (f = (c = (m = e == null ? void 0 : e.getOption()) == null ? void 0 : m.dataZoom) == null ? void 0 : c[0]) == null ? void 0 : f.endValue;
755
- M.value = t;
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 i = null;
788
+ let l = null;
758
789
  e == null || e.on("contextmenu", (t) => {
759
- i = setTimeout(() => {
760
- t.componentType === "graphic" && (N.value = t.info, se.value = [
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(i), i = null;
794
+ ]), clearTimeout(l), l = null;
764
795
  });
765
796
  });
766
- }, ue = async () => {
767
- var i, t, m, c, f, o;
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: l, featureId: w, cycle: S, indicatorStore: v, mainIndicator: q, right: z, startTime: j, endTime: L } = r, { defaultShowCounts: I, addCounts: y, showWarningLine: de, getFactorData: ae } = H.value, $ = {
772
- variety: l,
773
- featureId: w,
774
- cycle: S,
775
- mainIndicatorList: v.getIndicatorParams(q),
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: de,
779
- getFactorData: ae
809
+ showWarningLine: pe,
810
+ getFactorData: le
780
811
  };
781
- j && L ? ($.startTime = j, $.endTime = L) : j ? ($.startTime = j, $.limit = I + y) : L ? ($.endTime = L, $.limit = I + y) : ($.endTime = u().add(1, "hour").format("YYYY-MM-DD HH:mm:ss"), $.limit = I + y);
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 ((m = (t = (i = W == null ? void 0 : W.body) == null ? void 0 : i.kline) == null ? void 0 : t.time) != null && m.length)
784
- _.value = !1, p.value = !1;
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
- _.value = !0, p.value = !1;
817
+ w.value = !0, y.value = !1;
787
818
  return;
788
819
  }
789
- V.value = (c = W == null ? void 0 : W.body) == null ? void 0 : c.kline, d.value = ((f = W == null ? void 0 : W.body) == null ? void 0 : f.warningLine) || [], be(), ne(), ae && Y("getFactorData", (o = W == null ? void 0 : W.body) == null ? void 0 : o.factor);
790
- } catch (l) {
791
- throw p.value = !0, _.value = !1, new Error(l);
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 (i) => {
794
- const { variety: t, cycle: m, indicatorStore: c, mainIndicator: f, right: o } = r, { addCounts: l } = H.value, { time: w } = V.value;
795
- if (i === "history") {
796
- const S = await Je({
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: m,
799
- endTime: w[0],
800
- limit: l,
801
- mainIndicatorList: c.getIndicatorParams(f),
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
- V.value = {
806
- time: [...S.body.time, ...V.value.time.slice(1)],
807
- data: [...S.body.data, ...V.value.data.slice(1)],
808
- mainIndicator: V.value.mainIndicator.map((v, q) => {
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
- ...v,
812
- data: [...((z = S.body.mainIndicator[q]) == null ? void 0 : z.data) ?? [], ...v.data.slice(1)]
842
+ ...h,
843
+ data: [...((z = F.body.mainIndicator[q]) == null ? void 0 : z.data) ?? [], ...h.data.slice(1)]
813
844
  };
814
845
  }),
815
- subIndicator: V.value.subIndicator.map((v, q) => {
846
+ subIndicator: B.value.subIndicator.map((h, q) => {
816
847
  var z;
817
848
  return {
818
- ...v,
819
- data: [...((z = S.body.subIndicator[q]) == null ? void 0 : z.data) ?? [], ...v.data.slice(1)]
849
+ ...h,
850
+ data: [...((z = F.body.subIndicator[q]) == null ? void 0 : z.data) ?? [], ...h.data.slice(1)]
820
851
  };
821
852
  })
822
- }, be(!0), S.body.data.length < l && (x = !0), s = !1;
853
+ }, xe(!0), F.body.data.length < s && (_ = !0), i = !1;
823
854
  }
824
- }, be = (i = !1) => {
855
+ }, xe = (l = !1) => {
825
856
  var q, z, j;
826
- Le();
827
- const { time: t } = V.value, { gridRight: m, gridLeft: c, defaultShowCounts: f, maxShowCounts: o, showSubChart: l } = H.value;
828
- let w = t.length - 1 - f, S = t.length - 1;
829
- if (i) {
830
- const L = e.getOption(), I = (z = (q = L == null ? void 0 : L.xAxis) == null ? void 0 : q[0]) == null ? void 0 : z.data, y = (j = L == null ? void 0 : L.dataZoom) == null ? void 0 : j[0], de = I[y == null ? void 0 : y.startValue], ae = I[y == null ? void 0 : y.endValue];
831
- w = t.findIndex(($) => $ === de), S = t.findIndex(($) => $ === ae);
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 v = nt(V.value, H.value, w, S, r.cycle);
834
- if (e.setOption(v, !0), M.value = S, r.brushRange) {
835
- let L = null, I = null;
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
- L = t.find((y) => new Date(y).getTime() >= new Date(r.brushRange[0]).getTime() || u(y).format("YYYY-MM-DD") === u(r.brushRange[0]).format("YYYY-MM-DD")), I = t.findLast((y) => new Date(y).getTime() <= new Date(r.brushRange[1]).getTime() || u(y).format("YYYY-MM-DD") === u(r.brushRange[1]).format("YYYY-MM-DD"));
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
- L = t.find((y) => u(y).day(5).format("YYYY-MM-DD") === u(r.brushRange[0]).day(5).format("YYYY-MM-DD")), I = t.findLast((y) => u(y).day(5).format("YYYY-MM-DD") === u(r.brushRange[1]).day(5).format("YYYY-MM-DD"));
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
- L = t.find((y) => u(y).endOf("month").format("YYYY-MM-DD") === u(r.brushRange[0]).endOf("month").format("YYYY-MM-DD")), I = t.findLast((y) => u(y).endOf("month").format("YYYY-MM-DD") === u(r.brushRange[1]).endOf("month").format("YYYY-MM-DD"));
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
- L = t.find((y) => new Date(y).getTime() >= new Date(r.brushRange[0]).getTime()), I = t.findLast((y) => new Date(y).getTime() <= new Date(r.brushRange[1]).getTime());
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(L, I), e.dispatchAction({
883
+ console.log(R, O), e.dispatchAction({
853
884
  type: "brush",
854
885
  areas: [
855
886
  {
856
887
  brushType: "lineX",
857
- coordRange: [L, I],
888
+ coordRange: [R, O],
858
889
  xAxisIndex: 0
859
890
  }
860
891
  ]
861
892
  });
862
893
  }
863
- l && k.value.draw({ startValue: w, endValue: S, maxValueSpan: o }, { gridLeft: c, gridRight: m }), xe();
864
- }, ne = () => {
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 i = e == null ? void 0 : e.getOption();
868
- i && (e == null || e.setOption(
898
+ const l = e == null ? void 0 : e.getOption();
899
+ l && (e == null || e.setOption(
869
900
  {
870
- ...i,
901
+ ...l,
871
902
  graphic: [
872
- ...ot(e, d.value, r, H.value, () => {
873
- oe();
903
+ ...ot(e, c.value, r, H.value, () => {
904
+ re();
874
905
  })
875
906
  ]
876
907
  },
877
908
  !0
878
- ), xe());
879
- }, xe = () => {
880
- const { time: i } = V.value;
881
- if (r.brushRange && (i != null && i.length)) {
882
- let t = u(r.brushRange[0]).format("YYYY-MM-DD 00:00:00"), m = u(r.brushRange[1]).format("YYYY-MM-DD 23:59:59"), c = null, f = null;
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
- c = i.find((o) => u(o).format("YYYY-MM-DD") === u(t).format("YYYY-MM-DD")), f = c;
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
- c = i.find((o) => u(o).day(5).format("YYYY-MM-DD") === u(t).day(5).format("YYYY-MM-DD")), f = i.findLast((o) => u(o).day(5).format("YYYY-MM-DD") === u(m).day(5).format("YYYY-MM-DD"));
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
- c = i.find((o) => u(o).endOf("month").format("YYYY-MM-DD") === u(t).endOf("month").format("YYYY-MM-DD")), f = i.findLast((o) => u(o).endOf("month").format("YYYY-MM-DD") === u(m).endOf("month").format("YYYY-MM-DD"));
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
- c = i.find((o) => {
898
- const l = u(o).format("YYYY-MM-DD") === u(t).format("YYYY-MM-DD"), w = new Date(o).getTime() >= new Date(t).getTime();
899
- return l && w;
900
- }), f = i.findLast((o) => {
901
- const l = u(o).format("YYYY-MM-DD") === u(m).format("YYYY-MM-DD"), w = new Date(o).getTime() <= new Date(m).getTime();
902
- return l && w;
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: [c, f],
941
+ coordRange: [d, p],
911
942
  xAxisIndex: 0
912
943
  }
913
944
  ]
914
945
  });
915
946
  }
916
- }, oe = async () => {
917
- const i = await et({ featureId: r.featureId });
918
- d.value = (i == null ? void 0 : i.body) || [], ne(), Y("change", "warningLine", d.value);
919
- }, Re = async (i) => {
920
- const { variety: t, varietyName: m, featureId: c, featureType: f } = r;
921
- if (i.key === "drawWarningLine") {
922
- const o = e == null ? void 0 : e.getOption(), l = o.tooltip[0];
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
- ...l,
958
+ ...s,
928
959
  // 坐标轴指示器
929
960
  axisPointer: {
930
961
  // 保留原有部分配置
931
- ...l.axisPointer,
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
- ...l.axisPointer.label,
974
+ ...s.axisPointer.label,
944
975
  // 颜色改为透明
945
976
  backgroundColor: "transparent",
946
977
  // 仅显示Y轴值
947
- formatter: (S) => ""
978
+ formatter: (F) => ""
948
979
  }
949
980
  }
950
981
  }
951
982
  });
952
- const w = async (S) => {
953
- e == null || e.getZr().off("mousedown", w);
954
- const v = e == null ? void 0 : e.convertFromPixel({ yAxisIndex: 0 }, S.offsetY), q = Math.round(v * 1e3) / 1e3;
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
- ...l,
990
+ ...s,
960
991
  axisPointer: {
961
- ...l.axisPointer,
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
- ...l.axisPointer.label,
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: m,
1008
+ featureName: g,
978
1009
  //品种名称
979
- featureId: c,
1010
+ featureId: d,
980
1011
  //品种id
981
- featureType: f,
1012
+ featureType: p,
982
1013
  //品种类型
983
1014
  warnPrice: q
984
- }), ie.success("画线预警成功!"), oe();
1015
+ }), se.success("画线预警成功!"), re();
985
1016
  };
986
- e == null || e.getZr().on("mousedown", w);
1017
+ e == null || e.getZr().on("mousedown", D);
987
1018
  } else
988
- i.key === "deleteWarningLine" ? (await tt({ id: N.value.id }), ie.success("画线预警删除成功"), oe()) : i.key === "changeWarningLine" && (C.value = !0, te.value = N.value.warnPrice);
989
- }, Ae = async () => {
990
- const { variety: i, varietyName: t, featureId: m, featureType: c } = r;
991
- await Me({
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: i,
1024
+ featureCode: l,
994
1025
  //品种代码
995
1026
  featureName: t,
996
1027
  //品种名称
997
- featureId: m,
1028
+ featureId: g,
998
1029
  //品种id
999
- featureType: c,
1030
+ featureType: d,
1000
1031
  //品种类型
1001
- warnPrice: te.value
1002
- }), ie.success("画线预警修改成功"), oe();
1003
- }, Ve = () => {
1004
- se.value = [...D];
1032
+ warnPrice: oe.value
1033
+ }), se.success("画线预警修改成功"), re();
1034
+ }, Ee = () => {
1035
+ de.value = [...x];
1005
1036
  };
1006
- return R({
1007
- draw: (i, t) => {
1008
- i === "warningLine" && (d.value = t, ne());
1037
+ return M({
1038
+ draw: (l, t) => {
1039
+ l === "warningLine" && (c.value = t, ae());
1009
1040
  }
1010
- }), (i, t) => {
1011
- var S;
1012
- const m = $e, c = Pe, f = Ie, o = Oe, l = Be, w = Ee;
1013
- return E(), O(le, null, [
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] = (v) => a.value = !0),
1017
- onMouseout: t[2] || (t[2] = (v) => a.value = !1)
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", gt, [
1020
- B(st, {
1021
- data: V.value,
1022
- activeIndex: M.value
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: ye({ height: H.value.showSubChart ? "70%" : "100%" })
1058
+ style: ce({ height: H.value.showSubChart ? "70%" : "100%" })
1028
1059
  }, [
1029
- B(yt, { onCloseContextMenuCallBack: Ve }, {
1060
+ I(vt, { onCloseContextMenuCallBack: Ee }, {
1030
1061
  popover: K(() => [
1031
- B(c, { style: {
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
- (E(!0), O(le, null, me(se.value, (v) => (E(), ke(m, {
1069
+ (A(!0), E(Q, null, ue(de.value, (h) => (A(), Me(g, {
1039
1070
  style: { height: "36px" },
1040
- key: v.key,
1041
- index: v.key,
1042
- onClick: (q) => Re(v)
1071
+ key: h.key,
1072
+ index: h.key,
1073
+ onClick: (q) => Re(h)
1043
1074
  }, {
1044
1075
  default: K(() => [
1045
- re(ce(v.label), 1)
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: T,
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 ? (E(), O("div", vt, [
1064
- B(pt, {
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] = (v) => P.value = v),
1069
- data: V.value,
1099
+ "onUpdate:modelValue": t[0] || (t[0] = (h) => P.value = h),
1100
+ data: B.value,
1070
1101
  cycle: n.cycle,
1071
- activeIndex: M.value,
1072
- subIndicatorList: (S = n.indicatorStore) == null ? void 0 : S.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
- ])) : X("", !0),
1075
- _.value ? (E(), O("div", bt, [
1076
- B(f, {
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
- ])) : X("", !0),
1081
- p.value ? (E(), O("div", xt, [
1111
+ ])) : G("", !0),
1112
+ y.value ? (A(), E("div", _t, [
1082
1113
  Yt,
1083
- U("div", ht, [
1084
- B(o, { onClick: ue }, {
1114
+ U("div", wt, [
1115
+ I(o, { onClick: fe }, {
1085
1116
  default: K(() => [
1086
- re("刷新")
1117
+ ie("刷新")
1087
1118
  ]),
1088
1119
  _: 1
1089
1120
  })
1090
1121
  ])
1091
- ])) : X("", !0)
1122
+ ])) : G("", !0)
1092
1123
  ], 32),
1093
- B(w, {
1124
+ I(D, {
1094
1125
  modelValue: C.value,
1095
- "onUpdate:modelValue": t[5] || (t[5] = (v) => C.value = v),
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", wt, [
1102
- B(o, {
1103
- onClick: t[4] || (t[4] = (v) => C.value = !1)
1132
+ U("span", kt, [
1133
+ I(o, {
1134
+ onClick: t[4] || (t[4] = (h) => C.value = !1)
1104
1135
  }, {
1105
1136
  default: K(() => [
1106
- re("取消")
1137
+ ie("取消")
1107
1138
  ]),
1108
1139
  _: 1
1109
1140
  }),
1110
- B(o, {
1141
+ I(o, {
1111
1142
  type: "primary",
1112
- onClick: Ae
1143
+ onClick: Ve
1113
1144
  }, {
1114
1145
  default: K(() => [
1115
- re("确定")
1146
+ ie("确定")
1116
1147
  ]),
1117
1148
  _: 1
1118
1149
  })
1119
1150
  ])
1120
1151
  ]),
1121
1152
  default: K(() => [
1122
- _t,
1123
- B(l, {
1124
- modelValue: te.value,
1125
- "onUpdate:modelValue": t[3] || (t[3] = (v) => te.value = v),
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
- }, kt = /* @__PURE__ */ ee(Dt, [["__scopeId", "data-v-9e6456be"]]), sn = {
1165
+ }, St = /* @__PURE__ */ X(Mt, [["__scopeId", "data-v-9e6456be"]]), cn = {
1135
1166
  install(n) {
1136
- n.component("st-klineBasic", kt);
1167
+ n.component("st-klineBasic", St);
1137
1168
  }
1138
1169
  };
1139
1170
  export {
1140
- sn as default
1171
+ cn as default
1141
1172
  };