Commit a2d1caa8 authored by wangqinghua's avatar wangqinghua

bug update

parent 626814c2
...@@ -189,7 +189,7 @@ export class FlowTrendComponent implements OnInit, OnDestroy { ...@@ -189,7 +189,7 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
let res = ''; let res = '';
res += '<br/>时间:' + params.name; res += '<br/>时间:' + params.name;
params.unit = params.data.unit ? params.data.unit : ''; params.unit = params.data.unit ? params.data.unit : '';
res += '<br/>数值:' + params.value + '' + params.unit; res += '<br/>数值:' + Number(params.value).toFixed(2) + '' + params.unit;
return res; return res;
} }
}, },
...@@ -250,8 +250,9 @@ export class FlowTrendComponent implements OnInit, OnDestroy { ...@@ -250,8 +250,9 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
search() { search() {
if (this.timeType == '99') { if (this.timeType == '99') {
this.obj.startTime = this.datePipe.transform(this.timeBegin, 'yyyy/MM/dd') + ' 00:00:00'; this.obj.startTime = this.datePipe.transform(this.timeBegin, 'yyyy/MM/dd') + ' 00:00:00';
this.obj.endTime = this.datePipe.transform(this.timeEnd, 'yyyy/MM/dd') + ' 29:59:59'; this.obj.endTime = this.datePipe.transform(this.timeEnd, 'yyyy/MM/dd') + ' 23:59:59';
} }
console.log(this.obj);
this.getEcharts(); this.getEcharts();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment