From bbf7a5ea1c685cd64dd080e214a6320e7a79ca3d Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Thu, 24 Oct 2024 13:08:59 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20=E0=B8=AA?= =?UTF-8?q?=E0=B9=88=E0=B8=87=E0=B9=84=E0=B8=9B=E0=B8=AA=E0=B8=B7=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/PopupSendToNext.vue | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/modules/11_discipline/components/PopupSendToNext.vue b/src/modules/11_discipline/components/PopupSendToNext.vue index 8ee5bffba..92efc0c12 100644 --- a/src/modules/11_discipline/components/PopupSendToNext.vue +++ b/src/modules/11_discipline/components/PopupSendToNext.vue @@ -72,16 +72,20 @@ const initialPagination = ref({ /** ฟังชั่นส่งคนไปออกคำสั่ง */ function onclickSend() { - if (props.title == "ส่งไปพักราชการ") { - dialogConfirm( - $q, - async () => { - emit("returnPerson", selected.value); - modal.value = false; - }, - `ยืนยันการ${props.title}`, - `ต้องการยืนยันการ${props.title}หรือไม่` - ); + if (props.title == "ส่งไปพักราชการ" || props.title == "ส่งไปสืบสวน") { + if (selected.value.length === 0) { + dialogMessageNotify($q, "กรุณาเลือกอย่างน้อย 1 บุคคล"); + } else { + dialogConfirm( + $q, + async () => { + emit("returnPerson", selected.value); + modal.value = false; + }, + `ยืนยันการ${props.title}`, + `ต้องการยืนยันการ${props.title}หรือไม่` + ); + } } else { if (selected.value.length === 0) { dialogMessageNotify($q, "กรุณาเลือกอย่างน้อย 1 บุคคล");