From ea861dd2ea1a0c65f5d10db58b5552b0dd8359e1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666>
Date: Sun, 20 Oct 2024 17:45:42 +0800
Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E8=8E=B7=E5=8F=96=E5=AD=A6?=
=?UTF-8?q?=E7=94=9Fid=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/classTask/container/classOverview.vue | 4 ++--
.../container/classOverview/distribution.vue | 15 +++++++++++----
.../classOverview/distribution/echarts.vue | 16 ++++++++--------
.../classOverview/distribution/stuList.vue | 17 +++++++++--------
.../src/views/classTask/teachClassTask.vue | 4 ++++
5 files changed, 34 insertions(+), 22 deletions(-)
diff --git a/src/renderer/src/views/classTask/container/classOverview.vue b/src/renderer/src/views/classTask/container/classOverview.vue
index 4a89f6e..b6c6d7e 100644
--- a/src/renderer/src/views/classTask/container/classOverview.vue
+++ b/src/renderer/src/views/classTask/container/classOverview.vue
@@ -10,7 +10,7 @@
等级分布
-
+
@@ -219,8 +219,8 @@ const initData = () => {
})
console.log('获取数据: ', data)
if (data.length === 0) return
+ if (!data[0].hasAnswers[0]) return
stuHasAnswers.value = [...data[0].hasAnswers]
- provide('hasAnswer', stuHasAnswers.value)
}
// 百分比现在 0-100
const percent = v => v > 1 ? 1 : v < 0 ? 0 : Math.round(v * 100)
diff --git a/src/renderer/src/views/classTask/container/classOverview/distribution.vue b/src/renderer/src/views/classTask/container/classOverview/distribution.vue
index 5ff15c1..bf55cd5 100644
--- a/src/renderer/src/views/classTask/container/classOverview/distribution.vue
+++ b/src/renderer/src/views/classTask/container/classOverview/distribution.vue
@@ -3,19 +3,26 @@
-
+
-
+