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);