From 424808fab08b8ceb6afedc2eb2cf3bd00e9a7ac6 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 9 Jan 2025 09:44:14 +0700 Subject: [PATCH] =?UTF-8?q?fix=20fetchData=20=E0=B9=83=E0=B8=AB=E0=B8=A1?= =?UTF-8?q?=E0=B9=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/01_exam/components/ExamCard.vue | 25 ++++++++++++++++--- .../01_exam/components/ExamFinished.vue | 11 ++++++-- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/src/modules/01_exam/components/ExamCard.vue b/src/modules/01_exam/components/ExamCard.vue index f694308..80309ae 100644 --- a/src/modules/01_exam/components/ExamCard.vue +++ b/src/modules/01_exam/components/ExamCard.vue @@ -150,9 +150,7 @@ />
ความคิดเห็น/ข้อแนะนำ
-
- {{ review }} -
+
{{ review }}
@@ -161,7 +159,7 @@ diff --git a/src/modules/01_exam/components/ExamFinished.vue b/src/modules/01_exam/components/ExamFinished.vue index caa4759..45135de 100644 --- a/src/modules/01_exam/components/ExamFinished.vue +++ b/src/modules/01_exam/components/ExamFinished.vue @@ -35,7 +35,7 @@ />ได้รับใบสมัครแล้ว - + @@ -127,6 +127,7 @@ const avatar = ref('') const dialog = ref(false) const rating = ref(5) const text = ref('') +const isSubmit = ref(false) onMounted(async () => { await fetchStatus() @@ -174,7 +175,9 @@ const sendRating = async () => { reviewPoint: rating.value, //คะแนน review: text.value //ข้อความ }) - .then((res) => {}) + .then(async () => { + isSubmit.value = true + }) .catch((e) => { messageError($q, e) }) @@ -184,6 +187,10 @@ const sendRating = async () => { }) } +const updateIsSubmit = () => { + isSubmit.value = false +} + const getClass = (val: string) => { return val == 'done' || val == 'checkPoint' ? 'bg-green-1' : 'bg-yellow-2' }