dev_aliyun_beta
杨树明 6 years ago
parent 1aa713a895
commit 7977966640

@ -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()?<a className=" fr font-14 ml30 mt10 mr20 color-grey-9 ">导出实训报告数据</a>:""}*/}
<a onClick={this.goback} className="color-grey-6 fr font-16 ml30 mt15 mr20">返回</a>
{this.props.isAdmin() ? <a
className=" color-blue font-16 fr ml30 mt15 mr20"
className=" color-blue font-16 fr ml30 mt15"
onClick={()=>this.confirmysl(`/student_works/${homeworkid}/export_shixun_work_report.pdf`)}
>导出实训报告数据</a> : ""}
> <Spin size="small" spinning={this.state.isspinning}>导出实训报告数据</Spin></a> : ""}
</div>
<div className="stud-class-set">

Loading…
Cancel
Save