ส่งพักราชการ

This commit is contained in:
setthawutttty 2023-11-29 16:43:39 +07:00
parent 69927cf089
commit 3055d0475f
2 changed files with 19 additions and 17 deletions

View file

@ -292,23 +292,23 @@ const fileListObjComplaint = reactive<ArrayFileList>({
function emitPerson(data: PersonsArray[]) {
console.log(data);
// const dataMapId = data.map((item: PersonsArray) => item.id);
// console.log(dataMapId);
// showLoader();
// http
// .put(config.API.investigateApprove(id.value), {
// persons: dataMapId,
// })
// .then((res) => {
// // router.push(`/discipline/investigatefacts`);
// })
// .catch((e) => {
// messageError($q, e);
// })
// .finally(() => {
// hideLoader();
// fetchDetailDisciplinary();
// });
const dataMapId = data.map((item: PersonsArray) => item.id);
console.log(dataMapId);
showLoader();
http
.put(config.API.disciplinarySuspend(id.value), {
persons: dataMapId,
})
.then((res) => {
// router.push(`/discipline/investigatefacts`);
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
fetchDetailDisciplinary();
});
}
/** หัวตาราง */