From dc14fde9ce384c019878131211f267e3e0db27ac Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Wed, 7 May 2025 22:19:29 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20commader?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../06_retirement/components/02_resign/ResignByid.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/modules/06_retirement/components/02_resign/ResignByid.vue b/src/modules/06_retirement/components/02_resign/ResignByid.vue index bd5cbc862..1c944a808 100644 --- a/src/modules/06_retirement/components/02_resign/ResignByid.vue +++ b/src/modules/06_retirement/components/02_resign/ResignByid.vue @@ -371,15 +371,16 @@ function popUp(action: "pass" | "passNot", type: string) { } //เงื่อนไขpop up -function onSubmit(type: string) { +function onSubmit() { + console.log(roleUser.value); if (actionPass.value) { - if (type !== "approver") { + if (roleUser.value == "commander") { confirmpopUp("/comander"); } else { confirmpopUp(""); } } else { - if (type !== "approver") { + if (roleUser.value == "commander") { rejectpopUp("/comander"); } else { rejectpopUp(""); @@ -1752,7 +1753,7 @@ onMounted(async () => { - +