fix report โครงสร้าง ลูกจ้าง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-20 17:21:35 +07:00
parent 409b58c82c
commit 344ecd4424
4 changed files with 28 additions and 23 deletions

View file

@ -260,6 +260,7 @@ interface DataProfile {
status: string;
positionType?: string;
positionLevel?: string;
rank: string;
}
interface tableType {
@ -376,8 +377,6 @@ interface DataPermissions {
tab7: TabPermissions;
}
export type {
DataOption,
DataOptionInsignia,
@ -407,7 +406,7 @@ export type {
AppointTopic,
AppointTopicMain,
DataPermissions,
TabPermissions
TabPermissions,
};
export { AddressDataDefualt, FamilyDataDefualt };

View file

@ -106,7 +106,7 @@ const listMenu = ref<ListMenu[]>([
const documentItems = ref<DataDocumentList[]>([
{
name: "รายงานสรุปจำนวนกรอบอัตรากำลังของลูกจ้างประจำกรุงเทพมหานคร",
val: "report4",
val: "report4-employee",
},
]);
@ -338,21 +338,21 @@ function getSummary() {
/** function DownloadReport*/
async function onClickDownloadReport(val: string, name: string) {
// API
// showLoader();
// await http
// .get(config.API.orgReport(val) + `/${orgRootId.value}`)
// .then(async (res) => {
// const data = res.data.result;
// if (data) {
// await genreport(data, name);
// }
// })
// .catch((err) => {
// messageError($q, err);
// })
// .finally(() => {
// hideLoader();
// });
showLoader();
await http
.get(config.API.orgReport(val) + `/${treeId.value}`)
.then(async (res) => {
const data = res.data.result;
if (data) {
await genreport(data, name);
}
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}
const pagination = ref({