This commit is contained in:
setthawutttty 2023-10-10 18:08:27 +07:00
parent 1aa4b6290f
commit f9d6225774

View file

@ -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"