文件下载问题

main
zhaoyu 2023-12-13 16:57:13 +08:00
parent a6ccc5a8a6
commit f5cdc6232e
1 changed files with 14 additions and 0 deletions

View File

@ -153,6 +153,20 @@ export default {
this.punishThePerson = data.punishThePerson this.punishThePerson = data.punishThePerson
this.file9 = data.file9 this.file9 = data.file9
}) })
},
downloadFile(filePath) {
this.$confirm('确定要下载此文件吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.listLoading = false
// window.location.href = config.httpurl + 'outsourced/download?OUTSOURCED_ID=' + OUTSOURCED_ID
window.open(config.fileUrl + filePath)
}).catch(() => {
this.listLoading = false
})
this.listLoading = false
} }
} }
} }