diff --git a/package.json b/package.json index 75da1f6..9e2f9f6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aix-win", - "version": "2.1.12", + "version": "2.1.14", "description": "", "main": "./out/main/index.js", "author": "example.com", diff --git a/src/renderer/src/views/classTask/container/classOverview.vue b/src/renderer/src/views/classTask/container/classOverview.vue index fbe48ce..b6c6d7e 100644 --- a/src/renderer/src/views/classTask/container/classOverview.vue +++ b/src/renderer/src/views/classTask/container/classOverview.vue @@ -10,7 +10,7 @@ 等级分布 - + @@ -218,8 +218,9 @@ const initData = () => { return { def: o, id: o.id, type: o.worktype, active: [], points, accSum, rightSum, children,hasAnswers } }) 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 @@ - + - +