เพิ่ม Ui ตำแหน่งตอนสร้างรอบสมัคร
This commit is contained in:
parent
b42d797c78
commit
3dcdba77a6
14 changed files with 420 additions and 273 deletions
|
|
@ -74,6 +74,7 @@ const statusEdit = ref<boolean>(false)
|
|||
const acceptTermOfUse = ref<boolean>(false)
|
||||
const route = useRoute()
|
||||
const examId = ref<string>(route.params.id.toString())
|
||||
const positionId = ref<string>(route.params.positionId.toString())
|
||||
const formInformation = ref<any>({})
|
||||
const formAddress = ref<any>({})
|
||||
const formFamily = ref<any>({})
|
||||
|
|
@ -102,7 +103,7 @@ const saveForm = async () => {
|
|||
//saveform
|
||||
loader.value = true
|
||||
await http
|
||||
.get(config.API.candidateRegister(examId.value))
|
||||
.get(config.API.candidateRegister(examId.value, positionId.value))
|
||||
.then(() => {
|
||||
success($q, 'สมัครสอบสำเร็จสำเร็จ')
|
||||
})
|
||||
|
|
@ -135,7 +136,7 @@ const saveData = async () => {
|
|||
type.value = defaultOccupation.value.other
|
||||
loader.value = true
|
||||
await http
|
||||
.post(config.API.candidateId(examId.value), {
|
||||
.post(config.API.candidateId(examId.value, positionId.value), {
|
||||
prefixId: defaultInformation.value.prefixId,
|
||||
lastName: defaultInformation.value.lastname,
|
||||
citizenProvinceId: defaultInformation.value.provinceId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue