Commit f48e763e by maolipeng

fix:XMQXY-470

parent 6499f580
...@@ -115,6 +115,7 @@ export default function BatchScore(props:BatchScoreProps) { ...@@ -115,6 +115,7 @@ export default function BatchScore(props:BatchScoreProps) {
min={0} min={0}
max={rules[3].score} max={rules[3].score}
defaultValue={rules[3].portionScore} defaultValue={rules[3].portionScore}
value={rules[3].portionScore}
style={inputNumberStyle} style={inputNumberStyle}
onChange={(v)=> { onChange={(v)=> {
v = Math.round(v) v = Math.round(v)
...@@ -145,7 +146,7 @@ export default function BatchScore(props:BatchScoreProps) { ...@@ -145,7 +146,7 @@ export default function BatchScore(props:BatchScoreProps) {
<InputNumber <InputNumber
min={0} min={0}
defaultValue={rules[1].portionScore} defaultValue={rules[1].portionScore}
value={rules[1].score} value={rules[1].portionScore}
style={inputNumberStyle} style={inputNumberStyle}
onChange={(v)=> { onChange={(v)=> {
v = Math.round(v) v = Math.round(v)
......
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