From 7977966640c70ec574f888159fa0871f6f859be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sat, 31 Aug 2019 12:13:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/shixunHomework/ShixunWorkReport.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js index 508ea5ca6..b7ad2dc20 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js @@ -35,6 +35,7 @@ class ShixunWorkReport extends Component { /// 确认是否下载 confirmysl(url,child){ + this.setState({ isspinning: true }) let params ={} if(child!=undefined){ params =child._getRequestParams()!==undefined?child._getRequestParams():{}; @@ -64,11 +65,9 @@ class ShixunWorkReport extends Component { }) } }else { - this.setState({ donwloading: true }) - this.props.showNotification(`正在下载中`); - - window.open("/api"+url+'?&export=true', '_blank'); + window.open("/api"+url+'?export=true', '_blank'); + this.setState({ isspinning: false }) } }).catch((error) => { console.log(error) @@ -172,10 +171,9 @@ class ShixunWorkReport extends Component { {/*{this.props.isAdmin()?导出实训报告数据:""}*/} 返回 {this.props.isAdmin() ? this.confirmysl(`/student_works/${homeworkid}/export_shixun_work_report.pdf`)} - - >导出实训报告数据 : ""} + > 导出实训报告数据 : ""}