From ef8586f8704b3f86dd8171c383e8a287d49dbd82 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Thu, 27 Apr 2023 16:13:28 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B4=E0=B9=89=E0=B8=99?= =?UTF-8?q?=E0=B8=A3=E0=B8=B9=E0=B8=9B=E0=B9=83=E0=B8=9A=E0=B8=AA=E0=B8=A1?= =?UTF-8?q?=E0=B8=B1=E0=B8=84=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/01_exam/components/ExamFinished.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/modules/01_exam/components/ExamFinished.vue b/src/modules/01_exam/components/ExamFinished.vue index 524dffd..03ec7d8 100644 --- a/src/modules/01_exam/components/ExamFinished.vue +++ b/src/modules/01_exam/components/ExamFinished.vue @@ -195,11 +195,13 @@ const fetchStatus = async () => { scoreCFull.value = data.pointTotalC scoreC.value = data.pointC scoreSumFull.value = - data.pointTotalB == null || data.pointTotalC + data.pointTotalB == null || data.pointTotalC == null ? null : parseInt(data.pointTotalB) + parseInt(data.pointTotalC) scoreSum.value = - data.pointB == null || data.pointC ? null : parseInt(data.pointB) + parseInt(data.pointC) + data.pointB == null || data.pointC == null + ? null + : parseInt(data.pointB) + parseInt(data.pointC) scoreC.value = data.pointC examResultinscore.value = data.pass avatar.value = data.avatar @@ -212,7 +214,9 @@ const fetchStatus = async () => { }) } -const download = () => {} +const download = () => { + window.print() +} const getClass = (val: string) => { return val == 'done' || val == 'checkPoint' ? 'bg-green-1' : 'bg-yellow-2'