.put
This commit is contained in:
parent
1aa4b6290f
commit
f9d6225774
1 changed files with 17 additions and 17 deletions
|
|
@ -457,23 +457,22 @@ const saveData = async () => {
|
|||
|
||||
// บันทึกการกำหนดตำแหน่ง
|
||||
const savePosition = async () => {
|
||||
clickClose();
|
||||
// showLoader();
|
||||
// const data = {
|
||||
// organizationEmployeeId: selectedPosition.value[0].id,
|
||||
// };
|
||||
// await http
|
||||
// .put(config.API.organizationEmployeePositionId(id.value), data)
|
||||
// .then((res) => {
|
||||
// success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
// })
|
||||
// .catch((e) => {
|
||||
// messageError($q, e);
|
||||
// })
|
||||
// .finally(async () => {
|
||||
// await nodeTree();
|
||||
// clickClose();
|
||||
// });
|
||||
showLoader();
|
||||
const data = {
|
||||
organizationEmployeeId: selectedPosition.value[0].id,
|
||||
};
|
||||
await http
|
||||
.put(config.API.appointEmployeePosition(personalId.value), data)
|
||||
.then((res) => {
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
fecthlistappointment()
|
||||
clickClose();
|
||||
});
|
||||
};
|
||||
|
||||
// // ปิด dialog กำหนดตำแหน่ง
|
||||
|
|
@ -756,6 +755,7 @@ const savePosition = async () => {
|
|||
</q-toolbar>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<d-table
|
||||
:rows="rowsPosition"
|
||||
:columns="columnsPosition"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue