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'}
// //
this.$axios.post(this.$httpUrl + '/JianHuoXiaoLv/download', { let a = 1;
pageSize: this.total, let t = this.total;
pageNum: 1, // eslint-disable-next-line no-constant-condition,no-empty
param: this.param, while (true){
},{responseType:'blob'}).then(res => { /* 分文件导出*/
this.tableloding=false; let b=10000;
// if (t<b){
this.downloadFile(res.data,'拣货任务效率统计'+ '数据', 'xlsx') 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) { downloadFile(obj, name, suffix) {
// //