|
|
|
@ -1062,7 +1062,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
} else if (object.question.question_type === 2) {
|
|
|
|
|
//插入多选题
|
|
|
|
|
if (object.question.max_choices < object.question.min_choices) {
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -1087,11 +1087,11 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
if(object.question.min_choices>0){
|
|
|
|
|
if(object.question.max_choices){
|
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制!`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制!`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -1293,7 +1293,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
//插入多选题
|
|
|
|
|
|
|
|
|
|
if (object.question.max_choices < object.question.min_choices) {
|
|
|
|
|
this.props.showNotification('可选的最大限制不能小于最小限制!');
|
|
|
|
|
this.props.showNotification('可选:最小和最大限制须同时为数值或者“--"');
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -1623,7 +1623,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
} else if (object.question.question_type === 2) {
|
|
|
|
|
//插入多选题
|
|
|
|
|
if (object.question.max_choices < object.question.min_choices) {
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -1649,11 +1649,11 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
if(object.question.min_choices>0){
|
|
|
|
|
if(object.question.max_choices){
|
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制!`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制!`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -1827,7 +1827,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
} else if (object.question.question_type === 2) {
|
|
|
|
|
//插入多选题
|
|
|
|
|
if (object.question.max_choices < object.question.min_choices) {
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -1853,11 +1853,11 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
if(object.question.min_choices>0){
|
|
|
|
|
if(object.question.max_choices){
|
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制!`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制!`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|