dev_aliyun_beta
杨树明 5 years ago
parent c766a452e9
commit 96b71c7fb3

@ -179,7 +179,7 @@ class ShixunWorkReport extends Component {
<div className="stud-class-set"> <div className="stud-class-set">
<div className="clearfix edu-back-white poll_list"> <div className="clearfix edu-back-white poll_list">
<div className="font-16 color-dark-21 shixunreporttitle ml20 pd20">阶段成绩</div> <div className="font-16 color-dark-21 shixunreporttitle ml20 pd20" onBlur={} onBlurCapture={}>阶段成绩</div>
<OfficialAcademicTranscript <OfficialAcademicTranscript
{...this.props} {...this.props}

@ -23,7 +23,7 @@ class OfficialAcademicTranscript extends Component {
} }
editgame_scores=(score,id)=>{ editgame_scores=(score,id)=>{
if(score!=null&&score!=undefined){ if(score!=null&&score!=undefined&&score!=""){
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`
axios.post(url,{ axios.post(url,{
@ -158,7 +158,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" defaultValue={record.game_scores.game_score}
onChange={(e) => this.editgame_scores(e,record.challenge_id.id)} onBlur={(e) => this.editgame_scores(e,record.challenge_id.id)}
min={0} max={record.game_scores.game_score_full} min={0} max={record.game_scores.game_score_full}
/></a> /></a>
{/*<a style={{textAlign: "center"}} className="color-blue font-14 mr20">查看</a>*/} {/*<a style={{textAlign: "center"}} className="color-blue font-14 mr20">查看</a>*/}

Loading…
Cancel
Save