From 02c1597d310f2dc78a35e3ef046f16e90254b171 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Wed, 10 Sep 2025 11:54:12 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87?= =?UTF-8?q?=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87?= =?UTF-8?q?=E0=B8=95=E0=B8=B4=E0=B8=94=E0=B9=80=E0=B8=87=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=E0=B8=95=E0=B8=A5=E0=B8=AD=E0=B8=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/02_organization/components/TableMain.vue | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/modules/02_organization/components/TableMain.vue b/src/modules/02_organization/components/TableMain.vue index 3fb3319d2..11dd91440 100644 --- a/src/modules/02_organization/components/TableMain.vue +++ b/src/modules/02_organization/components/TableMain.vue @@ -148,18 +148,10 @@ function getMenuItems(row: any) { store.typeOrganizational === "current" ) { return listMenu.value.filter( - (item) => - item.type !== "DEL" && - item.type !== "CONDITION" && - item.type !== "INHERIT" + (item) => item.type !== "DEL" && item.type !== "INHERIT" ); } else if (store.typeOrganizational === "current") { return listMenu.value.filter((item) => item.type !== "INHERIT"); - } else if ( - row.positionIsSelected != "ว่าง" && - store.typeOrganizational === "draft" - ) { - return listMenu.value.filter((item) => item.type !== "CONDITION"); } else { return listMenu.value; } @@ -602,7 +594,6 @@ async function fetchDataCondition() { } function onClickAction(type: string, data: PosMaster2) { - switch (type) { case "EDIT": onClickPosition(type, data.id, data);