|
|
|
@ -3,6 +3,7 @@ import {WordsBtn} from 'educoder';
|
|
|
|
|
import {Table, InputNumber, Tooltip} from "antd";
|
|
|
|
|
import {Link, Switch, Route, Redirect} from 'react-router-dom';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
|
|
|
|
|
class OfficialAcademicTranscript extends Component {
|
|
|
|
|
|
|
|
|
|
constructor(props) {
|
|
|
|
@ -17,6 +18,7 @@ class OfficialAcademicTranscript extends Component {
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
myjumptopic = (e) => {
|
|
|
|
|
console.log("获取到值");
|
|
|
|
|
console.log(e);
|
|
|
|
@ -113,10 +115,14 @@ class OfficialAcademicTranscript extends Component {
|
|
|
|
|
className: "TaskForms",
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span className={"task-hide linhe15"} style={{color:"#676767"}}><a className="tasknameName font-14" onClick={()=>this.myjumptopic("id"+record.customs)} title={record.taskname.name.length>15?record.taskname.name:""} >
|
|
|
|
|
<span className={"task-hide linhe15"} style={{color: "#676767"}}><a className="tasknameName font-14"
|
|
|
|
|
onClick={() => this.myjumptopic("id" + record.customs)}
|
|
|
|
|
title={record.taskname.name.length > 15 ? record.taskname.name : ""}>
|
|
|
|
|
{record.taskname.name}
|
|
|
|
|
</a>
|
|
|
|
|
{record.taskname.complete_status===2?<span className={"tasknamebox ml10"}>延时</span>:record.taskname.complete_status===3?<span className={"tasknameboxs ml10"}>延时</span>:""}
|
|
|
|
|
{record.taskname.complete_status === 2 ?
|
|
|
|
|
<span className={"tasknamebox ml10"}>延时</span> : record.taskname.complete_status === 3 ?
|
|
|
|
|
<span className={"tasknameboxs ml10"}>延时</span> : ""}
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
@ -158,14 +164,35 @@ class OfficialAcademicTranscript extends Component {
|
|
|
|
|
{record.elapsedtime}
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
}, {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '查看答案',
|
|
|
|
|
dataIndex: 'view_answer',
|
|
|
|
|
key: 'view_answer',
|
|
|
|
|
className: "edu-txt-center",
|
|
|
|
|
render: (text, record) => {
|
|
|
|
|
return (
|
|
|
|
|
<span style={{cursor: "default"}}>{record.view_answer === true ? <Tooltip placement="bottom" title={
|
|
|
|
|
<pre>
|
|
|
|
|
学生在完成任务评测之前查是否看了参考答案
|
|
|
|
|
</pre>
|
|
|
|
|
}><span style={{cursor: "default"}}>已查看</span> </Tooltip> : <Tooltip placement="bottom" title={
|
|
|
|
|
<pre>
|
|
|
|
|
学生在完成任务评测之前查是否看了参考答案
|
|
|
|
|
</pre>
|
|
|
|
|
}><span style={{cursor: "default"}}>未查看</span> </Tooltip>}</span>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '经验值',
|
|
|
|
|
key: 'empvalue',
|
|
|
|
|
dataIndex: 'empvalue',
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<span style={{color:'#29BD8B'}}>{record.empvalue.myself}</span><span className={"color-grey-9"}>/{record.empvalue.experience}</span>
|
|
|
|
|
<span style={{color: '#29BD8B'}}>{record.empvalue.myself}</span><span
|
|
|
|
|
className={"color-grey-9"}>/{record.empvalue.experience}</span>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
|
}, {
|
|
|
|
@ -179,7 +206,8 @@ class OfficialAcademicTranscript extends Component {
|
|
|
|
|
关卡得分:{record.game_scores.game_score}/关卡满分:{record.game_scores.game_score_full}
|
|
|
|
|
</pre>
|
|
|
|
|
}>
|
|
|
|
|
<span style={{color:'#29BD8B'}}>{record.game_scores.game_score}</span><span className={"color-grey-9"}>/{record.game_scores.game_score_full}</span>
|
|
|
|
|
<span style={{color: '#29BD8B'}}>{record.game_scores.game_score}</span><span
|
|
|
|
|
className={"color-grey-9"}>/{record.game_scores.game_score_full}</span>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
@ -190,7 +218,8 @@ class OfficialAcademicTranscript extends Component {
|
|
|
|
|
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<a><InputNumber size="small" className={customsids===record.challenge_id.id?"bor-red":""} defaultValue={record.game_scores.game_score}
|
|
|
|
|
<a><InputNumber size="small" className={customsids === record.challenge_id.id ? "bor-red" : ""}
|
|
|
|
|
defaultValue={record.game_scores.game_score}
|
|
|
|
|
onBlur={(e) => this.editgame_scores(e, record.challenge_id.id, record.game_scores.game_score_full)}
|
|
|
|
|
// min={0} max={record.game_scores.game_score_full}
|
|
|
|
|
/></a>
|
|
|
|
@ -214,7 +243,6 @@ class OfficialAcademicTranscript extends Component {
|
|
|
|
|
}];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.props.isAdmin() === false) {
|
|
|
|
|
columns.some((item, key) => {
|
|
|
|
|
if (item.title === "调分") {
|
|
|
|
|