export const downloadAll = (url) => {
const iframe = document.createElement('iframe')
iframe.style.display = 'none'
iframe.style.height = 0
iframe.src = url
document.body.appendChild(iframe)
setTimeout(()=>{
iframe.remove()
},1000)
}
methods: {
/**
* @Author: XiuRongWang
* @Description: 下载全部附件
* @Param:
* @Return:
* @LastEditors: XiuRongWang
*/
downloadAllFiles(){
this.$message({
message: '下载成功',
type: 'success'
})
let that = this
for(let i = 0; i < that.resourcesList.length; i++){
const url = that.resourcesList[i].downloadUrl
downloadAll(url)
}
},
}