|
|
|
@ -28,10 +28,10 @@ class ShixunCustomsPass extends Component {
|
|
|
|
|
datas.push({
|
|
|
|
|
customs:{position:item.position,subject:item.subject},
|
|
|
|
|
taskname:{name:item.username},
|
|
|
|
|
openingtime:moment(item.end_time).format('YYYY-MM-DD HH:mm:ss'),
|
|
|
|
|
openingtime:item.end_time===null?"无":item.end_time===undefined?"无":item.end_time===""?"无":moment(item.end_time).format('YYYY-MM-DD HH:mm:ss'),
|
|
|
|
|
evaluating: {final_score:item.final_score,all_score:item.all_score},
|
|
|
|
|
finishtime:item.copy_username,
|
|
|
|
|
elapsedtime:moment(item.copy_end_time).format('YYYY-MM-DD HH:mm:ss'),
|
|
|
|
|
elapsedtime:item.copy_end_time===null?"无":item.copy_end_time===undefined?"无":item.copy_end_time===""?"无":moment(item.copy_end_time).format('YYYY-MM-DD HH:mm:ss'),
|
|
|
|
|
empvalue:item.code_rate,
|
|
|
|
|
// adjustmentminute:asdasd
|
|
|
|
|
})
|
|
|
|
@ -200,6 +200,9 @@ class ShixunCustomsPass extends Component {
|
|
|
|
|
</style>
|
|
|
|
|
{
|
|
|
|
|
data&&data.challenge_list.map((item,key)=>{
|
|
|
|
|
// console.log("203challenge_list下面的数据");
|
|
|
|
|
// console.log(item);
|
|
|
|
|
// console.log(JSON.stringify(item));
|
|
|
|
|
return(
|
|
|
|
|
<div key={key} className={"mb20"}>
|
|
|
|
|
<div className="font-16 color-dark-21 ml20 mr20">
|
|
|
|
@ -213,46 +216,46 @@ class ShixunCustomsPass extends Component {
|
|
|
|
|
<span className={"font-14"}>{item.subject}</span>
|
|
|
|
|
</a>
|
|
|
|
|
</span>
|
|
|
|
|
<span className="fr codeboxright">代码文件:{item.code_list[0].path}</span>
|
|
|
|
|
<span className="fr codeboxright">代码文件:{item.code_list.length===0?"无":item.code_list[0].path===undefined?"无":item.code_list[0].path}</span>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{item.code_list.map((ite,k)=>{
|
|
|
|
|
{item.code_list.length===0?"":item.code_list.map((ite,k)=>{
|
|
|
|
|
return(
|
|
|
|
|
<div className="font-16 color-dark-21 ml20 mr20" key={k}>
|
|
|
|
|
<div className=" mt15">
|
|
|
|
|
<p className="clearfix pt5 pb5 codebox">
|
|
|
|
|
<span className="fl">
|
|
|
|
|
<span className={"colorC8161D"}>{item.username}</span>
|
|
|
|
|
的代码文件
|
|
|
|
|
</span>
|
|
|
|
|
<span className="fr">
|
|
|
|
|
<span className={"color-green"}>{item.copy_username}</span>
|
|
|
|
|
的代码文件
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
<style>
|
|
|
|
|
{`
|
|
|
|
|
.borderccc{
|
|
|
|
|
border:1px solid #ccc
|
|
|
|
|
}
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
<div className="test-code mt20 borderccc">
|
|
|
|
|
<li className="clearfix">
|
|
|
|
|
<MonacoDiffEditor
|
|
|
|
|
height="500"
|
|
|
|
|
// language="javascript"
|
|
|
|
|
original={ite.origin_content}
|
|
|
|
|
value={ ite.target_content}
|
|
|
|
|
// options={options}
|
|
|
|
|
/>
|
|
|
|
|
</li>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="font-16 color-dark-21 ml20 mr20" key={k}>
|
|
|
|
|
<div className=" mt15">
|
|
|
|
|
<p className="clearfix pt5 pb5 codebox">
|
|
|
|
|
<span className="fl">
|
|
|
|
|
<span className={"colorC8161D"}>{item.username}</span>
|
|
|
|
|
的代码文件
|
|
|
|
|
</span>
|
|
|
|
|
<span className="fr">
|
|
|
|
|
<span className={"color-green"}>{item.copy_username}</span>
|
|
|
|
|
的代码文件
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
<style>
|
|
|
|
|
{`
|
|
|
|
|
.borderccc{
|
|
|
|
|
border:1px solid #ccc
|
|
|
|
|
}
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
<div className="test-code mt20 borderccc">
|
|
|
|
|
<li className="clearfix">
|
|
|
|
|
<MonacoDiffEditor
|
|
|
|
|
height="500"
|
|
|
|
|
// language="javascript"
|
|
|
|
|
original={ite.origin_content}
|
|
|
|
|
value={ ite.target_content}
|
|
|
|
|
// options={options}
|
|
|
|
|
/>
|
|
|
|
|
</li>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
})}
|
|
|
|
|
</div>
|
|
|
|
|