Compare commits

..

No commits in common. "a0477a18df27efa55bcdae7f69da651ca1543747" and "5ad37f60f0aa2f379fb697d434f22e59f8f1f9b9" have entirely different histories.

2 changed files with 3 additions and 7 deletions

View File

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

View File

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