Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 50s

* develop:
  fix:banner
  fix condition education rank
This commit is contained in:
Warunee Tamkoo 2025-11-26 17:38:37 +07:00
commit 4763f4280e
2 changed files with 6 additions and 3 deletions

View file

@ -1,6 +1,9 @@
<!-- step กรอกขอม -->
<template>
<div>
<q-banner class="text-red bg-red-1 q-pa-md q-mb-md" dense>
<div>คำแนะนำ: ใสเครองหมายแดช (-) ในชองทไมอม</div>
</q-banner>
<q-form greedy @submit.prevent @validation-success="onSubmitForm">
<Profile
:status="status"

View file

@ -201,10 +201,10 @@ const fetchPerson = async () => {
let filterEducationLevels = data.educationLevels
if (examStore.educationLevel === 'BACHELOR') {
filterEducationLevels = data.educationLevels.filter((level: any) => level.rank === 7)
filterEducationLevels = data.educationLevels.filter((level: any) => level.rank === 8)
} else if (examStore.educationLevel === 'LOW_BACHELOR') {
filterEducationLevels = data.educationLevels.filter(
(level: any) => level.rank >= 4 && level.rank <= 6
(level: any) => level.rank >= 4 && level.rank <= 7
)
}
@ -213,7 +213,7 @@ const fetchPerson = async () => {
})
data.educationLevels
.filter((level: any) => level.rank >= 4 && level.rank !== 6 && level.rank !== 8)
.filter((level: any) => level.rank >= 4)
.map((r: any) => {
optionEducationLevelHigher.push({ id: r.id.toString(), name: r.name.toString() })
})