From 17a9663a92425787bf2c0f1e8f5360d4e8dbf3f9 Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期三, 07 四月 2021 15:28:32 +0800
Subject: [PATCH] 弹框修改
---
src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue | 25 +++++++++++++------------
1 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue b/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue
index 2b0e353..51d41e4 100644
--- a/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue
+++ b/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue
@@ -37,15 +37,10 @@
data () {
return {
watchData: [],
- dialogVisible: false
- }
- },
- methods: {
- drawChart: function () {
- const myChart = this.$echarts.init(this.$refs.main)
- const option = {
+ dialogVisible: false,
+ options: {
title: {
- // text: '鎶樼嚎鍥惧爢鍙�'
+ // text: '鎶樼嚎鍥惧爢鍙�'
},
color: ['#5470c6', '#91CC75', '#EE6666', '#FF0087'],
tooltip: {
@@ -84,9 +79,9 @@
color: '#00d0f9'
}
}]
- // pageTextStyle: {
- // color: '#fff'
- // }
+ // pageTextStyle: {
+ // color: '#fff'
+ // }
},
grid: {
left: '3%',
@@ -199,7 +194,13 @@
}
]
}
- myChart.setOption(option)
+ }
+ },
+ methods: {
+ drawChart: function () {
+ const myChart = this.$echarts.init(this.$refs.main)
+ // const option = {}
+ myChart.setOption(this.options)
}
},
mounted () {
--
Gitblit v1.8.0