From 6370086c85eed0f141f53aa23a617a9daeba3333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666> Date: Thu, 31 Oct 2024 16:01:50 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=E7=9F=A5=E8=AF=86=E7=82=B9=E5=BE=97?= =?UTF-8?q?=E5=88=86=E7=8E=87=E8=AE=A1=E7=AE=97=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/classTask/container/classOverview/knowledge.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/renderer/src/views/classTask/container/classOverview/knowledge.vue b/src/renderer/src/views/classTask/container/classOverview/knowledge.vue index 02ec2a9..9942547 100644 --- a/src/renderer/src/views/classTask/container/classOverview/knowledge.vue +++ b/src/renderer/src/views/classTask/container/classOverview/knowledge.vue @@ -79,12 +79,9 @@ watch(() => useOverview.tableList,() => { return acc + Number(cur.score) },0) // 平均分 - const studentList = useOverview.tableList.filter(item => useOverview.allData[0].hasAnswers.includes(item.studentid)) - avatarScore.value = studentList.reduce((acc, cur) => { + avatarScore.value = hasStudents.value.reduce((acc, cur) => { return acc + Number(cur.getScore) - },0) / studentList.length - console.log(avatarScore.value,'useOverview.tableList'); - + },0) / hasStudents.value.length // 计算得分率 getKonwledge() From 9e24b6111dd229235573735006900c3dde5bb45a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666> Date: Thu, 31 Oct 2024 16:37:02 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix=EF=BC=9A=E7=9F=A5=E8=AF=86=E7=82=B9?= =?UTF-8?q?=E5=88=86=E6=95=B0=E4=BF=AE=E6=94=B9;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/classTask/container/classOverview.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/views/classTask/container/classOverview.vue b/src/renderer/src/views/classTask/container/classOverview.vue index c3992f3..33c7726 100644 --- a/src/renderer/src/views/classTask/container/classOverview.vue +++ b/src/renderer/src/views/classTask/container/classOverview.vue @@ -242,7 +242,7 @@ const initData = () => { } // def: 原始题数据 type 类型 active: 选中 points: 得分率, accSum 题解答人数 - return { def: o, id: o.id, type: o.worktype, active: [], points, accSum, rightSum, children,hasAnswers,timeAnalyse,score:o.score } + return { def: o, id: o.id, type: o.worktype, active: [], points, accSum, rightSum, children,hasAnswers,timeAnalyse,score:o.workScore } }) if (data.length === 0) return useOverview.getAllData([...data]) From 4578bbca5808c304276cd8d964ae3e158a8270f9 Mon Sep 17 00:00:00 2001 From: lyc Date: Thu, 31 Oct 2024 16:55:19 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=A4=B4=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/layout/components/Header.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/layout/components/Header.vue b/src/renderer/src/layout/components/Header.vue index a01a158..0bb3d08 100644 --- a/src/renderer/src/layout/components/Header.vue +++ b/src/renderer/src/layout/components/Header.vue @@ -29,7 +29,11 @@
- + + +