dev_forum
hjm 5 years ago
parent 53379b3487
commit c3ee5dde15

@ -55,7 +55,7 @@ class SingleEditor extends Component{
// TODO check
const answerArray = standard_answers.map((item, index) => { return item == true ? index+1 : -1 }).filter(item => item != -1);
if(!question_title) {
this.props.showNotification('请先输入题目题干'); return;
this.props.showNotification('题目不能为空'); return;
}
const intScore = parseFloat(question_score)
if(!question_score || intScore == NaN) {
@ -69,7 +69,7 @@ class SingleEditor extends Component{
this.props.showNotification('请先点击本题的正确选项'); return;
}
if(!question_title) {
this.props.showNotification('请先输入题目题干'); return;
this.props.showNotification('题目不能为空'); return;
}
/**

@ -45,7 +45,7 @@ class MainEditor extends Component{
// TODO check
const answerArray = standard_answers
if(!question_title) {
this.props.showNotification('请先输入题目题干'); return;
this.props.showNotification('题目不能为空'); return;
}
const intScore = parseFloat(question_score)
if(!question_score || intScore == NaN) {

@ -69,7 +69,7 @@ class NullEditor extends Component{
// const answerArray = standard_answers.map((item, index) => { return item == true ? index+1 : -1 }).filter(item => item != -1);
let answerArray = []
if(!question_title) {
this.props.showNotification('请先输入题目题干'); return;
this.props.showNotification('题目不能为空'); return;
}
const intScore = parseFloat(question_score)
if(!question_score || intScore == NaN) {
@ -97,7 +97,7 @@ class NullEditor extends Component{
return;
}
if(!question_title) {
this.props.showNotification('请先输入题目题干'); return;
this.props.showNotification('题目不能为空'); return;
}
/**

@ -87,7 +87,7 @@ class SingleEditor extends Component{
// TODO check
const answerArray = standard_answers.map((item, index) => { return item == true ? index+1 : -1 }).filter(item => item != -1);
if(!question_title) {
this.props.showNotification('请先输入题目题干'); return;
this.props.showNotification('题目不能为空'); return;
}
const intScore = parseFloat(question_score)
if(!question_score || intScore == NaN) {
@ -101,7 +101,7 @@ class SingleEditor extends Component{
this.props.showNotification('请先点击选择本选择题的正确选项'); return;
}
if(!question_title) {
this.props.showNotification('请先输入题目题干'); return;
this.props.showNotification('题目不能为空'); return;
}
for(let i = 0; i < question_choices.length; i++) {

Loading…
Cancel
Save