|
@@ -410,7 +410,7 @@ export class TextbookPertainComponent implements OnInit {
|
|
|
}
|
|
|
downloadFile(){
|
|
|
let fileName = '十四五”普通高等教育本科国家级规划教材第一次遴选推荐申报表.docx'
|
|
|
- const fileUrl = `../../../../../public/file/${fileName}`;
|
|
|
+ let fileUrl = `../../../../../public/file/${fileName}`;
|
|
|
this.http.get(fileUrl, { responseType: 'blob' }).subscribe((blob) => {
|
|
|
const url = window.URL.createObjectURL(blob);
|
|
|
const a = document.createElement('a');
|
|
@@ -421,5 +421,17 @@ export class TextbookPertainComponent implements OnInit {
|
|
|
document.body.removeChild(a);
|
|
|
window.URL.revokeObjectURL(url);
|
|
|
})
|
|
|
+ let fileName02 = '教材编写人员政治审查表.docx'
|
|
|
+ let fileUrl02 = `../../../../../public/file/${fileName02}`;
|
|
|
+ this.http.get(fileUrl02, { responseType: 'blob' }).subscribe((blob) => {
|
|
|
+ const url = window.URL.createObjectURL(blob);
|
|
|
+ const a = document.createElement('a');
|
|
|
+ a.href = url;
|
|
|
+ a.download = fileName02;
|
|
|
+ document.body.appendChild(a);
|
|
|
+ a.click();
|
|
|
+ document.body.removeChild(a);
|
|
|
+ window.URL.revokeObjectURL(url);
|
|
|
+ })
|
|
|
}
|
|
|
}
|