Commit 404016dd by maolipeng

fix:得分不少于漏选分

parent 22be4c24
...@@ -659,6 +659,9 @@ class OperatePaper extends Component { ...@@ -659,6 +659,9 @@ class OperatePaper extends Component {
value={record.score || 2} value={record.score || 2}
onChange={(value) => { onChange={(value) => {
value = Math.round(value) value = Math.round(value)
if (value <= record.portionScore) {
return
}
const _selectQuestionList = [...selectQuestionList]; const _selectQuestionList = [...selectQuestionList];
this.setState( this.setState(
{ {
...@@ -692,7 +695,7 @@ class OperatePaper extends Component { ...@@ -692,7 +695,7 @@ class OperatePaper extends Component {
)}{" "} )}{" "}
<InputNumber <InputNumber
min={0} min={0}
max={record.score - 1} max={ record.score <= 0 ? 0 : record.score - 1}
value={record.portionScore || 0} value={record.portionScore || 0}
onChange={(value) => { onChange={(value) => {
value = Math.round(value) value = Math.round(value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment