From 9268216bd60942e53fb42b1b7e88c7ae78fa92d2 Mon Sep 17 00:00:00 2001
From: wangqi <magical1908@outlook.com>
Date: 星期二, 13 四月 2021 11:09:57 +0800
Subject: [PATCH] 废气图表

---
 src/components/BaseNav/PublicBounced/GasComponents/PublicChart.vue |   60 ++++++++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 42 insertions(+), 18 deletions(-)

diff --git a/src/components/BaseNav/PublicBounced/GasComponents/PublicChart.vue b/src/components/BaseNav/PublicBounced/GasComponents/PublicChart.vue
index 7a6739f..1c442fd 100644
--- a/src/components/BaseNav/PublicBounced/GasComponents/PublicChart.vue
+++ b/src/components/BaseNav/PublicBounced/GasComponents/PublicChart.vue
@@ -8,8 +8,16 @@
             <li @click='tabTaggle("ECharts")'>瀹炴椂鏁版嵁</li>
             <li @click='tabTaggle("EChartsHour")'>灏忔椂鏁版嵁</li>
             <li @click='tabTaggle("EChartsDate")'>鏃ユ暟鎹�</li>
-            <li @click='tabTaggle("ECharts")'>浜哄伐鏁版嵁</li>
+            <li @click='tabTaggle("EChartsDate")'>浜哄伐鏁版嵁</li>
         </ul>
+        <div class="legend" >
+            <span >姝e父</span>
+            <i style=" background: #4ec99c;"></i>
+            <span >棰勮</span>
+            <i style=" background: red;"></i>
+            <span >瓒呮爣</span>
+            <i style=" background: orange;"></i>
+        </div>
         <component :is="currentTab" v-bind="$attrs"></component>
     </div>
 </template>
@@ -17,12 +25,14 @@
 <script>
 import EChartsHour from './EChartsHour'
 import EChartsDate from './EChartsDate'
+import ECharts from './Echarts'
 
 export default {
   name: 'PublicChart',
   components: {
     EChartsHour,
-    EChartsDate
+    EChartsDate,
+    ECharts
   },
   data () {
     return {
@@ -35,22 +45,20 @@
       // debugger
     }
   }
+  // created () {
+  //   this.$refs.CreateChart
+  // }
 }
 
 </script>
 
-<style scoped>
-* {
-  margin: 0;
-  padding: 0;
-  list-style: none;
-}
-
+<style scoped lang="less">
 .win {
   position: relative;
-  margin-bottom: 13px;
-  background-color: rgba(33, 41, 69, 0.9);
+  /*margin-bottom: 13px;*/
+  background:@background-color;
   border: 0.8px solid #396d83;
+  /*height: 1.5rem;*/
 }
 
 .border_corner {
@@ -93,23 +101,39 @@
 .tab {
   display: flex;
   border-bottom: 1px solid #396d83;
-  margin-bottom: 10px;
+    padding:5px 10px
 }
 
-li {
+.tab li {
   background-color: #243a55;
-  margin: 10px 10px 2px 10px;
-  /*padding: 5px 10px;*/
-  width: 90px;
-  height: 25px;
   line-height: 25px;
   text-align: center;
   border-radius: 5px;
+    margin-right: 10px;
+    padding:0 15px
 }
 
-ul li:hover {
+.tab li:hover {
   background-color: #0e639e;
   color: #682000;
   cursor: pointer;
 }
+.legend{
+    position: absolute;
+    top:10px;
+    right: 0;
+    display: flex;
+    justify-items: center;
+}
+.legend i {
+    display: block;
+    width: 35px;
+    height: 15px;
+    margin:0 10px 0 3px;
+    border-radius: 3px;
+}
+.legend span{
+    line-height: 15px;
+}
+
 </style>

--
Gitblit v1.8.0