dev_aliyun_beta
caicai8 5 years ago
parent 27e549796f
commit f103d7adc9

@ -704,7 +704,7 @@ class ExerciseReviewAndAnswer extends Component{
<span className="fr"> <span className="fr">
{ {
// 填空(一直都有调分),和简答题调分:老师身份 已经评分的才能出现调分按钮 // 填空(一直都有调分),和简答题调分:老师身份 已经评分的才能出现调分按钮
isAdmin && ((parseInt(item.answer_status) == 1 && item.question_type == 4) || item.question_type == 3) ? isAdmin && ((parseInt(item.answer_status) != 0 && item.question_type == 4) || item.question_type == 3) ?
<WordsBtn style="blue" className="mr20 font-16 fl" onClick={()=>this.showSetScore(key,item.setScore,item.q_position+"_"+item.question_type)}>调分</WordsBtn>:"" <WordsBtn style="blue" className="mr20 font-16 fl" onClick={()=>this.showSetScore(key,item.setScore,item.q_position+"_"+item.question_type)}>调分</WordsBtn>:""
} }
{ {

@ -329,10 +329,8 @@ class Poll extends Component{
}) })
let{type,StudentList_value,page}=this.state let{type,StudentList_value,page}=this.state
this.InitList(type,StudentList_value,page); this.InitList(type,StudentList_value,page);
console.log(checkValue);
this.setState({ console.log(value);
checkBoxValues:[]
})
let coursesId=this.props.match.params.coursesId; let coursesId=this.props.match.params.coursesId;
let url=`/courses/${coursesId}/polls/publish_modal.json`; let url=`/courses/${coursesId}/polls/publish_modal.json`;
axios.get(url,{ axios.get(url,{
@ -350,10 +348,6 @@ class Poll extends Component{
}) })
} }
} }
this.setState({
course_groups:list,
checkBoxValues:value
})
this.setState({ this.setState({
modalname:"立即发布", modalname:"立即发布",
modaltype:response.data.un_publish > 0 ? 1 : 2, modaltype:response.data.un_publish > 0 ? 1 : 2,
@ -368,6 +362,8 @@ class Poll extends Component{
Savesname:"立即发布", Savesname:"立即发布",
Cancel:this.homeworkhide, Cancel:this.homeworkhide,
Saves:this.homeworkstartend, Saves:this.homeworkstartend,
course_groups:list,
checkBoxValues:value
}) })
} }
}).catch((error) => { }).catch((error) => {
@ -424,7 +420,7 @@ class Poll extends Component{
addname:undefined, addname:undefined,
addnametype:false, addnametype:false,
addnametab:undefined, addnametab:undefined,
checkBoxValues:[] // checkBoxValues:[]
}) })
} }

Loading…
Cancel
Save