เพิ่ม Ui ตำแหน่งตอนสร้างรอบสมัคร
This commit is contained in:
parent
b42d797c78
commit
3dcdba77a6
14 changed files with 420 additions and 273 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue