@ -315,6 +315,7 @@ class ShixunWorkReport extends Component {
// let showAppraiseModals=this.props&&this.props.isAdminOrTeacher()===true?work_comment===null||work_comment===undefined?false:true:work_comment===null||work_comment===undefined?false:true;
let showAppraiseModals = work _comment === null || work _comment === undefined ? false : true ;
document . title = data && data . course _name ;
return (
data === undefined ? "" : < Spin indicator = { antIcon } spinning = { this . state . spinning } >
@ -366,10 +367,15 @@ class ShixunWorkReport extends Component {
< p className = " fl color-black mt25 summaryname" > { data && data . shixun _name } < / p >
{ /*{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-14 ml20 mt15" > 返回 < / a >
< a
{ this . props . isAdmin ( ) ? < a
className = " color-blue font-14 fr ml20 mt15"
onClick = { ( ) => this . confirmysl ( ` /student_works/ ${ homeworkid } /export_shixun_work_report.pdf ` ) }
> < Spin size = "small" spinning = { this . state . isspinning } > 导出实训报告数据 < / S p i n > < / a >
> < Spin size = "small" spinning = { this . state . isspinning } > 导出实训报告数据 < / S p i n > < / a > :
parseInt ( this . props && this . props . user . user _id ) === parseInt ( data && data . user _id ) ? < a
className = " color-blue font-14 fr ml20 mt15"
onClick = { ( ) => this . confirmysl ( ` /student_works/ ${ homeworkid } /export_shixun_work_report.pdf ` ) }
> < Spin size = "small" spinning = { this . state . isspinning } > 导出实训报告数据 < / S p i n > < / a > : " "
}
{ /*{this.props.isAdmin() ?work_comment_hidden===true? "":<a*/ }
{ /*className=" color-blue font-14 fr ml20 mt15"*/ }
{ /*onClick={()=>this.showAppraiseModal(1)}*/ }