From d5ba59d30fcce6e03fafef36c0f6fda5f22aa808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Thu, 29 Aug 2019 18:02:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/members/studentsList.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/react/src/modules/courses/members/studentsList.js b/public/react/src/modules/courses/members/studentsList.js index 499d12f5b..155cdfcd0 100644 --- a/public/react/src/modules/courses/members/studentsList.js +++ b/public/react/src/modules/courses/members/studentsList.js @@ -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 }) }); }