Commit 15f6183e authored by wangqinghua's avatar wangqinghua

update

parent 6c931ab0
...@@ -387,12 +387,17 @@ export class ResourceAlarmComponent implements OnInit { ...@@ -387,12 +387,17 @@ export class ResourceAlarmComponent implements OnInit {
}; };
this.analysisSer.commonProblemTopImport(data).subscribe( this.analysisSer.commonProblemTopImport(data).subscribe(
(res)=>{ (res)=>{
if(res.errCode == 10000){
this.workSer.downloadTemplate('commonProblemTop',res.data).subscribe( this.workSer.downloadTemplate('commonProblemTop',res.data).subscribe(
(data)=>{ (data)=>{
this.isDownload1 = false; this.isDownload1 = false;
this.commonSer.downloadFile('常见问题top10',data) this.commonSer.downloadFile('常见问题top10',data)
} }
) )
}else{
this.isDownload1 = false;
this.message.error(res.errMsg);
}
} }
) )
} }
...@@ -412,12 +417,17 @@ export class ResourceAlarmComponent implements OnInit { ...@@ -412,12 +417,17 @@ export class ResourceAlarmComponent implements OnInit {
}; };
this.analysisSer.statisticalReportImport(data).subscribe( this.analysisSer.statisticalReportImport(data).subscribe(
(res)=>{ (res)=>{
if(res.errCode == 10000){
this.workSer.downloadTemplate('statisticalReport',res.data).subscribe( this.workSer.downloadTemplate('statisticalReport',res.data).subscribe(
(data)=>{ (data)=>{
this.isDownload2 = false; this.isDownload2 = false;
this.commonSer.downloadFile('统计报告',data) this.commonSer.downloadFile('统计报告',data)
} }
) )
}else{
this.isDownload2 = false;
this.message.error(res.errMsg);
}
} }
) )
} }
......
...@@ -248,12 +248,17 @@ export class ResourceUsabilComponent implements OnInit { ...@@ -248,12 +248,17 @@ export class ResourceUsabilComponent implements OnInit {
}; };
this.analysisSer.findFailureRateImport(data).subscribe( this.analysisSer.findFailureRateImport(data).subscribe(
(res)=>{ (res)=>{
if(res.errCode == 10000){
this.workSer.downloadTemplate('failureRate',res.data).subscribe( this.workSer.downloadTemplate('failureRate',res.data).subscribe(
(data)=>{ (data)=>{
this.isDownload = false; this.isDownload = false;
this.commonSer.downloadFile('资源可用性统计',data) this.commonSer.downloadFile('资源可用性统计',data)
} }
) )
}else{
this.isDownload = false;
this.message.error(res.errMsg);
}
} }
) )
} }
......
...@@ -11,7 +11,7 @@ import {OverAllService} from '../../overAll/overAll.service'; ...@@ -11,7 +11,7 @@ import {OverAllService} from '../../overAll/overAll.service';
styles: [] styles: []
}) })
export class AuditComponent implements OnInit { export class AuditComponent implements OnInit {
timeFormat = 'yyyy-MM-dd HH:mm:ss'; timeFormat = 'yyyy-MM-dd';
dataSet: any[]; dataSet: any[];
timeType = '1'; timeType = '1';
pageSize = pageSize; pageSize = pageSize;
......
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