Commit 7ba3f190 by maolipeng

fix:最大分最小分

parent d95a309c
......@@ -80,6 +80,7 @@ export default function BatchScore(props:BatchScoreProps) {
<span className="score">每题
<InputNumber
min={1}
max={100}
defaultValue={_.find(rules,(it)=>{return it.typeKey === "SINGLE_CHOICE"})?.score}
style={inputNumberStyle}
onChange={(v)=> {
......@@ -99,6 +100,7 @@ export default function BatchScore(props:BatchScoreProps) {
<span className="score">每题
<InputNumber
min={1}
max={100}
defaultValue={_.find(rules,(it)=>{return it.typeKey === "MULTI_CHOICE"})?.score}
style={inputNumberStyle}
onChange={(v)=> {
......@@ -113,7 +115,8 @@ export default function BatchScore(props:BatchScoreProps) {
分,漏选得
<InputNumber
min={0}
defaultValue={1}
max={_.find(rules,(it)=>{return it.typeKey === "MULTI_CHOICE"})?.score}
defaultValue={0}
style={inputNumberStyle}
onChange={(v)=> {
setRules(_.map(rules,(item)=>{
......@@ -131,7 +134,7 @@ export default function BatchScore(props:BatchScoreProps) {
<span className="type">【不定项选择题】</span>
<span className="score">每题
<InputNumber
min={1}
min={0}
defaultValue={_.find(rules,(it)=>{return it.typeKey === "INDEFINITE_CHOICE"})?.score}
style={inputNumberStyle}
onChange={(v)=> {
......@@ -163,7 +166,7 @@ export default function BatchScore(props:BatchScoreProps) {
<span className="type">【判断题】</span>
<span className="score">每题
<InputNumber
min={1}
min={0}
defaultValue={_.find(rules,(it)=>{return it.typeKey === "JUDGE"})?.score}
style={inputNumberStyle}
onChange={(v)=> {
......@@ -182,7 +185,7 @@ export default function BatchScore(props:BatchScoreProps) {
<span className="type">【填空题】</span>
<span className="score">每题
<InputNumber
min={1}
min={0}
defaultValue={_.find(rules,(it)=>{return it.typeKey === "GAP_FILLING"})?.score}
style={inputNumberStyle}
onChange={(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