From 2db7d3e87202a08555a774961aa7d4d9c349c55d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=99=BD=E4=BA=86=E4=B8=AA=E7=99=BD?= <543593352@qq.com>
Date: Wed, 30 Oct 2024 17:06:57 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E6=89=B9=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/classTask/teachClassTask.vue | 35 ++++++++++---------
1 file changed, 19 insertions(+), 16 deletions(-)
diff --git a/src/renderer/src/views/classTask/teachClassTask.vue b/src/renderer/src/views/classTask/teachClassTask.vue
index b58394b..2ae3647 100644
--- a/src/renderer/src/views/classTask/teachClassTask.vue
+++ b/src/renderer/src/views/classTask/teachClassTask.vue
@@ -82,25 +82,25 @@
{{scope.row.getScore || 0}}
-
+
-
+
待批阅
- 完美
- 优秀
- 良好
- 及格
- 不及格
@@ -345,7 +345,7 @@ const getClassWorkStudentList = (rowId) => {
}
// 老师批阅状态 默认0 未批改
- response.rows[i].teacherRating = 0
+ response.rows[i].rating = 0
// 计算每个学生的得分率
if (
@@ -371,21 +371,23 @@ const getClassWorkStudentList = (rowId) => {
score += evalarray[e].score;
evalarray[e].teacherRating = evalarray[e].score
}
+
}
}
- const allScore = evalarray.reduce((acc, cur) => acc + cur.score, 0)
+
+ const allTeacherRating = evalarray.reduce((acc, cur) => acc + cur.teacherRating, 0) // 老师评分
//console.log(evalarray, 'evalarray------------------------------------')
if (feedcount > 0) {
// 多个题目的总得分率: 正确题数/(题目数*100)
- response.rows[i].scoingRate = ((score / allScore) * 100).toFixed(0) + '%'
- response.rows[i].getScore = score
+ response.rows[i].scoingRate = ((score / allTeacherRating) * 100).toFixed(0) + '%'
+ response.rows[i].getScore = allTeacherRating
} else {
response.rows[i].scoingRate = '0%'
response.rows[i].getScore = 0
}
// 批阅状态 优良类 :注意:这里题目中的评价都是一样的,所以取第一个
if (evalarray[0].rating != '') {
- response.rows[i].teacherRating = evalarray[0].rating
+ response.rows[i].rating = evalarray[0].rating
}
} else {
response.rows[i].scoingRate = '0%'
@@ -420,7 +422,7 @@ const teacherCriticism = ()=>{
tableRadio.list = tableRadio.list.map((item) => {
return {
...item,
- teacherRating : item.teacherRating || checkWorkType(item)
+ rating : item.rating || checkWorkType(item)
}
})
}
@@ -675,10 +677,11 @@ const handleClassOverviewOpen = (type) =>{
}
}
})
- const allScore = allTopic.reduce((acc, cur) => {
- return acc + cur.score;
+ const allTeacherRating = allTopic.reduce((acc, cur) => {
+ return acc + cur.teacherRating;
},0)
- rightAnswer > 0?item.scoingRate = (score/allScore * 100).toFixed(0):item.scoingRate = ''
+
+ rightAnswer > 0?item.scoingRate = (score/allTeacherRating * 100).toFixed(0):item.scoingRate = ''
item.getScore = score
}else{
item.scoingRate = ''
--
2.44.0.windows.1