|
|
|
@ -60,7 +60,10 @@ class ShixunWorkReport extends Component {
|
|
|
|
|
console.log(error)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//打开pdf
|
|
|
|
|
confpdf = (url) =>{
|
|
|
|
|
window.open(url);
|
|
|
|
|
}
|
|
|
|
|
Downloadcal=()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
DownloadType:false,
|
|
|
|
@ -160,7 +163,8 @@ class ShixunWorkReport extends Component {
|
|
|
|
|
<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"
|
|
|
|
|
onClick={()=>this.confirmysl(`/student_works/${homeworkid}/export_shixun_work_report.pdf`)}
|
|
|
|
|
// onClick={()=>this.confirmysl(`/student_works/${homeworkid}/export_shixun_work_report.pdf`)}
|
|
|
|
|
onClick={()=>this.confpdf(`/student_works/${homeworkid}/export_shixun_work_report.pdf`)}
|
|
|
|
|
>导出实训报告数据</a> : ""}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|