From e3828e0a864144fad3560f0fb8747fb5e3f9fc07 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 13 Sep 2024 17:56:48 +0700 Subject: [PATCH] comment menu delete --- src/modules/05_command/views/lists.vue | 44 +++++++++++++------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/modules/05_command/views/lists.vue b/src/modules/05_command/views/lists.vue index f15f5856..98de23b1 100644 --- a/src/modules/05_command/views/lists.vue +++ b/src/modules/05_command/views/lists.vue @@ -159,26 +159,26 @@ function onDialogEdit(data: ListOrder) { dialogFormCommand.value = true; } -/** - * ลบ คำสั่ง - * @param id id คำสั่ง - */ -function onDelete(id: string) { - dialogRemove($q, () => { - showLoader(); - http - .delete(config.API.commandType + `/${id}`) - .then(async () => { - await fetchCommandType(); - }) - .catch((e) => { - messageError($q, e); - }) - .finally(() => { - hideLoader(); - }); - }); -} +// /** +// * ลบ คำสั่ง +// * @param id id คำสั่ง +// */ +// function onDelete(id: string) { +// dialogRemove($q, () => { +// showLoader(); +// http +// .delete(config.API.commandType + `/${id}`) +// .then(async () => { +// await fetchCommandType(); +// }) +// .catch((e) => { +// messageError($q, e); +// }) +// .finally(() => { +// hideLoader(); +// }); +// }); +// } /** * ปิด dialog @@ -352,7 +352,7 @@ onMounted(async () => { แก้ไข - { ลบ - + -->