@ -315,7 +315,8 @@ class ShixunWorkReport extends Component {
const antIcon = < Icon type = "loading" style = { { fontSize : 24 } } spin / > ;
// 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 ;
// let showAppraiseModals=work_comment===null||work_comment===undefined?false:true;
// console.log(this.props.isAdmin())
document . title = data && data . course _name ;
return (
@ -460,13 +461,13 @@ class ShixunWorkReport extends Component {
< div className = { "fl" } > 总体评价 < / d i v >
< div className = { "fr" } >
{
shixun _detail && shixun _detail . map ( ( item , key ) => {
this . props && this . props . isAdmin ( ) === true ? shixun _detail && shixun _detail . map ( ( item , key ) => {
if ( key === 0 ) {
return (
< a className = { "color-blue font-16" } href = { /tasks/ + item . game _identifier } target = "_blank" > 查看学员实训 < / a >
)
}
} )
} ) : ""
}
< / d i v >
< / d i v >