clear code + comment

This commit is contained in:
STW_TTTY\stwtt 2024-04-30 14:31:55 +07:00
parent a9609d2d7f
commit ac70090e22
19 changed files with 231 additions and 166 deletions

View file

@ -22,6 +22,7 @@ const pagination = ref({
page: 1,
rowsPerPage: 10,
});
const maxPage = ref<number>(1);
const totalList = ref<number>(0); //
@ -104,6 +105,7 @@ const columns = ref<QTableProps["columns"]>([
},
]);
/** ดึงข้อมูลหน่วยงาน เเละ เรียกใช้ฟังชั่น ดึงข้อมูล */
function fetchListOrg() {
showLoader();
http
@ -122,6 +124,7 @@ function fetchListOrg() {
});
}
/** download file */
function onDownload() {
showLoader();
http
@ -141,11 +144,13 @@ function onDownload() {
});
}
/** edit page */
function onEdit(id: string) {
store.statusEdit = true;
router.push(`/development/employee-history/${id}`);
}
/** ดึงข้อมูล */
function getData() {
showLoader();
http