ต่อ api ประวัติการศึกษา
This commit is contained in:
parent
8d2b93b6a3
commit
0760ae1981
9 changed files with 357 additions and 222 deletions
|
|
@ -90,6 +90,8 @@ import Career from '@/modules/01_exam/components/Form/Career.vue'
|
|||
import Document from '@/modules/01_exam/components/Form/Document.vue'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { useCounterMixin } from '@/stores/mixin'
|
||||
import http from '@/plugins/http'
|
||||
import config from '@/app.config'
|
||||
|
||||
const props = defineProps({
|
||||
fetchStep: {
|
||||
|
|
@ -110,6 +112,7 @@ const splitterModel = ref<number>(90)
|
|||
const loader = ref<boolean>(false)
|
||||
const statusEdit = ref<boolean>(false)
|
||||
const acceptTermOfUse = ref<boolean>(false)
|
||||
const candidateId = ref<string>('2223ba53-2fb2-470b-8dc1-27e5471b0331')
|
||||
|
||||
onMounted(async () => {
|
||||
if (props.step > 2) {
|
||||
|
|
@ -130,10 +133,19 @@ const okModalConfirm = () => {
|
|||
}
|
||||
}
|
||||
|
||||
const saveForm = () => {
|
||||
const saveForm = async () => {
|
||||
//saveform
|
||||
success($q, 'บันทึกข้อมูลสำเร็จ')
|
||||
props.fetchStep()
|
||||
loader.value = true
|
||||
await http
|
||||
.get(config.API.candidateRegister(candidateId.value))
|
||||
.then(() => {
|
||||
success($q, 'สมัครสอบสำเร็จสำเร็จ')
|
||||
})
|
||||
.catch(() => {})
|
||||
.finally(async () => {
|
||||
await props.fetchStep()
|
||||
loader.value = false
|
||||
})
|
||||
}
|
||||
|
||||
const clickPreview = (val: string) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue