From b0ef9e52422f2d0f787318088f648265ec71d578 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Wed, 18 Sep 2024 13:30:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E6=80=BB=E5=88=86?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/newMap/display/trainingList/testResult.vue b/src/views/newMap/display/trainingList/testResult.vue index a07a2d289..0b2e3eaed 100644 --- a/src/views/newMap/display/trainingList/testResult.vue +++ b/src/views/newMap/display/trainingList/testResult.vue @@ -72,8 +72,7 @@ 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 => { 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 2/2] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E6=B5=8B=E9=AA=8C?= =?UTF-8?q?=E7=BB=9F=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) => {