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 | 31 +++++++++++++++++--------------
1 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue b/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue
index d3f6465..51d41e4 100644
--- a/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue
+++ b/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue
@@ -11,10 +11,12 @@
<el-button size="mini" round @click="dialogVisible = true">鏄庣粏琛�</el-button>
<el-dialog :visible.sync="dialogVisible"
:append-to-body="true"
- width="66%"
+ :title="this.$attrs.getWasteGasDetails[0].OnLineMonEmissPointName"
+ width="68%"
center
+ v-dialogDrag
>
- <div class="el-dialog-div" style="height: 600px">
+ <div class="el-dialog-div" style="height: 500px">
<public-detailed-list v-bind="$attrs"></public-detailed-list>
</div>
</el-dialog>
@@ -35,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: {
@@ -82,9 +79,9 @@
color: '#00d0f9'
}
}]
- // pageTextStyle: {
- // color: '#fff'
- // }
+ // pageTextStyle: {
+ // color: '#fff'
+ // }
},
grid: {
left: '3%',
@@ -197,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