|
|
@ -76,11 +76,15 @@ export class TabbarComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
//根据usci获取当前单位的分数信息
|
|
|
|
//根据usci获取当前单位的分数信息
|
|
|
|
getIntegrityScore() { |
|
|
|
getIntegrityScore() { |
|
|
|
let params:any = { |
|
|
|
// let params:any = {
|
|
|
|
USCI : this.route.snapshot.queryParams.usci |
|
|
|
// USCI : this.route.snapshot.queryParams.usci
|
|
|
|
} |
|
|
|
// }
|
|
|
|
this.http.get('/api/Companies',{params:params}).subscribe((data:any) => { |
|
|
|
// this.http.get('/api/Companies',{params:params}).subscribe((data:any) => {
|
|
|
|
this.companyIntegrityScore = data.items[0].companyIntegrityScore
|
|
|
|
// this.companyIntegrityScore = data.items[0].companyIntegrityScore
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
let unitId = sessionStorage.getItem('companyId') |
|
|
|
|
|
|
|
this.http.get(`/api/Companies/${unitId}`).subscribe((data: any) => { |
|
|
|
|
|
|
|
this.companyIntegrityScore = data.companyIntegrityScore |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
isSpinner: boolean = false//下载帮助文档进度
|
|
|
|
isSpinner: boolean = false//下载帮助文档进度
|
|
|
@ -178,7 +182,8 @@ export class TabbarComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
let result = await new Promise((result, reject) => { |
|
|
|
let result = await new Promise((result, reject) => { |
|
|
|
this.http.get(`/api/Objects/help/${file.objectName}`, { headers: { 'range': `bytes= ${start}-${end}` }, responseType: 'blob' }).subscribe(data => { |
|
|
|
this.http.get(`/api/Objects/help/${file.objectName}`, { headers: { 'range': `bytes= ${start}-${end}` }, responseType: 'blob' }).subscribe(data => { |
|
|
|
result(data) })
|
|
|
|
result(data) |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
allFile.push(result) |
|
|
|
allFile.push(result) |
|
|
|
|
|
|
|
|
|
|
|