From 6b63235084ce6f588b14d9bab82a49ef37841aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666> Date: Sat, 19 Oct 2024 17:14:21 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=90=8D=E7=A7=B0=E4=BB=A5=E5=8F=8A=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../classOverview/distribution/echarts.vue | 22 +++++++++++++------ .../classOverview/distribution/stuList.vue | 8 ++++++- .../container/classTask/item-dialog-score.vue | 10 ++++----- .../views/classTask/container/item-dialog.vue | 10 ++++----- .../src/views/classTask/teachClassTask.vue | 10 ++++----- 5 files changed, 37 insertions(+), 23 deletions(-) diff --git a/src/renderer/src/views/classTask/container/classOverview/distribution/echarts.vue b/src/renderer/src/views/classTask/container/classOverview/distribution/echarts.vue index 5447495..1ff975c 100644 --- a/src/renderer/src/views/classTask/container/classOverview/distribution/echarts.vue +++ b/src/renderer/src/views/classTask/container/classOverview/distribution/echarts.vue @@ -78,7 +78,7 @@ function initChart() { return `${value}人 ${percentage}%`; // 显示为百分比形式 }, color: '#333', - fontSize: 12 + fontSize: 12 } }] }; @@ -88,12 +88,20 @@ function initChart() { // 获取表的数据 const showEcharts =() => { useOverview.tableList.forEach((item,index) => { - if(item.rating === 0) return // 没批改不计数 - dataList.value.forEach((item1,index1) => { - if(item1.min <= Number(item.scoingRate) && Number(item.scoingRate) <= item1.max ){ - item1.value ++ - } - }) + if(item.rating === 0){ + dataList.value.forEach((item1,index1) => { + if(item1.min <= Number(item.scoingRate) && Number(item.scoingRate) <= item1.max ){ + item1.value ++ + } + }) + }else{ + dataList.value.forEach((item1,index1) => { + if(item1.rating == item.rating){ + item1.value ++ + } + }) + } + }) } watch(() => useOverview.tableList,() => { diff --git a/src/renderer/src/views/classTask/container/classOverview/distribution/stuList.vue b/src/renderer/src/views/classTask/container/classOverview/distribution/stuList.vue index c1de098..afbdac8 100644 --- a/src/renderer/src/views/classTask/container/classOverview/distribution/stuList.vue +++ b/src/renderer/src/views/classTask/container/classOverview/distribution/stuList.vue @@ -65,11 +65,17 @@ const handelChange = (item) => { } //取区域的学生 const showStudents = (index) => { + console.log(useOverview.tableList,'useOverview.tableList'); + leftList.value[index].stuList = useOverview.tableList.filter(item => { - if(item.rating > 0){ + if(item.rating === 0){ if(leftList.value[index].min <= Number(item.scoingRate || 0) && Number(item.scoingRate || 0) <= leftList.value[index].max ){ return item } + }else{ + if(item.rating == leftList.value[index].rating){ + return item + } } }) } diff --git a/src/renderer/src/views/classTask/container/classTask/item-dialog-score.vue b/src/renderer/src/views/classTask/container/classTask/item-dialog-score.vue index f8ca287..203ac9e 100644 --- a/src/renderer/src/views/classTask/container/classTask/item-dialog-score.vue +++ b/src/renderer/src/views/classTask/container/classTask/item-dialog-score.vue @@ -501,11 +501,11 @@ const classWorkFormScore = reactive({ teacherremark: '' //评分说明 }) const teacherRatingList = ref([ - { ratingKey: '1', ratingValue: '优' }, - { ratingKey: '2', ratingValue: '优-' }, - { ratingKey: '3', ratingValue: '良' }, - { ratingKey: '4', ratingValue: '良-' }, - { ratingKey: '5', ratingValue: '差' } + { ratingKey: '1', ratingValue: '完美' }, + { ratingKey: '2', ratingValue: '优秀' }, + { ratingKey: '3', ratingValue: '良好' }, + { ratingKey: '4', ratingValue: '及格' }, + { ratingKey: '5', ratingValue: '不及格' } ]) // 确定的线上图片数据 //#region 文件内容相关 diff --git a/src/renderer/src/views/classTask/container/item-dialog.vue b/src/renderer/src/views/classTask/container/item-dialog.vue index 1cb08cd..d35a0de 100644 --- a/src/renderer/src/views/classTask/container/item-dialog.vue +++ b/src/renderer/src/views/classTask/container/item-dialog.vue @@ -94,19 +94,19 @@ 完美 优秀 良好 及格 不及格 diff --git a/src/renderer/src/views/classTask/teachClassTask.vue b/src/renderer/src/views/classTask/teachClassTask.vue index e87e553..df321eb 100644 --- a/src/renderer/src/views/classTask/teachClassTask.vue +++ b/src/renderer/src/views/classTask/teachClassTask.vue @@ -84,19 +84,19 @@ 完美 优秀 良好 及格 不及格 From 46d5078cac1e9b6394de092055d3751aca421b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666> Date: Sun, 20 Oct 2024 01:35:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=EF=BC=9A=E8=AE=AD=E7=BB=83=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E6=95=B4=E4=BD=93=E4=BF=AE=E6=94=B9=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../classTask/container/classOverview.vue | 197 ++++++++++++++++-- .../classOverview/distribution/echarts.vue | 140 +++++++------ .../classOverview/distribution/stuList.vue | 19 +- .../container/classTask/item-dialog-score.vue | 1 + .../src/views/classTask/teachClassTask.vue | 2 +- 5 files changed, 273 insertions(+), 86 deletions(-) diff --git a/src/renderer/src/views/classTask/container/classOverview.vue b/src/renderer/src/views/classTask/container/classOverview.vue index 6b6687a..fbe48ce 100644 --- a/src/renderer/src/views/classTask/container/classOverview.vue +++ b/src/renderer/src/views/classTask/container/classOverview.vue @@ -1,5 +1,5 @@ diff --git a/src/renderer/src/views/classTask/container/classOverview/distribution/echarts.vue b/src/renderer/src/views/classTask/container/classOverview/distribution/echarts.vue index 1ff975c..3679328 100644 --- a/src/renderer/src/views/classTask/container/classOverview/distribution/echarts.vue +++ b/src/renderer/src/views/classTask/container/classOverview/distribution/echarts.vue @@ -1,32 +1,40 @@ + \ No newline at end of file diff --git a/src/renderer/src/views/classTask/container/classOverview/distribution/stuList.vue b/src/renderer/src/views/classTask/container/classOverview/distribution/stuList.vue index afbdac8..917cc43 100644 --- a/src/renderer/src/views/classTask/container/classOverview/distribution/stuList.vue +++ b/src/renderer/src/views/classTask/container/classOverview/distribution/stuList.vue @@ -16,11 +16,14 @@