From a1bfbba9b689f3e6ab51678adce4156ad2858333 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 7 Jun 2024 11:45:41 +0700 Subject: [PATCH 1/8] =?UTF-8?q?=E0=B8=AD=E0=B8=B1=E0=B8=95=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=81=E0=B8=B3=E0=B8=A5=E0=B8=B1=E0=B8=87=E0=B8=A5?= =?UTF-8?q?=E0=B8=B9=E0=B8=81=E0=B8=88=E0=B9=89=E0=B8=B2=E0=B8=87=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B8=88=E0=B8=B3=20=E0=B8=AF=20=3D>=20ffix?= =?UTF-8?q?=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/DialogFormPosition.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/modules/16_positionEmployee/components/DialogFormPosition.vue b/src/modules/16_positionEmployee/components/DialogFormPosition.vue index 29b766e07..ea0a09522 100644 --- a/src/modules/16_positionEmployee/components/DialogFormPosition.vue +++ b/src/modules/16_positionEmployee/components/DialogFormPosition.vue @@ -300,12 +300,12 @@ function deletePos(id: string) { .delete(config.API.orgEmployeePosById(id)) .then(() => { success($q, "ลบข้อมูลสำเร็จ"); + searchInput(); }) .catch((err) => { messageError($q, err); }) .finally(() => { - searchInput(); hideLoader(); }); }); @@ -351,6 +351,15 @@ watch( } } ); + +watch( + () => modalAdd.value, + () => { + if (!modalAdd.value) { + dataCopy.value = []; + } + } +);