From 39ea49edce74ae063ca0afd9b2966f861e256a3e Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Tue, 17 Apr 2018 13:18:36 +0800 Subject: [PATCH] ts fix,组织报警间隔时间设置 --- src/app/routes/report/report.component.ts | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/app/routes/report/report.component.ts b/src/app/routes/report/report.component.ts index 4fcfc16..ac0270b 100644 --- a/src/app/routes/report/report.component.ts +++ b/src/app/routes/report/report.component.ts @@ -14,7 +14,7 @@ export class ReportComponent implements OnInit { [x: string]: any; - public spinning: boolean = true; + public spinning = true; private echartOption = { backgroundColor: '', @@ -82,10 +82,10 @@ }, tooltip: { trigger: 'item', - formatter: "{a} <br/>{b}: {c} ({d}%)" + formatter: '{a} <br/>{b}: {c} ({d}%)' }, legend: { - //x : 'center', + // x : 'center', top: '10%', data: ['PM 2.5', 'PM 10', '���������������CO���', '���������������SO������', '���������O������', '���������������NO������'] }, @@ -113,7 +113,7 @@ center: ['25%', '50%'], label: { normal: { - formatter: "{b}:{d}%" + formatter: '{b}:{d}%' } }, labelLine: { @@ -137,7 +137,7 @@ center: ['75%', '50%'], label: { normal: { - formatter: "{b}:{d}%", + formatter: '{b}:{d}%', } }, labelLine: { @@ -159,9 +159,9 @@ }; ngOnInit() { - const params = JSON.parse(sessionStorage.getItem("queryParams")); + const params = JSON.parse(sessionStorage.getItem('queryParams')); if (!!params) { - localStorage.removeItem("queryParams"); + localStorage.removeItem('queryParams'); const items = this.items = JSON.parse(params.items); const timeType = params.type; this.http.get(environment.SERVER_BASH_URL + 'report/compare', {params: params}).subscribe((res: any) => { @@ -191,7 +191,7 @@ this.title = items[i].formatTime; items[i].deviceCount = deviceCounts[i]; if (!items[i].monitorPointid) { - items[i].monitorPointName = items[i].areaName + items[i].monitorPointName = items[i].areaName; } const legendName = items[i].formatTime + label + (items[i].mac ? '������:' + items[i].deviceName : (items[i].monitorPointid ? '���������:' + items[i].monitorPointName : items[i].areaName)); option.legend.data[i] = legendName; @@ -233,8 +233,8 @@ } }); } else { - this.msgSrv.error("������������������������������������"); - setTimeout("window.close();", 1000); + this.msgSrv.error('������������������������������������'); + setTimeout('window.close();', 1000); } } } -- Gitblit v1.8.0