แก้ไขระดับการศึกษา

This commit is contained in:
Warunee Tamkoo 2025-11-28 14:46:00 +07:00
parent bf9f4120a1
commit 4557a23c17

View file

@ -81,12 +81,12 @@ import { useQuasar } from 'quasar'
import type { DataOption } from '@/modules/01_exam/interface/index/Main'
import Information from '@/modules/01_exam/components/Form/Information.vue'
import Address from '@/modules/01_exam/components/Form/Address.vue'
import Family from '@/modules/01_exam/components/Form/Family.vue'
// import Family from '@/modules/01_exam/components/Form/Family.vue'
import Occupation from '@/modules/01_exam/components/Form/Occupation.vue'
import Education from '@/modules/01_exam/components/Form/Education.vue'
import Career from '@/modules/01_exam/components/Form/Career.vue'
import Contact from '@/modules/01_exam/components/Form/Contact.vue'
import Document from '@/modules/01_exam/components/Form/Document.vue'
// import Document from '@/modules/01_exam/components/Form/Document.vue'
const props = defineProps({
status: {
@ -201,10 +201,12 @@ const fetchPerson = async () => {
let filterEducationLevels = data.educationLevels
if (examStore.educationLevel === 'BACHELOR') {
filterEducationLevels = data.educationLevels.filter((level: any) => level.rank === 8)
filterEducationLevels = data.educationLevels.filter(
(level: any) => level.educationLevel === 'BACHELOR'
)
} else if (examStore.educationLevel === 'LOW_BACHELOR') {
filterEducationLevels = data.educationLevels.filter(
(level: any) => level.rank >= 4 && level.rank <= 7
(level: any) => level.educationLevel === 'LOW_BACHELOR'
)
}
@ -213,7 +215,7 @@ const fetchPerson = async () => {
})
data.educationLevels
.filter((level: any) => level.rank >= 4)
.filter((level: any) => level.isHigh === true)
.map((r: any) => {
optionEducationLevelHigher.push({ id: r.id.toString(), name: r.name.toString() })
})