From 497f112dfcb56a72bab2b464763f7c31d39613da Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Thu, 30 Apr 2026 08:37:40 +0800
Subject: [PATCH] 修改

---
 src/views/work/onlineEducation/count/index.vue          |    2 +-
 src/views/work/onlineEducation/classHourBatch/index.vue |    2 +-
 src/views/work/onlineEducation/groupExams/index.vue     |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/views/work/onlineEducation/classHourBatch/index.vue b/src/views/work/onlineEducation/classHourBatch/index.vue
index b5ea561..572f4de 100644
--- a/src/views/work/onlineEducation/classHourBatch/index.vue
+++ b/src/views/work/onlineEducation/classHourBatch/index.vue
@@ -164,7 +164,7 @@
       return {
         ...item,
         coursePeriodNum: item.coursePeriod ? (item.coursePeriod /60).toFixed(2).replace(/\.00$/, '') + '分钟':'',
-        finishRate: item.finishCount ?  item.finishCount ===0 && item.studentCount ===0  ? '0%': (item.finishCount / item.studentCount).toFixed(2) *100 + '%' : ''
+        finishRate: item.finishCount ?  item.finishCount ===0 && item.studentCount ===0  ? '0%': ((item.finishCount / item.studentCount)*100).toFixed(2).replace(/\.00$/, '')  + '%' : ''
       }
     })
     data.total = res.data.total
diff --git a/src/views/work/onlineEducation/count/index.vue b/src/views/work/onlineEducation/count/index.vue
index f5a3c5d..972aa3b 100644
--- a/src/views/work/onlineEducation/count/index.vue
+++ b/src/views/work/onlineEducation/count/index.vue
@@ -139,7 +139,7 @@
     state.dataList = res.data.list.map(item => {
       return {
         ...item,
-        passRate: item.passStudentCount  && item.paperStudentCount ? (item.passStudentCount / item.paperStudentCount).toFixed(2) *100 + '%': item.passStudentCount == 0  && item.paperStudentCount == 0? '0%': ''
+        passRate: item.passStudentCount  && item.paperStudentCount ? ((item.passStudentCount / item.paperStudentCount)*100).toFixed(2).replace(/\.00$/, '')  + '%': item.passStudentCount == 0  && item.paperStudentCount == 0? '0%': ''
 
       }
     })
diff --git a/src/views/work/onlineEducation/groupExams/index.vue b/src/views/work/onlineEducation/groupExams/index.vue
index c52624b..5224b05 100644
--- a/src/views/work/onlineEducation/groupExams/index.vue
+++ b/src/views/work/onlineEducation/groupExams/index.vue
@@ -167,7 +167,7 @@
     data.dataList = res.data.list.map(item => {
       return {
         ...item,
-        passRate: item.paperStudentInfoVO.passStudentCount ===0 && item.paperStudentInfoVO.studentCount ===0  ? '0%': (item.paperStudentInfoVO.passStudentCount / item.paperStudentInfoVO.studentCount).toFixed(2) *100 + '%',
+        passRate: item.paperStudentInfoVO.passStudentCount ===0 && item.paperStudentInfoVO.studentCount ===0  ? '0%': ((item.paperStudentInfoVO.passStudentCount / item.paperStudentInfoVO.studentCount)*100).toFixed(2).replace(/\.00$/, '')  + '%',
         deadlineNum: item.deadline ? item.deadline.slice(0,10) : ''
       }
     })

--
Gitblit v1.9.2