no message

main
暴炳林 2024-11-05 10:50:19 +08:00
parent fbfb4802ad
commit 2f67757ad3
1 changed files with 12 additions and 0 deletions

View File

@ -351,6 +351,18 @@ export default {
this.downloadFile(res.data,'拣货任务效率统计'+ '数据', 'xlsx')
});
},
downloadFile(obj, name, suffix) {
//
const url = window.URL.createObjectURL(new Blob([obj]))
const link = document.createElement('a')
link.style.display = 'none'
link.href = url
const fileName = this.parseTime(new Date()) + '-' + name + '.' + suffix
link.setAttribute('download', fileName)
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
},
KuS(){
//
this.$axios.post(this.$httpUrl + '/Kucunhuizong/ku', {