|
|
@ -61,14 +61,21 @@ export class TabbarComponent implements OnInit { |
|
|
|
// this.companyIntegrityScore = obj
|
|
|
|
// this.companyIntegrityScore = obj
|
|
|
|
this.getIntegrityScore() |
|
|
|
this.getIntegrityScore() |
|
|
|
this.tabbarService.getMessage().subscribe((message: any)=>{ |
|
|
|
this.tabbarService.getMessage().subscribe((message: any)=>{ |
|
|
|
console.log(789,message);//send a message
|
|
|
|
|
|
|
|
this.getIntegrityScore() |
|
|
|
this.getIntegrityScore() |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
this.getUserInfo() |
|
|
|
this.getUserInfo() |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//根据usci获取当前单位的分数信息
|
|
|
|
|
|
|
|
getIntegrityScore(){ |
|
|
|
|
|
|
|
let params:any = { |
|
|
|
|
|
|
|
USCI : this.route.snapshot.queryParams.usci |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.http.get('/api/Companies',{params:params}).subscribe((data:any) => { |
|
|
|
|
|
|
|
this.companyIntegrityScore = data.items[0].companyIntegrityScore
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
isSpinner:boolean = false//下载帮助文档进度
|
|
|
|
isSpinner:boolean = false//下载帮助文档进度
|
|
|
|
//下载帮助文档
|
|
|
|
//下载帮助文档
|
|
|
|
downloadHelpFile () { |
|
|
|
downloadHelpFile () { |
|
|
@ -151,15 +158,7 @@ export class TabbarComponent implements OnInit { |
|
|
|
} //for循环
|
|
|
|
} //for循环
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//根据usci获取当前单位的分数信息
|
|
|
|
|
|
|
|
getIntegrityScore(){ |
|
|
|
|
|
|
|
let params:any = { |
|
|
|
|
|
|
|
USCI : this.route.snapshot.queryParams.usci |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.http.get('/api/Companies',{params:params}).subscribe((data:any) => { |
|
|
|
|
|
|
|
this.companyIntegrityScore = data.items[0].companyIntegrityScore
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ngOnDestroy(){ |
|
|
|
ngOnDestroy(){ |
|
|
|
this.routerEventsListener.unsubscribe() |
|
|
|
this.routerEventsListener.unsubscribe() |
|
|
|