diff --git a/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js b/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js index cdbc7218b..3b849b2cf 100644 --- a/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js +++ b/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js @@ -704,7 +704,7 @@ class ExerciseReviewAndAnswer extends Component{ { // 填空(一直都有调分),和简答题调分:老师身份 已经评分的才能出现调分按钮 - 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) ? this.showSetScore(key,item.setScore,item.q_position+"_"+item.question_type)}>调分:"" } { diff --git a/public/react/src/modules/courses/poll/Poll.js b/public/react/src/modules/courses/poll/Poll.js index 07be2196c..d879738ea 100644 --- a/public/react/src/modules/courses/poll/Poll.js +++ b/public/react/src/modules/courses/poll/Poll.js @@ -329,10 +329,8 @@ class Poll extends Component{ }) let{type,StudentList_value,page}=this.state this.InitList(type,StudentList_value,page); - - this.setState({ - checkBoxValues:[] - }) + console.log(checkValue); + console.log(value); let coursesId=this.props.match.params.coursesId; let url=`/courses/${coursesId}/polls/publish_modal.json`; axios.get(url,{ @@ -350,10 +348,6 @@ class Poll extends Component{ }) } } - this.setState({ - course_groups:list, - checkBoxValues:value - }) this.setState({ modalname:"立即发布", modaltype:response.data.un_publish > 0 ? 1 : 2, @@ -368,6 +362,8 @@ class Poll extends Component{ Savesname:"立即发布", Cancel:this.homeworkhide, Saves:this.homeworkstartend, + course_groups:list, + checkBoxValues:value }) } }).catch((error) => { @@ -424,7 +420,7 @@ class Poll extends Component{ addname:undefined, addnametype:false, addnametab:undefined, - checkBoxValues:[] + // checkBoxValues:[] }) }