fix: keyword holdPositionOpsMain

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-02-19 10:54:12 +07:00
parent a826696222
commit 1d37e1720d

View file

@ -86,8 +86,8 @@ const holdPosition = ref<string>(""); //ตำแหน่งทางการ
const holdPositionOps = ref<DataOption[]>([]); //
const holdPositionOpsMain = ref<DataOption[]>([
{ id: "", name: "ทั้งหมด" },
{ id: "hold", name: "ครองตำแหน่ง" },
{ id: "not-hold", name: "ไม่ครองตำแหน่ง" },
{ id: "hold", name: "ครอง" },
{ id: "not-hold", name: "ไม่ครอง" },
]); //
/** สภานภาพ */
@ -570,9 +570,9 @@ async function onSearch() {
position: position.value,
positionExecutive: positionExecutive.value,
isCurrent:
holdPosition.value === "ครองตำแหน่ง"
holdPosition.value === "ครอง"
? true
: holdPosition.value === "ไม่ครองตำแหน่ง"
: holdPosition.value === "ไม่ครอง"
? false
: undefined,
gender: gender.value,