diff --git a/public/react/src/modules/courses/poll/PollNew.js b/public/react/src/modules/courses/poll/PollNew.js index edafd9e5b..c3447c425 100644 --- a/public/react/src/modules/courses/poll/PollNew.js +++ b/public/react/src/modules/courses/poll/PollNew.js @@ -2109,12 +2109,19 @@ class PollNew extends Component { //最大值 HandleGradationGroupChangeee = (value, index,minchoices) => { - // console.log(value); + // console.log("2112"); + // console.log(value); + // console.log(minchoices); let arr = this.state.adddom; for (var i = 0; i < arr.length; i++) { if (index === i) { - arr[i].question.min_choices= minchoices===null?0:minchoices===undefined?0:parseInt(minchoices); - arr[i].question.max_choices = parseInt(value); + if(parseInt(value)===0&&parseInt(minchoices)===0){ + arr[i].question.min_choices= parseInt(minchoices); + arr[i].question.max_choices = parseInt(value); + }else { + arr[i].question.min_choices= minchoices===null?2:minchoices===undefined?2:minchoices===0?2:parseInt(minchoices); + arr[i].question.max_choices = parseInt(value); + } } } // console.log(2119);