From 6370086c85eed0f141f53aa23a617a9daeba3333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666> Date: Thu, 31 Oct 2024 16:01:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=9F=A5=E8=AF=86=E7=82=B9=E5=BE=97?= =?UTF-8?q?=E5=88=86=E7=8E=87=E8=AE=A1=E7=AE=97=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/classTask/container/classOverview/knowledge.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/renderer/src/views/classTask/container/classOverview/knowledge.vue b/src/renderer/src/views/classTask/container/classOverview/knowledge.vue index 02ec2a9..9942547 100644 --- a/src/renderer/src/views/classTask/container/classOverview/knowledge.vue +++ b/src/renderer/src/views/classTask/container/classOverview/knowledge.vue @@ -79,12 +79,9 @@ watch(() => useOverview.tableList,() => { return acc + Number(cur.score) },0) // 平均分 - const studentList = useOverview.tableList.filter(item => useOverview.allData[0].hasAnswers.includes(item.studentid)) - avatarScore.value = studentList.reduce((acc, cur) => { + avatarScore.value = hasStudents.value.reduce((acc, cur) => { return acc + Number(cur.getScore) - },0) / studentList.length - console.log(avatarScore.value,'useOverview.tableList'); - + },0) / hasStudents.value.length // 计算得分率 getKonwledge()