From 4974f6638896ea397b44964ad83520528345e160 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Thu, 5 Sep 2019 16:28:18 +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
---
.../modules/courses/poll/PollNewQuestbank.js | 119 +++++++++++-------
1 file changed, 76 insertions(+), 43 deletions(-)
diff --git a/public/react/src/modules/courses/poll/PollNewQuestbank.js b/public/react/src/modules/courses/poll/PollNewQuestbank.js
index 14a7d2306..c598dc371 100644
--- a/public/react/src/modules/courses/poll/PollNewQuestbank.js
+++ b/public/react/src/modules/courses/poll/PollNewQuestbank.js
@@ -1061,11 +1061,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;
}
@@ -1292,11 +1292,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;
}
@@ -1622,11 +1622,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;
}
@@ -1826,11 +1826,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;
}
@@ -3209,16 +3209,17 @@ class PollNewQuestbank extends Component {
}}
onInput={(e) => this.HandleInputChanges(e, indexo, indext)}>
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
- (itemo.question.question_type === 2 && itemo.question.answers.length === 3 ?
- (indext ===1?
- this.Ewoption(itemo.question.id, itemo)}>