ส่งพักราชการ
This commit is contained in:
parent
69927cf089
commit
3055d0475f
2 changed files with 19 additions and 17 deletions
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
/** หัวตาราง */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue