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()