fix:知识点得分率计算; #384

Merged
yangws merged 1 commits from yangws into main 2024-10-31 16:02:14 +08:00
1 changed files with 2 additions and 5 deletions
Showing only changes of commit 6370086c85 - Show all commits

View File

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