no message

main
暴炳林 2024-11-18 11:03:28 +08:00
parent 2f67757ad3
commit 509765ec57
1 changed files with 24 additions and 9 deletions

View File

@ -341,15 +341,30 @@ export default {
this.tableloding=true;
///Jianhuojiemian/downloadpost {responseType:'blob'}
//
this.$axios.post(this.$httpUrl + '/JianHuoXiaoLv/download', {
pageSize: this.total,
pageNum: 1,
param: this.param,
},{responseType:'blob'}).then(res => {
this.tableloding=false;
//
this.downloadFile(res.data,'拣货任务效率统计'+ '数据', 'xlsx')
});
let a = 1;
let t = this.total;
// eslint-disable-next-line no-constant-condition,no-empty
while (true){
/* 分文件导出*/
let b=10000;
if (t<b){
b = t;
}
t=t-b;
console.log(a+","+b+","+t)
this.$axios.post(this.$httpUrl + '/JianHuoXiaoLv/download', {
pageSize: b,
pageNum: a,
param: this.param,
},{responseType:'blob'}).then(res => {
this.tableloding=false;
//
this.downloadFile(res.data,'拣货任务效率统计'+ '数据', 'xlsx')
});
if (t<=0) {
break;
}
}
},
downloadFile(obj, name, suffix) {
//