From 05b767cc5fbe3cf21b2853212bafe426803f02f2 Mon Sep 17 00:00:00 2001 From: xufenglei <xufenglei> Date: Fri, 27 Jul 2018 15:40:39 +0800 Subject: [PATCH] 优化 查询速度 --- src/app/routes/reports/query2/query2.component.ts | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/app/routes/reports/query2/query2.component.ts b/src/app/routes/reports/query2/query2.component.ts index 738bf9e..190a68d 100644 --- a/src/app/routes/reports/query2/query2.component.ts +++ b/src/app/routes/reports/query2/query2.component.ts @@ -220,7 +220,7 @@ this._dataSet = this.sensorData[sensorKey]; } else { this.loading = true; - const params = {sensorKey: sensorKey, dimension: 'monitorPoint', regionCode: '320583', accountId: '1', timeType: 'month'}; + const params = {sensorKey: sensorKey, dimension: 'monitorPoint', regionCode: '320583', accountId: '1', timeType: 'day'}; this.http2.get(environment.SERVER_BASH_URL + 'screen/region_ranking_data', {params: params}).subscribe((res: any) => { this._dataSet = this.sensorData[sensorKey] = res.data; this.loading = false; -- Gitblit v1.8.0