Compare commits

..

3 Commits

Author SHA1 Message Date
joylink_fanyuhong
8fbaa85b99 Merge remote-tracking branch 'origin/develop'
All checks were successful
master分支构建发布到公网服务器 / Build-Publish (push) Successful in 11m22s
2024-09-19 09:10:22 +08:00
joylink_fanyuhong
5c81fc4dcf 实训测验统计得分调整 2024-09-18 14:00:17 +08:00
joylink_fanyuhong
b0ef9e5242 实训总分统计调整 2024-09-18 13:30:36 +08:00

View File

@ -72,15 +72,15 @@ export default {
sums[index] = '合计';
return;
} else if (index === 2) {
const MyMemberId = this.$store.state.training.myMemberId;
const scoringRuleList = this.$store.state.trainingNew.scoringRules.find(rule => rule.memberId == MyMemberId );
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) => {