diff --git a/src/modules/01_exam/components/ExamCard.vue b/src/modules/01_exam/components/ExamCard.vue index cb3c1fe..c6e9a5e 100644 --- a/src/modules/01_exam/components/ExamCard.vue +++ b/src/modules/01_exam/components/ExamCard.vue @@ -7,108 +7,118 @@ พิมพ์บัตรประจำตัวผู้สอบ -
-
-
ชื่อ :
-
{{ fullName }}
-
-
-
เลขประจำตัวประชาชน :
-
{{ citizenId }}
-
-
-
เลขประจำตัวสอบ :
-
{{ examNumber }}
-
-
-
เลขที่นั่งสอบ :
-
{{ examSeat }}
-
-
-
วันสอบ :
-
05 มิ.ย. 2566
-
-
-
ครั้งที่สอบ :
-
1
-
-
-
ชุดข้อสอบ :
-
0506-1/2566
-
-
-
ผลคะแนนสอบ
-
-
ประเภท
-
คะแนนเต็ม
-
คะแนนที่ได้
-
- -
ภาค ข
-
- {{ scoreBFull }} -
-
- {{ scoreB }} -
-
คะแนน
- -
ภาค ค
-
- {{ scoreCFull }} -
-
- {{ scoreC }} -
-
คะแนน
- -
รวมทั้งหมด
-
- {{ scoreSumFull }} -
-
- {{ scoreSum }} -
-
คะแนน
- -
ผลการสอบ
-
- {{ - examResultinscore - }} -
-
ตำแหน่ง
-
- {{ position }} -
-
ลำดับที่สอบได้
-
- {{ number }} -
-
วันหมดอายุบัญชีคัดเลือก
-
- {{ score_expired == null ? '' : date2Thai(score_expired) }} -
+
+
+
+
ชื่อ :
+
{{ fullName }}
+
+
+
เลขประจำตัวประชาชน :
+
{{ citizenId }}
+
+
+
เลขประจำตัวสอบ :
+
{{ examNumber }}
+
+
+
เลขที่นั่งสอบ :
+
{{ examSeat }}
+
+
+
วันสอบ :
+
25 มิ.ย. 2568
+
+
+
ครั้งที่สอบ :
+
1
+
+
+
ชุดข้อสอบ :
+
ทดสอบ
+
+ + +
+ + +
ผลคะแนนสอบ
+
+
ประเภท
+
คะแนนเต็ม
+
คะแนนที่ได้
+
- - - - +
ภาค ก
+
+ {{ scoreAFull }} +
+
+ {{ scoreA }} +
+
คะแนน
+ +
ภาค ข
+
+ {{ scoreBFull }} +
+
+ {{ scoreB }} +
+
คะแนน
+ +
ภาค ค
+
+ {{ scoreCFull }} +
+
+ {{ scoreC }} +
+
คะแนน
+ +
รวมทั้งหมด
+
+ {{ scoreSumFull }} +
+
+ {{ scoreSum }} +
+
คะแนน
+ +
ผลการสอบ
+
+ {{ + examResultinscore + }} +
+
ตำแหน่ง
+
+ {{ position }} +
+
ลำดับที่สอบได้
+
+ {{ number }} +
+
วันหมดอายุบัญชีคัดเลือก
+
+ {{ score_expired == null ? '' : date2Thai(score_expired) }} +
+
@@ -134,6 +144,8 @@ const examNumber = ref('') const position = ref('') const citizenId = ref('') const examSeat = ref('') +const scoreAFull = ref(null) +const scoreA = ref(null) const scoreBFull = ref(null) const scoreB = ref(null) const scoreCFull = ref(null) @@ -159,30 +171,21 @@ const fetchStatus = async () => { examNumber.value = data.examIdenNumber citizenId.value = data.citizenId examSeat.value = data.seatNumber + scoreAFull.value = data.pointTotalA + scoreA.value = data.pointA scoreBFull.value = data.pointTotalB scoreB.value = data.pointB position.value = data.posiiton == null ? '' : '' + data.posiiton.positionName scoreCFull.value = data.pointTotalC scoreC.value = data.pointC - if (data.pointB != null && data.pointC != null) { - scoreSum.value = parseInt(data.pointB) + parseInt(data.pointC) - } else if (data.pointC != null) { - scoreSum.value = parseInt(data.pointC) - } else if (data.pointB != null) { - scoreSum.value = parseInt(data.pointB) - } else { - scoreSum.value = null - } - if (data.pointTotalB != null && data.pointTotalC != null) { - scoreSumFull.value = parseInt(data.pointTotalB) + parseInt(data.pointTotalC) - } else if (data.pointTotalC != null) { - scoreSumFull.value = parseInt(data.pointTotalC) - } else if (data.pointTotalB != null) { - scoreSumFull.value = parseInt(data.pointTotalB) - } else { - scoreSumFull.value = null - } - scoreC.value = data.pointC + scoreSum.value = + parseInt(data.pointA == null ? 0 : data.pointA) + + parseInt(data.pointB == null ? 0 : data.pointB) + + parseInt(data.pointC == null ? 0 : data.pointC) + scoreSumFull.value = + parseInt(data.pointTotalA == null ? 0 : data.pointTotalA) + + parseInt(data.pointTotalB == null ? 0 : data.pointTotalB) + + parseInt(data.pointTotalC == null ? 0 : data.pointTotalC) examResultinscore.value = data.pass avatar.value = data.avatar score_expired.value = new Date(data.announcementDate)