diff --git a/src/components/Dialogs/PopupPersonalNew.vue b/src/components/Dialogs/PopupPersonalNew.vue
index 73808d6d0..4ef7825b6 100644
--- a/src/components/Dialogs/PopupPersonalNew.vue
+++ b/src/components/Dialogs/PopupPersonalNew.vue
@@ -505,9 +505,13 @@ watch(modal, (newValue) => {
diff --git a/src/modules/21_report/components/CardPosition.vue b/src/modules/21_report/components/CardPosition.vue
index 956639272..3c7b12214 100644
--- a/src/modules/21_report/components/CardPosition.vue
+++ b/src/modules/21_report/components/CardPosition.vue
@@ -35,9 +35,11 @@ const cardData = ref
([
data: [],
},
]);
+const isLoading = ref(true);
async function fetchDataTenure() {
if (props?.id) {
+ isLoading.value = true;
await http
.get(
config.API.salaryTenurePosition(
@@ -73,6 +75,9 @@ async function fetchDataTenure() {
})
.catch((err) => {
messageError($q, err);
+ })
+ .finally(() => {
+ isLoading.value = false;
});
}
}
@@ -88,7 +93,12 @@ onMounted(() => {
ข้อมูลตำแหน่ง
-