Compare commits
No commits in common. "a0477a18df27efa55bcdae7f69da651ca1543747" and "5ad37f60f0aa2f379fb697d434f22e59f8f1f9b9" have entirely different histories.
a0477a18df
...
5ad37f60f0
|
@ -151,12 +151,8 @@ const getXValue = () => {
|
|||
};
|
||||
|
||||
watch(() => useOverview.tableList, () => {
|
||||
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));
|
||||
expectedDuration.value = useOverview.tableList.map(item => (Number(item.timelength) * 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 = allTeacherRating
|
||||
item.getScore = score
|
||||
}else{
|
||||
item.scoingRate = ''
|
||||
item.getScore = 0
|
||||
|
|
Loading…
Reference in New Issue