|
|
|
@ -92,14 +92,13 @@ class SingleEditor extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const intScore = parseFloat(question_score)
|
|
|
|
|
if(!question_score || intScore == NaN) {
|
|
|
|
|
this.props.showNotification('分值不能为空'); return;
|
|
|
|
|
} else {
|
|
|
|
|
if (intScore == 0) {
|
|
|
|
|
this.props.showNotification('分值必须大于0'); return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (intScore == 0) {
|
|
|
|
|
this.props.showNotification('分值:必须大于0'); return;
|
|
|
|
|
} else if(!question_score || intScore == NaN) {
|
|
|
|
|
this.props.showNotification('分值:不能为空'); return;
|
|
|
|
|
}
|
|
|
|
|
if(!answerArray || answerArray.length == 0) {
|
|
|
|
|
this.props.showNotification('请先点击选择本选择题的正确选项'); return;
|
|
|
|
|
}
|
|
|
|
@ -301,7 +300,7 @@ class SingleEditor extends Component{
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
分值:
|
|
|
|
|
<InputNumber step={0.1} precision={1} min={0.1} max={100} style={{width: 100}} value={question_score} onChange={this.on_question_score_change}
|
|
|
|
|
<InputNumber step={0.1} precision={1} min={0} max={100} style={{width: 100}} value={question_score} onChange={this.on_question_score_change}
|
|
|
|
|
disabled={exerciseIsPublish}
|
|
|
|
|
></InputNumber> 分
|
|
|
|
|
|
|
|
|
|