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`)} - - >导出实训报告数据 : ""} + > 导出实训报告数据 : ""}