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; } })