From cc52ce5e61cf6969922b1c8f3f35a00fd8d010d6 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 23 Apr 2024 09:21:07 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=95=E0=B8=B1=E0=B8=A7=E0=B8=8A=E0=B8=B5?= =?UTF-8?q?=E0=B9=89=E0=B8=A7=E0=B8=B1=E0=B8=94=E0=B8=95=E0=B8=B2=E0=B8=A1?= =?UTF-8?q?=E0=B9=81=E0=B8=9C=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/14_KPI/views/indicatorByPlan.vue | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/modules/14_KPI/views/indicatorByPlan.vue b/src/modules/14_KPI/views/indicatorByPlan.vue index a0cf629fd..ca534e8a6 100644 --- a/src/modules/14_KPI/views/indicatorByPlan.vue +++ b/src/modules/14_KPI/views/indicatorByPlan.vue @@ -112,22 +112,6 @@ function onClickAddOrView(status: boolean = false, id: string = "") { : router.push("/KPI-indicator-plan/add"); } -async function fetchData() { - showLoader(); - await http - .get(config.API.kpiPlan) - .then(async (res) => { - const data = res.data.result.data; - rows.value = data; - }) - .catch((err) => { - messageError($q, err); - }) - .finally(() => { - hideLoader(); - }); -} - function fetchActive() { showLoader(); http @@ -179,7 +163,7 @@ async function deleteData(idData: string) { http .delete(config.API.kpiPlanById(idData)) .then(() => { - fetchData(); + fetchList(); success($q, "ลบข้อมูลสำเร็จ"); }) .catch((err) => { @@ -421,8 +405,6 @@ onMounted(() => { - -