fengxiang
2018-08-02 c69ddde7828d777f04c6468c269aaa0aa03d72c9
src/app/routes/forecasting-warning/forecasting-warning.component.ts
@@ -1,4 +1,4 @@
import {environment} from '../../../environments/environment';
import {environment} from '@env/environment';
import {HttpClient} from '@angular/common/http';
import {Component, OnInit} from '@angular/core';
import {_HttpClient} from '@delon/theme';
@@ -174,7 +174,8 @@
      this.isShow = true;
      this.initWarning();
    } else {
      this.isShow = false;       this.initForecasting();
      this.isShow = false;
      this.initForecasting();
    }
  }
@@ -209,7 +210,8 @@
        this.option.title.text = title + '(温度)';
        this.option.yAxis.name = '单位:℃';
        this.option.series[0].data = temp;
        this.option.series[0].itemStyle.color = this.colors[0];         forecasting_tempChart.setOption(this.option, false);
        this.option.series[0].itemStyle.color = this.colors[0];
        forecasting_tempChart.setOption(this.option, false);
        const forecasting_humidityChart = echarts.init(document.getElementById('forecasting_humidity'));
        this.option.title.text = title + '(湿度)';