|
|
|
@ -200,7 +200,7 @@ class shixunAnswer extends Component{
|
|
|
|
|
className:"edu-txt-center",
|
|
|
|
|
render:(testCount,item,index)=>{
|
|
|
|
|
return(
|
|
|
|
|
<span>{ item.testCount ? item.testCount : "--" }</span>
|
|
|
|
|
<span>{ item.testCount ? item.testCount : <span className="color-grey-9">--</span> }</span>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
@ -210,7 +210,7 @@ class shixunAnswer extends Component{
|
|
|
|
|
className:"edu-txt-center",
|
|
|
|
|
render:(endTime,item,index)=>{
|
|
|
|
|
return(
|
|
|
|
|
<span>{ item.endTime ? item.endTime : "--" }</span>
|
|
|
|
|
<span>{ item.endTime ? item.endTime : <span className="color-grey-9">--</span> }</span>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
@ -220,7 +220,7 @@ class shixunAnswer extends Component{
|
|
|
|
|
className:"edu-txt-center",
|
|
|
|
|
render:(needTime,item,index)=>{
|
|
|
|
|
return(
|
|
|
|
|
<span>{ item.needTime ? item.needTime : "--" }</span>
|
|
|
|
|
<span>{ item.needTime ? item.needTime : <span className="color-grey-9">--</span> }</span>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
@ -259,7 +259,7 @@ class shixunAnswer extends Component{
|
|
|
|
|
step={0.1}
|
|
|
|
|
precision={1}
|
|
|
|
|
value={item.input_score}
|
|
|
|
|
style={{width:"60px",marginRight:"5px"}}
|
|
|
|
|
style={{width:"60px",marginLeft:"5px"}}
|
|
|
|
|
placeholder="请输入分数"
|
|
|
|
|
onChange={(value)=>{this.changeThis(value,index)}}
|
|
|
|
|
onBlur={(value)=>this.changeThisScore(value,item.id,index)}
|
|
|
|
@ -269,9 +269,9 @@ class shixunAnswer extends Component{
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
item.operation ?
|
|
|
|
|
<a className={isAdmin ? "color-blue ml20":"color-blue"} target="_blank" href='javascript:void(0)' onClick={()=>this.scrollToAnchor(`${questionType.question_id}${index+1}`)}>查看</a>
|
|
|
|
|
<a className={isAdmin ? "color-blue mt5 fr":"color-blue"} target="_blank" href='javascript:void(0)' onClick={()=>this.scrollToAnchor(`${questionType.question_id}${index+1}`)}>查看</a>
|
|
|
|
|
:
|
|
|
|
|
<a className={isAdmin ? "color-grey-9 ml20":"color-grey-9"} target="_blank" href='javascript:void(0)'>--</a>
|
|
|
|
|
<span className={isAdmin ? "color-grey-9 mt5 fr":"color-grey-9"} >--</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
@ -279,28 +279,38 @@ class shixunAnswer extends Component{
|
|
|
|
|
}];
|
|
|
|
|
return(
|
|
|
|
|
<div>
|
|
|
|
|
<style>
|
|
|
|
|
{`
|
|
|
|
|
.resetTableStyle .ant-table-tbody > tr > td{
|
|
|
|
|
padding:10px 5px!important;
|
|
|
|
|
}
|
|
|
|
|
.resetCodeMirrorStyle .CodeMirror{
|
|
|
|
|
height:auto!important;
|
|
|
|
|
}
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
{ exercise && ((exercise.student_commit_status && exercise.student_commit_status != 0) || (exercise.user_exercise_status && exercise.user_exercise_status !=0) ) ?
|
|
|
|
|
<div>
|
|
|
|
|
<p className="padding20-30 font-16 color-grey-6 pl30">阶段成绩</p>
|
|
|
|
|
<div className="stageTable">
|
|
|
|
|
<div className={challenge && challenge.length > 0 ? "pl30 pr30 resetTableStyle":"pl30 pr30 resetTableStyle stageTable"}>
|
|
|
|
|
{ data && data.length>0 ? <Table columns={columns} dataSource={data} pagination={false}></Table> : "" }
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
challenge && challenge.length > 0 &&
|
|
|
|
|
<div>
|
|
|
|
|
<p className="padding20-30 font-16 color-grey-6 pl30">实训详情</p>
|
|
|
|
|
<p className="mt20 pr30 font-16 color-grey-6 pl30">实训详情</p>
|
|
|
|
|
{
|
|
|
|
|
challenge.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<div className="pl30 pr30" id={`challenge_${questionType.question_id}${key+1}`}>
|
|
|
|
|
<div className="pl30 pr30 mt20" id={`challenge_${questionType.question_id}${key+1}`}>
|
|
|
|
|
<p className="clearfix mb20">
|
|
|
|
|
<span className="panel-inner-icon mr15 fl mt3 backgroud4CACFF">
|
|
|
|
|
<i className="fa fa-code font-16 color_white"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<span className="fl mt3 font-14">
|
|
|
|
|
<span className="fl mt3 font-16">
|
|
|
|
|
<span className="font-bd mr15">第{item[0].position}关</span>
|
|
|
|
|
<Link to={"/shixuns/"+item[0].game_identifier+"/challenges"}>
|
|
|
|
|
<span className={"font-14"}>{item[0].name}</span>
|
|
|
|
|
<span className={"font-16"}>{item[0].name}</span>
|
|
|
|
|
</Link>
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
@ -308,7 +318,7 @@ class shixunAnswer extends Component{
|
|
|
|
|
{...this.props} {...this.state} challenge={item[0].outputs}
|
|
|
|
|
></ShixunAnswerDetail>
|
|
|
|
|
|
|
|
|
|
{ item[0].st===0 ? <div className="font-16 color-dark-21 mb10">
|
|
|
|
|
{ item[0].st===0 ? <div className="font-16 color-dark-21">
|
|
|
|
|
<div className="bor-grey-e mt15">
|
|
|
|
|
<p className="clearfix pt5 pb5 pl15 pr15 back-f6-grey codebox">
|
|
|
|
|
<span className="fl">最近通过的代码</span>
|
|
|
|
@ -316,7 +326,7 @@ class shixunAnswer extends Component{
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<div className="test-code bor-top-greyE">
|
|
|
|
|
<li className="clearfix">
|
|
|
|
|
<li className="clearfix resetCodeMirrorStyle">
|
|
|
|
|
<CodeMirror
|
|
|
|
|
value={item[0].passed_code}
|
|
|
|
|
options={{
|
|
|
|
|