From caf8a79ddf7850b41bed74b8f66843d731581c7d Mon Sep 17 00:00:00 2001
From: zhangshuaibao <15731629597@163.com>
Date: 星期二, 13 四月 2021 13:38:47 +0800
Subject: [PATCH] 废水图标功能

---
 src/components/BaseNav/PublicBounced/GasComponents/EChartsDateWasteWater.vue |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/components/BaseNav/PublicBounced/GasComponents/EChartsDateWasteWater.vue b/src/components/BaseNav/PublicBounced/GasComponents/EChartsDateWasteWater.vue
index 698c1b8..48b9924 100644
--- a/src/components/BaseNav/PublicBounced/GasComponents/EChartsDateWasteWater.vue
+++ b/src/components/BaseNav/PublicBounced/GasComponents/EChartsDateWasteWater.vue
@@ -133,14 +133,13 @@
   },
   methods: {
     onSubmit () {
-      console.log('submit!')
       this.effChartShow(this.JsonDateWater.id, this.JsonDateWater.title, this.JsonDateWater.legend, this.JsonDateWater.xdata, this.JsonDateWater.ydatas, this.JsonDateWater.yname, this.JsonDateWater.id, this.JsonDateWater.datatype)
     },
     effChartShow: function (id, title, legend, xdata, ydatas, yname, jcdID, datatype) {
-      this.myChart = this.echarts.init(this.$refs.main)
+      this.myChart = this.$echarts.init(this.$refs.main)
       this.myChart.clear()
       var dataUnit = ''
-      if (datatype == 1) {
+      if (datatype === 1) {
         dataUnit = '娴侀噺(m鲁/d)'
       } else {
         dataUnit = '娴侀噺(m鲁/h)'
@@ -274,13 +273,13 @@
                     // valueFliter = formatter(value)
                   }
                   var maker = params[i].marker
-                  if (seriesName == 'COD') {
+                  if (seriesName === 'COD') {
                     maker = '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:#fff21c;"></span>'
-                  } else if (seriesName == '姘ㄦ爱') {
+                  } else if (seriesName === '姘ㄦ爱') {
                     maker = '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:#00B0F0;"></span>'
-                  } else if (seriesName == '鎬荤7') {
+                  } else if (seriesName === '鎬荤7') {
                     maker = '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:#f48183;"></span>'
-                  } else if (seriesName == '鎬绘爱') {
+                  } else if (seriesName === '鎬绘爱') {
                     maker = '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:#d9f2f4;"></span>'
                   } else {
                     maker = '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:#9ACD32;"></span>'

--
Gitblit v1.8.0