This commit is contained in:
parent
7982bd9c97
commit
647c9d5b9f
13 changed files with 383 additions and 174 deletions
|
|
@ -55,6 +55,7 @@ import http from '@/plugins/http'
|
|||
import config from '@/app.config'
|
||||
import { useCounterMixin } from '@/stores/mixin'
|
||||
import { useDataStore } from '@/stores/data'
|
||||
import { useExamDataStore } from '@/modules/01_exam/store'
|
||||
import { useQuasar } from 'quasar'
|
||||
import type { DataOption } from '@/modules/01_exam/interface/index/Main'
|
||||
import Information from '@/modules/01_exam/components/Form/Information.vue'
|
||||
|
|
@ -102,6 +103,7 @@ const emit = defineEmits([
|
|||
|
||||
const $q = useQuasar()
|
||||
const dataStore = useDataStore()
|
||||
const examStore = useExamDataStore()
|
||||
const { loaderPage } = dataStore
|
||||
const mixin = useCounterMixin()
|
||||
const { messageError } = mixin
|
||||
|
|
@ -164,7 +166,17 @@ const fetchPerson = async () => {
|
|||
provinceOptions.value = optionProvince
|
||||
|
||||
let optionEducationLevel: DataOption[] = []
|
||||
data.educationLevels.map((r: any) => {
|
||||
let filterEducationLevels = data.educationLevels
|
||||
|
||||
if (examStore.educationLevel === 'BACHELOR') {
|
||||
filterEducationLevels = data.educationLevels.filter((level: any) => level.rank === 7)
|
||||
} else if (examStore.educationLevel === 'LOW_BACHELOR') {
|
||||
filterEducationLevels = data.educationLevels.filter(
|
||||
(level: any) => level.rank >= 4 && level.rank <= 6
|
||||
)
|
||||
}
|
||||
|
||||
filterEducationLevels.map((r: any) => {
|
||||
optionEducationLevel.push({ id: r.id.toString(), name: r.name.toString() })
|
||||
})
|
||||
educationLevelOptions.value = optionEducationLevel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue