@ -332,9 +332,9 @@ class ShixunWorkReport extends Component {
render ( ) {
let { data , showAppraiseModaltype , work _comment _hidden , work _comment , has _commit , shixun _detail , view _tpi , myshixun _id , myshixun _identifier , homework _end } = this . state ;
let category _id = data === undefined ? "" : data . category === null ? "" : data . category . category _id ;
let homework _common _id = data === undefined ? "" : data . homework _common _id ;
let homeworkid = this . props . match . params . homeworkid ;
let category _id = data === undefined ? "" : data . category === null ? "" : data . category . category _id ;
let homework _common _id = data === undefined ? "" : data . homework _common _id ;
let homeworkid = this . props . match . params . homeworkid ;
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;
@ -362,15 +362,15 @@ class ShixunWorkReport extends Component {
{ showAppraiseModaltype === true ? < AppraiseModal
{ showAppraiseModaltype === true ? < AppraiseModal
{ ... this . props }
{ ... this . state }
visible = { showAppraiseModaltype }
Cancel = { ( ) => this . hideAppraiseModal ( ) }
showCancel = { ( show , hidden , id , comment _id ) => this . showAppraiseModals ( show , hidden , id , comment _id ) }
Cancel = { ( ) => this . hideAppraiseModal ( ) }
showCancel = { ( show , hidden , id , comment _id ) => this . showAppraiseModals ( show , hidden , id , comment _id ) }
work _comment = { this . state . work _comment }
work _type = { work _comment === null || work _comment === undefined ? this . state . work _type : work _comment _hidden === true ? 1 : 0 }
/ > : " " }
work _type = { work _comment === null || work _comment === undefined ? this . state . work _type : work _comment _hidden === true ? 1 : 0 }
/ > :" " }
< div className = "newMain clearfix " >
@ -406,12 +406,8 @@ class ShixunWorkReport extends Component {
> < 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 > :
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 > : " "
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"*/ }
@ -541,6 +537,8 @@ class ShixunWorkReport extends Component {
< / p >
< / d i v >
< / d i v >
< / d i v >
< ConclusionEvaluation
data = { data }
@ -558,9 +556,9 @@ class ShixunWorkReport extends Component {
{ ... this . props }
data = { data }
jumptopic = { this . jumptopic }
getdatalist = { ( ) => this . getdatalist ( ) }
setupdalist = { ( challenge _score , overall _appraisal , work _score ) => this . setupdalist ( challenge _score , overall _appraisal , work _score ) }
showAppraiseModal = { ( type , id , show , hidden ) => this . showAppraiseModal ( type , id , show , hidden ) }
getdatalist = { ( ) => this . getdatalist ( ) }
setupdalist = { ( challenge _score , overall _appraisal , work _score ) => this . setupdalist ( challenge _score , overall _appraisal , work _score ) }
showAppraiseModal = { ( type , id , show , hidden ) => this . showAppraiseModal ( type , id , show , hidden ) }
/ >
< / d i v >
@ -593,17 +591,17 @@ class ShixunWorkReport extends Component {
< / s t y l e >
< div className = "stud-class-set mt17"
style = { { display : data && data . work _description === null ? "none" : "" } }
style = { { display : data && data . work _description === null ? "none" : "" } }
>
< div className = "clearfix edu-back-white poll_list" >
< div className = "font-16 color-dark-21 shixunreporttitleboxtop pd20 color333" >
个人总结
< / d i v >
< div className = "font-16 color-dark-21 shixunreporttitleboxbom pd30" >
< div style = { { minHeight : '50px' } } >
< div style = { { minHeight : '50px' } } >
< div className = { "personalsummary" } >
< div className = { "markdown-body" }
dangerouslySetInnerHTML = { { _ _html : markdownToHTML ( data === undefined ? "" : data . work _description ) . replace ( /▁/g , "▁▁▁" ) } }
dangerouslySetInnerHTML = { { _ _html : markdownToHTML ( data === undefined ? "" : data . work _description ) . replace ( /▁/g , "▁▁▁" ) } }
> < / d i v >
< / d i v >
< / d i v >
@ -615,8 +613,8 @@ class ShixunWorkReport extends Component {
< ShowAppraiseList
{ ... this . props }
{ ... this . state }
isdeleteModal = { ( comment _id , visible _comment , type ) => this . isdeleteModal ( comment _id , visible _comment , type ) }
showAppraiseModal = { ( type , id , show , hidden ) => this . showAppraiseModal ( type , id , show , hidden ) }
isdeleteModal = { ( comment _id , visible _comment , type ) => this . isdeleteModal ( comment _id , visible _comment , type ) }
showAppraiseModal = { ( type , id , show , hidden ) => this . showAppraiseModal ( type , id , show , hidden ) }
/ >
{
@ -656,7 +654,7 @@ class ShixunWorkReport extends Component {
< / s p a n >
< span className = "fl mt3 font-14" >
< span className = "font-bd mr15" > 第 { item . position } 关 < / s p a n >
< Link to = { /tasks/ + item . game _identifier } >
< Link to = { /tasks/ + item . game _identifier } >
< span className = { "font-14" } > { item . subject } < / s p a n >
< / L i n k >
< / s p a n >
@ -716,4 +714,3 @@ class ShixunWorkReport extends Component {
export default ShixunWorkReport ;