From fb73a14c658ce113721542c415402321a985d25b Mon Sep 17 00:00:00 2001
From: xufenglei <xufenglei>
Date: Tue, 10 Apr 2018 09:12:32 +0800
Subject: [PATCH] 注册码 管理
---
src/app/routes/reports/query/query.component.ts | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/app/routes/reports/query/query.component.ts b/src/app/routes/reports/query/query.component.ts
index bd58fae..0a782de 100644
--- a/src/app/routes/reports/query/query.component.ts
+++ b/src/app/routes/reports/query/query.component.ts
@@ -49,10 +49,10 @@
* @memberof QueryComponent
*/
public timeUnitOptions = [
- {label: '������', value: TimeUnits.MONTH},
- {label: '������', value: TimeUnits.DAY},
- {label: '������', value: TimeUnits.HOUR},
- {label: '������', value: TimeUnits.MINUTE},
+ {label: '���', value: TimeUnits.MONTH},
+ {label: '���', value: TimeUnits.DAY},
+ {label: '���', value: TimeUnits.HOUR},
+ {label: '���', value: TimeUnits.MINUTE},
];
public timeUnit: {label: string, value: TimeUnits} = this.timeUnitOptions[2];
// ���������������������������������������
@@ -370,7 +370,7 @@
return sensor.name;
}
);
- this._sensorNames = sensorNameList.join(',');
+ this._sensorNames = sensorNameList.join(', ');
}, 1);
}
public setTimeUnit(val: {label: string, value: TimeUnits} ) {
@@ -503,6 +503,7 @@
this.reloadChartTitle();
// ������������
this.grid.data = [];
+ console.log(lineChartCriteria);
this.http.post(environment.SERVER_BASH_URL + '/report/line-chart', lineChartCriteria).subscribe(
(res: ResultBean<{[key: string]: Array<Array<number>>}>) => {
if (res.code === 1) {
@@ -526,7 +527,7 @@
weight = !!value ? weight : weight + 1;
}
// ���������������������2���
- return !!value ? String(Math.round(value * 100) / 100) : '-';
+ return value != null ? String(Math.round(value * 100) / 100) : '-';
}
);
this.grid.data.push({sensor: sensor, data: sensorData, weight: weight});
--
Gitblit v1.8.0