From a94e89e2a85d05ce57853bbb0f6c6f0b6f7c536a Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期四, 08 四月 2021 11:22:25 +0800
Subject: [PATCH] 弹框问题修改

---
 src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue |   25 ++++++-------------------
 1 files changed, 6 insertions(+), 19 deletions(-)

diff --git a/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue b/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue
index d9f23bd..3a928e9 100644
--- a/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue
+++ b/src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue
@@ -21,7 +21,7 @@
           </div>
         </el-dialog>
       </div>
-      <div style="width:100%;height:1.2rem;margin-top:-0.3rem;position:absolute;" id="echarts" ref="main">
+      <div style="width:4.8rem;height:1rem;margin-top:-0.1rem;position:absolute;" id="echarts" ref="main">
       </div>
     </div>
   </div>
@@ -202,39 +202,26 @@
     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 () {
     this.$nextTick(() => {
       this.drawChart()
       const dataWatch = JSON.parse(JSON.stringify(this.$attrs.getWasteWaterMonitoring))
-      console.log(dataWatch)
+      // console.log(dataWatch)
       for (var i = 0; i < dataWatch.length; i++) {
         this.dataDate.push(dataWatch[i].MonTimeStr.substring(10, 17))
       }
-      console.log(this.dataDate)
+      // console.log(this.dataDate)
     })
   }
 }
 </script>
 
 <style scoped lang="less">
-#Tab {
-  height: 3rem;
-}
 .Infomation {
   margin-left: 10px;
+  height: 0.2rem;
 }
 
 .el-tag {
@@ -250,7 +237,7 @@
 
 .form-echrts {
   width: 100%;
-  height: 100%;
+  height: 1rem;
   border-top: 1px solid #396d83;
   //margin: 10px 10px 10px 10px;
   .el-dialog-div {
@@ -262,7 +249,7 @@
   #echarts {
     margin: 0;
     padding: 0;
-    height: 3rem;
+    //height: 3rem;
     //border: 1px solid #396d83;
     //margin: 10px 10px 10px 10px;
   }

--
Gitblit v1.8.0