ยืนยันประวัติทำงาน

This commit is contained in:
Kittapath 2023-10-16 16:28:50 +07:00
parent d7019ba001
commit 16b5ce734d
4 changed files with 91 additions and 77 deletions

View file

@ -274,6 +274,7 @@ import type { ResponseObject } from '@/modules/01_exam/interface/response/Career
import Table from '@/components/Table.vue'
import DialogHeader from '@/components/DialogHeader.vue'
import DialogFooter from '@/components/DialogFooter.vue'
import { changeData } from '@/modules/01_exam/interface/index/Main'
const props = defineProps({
status: {
@ -520,7 +521,7 @@ const fetchData = async () => {
loaderPage(true)
await http
.get(config.API.candidateCareer(examId.value, positionId.value))
.then((res) => {
.then(async (res) => {
const data = res.data.result
var yearDiff = 0
var monthDiff = 0
@ -550,6 +551,11 @@ const fetchData = async () => {
}${dayDiff > 0 ? dayDiff + ' วัน ' : ''}`
})
})
if (data.length > 0) {
await changeData('education', true)
} else {
await changeData('education', false)
}
})
.catch((e) => {
// messageError($q, e)