@ -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,14 +406,10 @@ 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 > : " "
}
{ /*{this.props.isAdmin() ?work_comment_hidden===true? "":<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"*/ }
{ /*onClick={()=>this.showAppraiseModal(1)}*/ }
{ /*>评阅</a> : ""}*/ }
@ -430,9 +426,9 @@ class ShixunWorkReport extends Component {
< / d i v >
{ /*{work_comment===null||work_comment===undefined?"评阅":"编辑评阅"}*/ }
< style > {
`
{ /*{work_comment===null||work_comment===undefined?"评阅":"编辑评阅"}*/ }
< style > {
`
. shixunreporttitleboxtop {
border - bottom : 2 px solid # fafafa ;
text - align : justify ;
@ -541,34 +537,36 @@ class ShixunWorkReport extends Component {
< / p >
< / d i v >
< / d i v >
< ConclusionEvaluation
data = { data }
/ >
< / d i v >
< / d i v >
< ConclusionEvaluation
data = { data }
/ >
< / d i v >
< / d i v >
< div className = "stud-class-set mt19" >
< div className = "clearfix edu-back-white poll_list" >
< div className = "stud-class-set mt19" >
< div className = "clearfix edu-back-white poll_list" >
< div className = "font-16 color-dark-21 shixunreporttitle ml20 pd20" > 阶段成绩 < / d i v >
< div className = "font-16 color-dark-21 shixunreporttitle ml20 pd20" > 阶段成绩 < / d i v >
< OfficialAcademicTranscript
{ ... 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 ) }
/ >
< OfficialAcademicTranscript
{ ... 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 ) }
/ >
< / d i v >
< / d i v >
< / d i v >
< style >
{ `
< style >
{ `
. personalsummary {
border - radius : 2 px ;
}
@ -590,53 +588,53 @@ class ShixunWorkReport extends Component {
padding : 30 px ;
}
` }
< / s t y l e >
< div className = "stud-class-set mt17"
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" >
个人总结
< / s t y l e >
< div className = "stud-class-set mt17"
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 className = { "personalsummary" } >
< div className = { "markdown-body" }
dangerouslySetInnerHTML = { { _ _html : markdownToHTML ( data === undefined ? "" : data . work _description ) . replace ( /▁/g , "▁▁▁" ) } }
> < / d i v >
< / d i v >
< div className = "font-16 color-dark-21 shixunreporttitleboxbom pd30" >
< div style = { { minHeight : '50px' } } >
< div className = { "personalsummary" } >
< div className = { "markdown-body" }
dangerouslySetInnerHTML = { { _ _html : markdownToHTML ( data === undefined ? "" : data . work _description ) . replace ( /▁/g , "▁▁▁" ) } }
> < / d i v >
< / d i v >
< / d i v >
< / d i v >
< / d i v >
< / d i v >
< 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 ) }
/ >
{
has _commit === false ? "" :
< div >
< div className = "stud-class-set bor-bottom-greyE mt17" >
< div className = "clearfix edu-back-white poll_list" >
< div className = "font-16 color-dark-21 shixunreporttitle ml20 pd20" > 图形统计 < / d i v >
< Shixunechart
data = { data }
/ >
< / d i v >
< 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 ) }
/ >
{
has _commit === false ? "" :
< div >
< div className = "stud-class-set bor-bottom-greyE mt17" >
< div className = "clearfix edu-back-white poll_list" >
< div className = "font-16 color-dark-21 shixunreporttitle ml20 pd20" > 图形统计 < / d i v >
< Shixunechart
data = { data }
/ >
< / d i v >
< / d i v >
< div className = "stud-class-set bor-bottom-greyE" >
< div className = "stud-class-set bor-bottom-greyE" >
< div className = "clearfix edu-back-white poll_list pad40px" >
< div className = "font-16 color-dark-21 shixunreporttitle ml20 pd20" > 实训详情 < / d i v >
< style >
{ `
< div className = "clearfix edu-back-white poll_list pad40px" >
< div className = "font-16 color-dark-21 shixunreporttitle ml20 pd20" > 实训详情 < / d i v >
< style >
{ `
. poll _list a {
padding : 0 px ! important ;
}
@ -644,71 +642,71 @@ class ShixunWorkReport extends Component {
background : # 4 CACFF ;
}
` }
< / s t y l e >
{
data && data . shixun _detail === undefined ? "" : data . shixun _detail . map ( ( item , key ) => {
return (
< div id = { "id" + item . position } key = { key } className = { "mb20" } >
< / s t y l e >
{
data && data . shixun _detail === undefined ? "" : data . shixun _detail . map ( ( item , key ) => {
return (
< div id = { "id" + item . position } key = { key } className = { "mb20" } >
< div className = "font-16 color-dark-21 ml20 mr20" >
< p className = "clearfix mb20" >
< span className = "panel-inner-icon mr15 fl mt3 backgroud4CACFF" >
< i className = "fa fa-code font-16 color_white" > < / i >
< / 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 } >
< span className = { "font-14" } > { item . subject } < / s p a n >
< / L i n k >
< / s p a n >
< / p >
< Coursesshixundetails
data = { item . outputs }
/ >
< / d i v >
{ item . st === 0 ? item . passed _code === null ? "" :
< div className = "font-16 color-dark-21 ml20 mr20" >
< p className = "clearfix mb20" >
< span className = "panel-inner-icon mr15 fl mt3 backgroud4CACFF" >
< i className = "fa fa-code font-16 color_white" > < / i >
< / 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 } >
< span className = { "font-14" } > { item . subject } < / s p a n >
< / L i n k >
< / s p a n >
< / p >
< Coursesshixundetails
data = { item . outputs }
/ >
< / d i v >
{ item . st === 0 ? item . passed _code === null ? "" :
< div className = "font-16 color-dark-21 ml20 mr20" >
< div className = "bor-grey-e mt15" >
< p className = "clearfix pt5 pb5 pl15 pr15 back-f6-grey codebox" >
< span className = "fl" > 最近通过的代码 < / s p a n >
< span className = "fr codeboxright" > { item . path } < / s p a n >
< / p >
< div className = "test-code bor-top-greyE" >
< li className = "clearfix" >
< CodeMirror
value = { item . passed _code }
options = { {
// mode: 'xml',
theme : 'default' ,
lineNumbers : true ,
// extraKeys: {"Ctrl-Q": "autocomplete"}, // 快捷键
indentUnit : 4 , //代码缩进为一个tab的距离
matchBrackets : true ,
autoRefresh : true ,
smartIndent : true , //智能换行
styleActiveLine : true ,
lint : true ,
readOnly : "nocursor"
} }
/ >
< / l i >
< / d i v >
< div className = "bor-grey-e mt15" >
< p className = "clearfix pt5 pb5 pl15 pr15 back-f6-grey codebox" >
< span className = "fl" > 最近通过的代码 < / s p a n >
< span className = "fr codeboxright" > { item . path } < / s p a n >
< / p >
< div className = "test-code bor-top-greyE" >
< li className = "clearfix" >
< CodeMirror
value = { item . passed _code }
options = { {
// mode: 'xml',
theme : 'default' ,
lineNumbers : true ,
// extraKeys: {"Ctrl-Q": "autocomplete"}, // 快捷键
indentUnit : 4 , //代码缩进为一个tab的距离
matchBrackets : true ,
autoRefresh : true ,
smartIndent : true , //智能换行
styleActiveLine : true ,
lint : true ,
readOnly : "nocursor"
} }
/ >
< / l i >
< / d i v >
< / d i v > : " " }
< / d i v >
)
} )
}
< / d i v >
< / d i v >
< / d i v > : " " }
< / d i v >
)
} )
}
< / d i v >
< / d i v >
}
< / d i v >
}
< / d i v >
< / d i v >
< / S p i n >
< / d i v >
< / S p i n >
)
}
@ -716,4 +714,3 @@ class ShixunWorkReport extends Component {
export default ShixunWorkReport ;