实训测验统计得分调整

This commit is contained in:
joylink_fanyuhong 2024-09-18 14:00:17 +08:00
parent b0ef9e5242
commit 5c81fc4dcf

View File

@ -74,12 +74,13 @@ export default {
} else if (index === 2) {
const scoringRuleList = this.$store.state.trainingNew.scoringRules;
let total = 0;
if (scoringRuleList && scoringRuleList.details && scoringRuleList.details.length) {
scoringRuleList.details.forEach(item => {
total += item.score;
if (scoringRuleList && scoringRuleList.length) {
scoringRuleList.forEach(item => {
total += item.fullMarks;
});
}
sums[index] = total;
sums[index] = total;
} else if (index === 3) {
const values = data.map(item => Number(item[column.property]));
sums[index] = values.reduce((prev, curr) => {