Compare commits
No commits in common. "0433febf06338e06f291deca06b5872b759b7969" and "7da598b30eef993a178c2a9407fec74bc478e88a" have entirely different histories.
0433febf06
...
7da598b30e
|
@ -79,9 +79,12 @@ watch(() => useOverview.tableList,() => {
|
||||||
return acc + Number(cur.score)
|
return acc + Number(cur.score)
|
||||||
},0)
|
},0)
|
||||||
// 平均分
|
// 平均分
|
||||||
avatarScore.value = hasStudents.value.reduce((acc, cur) => {
|
const studentList = useOverview.tableList.filter(item => useOverview.allData[0].hasAnswers.includes(item.studentid))
|
||||||
|
avatarScore.value = studentList.reduce((acc, cur) => {
|
||||||
return acc + Number(cur.getScore)
|
return acc + Number(cur.getScore)
|
||||||
},0) / hasStudents.value.length
|
},0) / studentList.length
|
||||||
|
console.log(avatarScore.value,'useOverview.tableList');
|
||||||
|
|
||||||
|
|
||||||
// 计算得分率
|
// 计算得分率
|
||||||
getKonwledge()
|
getKonwledge()
|
||||||
|
|
Loading…
Reference in New Issue