代码调整

This commit is contained in:
joylink_cuiweidong 2022-08-30 17:58:07 +08:00
parent b5922b2f65
commit a2eed75f00

View File

@ -167,9 +167,10 @@ export default {
}); });
that.addModel.details = details; that.addModel.details = details;
const gradeRulesList = Object.values(that.gradeRulesMap); const gradeRulesList = Object.values(that.gradeRulesMap);
gradeRulesList.forEach(gradeRule=>{ gradeRulesList.map(gradeRule=>{
if (gradeRule.memberId == that.addModel.memberId) { if (gradeRule.memberId == that.addModel.memberId) {
gradeRule = that.addModel; gradeRule.details = [...that.addModel.details];
gradeRule.fullMarks = that.addModel.fullMarks;
} }
}); });
if (!that.gradeRulesMap[that.addModel.memberId] && that.addModel.details.length > 0) { if (!that.gradeRulesMap[that.addModel.memberId] && that.addModel.details.length > 0) {