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' }