ต่อ api บุคคลที่สามารถติดต่อได้

This commit is contained in:
Kittapath 2023-10-06 01:28:25 +07:00
parent a022234412
commit f45af7bb86
12 changed files with 449 additions and 178 deletions

View file

@ -114,7 +114,7 @@
นหมดอายญชดเลอก
</div>
<div class="col-xs-8 col-sm-6 q-pr-xs">
{{ score_expired == null ? "" : date2Thai(score_expired) }}
{{ score_expired == null ? "-" : date2Thai(score_expired) }}
</div>
</div>
</div>
@ -188,7 +188,7 @@ const scoreSumFull = ref<number | null>(null);
const scoreSum = ref<number | null>(null);
const examResultinscore = ref<string>("");
const avatar = ref<string>("");
const score_expired = ref<Date>(new Date());
const score_expired = ref<Date | null>(new Date());
const reviewPoint = ref<number>();
const review = ref<string>("-");
@ -222,7 +222,8 @@ const fetchCard = async () => {
parseInt(data.pointTotalC == null ? 0 : data.pointTotalC);
examResultinscore.value = data.pass;
avatar.value = data.avatar;
score_expired.value = new Date(data.announcementDate);
score_expired.value =
data.announcementDate == null ? null : new Date(data.announcementDate);
number.value = data.number;
reviewPoint.value = data.reviewPoint;
review.value = data.review == null ? "-" : data.review;