Commit e65e34ab by maolipeng

fix:去除小数,,,

parent 404016dd
...@@ -657,6 +657,8 @@ class OperatePaper extends Component { ...@@ -657,6 +657,8 @@ class OperatePaper extends Component {
min={1} min={1}
max={100} max={100}
value={record.score || 2} value={record.score || 2}
formatter={value => parseInt(value)}
parser={value => parseInt(value)}
onChange={(value) => { onChange={(value) => {
value = Math.round(value) value = Math.round(value)
if (value <= record.portionScore) { if (value <= record.portionScore) {
......
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