Compare commits
3 Commits
5ad37f60f0
...
a0477a18df
Author | SHA1 | Date |
---|---|---|
小杨 | a0477a18df | |
yangws | f3f3ada1ed | |
yangws | 2cecbc14fd |
|
@ -151,8 +151,12 @@ const getXValue = () => {
|
|||
};
|
||||
|
||||
watch(() => useOverview.tableList, () => {
|
||||
expectedDuration.value = useOverview.tableList.map(item => (Number(item.timelength) * 60 / useOverview.allData.length).toFixed(2));
|
||||
const time = useOverview.tableList.map(item => Number(item.timelength))
|
||||
const avatarTime = time.reduce((acc, cur) => {
|
||||
return acc + cur
|
||||
},0) / time.length
|
||||
|
||||
expectedDuration.value = useOverview.allData.map(() => (Number(avatarTime) * 60 / useOverview.allData.length).toFixed(2));
|
||||
// 获取横纵坐标
|
||||
nextTick(() => {
|
||||
initChart();
|
||||
|
|
|
@ -680,7 +680,7 @@ const handleClassOverviewOpen = (type) =>{
|
|||
const allTeacherRating = allTopic.reduce((acc, cur) => acc + cur.teacherRating, 0)
|
||||
|
||||
rightAnswer > 0?item.scoingRate = (score/allTeacherRating * 100).toFixed(0):item.scoingRate = ''
|
||||
item.getScore = score
|
||||
item.getScore = allTeacherRating
|
||||
}else{
|
||||
item.scoingRate = ''
|
||||
item.getScore = 0
|
||||
|
|
Loading…
Reference in New Issue