代码调整
This commit is contained in:
parent
b5922b2f65
commit
a2eed75f00
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user