เพิ่ม 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

@ -224,6 +224,7 @@ const editRow = ref<boolean>(false) //เช็คมีการแก้ไข
const checkValidate = ref<boolean>(false) //validate data
const route = useRoute()
const examId = ref<string>(route.params.id.toString())
const positionId = ref<string>(route.params.positionId.toString())
const rows = ref<RequestItemsObject[]>([])
const filter = ref<string>('') //search data table
@ -292,7 +293,7 @@ onMounted(async () => {
const fetchData = async () => {
loader.value = true
await http
.get(config.API.candidateCareer(examId.value))
.get(config.API.candidateCareer(examId.value, positionId.value))
.then((res) => {
const data = res.data.result
rows.value = []
@ -429,7 +430,7 @@ const clickSave = async () => {
const saveData = async () => {
loader.value = true
await http
.post(config.API.candidateCareer(examId.value), {
.post(config.API.candidateCareer(examId.value, positionId.value), {
name: location.value,
position: position.value,
salary: salary.value,