salary ==> fix bug
This commit is contained in:
parent
07b50dca80
commit
02f0eac63a
1 changed files with 8 additions and 7 deletions
|
|
@ -168,17 +168,19 @@ function onEdit(data: EmployeeRateSalary) {
|
|||
*/
|
||||
function onDelete(id: string) {
|
||||
dialogRemove($q, () => {
|
||||
showLoader();
|
||||
http
|
||||
.delete(config.API.salaryEmployeeRateListByid(id))
|
||||
.then(() => {
|
||||
fetchSalalyEmployeeRate();
|
||||
success($q, "ลบข้อมูลสำเร็จ");
|
||||
.then(async () => {
|
||||
await fetchSalalyEmployeeRate();
|
||||
await success($q, "ลบข้อมูลสำเร็จ");
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
hideLoader();
|
||||
})
|
||||
.finally(() => {});
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -225,8 +227,7 @@ watch(
|
|||
);
|
||||
|
||||
onMounted(async () => {
|
||||
await fetchDataDetail();
|
||||
await fetchSalalyEmployeeRate();
|
||||
await Promise.all([fetchDataDetail(), fetchSalalyEmployeeRate()]);
|
||||
});
|
||||
</script>
|
||||
<template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue