|
|
@ -102,6 +102,13 @@ export class TabbarComponent implements OnInit { |
|
|
|
this.snackBar.open('下载失败', '确定', config); |
|
|
|
this.snackBar.open('下载失败', '确定', config); |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
aFile(url, name) { |
|
|
|
|
|
|
|
console.log('下载帮助文件') |
|
|
|
|
|
|
|
let a = document.createElement("a"); |
|
|
|
|
|
|
|
a.href = url; |
|
|
|
|
|
|
|
a.download = name; |
|
|
|
|
|
|
|
a.click(); |
|
|
|
|
|
|
|
} |
|
|
|
//提交单位审核
|
|
|
|
//提交单位审核
|
|
|
|
submitAudit() { |
|
|
|
submitAudit() { |
|
|
|
let isTrue = confirm('您确定要审核该条信息吗') |
|
|
|
let isTrue = confirm('您确定要审核该条信息吗') |
|
|
@ -184,7 +191,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) |
|
|
|
|
|
|
|
|
|
|
|