From 22e5d744b28c0df0f115476b44a75d1d46cac228 Mon Sep 17 00:00:00 2001
From: zhangshuaibao <15731629597@163.com>
Date: 星期二, 13 四月 2021 17:36:12 +0800
Subject: [PATCH] echarts数据显示功能完善

---
 src/components/BaseNav/PublicBounced/GasComponents/EChartsDateWasteWater.vue |  225 +++++++++++++++++++++++++++++--------------------------
 1 files changed, 118 insertions(+), 107 deletions(-)

diff --git a/src/components/BaseNav/PublicBounced/GasComponents/EChartsDateWasteWater.vue b/src/components/BaseNav/PublicBounced/GasComponents/EChartsDateWasteWater.vue
index 48b9924..853f6e3 100644
--- a/src/components/BaseNav/PublicBounced/GasComponents/EChartsDateWasteWater.vue
+++ b/src/components/BaseNav/PublicBounced/GasComponents/EChartsDateWasteWater.vue
@@ -3,10 +3,9 @@
   <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>8.115</i>  鏍囧噯 : 100</span>
+        <span class="grid-content">姘ㄦ爱 : <i>0.31</i> 鏍囧噯 : 50</span>
+        <span class="grid-content">搴熸按娴侀噺 : <i>5191.693848</i></span>
       </div>
     </div>
     <div class="form-echrts">
@@ -15,19 +14,21 @@
           <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>
         <div>
           閲囨牱鐐规暟:
-          <el-select v-model="formInline.region" placeholder="50">
+          <el-select v-model="formInline.region">
             <el-option label="0" value="0"></el-option>
             <el-option label="25" value="25"></el-option>
             <el-option label="50" value="50"></el-option>
@@ -38,7 +39,10 @@
         <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 style="width:5rem;height:2rem;" id="popChart" ref="main">-->
+      <div class="boxChart" style="height: 260px">
+        <div style="width: 100%;height: 100%;" id="popChart" ref="main">
+        </div>
       </div>
     </div>
     <!-- 鏄庣粏寮规 -->
@@ -49,7 +53,7 @@
                center
                v-dialogDrag
     >
-      <div class="el-dialog-div" style="height: 500px">
+      <div class="el-dialog-div" style="height: 260px">
         <public-detailed-list v-bind="$attrs"></public-detailed-list>
       </div>
     </el-dialog>
@@ -60,7 +64,7 @@
 import PublicDetailedList from '@components/BaseNav/PublicBounced/GasComponents/PublicDetailedList'
 
 export default {
-  name: 'ECharts',
+  name: 'EChartsDateWasteWater',
   components: {
     PublicDetailedList
   },
@@ -74,7 +78,9 @@
       value: '',
       formInline: {
         user: '',
-        region: ''
+        region: '',
+        timeStart: '2021-03-14 00:00:00',
+        timeEnd: '2021-04-12 00:00:00'
       },
       JsonDateWater: {
         datatype: 1,
@@ -175,7 +181,7 @@
                 },
                 lineStyle: { // 鎶樼嚎鐨勯鑹�
                   color: ydatas[i].zxcolor,
-                  width: 5
+                  width: 4
                 },
                 borderColor: 'black', // 鎶樼偣杈规鐨勯鑹�
                 label: { // 鏄剧ず鍊�
@@ -230,7 +236,7 @@
                 },
                 lineStyle: { // 鎶樼嚎鐨勯鑹�
                   color: ydatas[i].zxcolor,
-                  width: 5
+                  width: 4
                 },
                 borderColor: 'black', // 鎶樼偣杈规鐨勯鑹�
                 label: { // 鏄剧ず鍊�
@@ -297,7 +303,8 @@
             },
             grid: { // 缃戞牸
               top: '20%',
-              left: '5%'
+              left: '7%',
+              bottom: '10%'
             },
             legend: {
               data: legend
@@ -323,11 +330,15 @@
             xAxis: { // x 杞磋缃�
               type: 'category',
               boundaryGap: false,
+              nameTextStyle: {
+                fontSize: 10
+              },
               axisLabel: { // x杞村叏閮ㄦ樉绀�
                 rotate: 20,
                 interval: 0,
                 textStyle: {
-                  color: '#fff'
+                  color: '#fff',
+                  fontSize: 10
                 }
               },
               splitLine: { // 缃戞牸鍨傜洿绾夸负 铏氱嚎
@@ -587,99 +598,99 @@
 //    }
 //  }
 //}
-  .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;
+  }
+
+  #popChart {
+    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