topic_bank
杨树林 6 years ago
parent 4652c28dd2
commit 5ace28129d

@ -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;
}

@ -2504,6 +2504,15 @@ class Listofworksstudentone extends Component {
// console.log(this.props.isAdmin());
let course_is_end = this.props.current_user&&this.props.current_user.course_is_end;
// if(this.props.isAdmin() === false){
// if(teacherdata.student_works!==undefined){
// if(teacherdata.student_works.length>0){
//
//
// }
// }
//
// }
return (
this.props.isAdmin() === true ?
(

Loading…
Cancel
Save