แก้ประเภทตำแหน่งระดับตำแหน่งของสรรหา

This commit is contained in:
Warunee Tamkoo 2024-07-08 18:25:43 +07:00
parent f6ea889258
commit e78315d905
2 changed files with 8 additions and 2 deletions

View file

@ -7,6 +7,7 @@ interface DataOption {
id: string; id: string;
name: string; name: string;
note?: string; note?: string;
level?: number;
} }
interface GovermentOption { interface GovermentOption {

View file

@ -1570,10 +1570,15 @@ const fetchPositionLevel = async (val: string) => {
option.push({ option.push({
id: r.id.toString(), id: r.id.toString(),
name: r.name.toString(), name: r.name.toString(),
level: r.level,
}); });
}); });
positionLevelOptions.value = option; positionLevelOptions.value = option.filter(
positionLevelFilters.value = option; (v: DataOption) => v.level === 0
);
positionLevelFilters.value = option.filter(
(v: DataOption) => v.level === 0
);
}) })
.catch((e) => { .catch((e) => {
messageError($q, e); messageError($q, e);