实训测验统计得分调整
All checks were successful
local-test分支构建发布到本地服务器 / Build-Publish (push) Successful in 11m0s

This commit is contained in:
joylink_fanyuhong 2024-09-18 13:59:05 +08:00
parent a556f17312
commit 9a0c8e5794

View File

@ -74,9 +74,9 @@ export default {
} else if (index === 2) { } else if (index === 2) {
const scoringRuleList = this.$store.state.trainingNew.scoringRules; const scoringRuleList = this.$store.state.trainingNew.scoringRules;
let total = 0; let total = 0;
if (scoringRuleList && scoringRuleList.details && scoringRuleList.details.length) { if (scoringRuleList && scoringRuleList.length) {
scoringRuleList.details.forEach(item => { scoringRuleList.forEach(item => {
total += item.score; total += item.fullMarks;
}); });
} }
sums[index] = total; sums[index] = total;