|
|
@ -74,13 +74,13 @@ class NullEditor extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const intScore = parseFloat(question_score)
|
|
|
|
const intScore = parseFloat(question_score)
|
|
|
|
if(!question_score || intScore == NaN) {
|
|
|
|
if (intScore == 0) {
|
|
|
|
|
|
|
|
this.props.showNotification('分值:必须大于0'); return;
|
|
|
|
|
|
|
|
} else if(!question_score || intScore == NaN) {
|
|
|
|
this.props.showNotification('分值:不能为空'); return;
|
|
|
|
this.props.showNotification('分值:不能为空'); return;
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
if (intScore == 0) {
|
|
|
|
|
|
|
|
this.props.showNotification('分值:必须大于0'); return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
let isEmpty = false;
|
|
|
|
let isEmpty = false;
|
|
|
|
standard_answers.forEach((answers, index) => {
|
|
|
|
standard_answers.forEach((answers, index) => {
|
|
|
|
answerArray.push({
|
|
|
|
answerArray.push({
|
|
|
@ -340,7 +340,7 @@ class NullEditor extends Component{
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="clearfix mt20">
|
|
|
|
<div className="clearfix mt20">
|
|
|
|
分值:
|
|
|
|
分值:
|
|
|
|
<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} placeholder="请填写分数"
|
|
|
|
disabled={exerciseIsPublish} placeholder="请填写分数"
|
|
|
|
></InputNumber > 分
|
|
|
|
></InputNumber > 分
|
|
|
|
|
|
|
|
|
|
|
|