|
|
|
@ -1579,6 +1579,9 @@ class PollNew extends Component {
|
|
|
|
|
if(object.question.max_choices>0){
|
|
|
|
|
if (object.question.max_choices < object.question.min_choices) {
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
this.setState({
|
|
|
|
|
Newdisplay:true,
|
|
|
|
|
})
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1589,10 +1592,16 @@ class PollNew extends Component {
|
|
|
|
|
if(object.question.min_choices){
|
|
|
|
|
if(object.question.min_choices===0){
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
this.setState({
|
|
|
|
|
Newdisplay:true,
|
|
|
|
|
})
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
this.setState({
|
|
|
|
|
Newdisplay:true,
|
|
|
|
|
})
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -1605,10 +1614,16 @@ class PollNew extends Component {
|
|
|
|
|
if(object.question.max_choices){
|
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
this.setState({
|
|
|
|
|
Newdisplay:true,
|
|
|
|
|
})
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
this.setState({
|
|
|
|
|
Newdisplay:true,
|
|
|
|
|
})
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|