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; this.tableloding=true;
///Jianhuojiemian/downloadpost {responseType:'blob'} ///Jianhuojiemian/downloadpost {responseType:'blob'}
// //
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', { this.$axios.post(this.$httpUrl + '/JianHuoXiaoLv/download', {
pageSize: this.total, pageSize: b,
pageNum: 1, pageNum: a,
param: this.param, param: this.param,
},{responseType:'blob'}).then(res => { },{responseType:'blob'}).then(res => {
this.tableloding=false; this.tableloding=false;
// //
this.downloadFile(res.data,'拣货任务效率统计'+ '数据', 'xlsx') this.downloadFile(res.data,'拣货任务效率统计'+ '数据', 'xlsx')
}); });
if (t<=0) {
break;
}
}
}, },
downloadFile(obj, name, suffix) { downloadFile(obj, name, suffix) {
// //