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(() => { - -