From e5f105b1acb3c63df8aac97ce1c67ad070c0de2d Mon Sep 17 00:00:00 2001
From: wangqi <magical1908@outlook.com>
Date: 星期四, 15 四月 2021 11:03:21 +0800
Subject: [PATCH] 废气图标

---
 src/components/BaseNav/PublicBounced/common/PublicChart.vue |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/components/BaseNav/PublicBounced/common/PublicChart.vue b/src/components/BaseNav/PublicBounced/common/PublicChart.vue
index 7a01a8d..86445ef 100644
--- a/src/components/BaseNav/PublicBounced/common/PublicChart.vue
+++ b/src/components/BaseNav/PublicBounced/common/PublicChart.vue
@@ -24,7 +24,7 @@
             <span >瓒呮爣</span>
             <i style=" background: orange;"></i>
         </div>
-        <component :is="currentTab" v-bind="$attrs" ref="Echatrs"></component>
+        <component :is="currentTab" v-bind="$attrs" ref="Echats"></component>
     </div>
 </template>
 
@@ -51,16 +51,15 @@
     EChartsDateWasteWater,
     EChartsWasteWaterTable
   },
-  mounted () {
-    this.$refs.Echatrs.CreateChart()
-    this.$refs.Echatrs.effChartShow()
-  },
   data () {
     return {
       currentTab: this.current(),
-      active: '1'
+      active: '0'
     }
   },
+  // updated () {
+  //   this.$refs.Echats.DrawEXHRealTimeDateChart()
+  // },
   methods: {
     tabTaggle (taggleMenu, num) {
       this.currentTab = taggleMenu
@@ -69,9 +68,9 @@
     },
     current (currentTab) {
       if (this.$attrs.value === 'feishui') {
-        currentTab = 'EChartsHourWasteWater'
+        currentTab = 'EChartsRealWasteWater'
       } else {
-        currentTab = 'EChartsHour'
+        currentTab = 'ECharts'
       }
       return currentTab
     }
@@ -83,10 +82,8 @@
 <style scoped lang="less">
 .win {
   position: relative;
-  /*margin-bottom: 13px;*/
   background:@background-color;
   border: 0.8px solid #396d83;
-  /*height: 1.5rem;*/
 }
 
 .border_corner {
@@ -129,16 +126,17 @@
 .tab {
   display: flex;
   border-bottom: 1px solid #396d83;
-    padding:5px 10px
+    padding:0.02rem 0.04rem;
 }
 
 .tab li {
   background-color: #243a55;
-  line-height: 25px;
+  line-height:0.15rem;
+    height: 0.15rem;
   text-align: center;
   border-radius: 5px;
-    margin-right: 10px;
-    padding:0 15px
+    margin-right: 0.04rem;
+    padding:0 0.04rem;
 }
 .tab li.hover,
 .tab li:hover {
@@ -148,20 +146,22 @@
 }
 .legend{
     position: absolute;
-    top:10px;
+    top:0.05rem;
     right: 0;
     display: flex;
     justify-items: center;
 }
 .legend i {
     display: block;
-    width: 35px;
-    height: 15px;
-    margin:0 10px 0 3px;
-    border-radius: 3px;
+    width: 0.2rem;
+    height: 0.09rem;
+    margin:0 0.1rem 0 0.05rem;
+    border-radius: 0.02rem;
 }
 .legend span{
-    line-height: 15px;
+    line-height: 0.09rem;
+    height: 0.09rem;
+    font-size: 0.06rem;
 }
 
 </style>

--
Gitblit v1.8.0