From a19ce43fb54c9d5e3aeb237ca3b2ca2f2abe0ba8 Mon Sep 17 00:00:00 2001
From: zhangshuaibao <15731629597@163.com>
Date: 星期三, 14 四月 2021 10:38:08 +0800
Subject: [PATCH] 废水图标完善

---
 src/components/BaseNav/PublicBounced/GasComponents/EChartsRealWasteWater.vue |  256 ++++++++++++++++++++++-----------------------------
 1 files changed, 111 insertions(+), 145 deletions(-)

diff --git a/src/components/BaseNav/PublicBounced/GasComponents/EChartsRealWasteWater.vue b/src/components/BaseNav/PublicBounced/GasComponents/EChartsRealWasteWater.vue
index 985c58e..fbd04d6 100644
--- a/src/components/BaseNav/PublicBounced/GasComponents/EChartsRealWasteWater.vue
+++ b/src/components/BaseNav/PublicBounced/GasComponents/EChartsRealWasteWater.vue
@@ -3,10 +3,10 @@
   <div id="Tab">
     <div class="animation">
       <div class="infomation">
-        <span class="grid-content">姘哀鍖栫墿 :<i>29.93</i>  鏍囧噯 : 100</span>
-        <span class="grid-content">浜屾哀鍖栫~ : <i>17.34</i> 鏍囧噯 : 50</span>
-        <span class="grid-content">鐑熷皹 : <i>6.93</i> 鏍囧噯 : 30</span>
-        <span class="grid-content">搴熸皵娴侀噺 : <i>120343.18</i></span>
+        <span class="grid-content">COD : <i style="color: #e8ee0b">11.24385</i> 鏍囧噯 : 50</span>
+        <span class="grid-content">姘哀 :<i style="color: #e8ee0b">0.1889014</i>  鏍囧噯 : 30</span>
+        <span class="grid-content">鎬荤7 : <i style="color: #e8ee0b">0.03812287</i> 鏍囧噯 : 5</span>
+        <span class="grid-content">搴熸按娴侀噺 : <i style="color: #e8ee0b">32.16287</i></span>
       </div>
     </div>
     <div class="form-echrts">
@@ -15,13 +15,15 @@
           <div class="pickerData">
             <span> 寮�濮嬫椂闂�:</span>
             <span class="pickerTable">
-              <el-date-picker  type="datetime"   v-model="value1"></el-date-picker>
+              <el-date-picker type="datetime" v-model="formInline.timeStart">
+              </el-date-picker>
             </span>
           </div>
           <div class="pickerData">
             <span >缁撴潫鏃堕棿:</span>
             <span class="pickerTable">
-              <el-date-picker type="datetime"  v-model="value2"></el-date-picker>
+              <el-date-picker type="datetime" v-model="formInline.timeEnd">
+              </el-date-picker>
             </span>
           </div>
         </div>
@@ -36,36 +38,21 @@
           </el-select>
         </div>
         <div class="detailbtn"  @click="onSubmit">鏌ヨ</div>
-        <div class="detailbtn" @click="dialogVisible = true" >鏄庣粏琛�</div>
       </div>
-      <div style="width:5rem;height:2rem;" id="echarts" ref="main">
+      <div class="boxChart" style="height: 260px">
+        <div style="width: 100%;height: 100%;" id="popChart" ref="main">
+        </div>
       </div>
     </div>
-    <!-- 鏄庣粏寮规 -->
-    <el-dialog :visible.sync="dialogVisible"
-               :append-to-body="true"
-               :title="this.$attrs.value==='feiqi'?this.$attrs.getWasteGasDetails[0].OnLineMonEmissPointName:this.$attrs.getWasteWaterMonitoringDetails[0].OnLineMonEmissPointName"
-               width="68%"
-               center
-               v-dialogDrag
-    >
-      <div class="el-dialog-div" style="height: 500px">
-        <public-detailed-list v-bind="$attrs"></public-detailed-list>
-      </div>
-    </el-dialog>
   </div>
 </template>
 
 <script>
-import PublicDetailedList from '@components/BaseNav/PublicBounced/GasComponents/PublicDetailedList'
 import 'dayjs/locale/es'
 import dayjs from 'dayjs'
 
 export default {
   name: 'ECharts',
-  components: {
-    PublicDetailedList
-  },
   data () {
     return {
       value1: '',
@@ -77,8 +64,9 @@
       value: '',
       days: dayjs(new Date()).format('YYYYMMDDHHmmss'),
       formInline: {
-        user: '',
-        region: ''
+        region: '',
+        timeStart: '2021-04-13 12:47:18',
+        timeEnd: '2021-04-13 12:52:18'
       },
       JsonRealWasteWater: {
         id: 'mycharteff_second ',
@@ -262,16 +250,14 @@
     }
   },
   mounted () {
-    this.$nextTick(() => {
-      this.onSubmit()
-    })
+    this.DrawRealTimeDateChart(this.JsonRealWasteWater.id, this.JsonRealWasteWater.title, this.JsonRealWasteWater.legend, this.JsonRealWasteWater.ydatas, this.JsonRealWasteWater.yname)
   },
   methods: {
     onSubmit () {
       this.DrawRealTimeDateChart(this.JsonRealWasteWater.id, this.JsonRealWasteWater.title, this.JsonRealWasteWater.legend, this.JsonRealWasteWater.ydatas, this.JsonRealWasteWater.yname)
     },
     DrawRealTimeDateChart (id, title, legend, ydatas, yname) {
-      this.RealTimeChart = this.$echarts.init(this.$refs.echarts)
+      this.RealTimeChart = this.$echarts.init(this.$refs.main)
       var serLists = []
       for (var i = 0; i < ydatas.length; i++) {
         // var zdcbcolor = ydatas[i].zdcbcolor
@@ -439,6 +425,9 @@
         xAxis: { // x 杞磋缃�
           type: 'time',
           boundaryGap: false,
+          nameTextStyle: {
+            fontSize: 15
+          },
           axisLabel: { // x杞村叏閮ㄦ樉绀�
             // rotate: 30,
             margin: 6,
@@ -609,122 +598,99 @@
 </script>
 
 <style scoped lang="less">
-//.animation{
-//  padding: 0 1rem;
-//  overflow: hidden;
-//  //width: 1rem;
-//  .infomation{
-//    display: flex;
-//    //margin: 0 1rem;
-//    overflow: hidden;
-//    animation: move 1s linear 0s infinite;
-//    @keyframes move {
-//      0% {
-//      }
-//      100% {
-//        transform: translateX(-10%);
-//      }
-//    }
-//    /* 榧犳爣缁忚繃marquee 灏卞仠姝㈠姩鐢� */
-//    &:hover {
-//      //z-index: 9999999;
-//      animation-play-state: paused;
-//    }
-//  }
-//}
-  .grid-content {
-    font-size: 8px;
-    background-color: #2e4967;
-    text-align: center;
-    border-radius: 2px;
-    margin-right: 10px;
-    padding:0 10px
+.grid-content{
+  font-size: 8px;
+  background-color: #2e4967;
+  text-align: center;
+  border-radius: 2px;
+  margin-right: 10px;
+  padding:0 10px
+}
+.infomation {
+  padding: 5px 10px;
+}
+
+.form-echrts {
+  width: 100%;
+  border-top: 1px solid #396d83;
+  //margin: 10px 10px 10px 10px;
+  .from-search{
+    display: flex;
+    padding:5px;
+    >div{margin-left: 10px}
+    .pickerMon{
+      display: flex;
+      >div:first-child {
+        margin-right: 10px;
+      }
+      .pickerData{
+        flex: 1;
+        display: flex;
+        >span{line-height: 22px}
+        .pickerTable {
+          margin-left: 3px;
+        }
+      }
+    }
+    /deep/.el-date-editor--datetime{
+      width: 100%;
+    }
+    /deep/.el-input__inner{
+      position: relative;
+      width:140px;
+      background-color: #2e4967;
+      color: #ffffff;
+      font-size: 12px;
+      height: 24px;
+      padding: 0;
+      border-color:#00fff6;
+      text-align: center;
+      //padding-left:20px ;
+      //padding: 0!important;
+    }
+    /deep/.el-input__icon{
+      display: block;
+      width: 140px;
+      height: 22px;
+      line-height: 22px;
+      cursor: pointer;
+      font-size: 0;
+    }
+    .echatsInput{
+      color: #00ffff;
+      background-color: #2e4967;
+      border: none;
+      border-radius: 6px;
+      width: 80px;
+      height: 22px;
+      text-align: center;
+    }
+    input::-webkit-calendar-picker-indicator {
+      opacity: 100;
+    }
+    .detailbtn{
+      background-color:#2e4967;
+      text-align: center;
+      padding: 0 7px;
+      line-height: 24px;
+      border-radius: 4px;
+      margin-right: 6px;
+    }
+    .detailbtn:hover{
+      box-shadow: 0 0 0.03rem #fff700 !important;
+      color:#fff700 !important;
+      cursor: pointer;
+    }
   }
-.animation {
-  //width: 600px;
-  //height: 0.06rem;
-  .infomation {
-    padding: 5px 10px;
+  .el-dialog-div {
+    //height: 50vh!important;
+    overflow: auto;
+    //overflow: hidden;
+  }
+
+  #echarts {
+    margin: 0;
+    padding: 0;
   }
 }
-    .form-echrts {
-        width: 100%;
-        border-top: 1px solid #396d83;
-        //margin: 10px 10px 10px 10px;
-        .from-search{
-          display: flex;
-          padding:5px;
-          >div{margin-left: 10px}
-            .pickerMon{
-              display: flex;
-              >div:first-child {
-                margin-right: 10px;
-              }
-                .pickerData{
-                    flex: 1;
-                    display: flex;
-                      >span{line-height: 22px}
-                    .pickerTable {
-                      margin-left: 3px;
-                    }
-                }
-            }
-            /deep/.el-date-editor--datetime{
-                width: 100%;
-            }
-            /deep/.el-input__inner{
-                position: relative;
-                width:140px;
-                background-color: #2e4967;
-                color: #fff;
-                font-size: 12px;
-                height: 24px;
-                padding: 0;
-                border-color:#00fff6;
-              text-align: center;
-                //padding-left:20px ;
-                //padding: 0!important;
-            }
-          /deep/.el-input__icon{
-            display: block;
-            width: 140px;
-            height: 22px;
-            line-height: 22px;
-            cursor: pointer;
-            font-size: 0;
-          }
-            .echatsInput{
-              color: #00ffff;
-              background-color: #2e4967;
-              border: none;
-              border-radius: 6px;
-              width: 80px;
-              height: 22px;
-            }
-          input::-webkit-calendar-picker-indicator {
-            opacity: 100;
-          }
-            .detailbtn{
-                background-color:#2e4967;
-                text-align: center;
-                padding: 0 7px;
-                line-height: 20px;
-                border-radius: 4px;
-                margin-right: 6px;
-            }
-        }
-        .el-dialog-div {
-            //height: 50vh!important;
-            overflow: auto;
-            //overflow: hidden;
-        }
-
-        #echarts {
-            margin: 0;
-            padding: 0;
-            //height: 3rem;
-            //border: 1px solid #396d83;
-            //margin: 10px 10px 10px 10px;
-        }
-    }
 </style>

--
Gitblit v1.8.0