|
|
|
@ -1336,7 +1336,7 @@ class Listofworks extends Component {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
myBase64
|
|
|
|
|
// 导出实习报告批量
|
|
|
|
|
internshipreport = (url)=>{
|
|
|
|
|
console.log("internshipreport");
|
|
|
|
@ -1366,7 +1366,7 @@ class Listofworks extends Component {
|
|
|
|
|
//后台再header中传文件名
|
|
|
|
|
const name = decodeURI(response.headers['content-disposition'].split('=')[1])
|
|
|
|
|
downloadElement.href = href
|
|
|
|
|
downloadElement.download = name
|
|
|
|
|
// downloadElement.download = name
|
|
|
|
|
document.body.appendChild(downloadElement)
|
|
|
|
|
downloadElement.click()
|
|
|
|
|
document.body.removeChild(downloadElement) // 下载完成移除元素
|
|
|
|
|