refactor:(position-review) add Call API profileSalaryTemp /done

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-04-17 14:38:31 +07:00
parent 6420e97480
commit e87f441c00

View file

@ -323,20 +323,23 @@ async function fetchData() {
// .get(
// `${config.API.profileSalaryTemp}/${empType.value}/done/${profileId.value}`,
// )
http
.get(`${config.API.profileSalaryTemp}/${empType.value}/${profileId.value}`)
.then((res) => {
try {
await http.get(
`${config.API.profileSalaryTemp}/${empType.value}/${profileId.value}`,
);
const res = await http.get(
`${config.API.profileSalaryTemp}/${empType.value}/done/${profileId.value}`,
);
const data = res.data.result;
rowsMain.value = data;
rows.value = data;
serchDataTable();
})
.catch((err) => {
} catch (err) {
messageError($q, err);
})
.finally(() => {
} finally {
isLoad.value = false;
});
}
}
/** function ค้นหาข้อมูลรายการในตาราง*/