档案采集

master
wanglei 2 years ago
parent cda789f764
commit 6a0b85a0eb

@ -660,8 +660,14 @@ export default {
}) })
.then( (response)=> { .then( (response)=> {
this.percentage = Math.round((response.data.file_counts/this.pictureRecard.length)*100); this.percentage = Math.round((response.data.file_counts/this.pictureRecard.length)*100);
if(this.percentage===100||this.percentage>100){
clearInterval(this.Interval);
this.Interval = null;
}
}).catch((error)=> { }).catch((error)=> {
// console.log(error)
}) })
}, },
} }

@ -316,7 +316,13 @@ export default {
'Content-Type': 'application/x-www-form-urlencoded' 'Content-Type': 'application/x-www-form-urlencoded'
} }
}).then((response)=>{ }).then((response)=>{
this.percentage = Math.round((response.data.file_counts/this.selectionList.length)*100) this.percentage = Math.round((response.data.file_counts/this.selectionList.length)*100);
if(this.percentage===100||this.percentage>100){
clearInterval(this.Interval);
this.Interval = null;
}
}).catch(function (error) { }).catch(function (error) {
// //
console.log(error); console.log(error);

Loading…
Cancel
Save