From a25f14f0a4eca4de2f13e7b71b5fc4562eea2ede Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 27 Dec 2024 15:38:50 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../07_insignia/views/02_ManageMain.vue | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/modules/07_insignia/views/02_ManageMain.vue b/src/modules/07_insignia/views/02_ManageMain.vue index eea3f0c75..3168d5861 100644 --- a/src/modules/07_insignia/views/02_ManageMain.vue +++ b/src/modules/07_insignia/views/02_ManageMain.vue @@ -76,17 +76,17 @@ async function fecthlistRound() { //มีรอบการเสนอขอพระราชทานเครื่องแสดง UI if (optionRound.value.length !== 0) { DataStore.optionRound = optionRound.value; - // const lastValue = optionRound.value[0]; - // await fetchListOrg(lastValue.period_revision); - // await fecthAgency(lastValue.period_revision); - // if (DataStore.roundId) { - // round.value = DataStore.roundId; // รอบการเสนอให้ใช้รอบที่เลือก - // } else { - // round.value = lastValue.id.toString(); // รอบการเสนอให้ใช้รอบล่าสุด - // } - // // await fecthStat(round.value); - // DataStore.roundId = round.value; - // roundName.value = lastValue.name; + const lastValue = optionRound.value[0]; + await fetchListOrg(lastValue.period_revision); + await fecthAgency(lastValue.period_revision); + if (DataStore.roundId) { + round.value = DataStore.roundId; // รอบการเสนอให้ใช้รอบที่เลือก + } else { + round.value = lastValue.id.toString(); // รอบการเสนอให้ใช้รอบล่าสุด + } + await fecthStat(round.value); + DataStore.roundId = round.value; + roundName.value = lastValue.name; loadview.value = true; } })