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 + } +}