From e78315d905d9066bc6741cd39bc6e5e77a939bd8 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Mon, 8 Jul 2024 18:25:43 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B9=80=E0=B8=A0=E0=B8=97=E0=B8=95=E0=B8=B3=E0=B9=81?= =?UTF-8?q?=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87=E0=B8=A3=E0=B8=B0=E0=B8=94?= =?UTF-8?q?=E0=B8=B1=E0=B8=9A=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99?= =?UTF-8?q?=E0=B9=88=E0=B8=87=E0=B8=82=E0=B8=AD=E0=B8=87=E0=B8=AA=E0=B8=A3?= =?UTF-8?q?=E0=B8=A3=E0=B8=AB=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/02_organizational/interface/index/Main.ts | 1 + src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/modules/02_organizational/interface/index/Main.ts b/src/modules/02_organizational/interface/index/Main.ts index 2c475b5b0..c78b323ee 100644 --- a/src/modules/02_organizational/interface/index/Main.ts +++ b/src/modules/02_organizational/interface/index/Main.ts @@ -7,6 +7,7 @@ interface DataOption { id: string; name: string; note?: string; + level?: number; } interface GovermentOption { diff --git a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue index f317d94fc..c1bf691a9 100644 --- a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue +++ b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue @@ -1570,10 +1570,15 @@ const fetchPositionLevel = async (val: string) => { option.push({ id: r.id.toString(), name: r.name.toString(), + level: r.level, }); }); - positionLevelOptions.value = option; - positionLevelFilters.value = option; + positionLevelOptions.value = option.filter( + (v: DataOption) => v.level === 0 + ); + positionLevelFilters.value = option.filter( + (v: DataOption) => v.level === 0 + ); }) .catch((e) => { messageError($q, e);