|
|
|
@ -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 })
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|