From 7789edecff9a058e3f6337e8da1ffebfff58d1fd Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期五, 06 十二月 2024 17:56:19 +0800
Subject: [PATCH] 1

---
 src/views/mdc/components/StationLiveSpeed.vue |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/views/mdc/components/StationLiveSpeed.vue b/src/views/mdc/components/StationLiveSpeed.vue
index d14a7bf..e26b21b 100644
--- a/src/views/mdc/components/StationLiveSpeed.vue
+++ b/src/views/mdc/components/StationLiveSpeed.vue
@@ -1,7 +1,7 @@
 <!--
  * @Date: 2024-04-18 21:52:18
- * @LastEditors: gaoshp
- * @LastEditTime: 2024-11-12 19:53:16
+ * @LastEditors: lzhe lzhe@example.com
+ * @LastEditTime: 2024-11-12 20:39:04
  * @FilePath: /cps-web/src/views/mdc/components/StationLiveSpeed.vue
 -->
 <template>
@@ -44,6 +44,7 @@
     },
     data() {
         return {
+            isspeed: false,
             input: '',
             option: {
                 graphic: {
@@ -130,9 +131,9 @@
             // this.showCharts(a,b,c);
         },
         showCharts(a, b, c) {
-            var myChartA = echarts.init(document.getElementById('c'));
-            var myChartB = echarts.init(document.getElementById('d'));
-            var myChartC = echarts.init(document.getElementById('e'));
+            var myChartA = echarts.init(this.$refs.c);
+            var myChartB = echarts.init(this.$refs.d);
+            var myChartC = echarts.init(this.$refs.e);
             var optionA = JSON.parse(JSON.stringify(this.option));
             var optionB = JSON.parse(JSON.stringify(this.option));
             var optionC = JSON.parse(JSON.stringify(this.option));

--
Gitblit v1.9.3