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 | 28 ++++++++++++++++------------ 1 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue b/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue index 5ab9de8..51d41e4 100644 --- a/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue +++ b/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue @@ -36,15 +36,11 @@ }, data () { return { - dialogVisible: false - } - }, - methods: { - drawChart: function () { - const myChart = this.$echarts.init(this.$refs.main) - const option = { + watchData: [], + dialogVisible: false, + options: { title: { - // text: '鎶樼嚎鍥惧爢鍙�' + // text: '鎶樼嚎鍥惧爢鍙�' }, color: ['#5470c6', '#91CC75', '#EE6666', '#FF0087'], tooltip: { @@ -83,9 +79,9 @@ color: '#00d0f9' } }] - // pageTextStyle: { - // color: '#fff' - // } + // pageTextStyle: { + // color: '#fff' + // } }, grid: { left: '3%', @@ -198,11 +194,19 @@ } ] } - myChart.setOption(option) + } + }, + methods: { + drawChart: function () { + const myChart = this.$echarts.init(this.$refs.main) + // const option = {} + myChart.setOption(this.options) } }, mounted () { this.drawChart() + const dataWatch = JSON.parse(JSON.stringify(this.$attrs)) + console.log(dataWatch) } } </script> -- Gitblit v1.8.0