派生自 wuyushui/SewerAndRainNetwork

zhangshuaibao
2021-04-13 caf8a79ddf7850b41bed74b8f66843d731581c7d
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 == '总磷') {
                  } else if (seriesName === '总磷') {
                    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>'