实训报告调整

dev_aliyun_beta
杨树明 5 years ago
parent 883177636d
commit 1f8e03c737

@ -344,7 +344,7 @@ a.edu-txt-w40,.edu-txt-w40{ width:40px; display: inline-block;text-align: center
.bor-grey01{border:1px solid #E6EAEB;} .bor-grey01{border:1px solid #E6EAEB;}
.bor-orange{border:1px solid #FF7500;} .bor-orange{border:1px solid #FF7500;}
.bor-blue{border:1px solid #5faee3;} .bor-blue{border:1px solid #5faee3;}
.bor-red{border:1px solid #db0505;} .bor-red{border:1px solid #db0505 !important;}
.bor-none{border:none;} .bor-none{border:none;}
.bor-outnone{outline:none; border:0px;} .bor-outnone{outline:none; border:0px;}

@ -533,7 +533,7 @@ input::-ms-clear{display:none;}
.bor-grey-d{border:1px solid #ddd;} .bor-grey-d{border:1px solid #ddd;}
.bor-grey01{border:1px solid #E6EAEB;} .bor-grey01{border:1px solid #E6EAEB;}
.bor-blue{border:1px solid #5faee3;} .bor-blue{border:1px solid #5faee3;}
.bor-red{border:1px solid #db0505;} .bor-red{border:1px solid #db0505 !important;}
.bor-none{border:none;} .bor-none{border:none;}
.bor-outnone{outline:none; border:0px;} .bor-outnone{outline:none; border:0px;}
/*延时*/ /*延时*/

@ -536,7 +536,7 @@ input::-ms-clear{display:none;}
.bor-grey-d{border:1px solid #ddd;} .bor-grey-d{border:1px solid #ddd;}
.bor-grey01{border:1px solid #E6EAEB;} .bor-grey01{border:1px solid #E6EAEB;}
.bor-blue{border:1px solid #5faee3;} .bor-blue{border:1px solid #5faee3;}
.bor-red{border:1px solid #db0505;} .bor-red{border:1px solid #db0505 !important;}
.bor-none{border:none;} .bor-none{border:none;}
.bor-outnone{outline:none; border:0px;} .bor-outnone{outline:none; border:0px;}
/*延时*/ /*延时*/

@ -9,7 +9,8 @@ class OfficialAcademicTranscript extends Component {
super(props); super(props);
this.state = { this.state = {
loadingstate:true, loadingstate:true,
datas:undefined datas:undefined,
customsids:undefined
} }
} }
@ -52,8 +53,14 @@ class OfficialAcademicTranscript extends Component {
if(score!=null&&score!=undefined&&score!=""){ if(score!=null&&score!=undefined&&score!=""){
if(score<0){ if(score<0){
this.props.showNotification("调分不能小于0"); this.props.showNotification("调分不能小于0");
this.setState({
customsids:id
})
}else if(score>maxsum){ }else if(score>maxsum){
this.props.showNotification(`调分不能大于${maxsum}`); this.props.showNotification(`调分不能大于${maxsum}`);
this.setState({
customsids:id
})
}else{ }else{
let work_id=this.props.data.work_id; let work_id=this.props.data.work_id;
let url=`/student_works/${work_id}/adjust_review_score.json` let url=`/student_works/${work_id}/adjust_review_score.json`
@ -72,7 +79,8 @@ class OfficialAcademicTranscript extends Component {
} }
}) })
this.setState({ this.setState({
datas:newdatas datas:newdatas,
customsids:undefined
}) })
}else{ }else{
this.props.showNotification(result.data.message); this.props.showNotification(result.data.message);
@ -88,7 +96,7 @@ class OfficialAcademicTranscript extends Component {
} }
render() { render() {
let {datas}=this.state; let {datas,customsids}=this.state;
let columns=[{ let columns=[{
title: '关卡', title: '关卡',
@ -183,7 +191,7 @@ class OfficialAcademicTranscript extends Component {
render: (text, record) => ( render: (text, record) => (
<span> <span>
<a><InputNumber size="small" className="color-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)} 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} // min={0} max={record.game_scores.game_score_full}
/></a> /></a>

@ -526,7 +526,7 @@ input::-ms-clear{display:none;}
.bor-grey01{border:1px solid #E6EAEB;} .bor-grey01{border:1px solid #E6EAEB;}
.bor-orange{border:1px solid #FF7500;} .bor-orange{border:1px solid #FF7500;}
.bor-blue{border:1px solid #5faee3;} .bor-blue{border:1px solid #5faee3;}
.bor-red{border:1px solid #db0505;} .bor-red{border:1px solid #db0505 !important;}
.bor-none{border:none;} .bor-none{border:none;}
.bor-outnone{outline:none; border:0px;} .bor-outnone{outline:none; border:0px;}
/*延时*/ /*延时*/

@ -345,7 +345,7 @@ a.edu-txt-w40,.edu-txt-w40{ width:40px; display: inline-block;text-align: center
.bor-grey01{border:1px solid #E6EAEB;} .bor-grey01{border:1px solid #E6EAEB;}
.bor-orange{border:1px solid #FF7500;} .bor-orange{border:1px solid #FF7500;}
.bor-blue{border:1px solid #5faee3;} .bor-blue{border:1px solid #5faee3;}
.bor-red{border:1px solid #db0505;} .bor-red{border:1px solid #db0505 !important;}
.bor-none{border:none;} .bor-none{border:none;}
.bor-outnone{outline:none; border:0px;} .bor-outnone{outline:none; border:0px;}

Loading…
Cancel
Save