new loader
This commit is contained in:
parent
fd7aae2f5d
commit
fe6c712a18
95 changed files with 1189 additions and 950 deletions
|
|
@ -247,7 +247,8 @@ const props = defineProps({
|
|||
const store = useDataStore();
|
||||
const { loaderPage } = store;
|
||||
const mixin = useCounterMixin(); //เรียกฟังก์ชันกลาง
|
||||
const { success, dateToISO, date2Thai, messageError } = mixin;
|
||||
const { success, dateToISO, date2Thai, messageError, showLoader, hideLoader } =
|
||||
mixin;
|
||||
const $q = useQuasar(); //ใช้ noti quasar
|
||||
const modalAdd = ref<boolean>(false); //modal เพิ่มวันหยุด
|
||||
const modalDelete = ref<boolean>(false); //modal ลบวันหยุด
|
||||
|
|
@ -284,7 +285,7 @@ const dataSixDaysRaw = ref<RequestItemsObject[]>([]);
|
|||
* เรียกฟังก์ชันทั้งหมดตอนเรียกใช้ไฟล์นี้
|
||||
*/
|
||||
onMounted(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
const calen = fullCalendar.value.getApi();
|
||||
const date = new Date(props.dateYear, props.dateMonth);
|
||||
calen.gotoDate(date);
|
||||
|
|
@ -424,7 +425,7 @@ const onSubmit = async () => {
|
|||
*/
|
||||
const fetchData = async () => {
|
||||
calendarOptions.value.events = [];
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(
|
||||
config.API.listHolidayHistoryYearMonth(
|
||||
|
|
@ -577,7 +578,7 @@ const editData = async () => {
|
|||
});
|
||||
});
|
||||
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listHolidayHistoryEdit(type.value), {
|
||||
history: _dataHistory.value,
|
||||
|
|
@ -620,7 +621,7 @@ const addDate = async () => {
|
|||
)
|
||||
);
|
||||
} while (new Date(dateStart.value) <= new Date(dateRange.value[1]));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listHolidayHistoryAdd(category.value), dataAdd.value)
|
||||
.then((res) => {
|
||||
|
|
@ -657,7 +658,7 @@ const deleteData = async () => {
|
|||
new Date(dateStart.value).setDate(new Date(dateStart.value).getDate() + 1)
|
||||
);
|
||||
} while (new Date(dateStart.value) <= new Date(dateRange.value[1]));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listHolidayHistoryDelete(type.value), dataDelete.value)
|
||||
.then((res) => {
|
||||
|
|
|
|||
|
|
@ -244,7 +244,15 @@ const props = defineProps({
|
|||
const store = useDataStore();
|
||||
const { loaderPage } = store;
|
||||
const mixin = useCounterMixin(); //เรียกฟังก์ชันกลาง
|
||||
const { success, dateToISO, dateMonth2Thai, weekThai, messageError } = mixin;
|
||||
const {
|
||||
success,
|
||||
dateToISO,
|
||||
dateMonth2Thai,
|
||||
weekThai,
|
||||
messageError,
|
||||
showLoader,
|
||||
hideLoader,
|
||||
} = mixin;
|
||||
const $q = useQuasar(); //ใช้ noti quasar
|
||||
const calendarData = ref<DataDateListsObject[]>([]); //data วันหยุด
|
||||
const modalAdd = ref<boolean>(false); //modal เพิ่มวันหยุด
|
||||
|
|
@ -329,7 +337,7 @@ const deleteClick = async (val: DataDateListsObject) => {
|
|||
*/
|
||||
const fetchData = async () => {
|
||||
calendarData.value = [];
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listHolidayHistoryYear(props.dateYear))
|
||||
.then((res) => {
|
||||
|
|
@ -409,7 +417,7 @@ const deleteConfirm = async () => {
|
|||
} else {
|
||||
return;
|
||||
}
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(
|
||||
config.API.listHolidayHistoryDelete(currentTab.value),
|
||||
|
|
@ -462,7 +470,7 @@ const editData = async () => {
|
|||
}
|
||||
);
|
||||
}
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listHolidayHistoryEdit(currentTab.value), {
|
||||
history: _dataHistory.value,
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -577,7 +577,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listInsigniaHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -620,7 +620,7 @@ const fetchData = async () => {
|
|||
* รายการลำดับเครื่องราชฯ
|
||||
*/
|
||||
const fetchinsigniaType = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.insigniaType)
|
||||
.then((res) => {
|
||||
|
|
@ -636,7 +636,7 @@ const fetchinsigniaType = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -644,7 +644,7 @@ const fetchinsigniaType = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listInsigniaPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -676,7 +676,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -685,7 +685,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listInsigniaHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -705,7 +705,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listInsigniaPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -772,7 +772,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
insigniaType: e.insigniaType,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listInsigniaHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -792,7 +792,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listInsigniaTypeHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listInsigniaTypePublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listInsigniaTypeHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listInsigniaTypePublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listInsigniaTypeHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationAgencyHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationAgencyPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationAgencyHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationAgencyPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -518,7 +518,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationAgencyHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -538,7 +538,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationFaxHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationFaxPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationFaxHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationFaxPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationFaxHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationGovernmentAgencyHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationGovernmentAgencyPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationGovernmentAgencyHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -456,7 +456,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationGovernmentAgencyPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -516,7 +516,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(
|
||||
config.API.listOrganizationGovernmentAgencyHistoryId(idVersion.value),
|
||||
|
|
@ -539,7 +539,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationLevelHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationLevelPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationLevelHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationLevelPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationLevelHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -402,7 +402,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationOrganizationHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -429,7 +429,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationOrganizationPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -466,7 +466,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -475,7 +475,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationOrganizationHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -495,7 +495,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationOrganizationPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -556,7 +556,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationOrganizationHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -576,7 +576,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -491,7 +491,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationShortNameHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -520,7 +520,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -528,7 +528,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationShortNamePublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -559,7 +559,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -568,7 +568,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationShortNameHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -588,7 +588,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationShortNamePublished)
|
||||
.then((res) => {
|
||||
|
|
@ -654,7 +654,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationShortNameHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -674,7 +674,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationStatusHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationStatusPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationStatusHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationStatusPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationStatusHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTelExternalHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTelExternalPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationTelExternalHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTelExternalPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationTelExternalHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTelInternalHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTelInternalPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationTelInternalHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTelInternalPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationTelInternalHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTypeHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTypePublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listOrganizationTypeHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listOrganizationTypePublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listOrganizationTypeHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -370,7 +370,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listBloodGroupHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -396,7 +396,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -404,7 +404,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listBloodGroupPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -432,7 +432,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -441,7 +441,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listBloodGroupHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -461,7 +461,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listBloodGroupPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -521,7 +521,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listBloodGroupHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -541,7 +541,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@ import { useRoute, useRouter } from "vue-router";
|
|||
import { useDataStore } from "@/stores/data";
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const dataStore = useDataStore();
|
||||
const { manageData, changeManageColumns, changeManageCurrentTab } = store;
|
||||
|
|
@ -405,7 +405,7 @@ const $q = useQuasar();
|
|||
*/
|
||||
const fetchData = async () => {
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listDistrictHistoryId(provinceId.value))
|
||||
.then((res) => {
|
||||
|
|
@ -432,7 +432,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -440,7 +440,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listDistrictPublishedHistory(provinceId.value))
|
||||
.then((res) => {
|
||||
|
|
@ -468,7 +468,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -477,7 +477,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listDistrictHistoryId(provinceId.value))
|
||||
.then((res) => {
|
||||
|
|
@ -497,7 +497,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listProvincePublished)
|
||||
.then((res) => {
|
||||
|
|
@ -557,7 +557,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listDistrictHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -578,7 +578,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -367,7 +367,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listEducationLevelHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -393,7 +393,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -401,7 +401,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listEducationLevelPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -429,7 +429,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -438,7 +438,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listEducationLevelHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -458,7 +458,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listEducationLevelPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -518,7 +518,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listEducationLevelHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -538,7 +538,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -367,7 +367,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listGenderHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -393,7 +393,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -401,7 +401,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listGenderPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -429,7 +429,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -438,7 +438,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listGenderHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -458,7 +458,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listGenderPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -518,7 +518,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listGenderHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -538,7 +538,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const {
|
||||
manageData,
|
||||
|
|
@ -381,7 +381,7 @@ const fetchData = async () => {
|
|||
updateData.value = false;
|
||||
console.log(result);
|
||||
// rows.value.splice(0);
|
||||
// loaderPage(true);
|
||||
// showLoader();
|
||||
// await http
|
||||
// .get(config.API.listPrefixHistory)
|
||||
// .then((res) => {
|
||||
|
|
@ -407,7 +407,7 @@ const fetchData = async () => {
|
|||
// })
|
||||
// .finally(() => {
|
||||
// updateData.value = false;
|
||||
// loaderPage(false);
|
||||
// hideLoader();
|
||||
// });
|
||||
};
|
||||
|
||||
|
|
@ -448,7 +448,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
// loaderPage(true);
|
||||
// showLoader();
|
||||
await http
|
||||
.delete(config.API.listPrefixHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -468,7 +468,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
// loaderPage(true);
|
||||
// showLoader();
|
||||
await http
|
||||
.get(config.API.listPrefixPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -528,7 +528,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
// loaderPage(true);
|
||||
// showLoader();
|
||||
await http
|
||||
.post(config.API.listPrefixHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -548,7 +548,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore; //ขึ้นหน้า load ขณะเรียก api
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -379,7 +379,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listProvinceHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -405,7 +405,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -413,7 +413,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listProvincePublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -441,7 +441,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -450,7 +450,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listProvinceHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -470,7 +470,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listProvincePublished)
|
||||
.then((res) => {
|
||||
|
|
@ -530,7 +530,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listProvinceHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -550,7 +550,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -367,7 +367,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listRelationshipHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -393,7 +393,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -401,7 +401,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listRelationshipPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -429,7 +429,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -438,7 +438,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listRelationshipHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -458,7 +458,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listRelationshipPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -518,7 +518,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listRelationshipHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -538,7 +538,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -367,7 +367,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listReligionHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -393,7 +393,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -401,7 +401,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listReligionPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -429,7 +429,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -438,7 +438,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listReligionHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -458,7 +458,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listReligionPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -518,7 +518,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listReligionHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -538,7 +538,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@ import { useRoute, useRouter } from "vue-router";
|
|||
import { useDataStore } from "@/stores/data";
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const dataStore = useDataStore();
|
||||
const { manageData, changeManageColumns, changeManageCurrentTab } = store;
|
||||
|
|
@ -435,7 +435,7 @@ const $q = useQuasar();
|
|||
*/
|
||||
const fetchData = async () => {
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(
|
||||
config.API.listSubDistrictHistoryProvinceId(
|
||||
|
|
@ -468,7 +468,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -476,7 +476,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listSubDistrictPublishedHistory(districtId.value))
|
||||
.then((res) => {
|
||||
|
|
@ -505,7 +505,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -514,7 +514,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listSubDistrictHistoryId(districtId.value))
|
||||
.then((res) => {
|
||||
|
|
@ -534,7 +534,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listProvincePublished)
|
||||
.then((res) => {
|
||||
|
|
@ -597,7 +597,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listSubDistrictHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -618,7 +618,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -367,7 +367,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionExecutiveHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -393,7 +393,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -401,7 +401,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionExecutivePublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -429,7 +429,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -438,7 +438,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listPositionExecutiveHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -458,7 +458,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionExecutivePublished)
|
||||
.then((res) => {
|
||||
|
|
@ -518,7 +518,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listPositionExecutiveHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -538,7 +538,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -403,7 +403,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionExecutiveSideHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -430,7 +430,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -438,7 +438,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionExecutiveSidePublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -467,7 +467,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -476,7 +476,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listPositionExecutiveSideHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -496,7 +496,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionExecutiveSidePublished)
|
||||
.then((res) => {
|
||||
|
|
@ -557,7 +557,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listPositionExecutiveSideHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -577,7 +577,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -478,7 +478,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionLevelHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -512,7 +512,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -520,7 +520,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionLevelPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -550,7 +550,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -559,7 +559,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listPositionLevelHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -579,7 +579,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionLevelPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -643,7 +643,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listPositionLevelHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -663,7 +663,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -367,7 +367,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionLineHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -393,7 +393,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -401,7 +401,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionLinePublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -429,7 +429,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -438,7 +438,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listPositionLineHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -458,7 +458,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionLinePublished)
|
||||
.then((res) => {
|
||||
|
|
@ -518,7 +518,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listPositionLineHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -538,7 +538,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -403,7 +403,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionPathHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -430,7 +430,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -438,7 +438,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionPathPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -467,7 +467,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -476,7 +476,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listPositionPathHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -496,7 +496,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionPathPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -557,7 +557,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listPositionPathHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -577,7 +577,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -403,7 +403,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionSideHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -430,7 +430,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -438,7 +438,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionSidePublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -467,7 +467,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -476,7 +476,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listPositionSideHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -496,7 +496,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionSidePublished)
|
||||
.then((res) => {
|
||||
|
|
@ -557,7 +557,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listPositionSideHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -577,7 +577,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -367,7 +367,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionStatusHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -393,7 +393,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -401,7 +401,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionStatusPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -429,7 +429,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -438,7 +438,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listPositionStatusHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -458,7 +458,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionStatusPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -518,7 +518,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listPositionStatusHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -538,7 +538,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -367,7 +367,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionTypeHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -393,7 +393,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -401,7 +401,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionTypePublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -429,7 +429,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -438,7 +438,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listPositionTypeHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -458,7 +458,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionTypePublished)
|
||||
.then((res) => {
|
||||
|
|
@ -518,7 +518,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listPositionTypeHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -538,7 +538,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeeGroupHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeeGroupPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listPositionEmployeeGroupHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeeGroupPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listPositionEmployeeGroupHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -365,7 +365,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeeLevelHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -391,7 +391,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -399,7 +399,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeeLevelPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -427,7 +427,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -436,7 +436,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listPositionEmployeeLevelHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -456,7 +456,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeeLevelPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -516,7 +516,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listPositionEmployeeLevelHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -536,7 +536,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeeLineHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeeLinePublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listPositionEmployeeLineHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeeLinePublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listPositionEmployeeLineHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -402,7 +402,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeePositionHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -429,7 +429,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeePositionPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -466,7 +466,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -475,7 +475,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listPositionEmployeePositionHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -495,7 +495,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeePositionPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -556,7 +556,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listPositionEmployeePositionHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -576,7 +576,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -402,7 +402,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeePositionSideHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -429,7 +429,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeePositionSidePublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -466,7 +466,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -475,7 +475,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listPositionEmployeePositionSideHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -495,7 +495,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeePositionSidePublished)
|
||||
.then((res) => {
|
||||
|
|
@ -556,7 +556,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(
|
||||
config.API.listPositionEmployeePositionSideHistoryId(idVersion.value),
|
||||
|
|
@ -579,7 +579,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ const props = defineProps({
|
|||
const dataStore = useDataStore();
|
||||
const { loaderPage } = dataStore;
|
||||
const mixin = useCounterMixin();
|
||||
const { success, dateText, messageError } = mixin;
|
||||
const { success, dateText, messageError, showLoader, hideLoader } = mixin;
|
||||
const store = useManageDataStore();
|
||||
const { manageData, changeManageColumns } = store;
|
||||
const rows = ref<RequestItemsHistoryObject[]>([]); //list data table
|
||||
|
|
@ -366,7 +366,7 @@ const $q = useQuasar();
|
|||
const fetchData = async () => {
|
||||
await props.fetchDataComponent();
|
||||
rows.value.splice(0);
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeeStatusHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -392,7 +392,7 @@ const fetchData = async () => {
|
|||
})
|
||||
.finally(() => {
|
||||
updateData.value = false;
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ const fetchData = async () => {
|
|||
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลทั้งหมด
|
||||
*/
|
||||
const fetchHistory = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeeStatusPublishedHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -428,7 +428,7 @@ const fetchHistory = async () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -437,7 +437,7 @@ const fetchHistory = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const clearPublishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.listPositionEmployeeStatusHistory)
|
||||
.then((res) => {
|
||||
|
|
@ -457,7 +457,7 @@ const clearPublishedData = async () => {
|
|||
* เมื่อเรียก api เสร็จแล้วจะ get data มาใหม่
|
||||
*/
|
||||
const publishedData = async () => {
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.listPositionEmployeeStatusPublished)
|
||||
.then((res) => {
|
||||
|
|
@ -517,7 +517,7 @@ const save = async (publish: boolean) => {
|
|||
lastUpdateFullName: e.lastUpdateFullName,
|
||||
lastUpdateUserId: e.lastUpdateUserId,
|
||||
}));
|
||||
loaderPage(true);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.listPositionEmployeeStatusHistoryId(idVersion.value), {
|
||||
id: idVersion.value,
|
||||
|
|
@ -537,7 +537,7 @@ const save = async (publish: boolean) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
loaderPage(false);
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue