|
|
@ -200,7 +200,7 @@ class shixunAnswer extends Component{
|
|
|
|
className:"edu-txt-center",
|
|
|
|
className:"edu-txt-center",
|
|
|
|
render:(testCount,item,index)=>{
|
|
|
|
render:(testCount,item,index)=>{
|
|
|
|
return(
|
|
|
|
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",
|
|
|
|
className:"edu-txt-center",
|
|
|
|
render:(endTime,item,index)=>{
|
|
|
|
render:(endTime,item,index)=>{
|
|
|
|
return(
|
|
|
|
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",
|
|
|
|
className:"edu-txt-center",
|
|
|
|
render:(needTime,item,index)=>{
|
|
|
|
render:(needTime,item,index)=>{
|
|
|
|
return(
|
|
|
|
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}
|
|
|
|
step={0.1}
|
|
|
|
precision={1}
|
|
|
|
precision={1}
|
|
|
|
value={item.input_score}
|
|
|
|
value={item.input_score}
|
|
|
|
style={{width:"60px",marginRight:"5px"}}
|
|
|
|
style={{width:"60px",marginLeft:"5px"}}
|
|
|
|
placeholder="请输入分数"
|
|
|
|
placeholder="请输入分数"
|
|
|
|
onChange={(value)=>{this.changeThis(value,index)}}
|
|
|
|
onChange={(value)=>{this.changeThis(value,index)}}
|
|
|
|
onBlur={(value)=>this.changeThisScore(value,item.id,index)}
|
|
|
|
onBlur={(value)=>this.changeThisScore(value,item.id,index)}
|
|
|
@ -269,9 +269,9 @@ class shixunAnswer extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
{
|
|
|
|
item.operation ?
|
|
|
|
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>
|
|
|
|
</span>
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -279,28 +279,38 @@ class shixunAnswer extends Component{
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<div>
|
|
|
|
<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) ) ?
|
|
|
|
{ exercise && ((exercise.student_commit_status && exercise.student_commit_status != 0) || (exercise.user_exercise_status && exercise.user_exercise_status !=0) ) ?
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<p className="padding20-30 font-16 color-grey-6 pl30">阶段成绩</p>
|
|
|
|
<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> : "" }
|
|
|
|
{ data && data.length>0 ? <Table columns={columns} dataSource={data} pagination={false}></Table> : "" }
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
challenge && challenge.length > 0 &&
|
|
|
|
challenge && challenge.length > 0 &&
|
|
|
|
<div>
|
|
|
|
<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)=>{
|
|
|
|
challenge.map((item,key)=>{
|
|
|
|
return(
|
|
|
|
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">
|
|
|
|
<p className="clearfix mb20">
|
|
|
|
<span className="panel-inner-icon mr15 fl mt3 backgroud4CACFF">
|
|
|
|
<span className="panel-inner-icon mr15 fl mt3 backgroud4CACFF">
|
|
|
|
<i className="fa fa-code font-16 color_white"></i>
|
|
|
|
<i className="fa fa-code font-16 color_white"></i>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span className="fl mt3 font-14">
|
|
|
|
<span className="fl mt3 font-16">
|
|
|
|
<span className="font-bd mr15">第{item[0].position}关</span>
|
|
|
|
<span className="font-bd mr15">第{item[0].position}关</span>
|
|
|
|
<Link to={"/shixuns/"+item[0].game_identifier+"/challenges"}>
|
|
|
|
<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>
|
|
|
|
</Link>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
@ -308,7 +318,7 @@ class shixunAnswer extends Component{
|
|
|
|
{...this.props} {...this.state} challenge={item[0].outputs}
|
|
|
|
{...this.props} {...this.state} challenge={item[0].outputs}
|
|
|
|
></ShixunAnswerDetail>
|
|
|
|
></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">
|
|
|
|
<div className="bor-grey-e mt15">
|
|
|
|
<p className="clearfix pt5 pb5 pl15 pr15 back-f6-grey codebox">
|
|
|
|
<p className="clearfix pt5 pb5 pl15 pr15 back-f6-grey codebox">
|
|
|
|
<span className="fl">最近通过的代码</span>
|
|
|
|
<span className="fl">最近通过的代码</span>
|
|
|
@ -316,7 +326,7 @@ class shixunAnswer extends Component{
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="test-code bor-top-greyE">
|
|
|
|
<div className="test-code bor-top-greyE">
|
|
|
|
<li className="clearfix">
|
|
|
|
<li className="clearfix resetCodeMirrorStyle">
|
|
|
|
<CodeMirror
|
|
|
|
<CodeMirror
|
|
|
|
value={item[0].passed_code}
|
|
|
|
value={item[0].passed_code}
|
|
|
|
options={{
|
|
|
|
options={{
|
|
|
|