From 5913516ca6ac3a15a629803a2bf78ab9a2afcc68 Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Tue, 14 Aug 2018 09:10:54 +0800
Subject: [PATCH] 控制加载网格 层级

---
 src/app/routes/forecasting-warning/forecasting-warning.component.ts |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/app/routes/forecasting-warning/forecasting-warning.component.ts b/src/app/routes/forecasting-warning/forecasting-warning.component.ts
index bd33a04..0d07618 100644
--- a/src/app/routes/forecasting-warning/forecasting-warning.component.ts
+++ b/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';
@@ -8,7 +8,7 @@
 
 @Component({
   selector: 'app-forecasting-warning',
-  templateUrl: './forecasting-warning.component.html',
+  templateUrl: './forecasting-warning.component.html'
 })
 export class ForecastingWarningComponent implements OnInit {
 
@@ -88,7 +88,7 @@
         };
         return [
           params[0].value[0],
-          '���������' + params[0].value[1] + '���',
+          '���������' + params[0].value[1],
           '���������' + directionName[params[0].value[2]]
         ].join('<br>');
       }
@@ -98,7 +98,7 @@
       boundaryGap: true
     },
     yAxis: {
-      name: '���������������'
+      name: '���������m/s���'
     },
     series: [
       {
@@ -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 + '(������)';

--
Gitblit v1.8.0