diff --git a/src/modules/07_insignia/components/2_Manage/listManage.vue b/src/modules/07_insignia/components/2_Manage/listManage.vue index 7e8560384..47af92c6e 100644 --- a/src/modules/07_insignia/components/2_Manage/listManage.vue +++ b/src/modules/07_insignia/components/2_Manage/listManage.vue @@ -54,6 +54,7 @@ async function fecthlistRound() { //มีรอบการเสนอขอพระราชทานเครื่องแสดง UI if (optionRound.value.length !== 0) { loadview.value = true; + loading.value = true; DataStore.optionRound = optionRound.value; const lastValue = optionRound.value[0]; if (DataStore.roundId) { @@ -64,6 +65,9 @@ async function fecthlistRound() { DataStore.roundId = round.value; roundName.value = lastValue.name; await fecthStat(round.value); + } else { + loadview.value = false; + loading.value = false; } }) .catch((err) => { @@ -92,13 +96,12 @@ async function fecthAgency() { // loadview.value = true; DataStore.agency = res.data.result.rootId; DataStore.typeOc = DataStore.agency; + // loading.value = true; }) .catch((err) => { messageError($q, err); }) - .finally(() => { - // loading.value = true; - }); + .finally(() => {}); } function fetchActiveId() { @@ -191,7 +194,7 @@ async function fecthInsigniaByOc( document.value = res.data.result.document; await DataStore.fetchData(res.data.result.items); // ส่งรายชื่อข้าราชการสามัญฯ await DataStore.fetchDataInsignia(res.data.result); // ส่งข้อมูลรอบบการแสดง - loading.value = true; + // loading.value = true; // แสดงปุมล็อกข้อมูล if (res.data.result.items !== null) { if (res.data.result.items.length !== 0) {