ปรับ format code + comment + เช็ค paging เมนูพัฒนาบุคลากร

This commit is contained in:
STW_TTTY\stwtt 2024-05-21 13:10:02 +07:00
parent c2a1648d70
commit fb2b9b4c30
8 changed files with 35 additions and 40 deletions

View file

@ -20,12 +20,8 @@ const router = useRouter();
const store = useDevelopmentDataStore();
const $q = useQuasar();
const { showLoader, hideLoader, messageError } = useCounterMixin();
const maxPage = ref<number>(1);
const totalList = ref<number>(0); //
const formFilter = reactive({
root: null,
page: 1,
@ -154,7 +150,9 @@ function fetchListOrg() {
});
}
/** download file */
/** download file
* @param type ประเภทของไฟล xlsx pdf
*/
function onDownload(type: string) {
showLoader();
http
@ -174,7 +172,9 @@ function onDownload(type: string) {
});
}
/** edit page */
/** edit page
* @param id id ของ row
*/
function onEdit(id: string) {
store.statusEdit = true;
router.push(`/development/employee-history/${id}`);
@ -229,8 +229,7 @@ watch(
}
);
/** ดึงข้อมูลเมื่อโหลดหน้าเสร็จสิ้น */
onMounted(() => {
fetchListOrg();
});