From 471bedfcc8adf55098b67c40c3a467753c11857f Mon Sep 17 00:00:00 2001 From: xufenglei <xufenglei> Date: Mon, 23 Jul 2018 16:57:31 +0800 Subject: [PATCH] 环比 效果图 --- src/app/routes/forecasting-warning/forecasting-warning.component.ts | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/app/routes/forecasting-warning/forecasting-warning.component.ts b/src/app/routes/forecasting-warning/forecasting-warning.component.ts index 3f9c2fb..2e660eb 100644 --- a/src/app/routes/forecasting-warning/forecasting-warning.component.ts +++ b/src/app/routes/forecasting-warning/forecasting-warning.component.ts @@ -170,7 +170,8 @@ const PM2_5 = []; const PM10 = []; const CO = []; const NO2 = []; const O3 = []; const SO2 = []; const title = '������������������'; this.option.xAxis.data = []; - this.http.get(environment.SERVER_BASH_URL + 'demo/list').subscribe((res: any) => { + const params = {size: '7'}; + this.http.get(environment.SERVER_BASH_URL + 'demo/list', {params: params}).subscribe((res: any) => { res.forEach(data => { const json = JSON.parse(data.aqi_json); PM2_5.push(json.PM2_5); -- Gitblit v1.8.0