Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_aliyun_beta
SylorHuang 5 years ago
commit 37f6e501fe

@ -130,13 +130,18 @@ class studentsList extends Component{
}
/// 确认是否下载
confirmysl(url){
this.setState({ donwloading: true })
axios.get(url).then((response) => {
if(response === undefined){
this.setState({ donwloading: false })
return
}
if(response.data.status&&response.data.status===-1){
this.setState({ donwloading: false })
}else if(response.data.status&&response.data.status===-2){
this.setState({ donwloading: false })
if(response.data.message === "100"){
// 已超出文件导出的上限数量100 ),建议:
@ -171,6 +176,7 @@ class studentsList extends Component{
}
}).catch((error) => {
console.log(error)
this.setState({ donwloading: false })
});
}

Loading…
Cancel
Save