From a14224ad0b218ff7f0184f5a127486e209122a84 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Fri, 13 Dec 2024 16:52:07 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20=E0=B8=9E?= =?UTF-8?q?=E0=B8=B1=E0=B8=92=E0=B8=99=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../08_KPI/components/Tab/Dialog/DialogCommentProblem.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/08_KPI/components/Tab/Dialog/DialogCommentProblem.vue b/src/modules/08_KPI/components/Tab/Dialog/DialogCommentProblem.vue index 5a6b5d8..c311882 100644 --- a/src/modules/08_KPI/components/Tab/Dialog/DialogCommentProblem.vue +++ b/src/modules/08_KPI/components/Tab/Dialog/DialogCommentProblem.vue @@ -80,7 +80,6 @@ function clickList(index: string, data: any) { reasonCommanderRef.value.reset(); reasonCommanderHighRef.value.reset(); } - count.value++; showLoader(); setTimeout(() => { hideLoader(); @@ -121,6 +120,7 @@ function onSubmitAdd() { const id = res.data.result; await closeAdd(); const data = listTarget.value.find((item: any) => item.id == id); + count.value = 0; clickList(id, data); } else { sendId.value = res.data.result; @@ -217,6 +217,7 @@ function onSubmitComment(role: string) { const data = listTarget.value.find( (item: any) => item.id == idCheck ); + count.value++; clickList(idCheck, data); } }, 200);