@ -38,6 +38,7 @@ class ShixunWorkReport extends Component {
work _comment _hidden : undefined ,
work _comment : undefined ,
has _commit : false ,
shixun _detail : [ ]
}
}
@ -113,7 +114,8 @@ class ShixunWorkReport extends Component {
work _comment _hidden : result . data . work _comment _hidden ,
work _comment : result . data . work _comment ,
spinning : false ,
has _commit : result . data . has _commit
has _commit : result . data . has _commit ,
shixun _detail : result . data . shixun _detail
} )
}
@ -305,7 +307,7 @@ class ShixunWorkReport extends Component {
}
render ( ) {
let { data , showAppraiseModaltype , work _comment _hidden , work _comment , has _commit } = this . state ;
let { data , showAppraiseModaltype , work _comment _hidden , work _comment , has _commit ,shixun _detail } = this . state ;
let category _id = data === undefined ? "" : data . category === null ? "" : data . category . category _id ;
let homework _common _id = data === undefined ? "" : data . homework _common _id ;
@ -313,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 (
@ -454,7 +457,20 @@ class ShixunWorkReport extends Component {
< div className = "stud-class-set" >
< div className = "clearfix edu-back-white poll_list" >
< div className = "font-16 color-dark-21 shixunreporttitleboxtop pd20" > 总体评价 < / d i v >
< div className = "font-16 color-dark-21 shixunreporttitleboxtop pd20" >
< div className = { "fl" } > 总体评价 < / d i v >
< div className = { "fr" } >
{
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 >
< div className = "font-16 color-dark-21 shixunreporttitleboxbom pd20" >
< div style = { { clear : "both" , height : '100px' } } >