dev_forum
杨树林 5 years ago
parent c4cba31292
commit 49d554153f

@ -2109,12 +2109,19 @@ class PollNew extends Component {
//最大值 //最大值
HandleGradationGroupChangeee = (value, index,minchoices) => { HandleGradationGroupChangeee = (value, index,minchoices) => {
// console.log("2112");
// console.log(value); // console.log(value);
// console.log(minchoices);
let arr = this.state.adddom; let arr = this.state.adddom;
for (var i = 0; i < arr.length; i++) { for (var i = 0; i < arr.length; i++) {
if (index === i) { if (index === i) {
arr[i].question.min_choices= minchoices===null?0:minchoices===undefined?0:parseInt(minchoices); if(parseInt(value)===0&&parseInt(minchoices)===0){
arr[i].question.min_choices= parseInt(minchoices);
arr[i].question.max_choices = parseInt(value); 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); // console.log(2119);

Loading…
Cancel
Save