diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/AddPage.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/AddPage.vue index 46937505c..ff10f259d 100644 --- a/src/modules/11_discipline/components/3_InvestigateDisciplinary/AddPage.vue +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/AddPage.vue @@ -193,6 +193,10 @@ const checkSave = () => { // }); // } }; + +const deleteData = async (id: string) => { + console.log("delete"); +}; // บันทึกข้อมูล const SaveData = async () => { // if (edit.value) { diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue index 6d6c5eee6..4a2dc57e1 100644 --- a/src/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue @@ -128,7 +128,7 @@ const clickDelete = (id: string) => { persistent: true, }) .onOk(async () => { - await deleteData(id); + // await deleteData(id); }) .onCancel(() => {}) .onDismiss(() => {}); @@ -185,18 +185,18 @@ const clickAdd = () => { }; const deleteData = async (id: string) => { - showLoader(); - await http - .delete(config.API.periodExamId(id)) - .then((res) => { - success($q, "ลบข้อมูลสำเร็จ"); - }) - .catch((e) => { - messageError($q, e); - }) - .finally(async () => { - hideLoader(); - }); + // showLoader(); + // await http + // .delete(config.API.periodExamId(id)) + // .then((res) => { + // success($q, "ลบข้อมูลสำเร็จ"); + // }) + // .catch((e) => { + // messageError($q, e); + // }) + // .finally(async () => { + // hideLoader(); + // }); };