From a902265f0e77b98822bf2b024d6ed2c65d6cd1a9 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Tue, 7 Jul 2020 15:09:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B4=B5=E8=A3=85=E5=A4=87?= =?UTF-8?q?=E5=AD=A6=E7=94=9F=E7=AE=A1=E7=90=86=E6=B5=AE=E7=82=B9=E6=95=B0?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/studentManage/index.vue | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/studentManage/index.vue b/src/views/studentManage/index.vue index 90ea21845..16727f3e5 100644 --- a/src/views/studentManage/index.vue +++ b/src/views/studentManage/index.vue @@ -331,30 +331,30 @@ export default { item.scores.forEach(elem => { if (elem.prdType === '01') { this.showLocal = true; - localExamSocreRadio = elem.examSocreRadio * 100 * 60 / 100 / item.scores.length; - localLessonPassRate = elem.lessonPassRate * 100 * 30 / 100 / item.scores.length; + localExamSocreRadio = elem.examSocreRadio * 60 / item.scores.length; + localLessonPassRate = elem.lessonPassRate * 30 / item.scores.length; totolScore += localExamSocreRadio * 100; totolScore += localLessonPassRate * 100; } else if (elem.prdType === '02') { this.showCenter = true; - centerExamSocreRadio = elem.examSocreRadio * 100 * 60 / 100 / item.scores.length; - centerLessonPassRate = elem.lessonPassRate * 100 * 30 / 100 / item.scores.length; + centerExamSocreRadio = elem.examSocreRadio * 60 / item.scores.length; + centerLessonPassRate = elem.lessonPassRate * 30 / item.scores.length; totolScore += centerExamSocreRadio * 100; totolScore += centerLessonPassRate * 100; } }); - totolScore += item.attendance * 100 * 10 / 100 * 100; + totolScore += item.attendance * 100 * 10; this.tableData.push( { index: index + 1, name: item.name, studentID: item.studentID, - attendance: item.attendance * 100 * 10 / 100, - localExamSocreRadio:localExamSocreRadio, - localLessonPassRate: localLessonPassRate, - centerExamSocreRadio: centerExamSocreRadio, - centerLessonPassRate: centerLessonPassRate, - totolScore: totolScore / 100 + attendance: Math.round(item.attendance * 100) / 10, + localExamSocreRadio:Math.round(localExamSocreRadio * 10) / 10, + localLessonPassRate: Math.round(localLessonPassRate * 10) / 10, + centerExamSocreRadio: Math.round(centerExamSocreRadio * 10) / 10, + centerLessonPassRate: Math.round(centerLessonPassRate * 10) / 10, + totolScore: Math.round(totolScore) / 100 }); }); }).catch(() =>{