ลบ log

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-26 14:09:09 +07:00
parent 4d0e40ea91
commit e4188b7ed3
38 changed files with 108 additions and 167 deletions

View file

@ -214,7 +214,6 @@ const openModalOrder = () => {
};
const openModalTree = (id: string) => {
personalId.value = id;
console.log(personalId.value);
personal.value = rows.value.filter((e: any) => e.id === id);
modalTree.value = true;
};
@ -224,7 +223,6 @@ const getData = async () => {
.get(config.API.relocationMain())
.then((res: any) => {
const data = res.data.result;
console.log("data==>", data);
rows.value = data.map((item: relocationType) => ({
fullname: `${item.prefix}${item.firstname} ${item.lastname}`,
id: item.id,
@ -262,7 +260,6 @@ const getData = async () => {
organizationPositionOld: item.organizationPositionOld,
createdAt:date2Thai(item.createdAt),
}));
console.log(rows.value);
})
.catch((e) => {
// messageError($q, e);
@ -280,9 +277,7 @@ const saveOrder = async () => {
showLoader();
await http
.post(config.API.relocationMainReport(), body)
.then((res: any) => {
// const data = res.data.result;
// console.log(data);
.then(() => {
success($q, "ส่งไปออกคำสั่งย้าย");
closeModal();
})
@ -297,9 +292,8 @@ const saveOrder = async () => {
const deleteData = async (id: string) => {
await http
.delete(config.API.relocationMainDelete(id))
.then((res) => {
.then(() => {
success($q, "ลบข้อมูลสำเร็จ");
console.log(res);
})
.catch((e) => {
messageError($q, e);