From 229146483e520e49c3f39a7ff94753a46779babf Mon Sep 17 00:00:00 2001
From: zhangshuaibao <15731629597@163.com>
Date: 星期四, 08 四月 2021 11:19:32 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/develop' into develop

---
 src/components/BaseNav/PublicBounced/GasComponents/EChartsHour.vue |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/components/BaseNav/PublicBounced/GasComponents/EChartsHour.vue b/src/components/BaseNav/PublicBounced/GasComponents/EChartsHour.vue
index 49744bd..eb3c04f 100644
--- a/src/components/BaseNav/PublicBounced/GasComponents/EChartsHour.vue
+++ b/src/components/BaseNav/PublicBounced/GasComponents/EChartsHour.vue
@@ -232,6 +232,17 @@
     drawChart: function () {
       const myChart = this.$echarts.init(this.$refs.main)
       myChart.setOption(this.options)
+      window.onresize = function () {
+        var h1 = document.documentElement.clientHeight// 鑾峰彇灞忓箷鐨勯珮搴�
+        if (h1 > 700) {
+          myChart.getDom().style.height = 3 + 'rem'
+          myChart.getDom().style.width = 6 + 'rem'
+        } else {
+          myChart.getDom().style.height = 3 + 'rem'
+          myChart.getDom().style.width = 6 + 'rem'
+        }
+        myChart.resize()
+      }
     }
   },
   mounted () {

--
Gitblit v1.8.0