Compare commits
2 Commits
7da598b30e
...
0433febf06
Author | SHA1 | Date |
---|---|---|
yangws | 0433febf06 | |
小杨 | 6370086c85 |
|
@ -79,12 +79,9 @@ watch(() => useOverview.tableList,() => {
|
||||||
return acc + Number(cur.score)
|
return acc + Number(cur.score)
|
||||||
},0)
|
},0)
|
||||||
// 平均分
|
// 平均分
|
||||||
const studentList = useOverview.tableList.filter(item => useOverview.allData[0].hasAnswers.includes(item.studentid))
|
avatarScore.value = hasStudents.value.reduce((acc, cur) => {
|
||||||
avatarScore.value = studentList.reduce((acc, cur) => {
|
|
||||||
return acc + Number(cur.getScore)
|
return acc + Number(cur.getScore)
|
||||||
},0) / studentList.length
|
},0) / hasStudents.value.length
|
||||||
console.log(avatarScore.value,'useOverview.tableList');
|
|
||||||
|
|
||||||
|
|
||||||
// 计算得分率
|
// 计算得分率
|
||||||
getKonwledge()
|
getKonwledge()
|
||||||
|
|
Loading…
Reference in New Issue