dev_aliyun_beta
杨树明 5 years ago
parent 618fe608b8
commit 883177636d

@ -50,7 +50,7 @@ class OfficialAcademicTranscript extends Component {
let score=e.target.value; let score=e.target.value;
if(score!=null&&score!=undefined&&score!=""){ if(score!=null&&score!=undefined&&score!=""){
if(score<maxsum){ if(score<0){
this.props.showNotification("调分不能小于0"); this.props.showNotification("调分不能小于0");
}else if(score>maxsum){ }else if(score>maxsum){
this.props.showNotification(`调分不能大于${maxsum}`); this.props.showNotification(`调分不能大于${maxsum}`);
@ -183,7 +183,7 @@ class OfficialAcademicTranscript extends Component {
render: (text, record) => ( render: (text, record) => (
<span> <span>
<a><InputNumber size="small" defaultValue={record.game_scores.game_score} <a><InputNumber size="small" className="color-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>

Loading…
Cancel
Save