diff --git a/src/modules/07_insignia/components/2_Manage/listManage.vue b/src/modules/07_insignia/components/2_Manage/listManage.vue index 55d2eec35..f20488a9f 100644 --- a/src/modules/07_insignia/components/2_Manage/listManage.vue +++ b/src/modules/07_insignia/components/2_Manage/listManage.vue @@ -42,7 +42,7 @@ const modalPopupBackToEdit = ref(false); //model แก้ไข /** function เรียกรอบการเสนอขอพระราชทานเครื่อง*/ async function fecthlistRound() { - showLoader(); + // showLoader(); await http .get(config.API.listRoundInsignia()) .then(async (res: any) => { @@ -68,15 +68,12 @@ async function fecthlistRound() { }) .catch((err) => { messageError($q, err); - }) - .finally(() => { - hideLoader(); + // hideLoader(); }); } /** function เรียกดู Stat ของรอบการเสนอขอพระราชทานเครื่อง*/ const fecthStat = async (id: string) => { - showLoader(); await http .get(config.API.insigniaDashboard(id)) .then((res) => { @@ -84,9 +81,6 @@ const fecthStat = async (id: string) => { }) .catch((err) => { messageError($q, err); - }) - .finally(() => { - hideLoader(); }); }; @@ -133,14 +127,10 @@ function fetchListOrg(id: string) { }) .catch((err) => { messageError($q, err); - }) - .finally(() => { hideLoader(); }); } - - /**function เรียกประเภทเครื่องราช*/ async function fecthInsignia() { await http @@ -235,8 +225,8 @@ async function sendToDirector() { messageError($q, err); }) .finally(async () => { - await hideLoader(); await fecthStat(round.value); + await hideLoader(); }); }); } diff --git a/src/modules/15_development/views/MainPage.vue b/src/modules/15_development/views/MainPage.vue index b286dc931..ef0f52f6c 100644 --- a/src/modules/15_development/views/MainPage.vue +++ b/src/modules/15_development/views/MainPage.vue @@ -219,6 +219,7 @@ function fetchTree(id: string) { .then((res) => { const data = res.data.result; node.value = data; + fetchListProject(); }) .catch((err) => { messageError($q, err); @@ -267,7 +268,6 @@ watch( /** ดึงข้อมูลเมื่อโหลดหน้าเสร็จสิ้น */ onMounted(() => { fetchActive(); - fetchListProject(); });