From 5c81fc4dcf89fcf0e38731e1b4f0f121bdc8cf51 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Wed, 18 Sep 2024 14:00:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E6=B5=8B=E9=AA=8C=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=BE=97=E5=88=86=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/display/trainingList/testResult.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/newMap/display/trainingList/testResult.vue b/src/views/newMap/display/trainingList/testResult.vue index 0b2e3eaed..9fe9e71a4 100644 --- a/src/views/newMap/display/trainingList/testResult.vue +++ b/src/views/newMap/display/trainingList/testResult.vue @@ -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) => {