From c7bb9e984229236fb1bc010474aed032984ca3da Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 8 Dec 2023 17:09:15 +0700 Subject: [PATCH] =?UTF-8?q?popup=20=E0=B8=AB=E0=B8=A1=E0=B8=B2=E0=B8=A2?= =?UTF-8?q?=E0=B9=80=E0=B8=AB=E0=B8=95=E0=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TableHistory.vue | 44 +++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/src/components/TableHistory.vue b/src/components/TableHistory.vue index e7bcb7d..9edcead 100644 --- a/src/components/TableHistory.vue +++ b/src/components/TableHistory.vue @@ -222,6 +222,15 @@ function classStatus(status: string) { break } } + +const modalReject = ref(false) +const reasonRejrct = ref('') +function onClickOpenPopupRejrct(data: any) { + if (data.editStatus === 'ไม่อนุมัติ') { + reasonRejrct.value = data.editReason + modalReject.value = true + } +}