From ae4390030cf5c082ca44a5993d33c08dfb90958f Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 7 Jan 2025 17:48:39 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=A5?= =?UTF-8?q?=E0=B8=B0=E0=B9=80=E0=B8=AD=E0=B8=B5=E0=B8=A2=E0=B8=94=E0=B8=82?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=AA=E0=B8=A1?= =?UTF-8?q?=E0=B8=B1=E0=B8=84=E0=B8=A3=E0=B8=AA=E0=B8=AD=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../03_recruiting/views/01_compete/DetailEx.vue | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/modules/03_recruiting/views/01_compete/DetailEx.vue b/src/modules/03_recruiting/views/01_compete/DetailEx.vue index cd6e2a815..de026a691 100644 --- a/src/modules/03_recruiting/views/01_compete/DetailEx.vue +++ b/src/modules/03_recruiting/views/01_compete/DetailEx.vue @@ -36,14 +36,16 @@ const number = ref(""); const score_expired = ref(""); const mixin = useCounterMixin(); const { messageError, showLoader, hideLoader } = mixin; -const examID = ref("62150001"); -const prefix = ref("นาย"); -const fullname = ref("เกียรติศักดิ์ บัณฑิต"); +const examID = ref(""); +const prefix = ref(""); +const fullname = ref(""); const importId = ref(route.params.id as string); // Period Import Id const examId = ref(route.params.examId as string); // เลขประจำตัวสอบ +const isData = ref(false); /** ดึงข้อมูล */ async function fetchData() { + isData.value = false; showLoader(); await http .get(config.API.getExamDetail(importId.value, examId.value)) @@ -76,6 +78,7 @@ async function fetchData() { scoreSum.value = data.scoreResult.scoreSum; examResultinscore.value = data.scoreResult.examResult; } + isData.value = true; } }) .catch((e) => { @@ -147,7 +150,13 @@ onMounted(async () => { รายละเอียดของผู้สมัครสอบ {{ examID }} : {{ prefix }}{{ fullname }} -
+
+ + ไม่พบรายละเอียดการสอบ + +
+ +