文件下载问题
parent
a6ccc5a8a6
commit
f5cdc6232e
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue