Commit fbc45c21 by maolipeng

Merge branch 'feature/maolipeng/20210629/piliang' into dev

# Conflicts:
#	src/modules/teach-tool/paper-manage/OperatePaper.jsx
parents 2d9ad9a1 41693930
...@@ -718,24 +718,22 @@ class OperatePaper extends Component { ...@@ -718,24 +718,22 @@ class OperatePaper extends Component {
return prev + Number(cur.score) || 0; return prev + Number(cur.score) || 0;
}, 0); }, 0);
const passScore = Math.round(totalScore * formData.passRate * 0.01); this.setState({
selectQuestionList:questionList,
this.setState({ formData: {
selectQuestionList: questionList, ...formData,
formData: { singleChoiceScore,
...formData, multiChoiceScore,
singleChoiceScore, judgeScore,
multiChoiceScore, gapFillingScore,
judgeScore, indefiniteChoiceScore,
gapFillingScore, totalScore,
indefiniteChoiceScore, passScore,
totalScore, }
passScore, })
}, message.success("设置成功")
}); })
} }
);
};
// 上下移题型 // 上下移题型
handleMoveTypeSorter = (index, moveLength) => { handleMoveTypeSorter = (index, moveLength) => {
const sorterTypeList = [...this.state.sorterTypeList]; const sorterTypeList = [...this.state.sorterTypeList];
......
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