ปรับวินัย
This commit is contained in:
parent
4f0584c415
commit
141a8aa435
6 changed files with 53 additions and 103 deletions
|
|
@ -410,12 +410,13 @@ function confirmDeleteRelevant(id: string) {
|
|||
.delete(config.API.investigateRelevantFileDelete(formData.id, id))
|
||||
.then((res) => {
|
||||
success($q, `ลบไฟล์สำเร็จ`);
|
||||
props.getData();
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
props.getData();
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -437,12 +438,13 @@ function confirmDelete(id: string) {
|
|||
.delete(config.API.investigateFileDelete(formData.id, id))
|
||||
.then((res) => {
|
||||
success($q, `ลบไฟล์สำเร็จ`);
|
||||
props.getData();
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
props.getData();
|
||||
|
||||
});
|
||||
}
|
||||
async function addPerson(data: any) {
|
||||
|
|
@ -611,12 +613,13 @@ async function saveDuty(id: string, duty: string, resolution: string) {
|
|||
.then((res: any) => {
|
||||
success($q, "บันทึกสำเร็จ");
|
||||
closeEditDirector();
|
||||
props.getData?.();
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
props.getData?.();
|
||||
|
||||
hideLoader();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue