From 49d554153f2903eec8f6e5accbc16025fdc295e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Sat, 27 Jul 2019 12:23:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/poll/PollNew.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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);