From 352a4ac7d37d4769bcc5e8269fd161b2058e5d10 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Fri, 28 Apr 2023 00:08:35 +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=B9=83=E0=B8=9A=E0=B8=84=E0=B8=B0=E0=B9=81=E0=B8=99=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/01_exam/components/ExamCard.vue | 180 ++++++++++++++++++ .../01_exam/components/ExamFinished.vue | 136 +++---------- 2 files changed, 206 insertions(+), 110 deletions(-) create mode 100644 src/modules/01_exam/components/ExamCard.vue diff --git a/src/modules/01_exam/components/ExamCard.vue b/src/modules/01_exam/components/ExamCard.vue new file mode 100644 index 0000000..458ed95 --- /dev/null +++ b/src/modules/01_exam/components/ExamCard.vue @@ -0,0 +1,180 @@ + + + + + diff --git a/src/modules/01_exam/components/ExamFinished.vue b/src/modules/01_exam/components/ExamFinished.vue index 03ec7d8..ad55f31 100644 --- a/src/modules/01_exam/components/ExamFinished.vue +++ b/src/modules/01_exam/components/ExamFinished.vue @@ -1,7 +1,7 @@ @@ -147,6 +45,7 @@ import { onMounted, ref } from 'vue' import http from '@/plugins/http' import config from '@/app.config' import { useRoute } from 'vue-router' +import ExamCard from '@/modules/01_exam/components/ExamCard.vue' const props = defineProps({ fetchStep: { @@ -214,13 +113,30 @@ const fetchStatus = async () => { }) } -const download = () => { - window.print() -} - const getClass = (val: string) => { return val == 'done' || val == 'checkPoint' ? 'bg-green-1' : 'bg-yellow-2' } - +