แก้ api ประวัติฝึกอบรม/ดูงาน
This commit is contained in:
parent
1e393e5dfc
commit
2a3df11ef8
2 changed files with 62 additions and 56 deletions
|
|
@ -127,28 +127,28 @@ const columns = ref<QTableProps["columns"]>([
|
|||
},
|
||||
]);
|
||||
|
||||
function onAdd() {
|
||||
store.statusEdit = false;
|
||||
router.push(`/development/employee-history/add`);
|
||||
}
|
||||
// function onAdd() {
|
||||
// store.statusEdit = false;
|
||||
// router.push(`/development/employee-history/add`);
|
||||
// }
|
||||
|
||||
function onDownload() {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.developmentReportHistoryOfficer())
|
||||
.then((res) => {
|
||||
const dataList = res.data.result;
|
||||
genReportXLSX(
|
||||
dataList,
|
||||
"รายการประวัติฝึกอบรม/ดูงานลูกจ้าง"
|
||||
);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
|
||||
http
|
||||
.post(config.API.developmentReportHistoryOfficer(), {
|
||||
year: formFilter.year,
|
||||
root: agency.value,
|
||||
})
|
||||
.then((res) => {
|
||||
const dataList = res.data.result;
|
||||
genReportXLSX(dataList, "รายการประวัติฝึกอบรม/ดูงานลูกจ้าง");
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
}
|
||||
|
||||
function onEdit(id: string) {
|
||||
|
|
@ -162,6 +162,7 @@ function getData() {
|
|||
pageSize: formFilter.pageSize,
|
||||
keyword: formFilter.keyword,
|
||||
year: formFilter.year,
|
||||
root: agency.value,
|
||||
};
|
||||
|
||||
showLoader();
|
||||
|
|
@ -200,6 +201,7 @@ onMounted(() => {
|
|||
getData();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="toptitle text-dark col-12 row items-center">
|
||||
รายการประวัติฝึกอบรม/ดูงานลูกจ้าง
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue