เพิ่ม Ui ตำแหน่งตอนสร้างรอบสมัคร

This commit is contained in:
Kittapath 2023-04-05 00:59:05 +07:00
parent b42d797c78
commit 3dcdba77a6
14 changed files with 420 additions and 273 deletions

View file

@ -229,6 +229,7 @@ const checkValidate = ref<boolean>(false) //validate data ผ่านหรื
const rows = ref<RequestItemsObject[]>([])
const route = useRoute()
const examId = ref<string>(route.params.id.toString())
const positionId = ref<string>(route.params.positionId.toString())
const filter = ref<string>('') //search data table
const visibleColumns = ref<String[]>([])
@ -297,7 +298,7 @@ onMounted(async () => {
const fetchData = async () => {
loader.value = true
await http
.get(config.API.candidateEducation(examId.value))
.get(config.API.candidateEducation(examId.value, positionId.value))
.then((res) => {
const data = res.data.result
rows.value = []
@ -455,7 +456,7 @@ const clickSave = async () => {
const saveData = async () => {
loader.value = true
await http
.post(config.API.candidateEducation(examId.value), {
.post(config.API.candidateEducation(examId.value, positionId.value), {
educationLevelId: educationLevelId.value,
major: major.value,
scores: scores.value,