diff --git a/src/modules/05_placement/components/probation/MainProbation.vue b/src/modules/05_placement/components/probation/MainProbation.vue index 861afdfbd..b4420a844 100644 --- a/src/modules/05_placement/components/probation/MainProbation.vue +++ b/src/modules/05_placement/components/probation/MainProbation.vue @@ -189,7 +189,7 @@ const ProbationMainFilter = () => { }; const dataUpdate = ref([]); const updateRows = (body: any) => { - console.log(body.value); + // console.log(body.value); if (body.value !== "ทั้งหมด") { const filteredRows = dataUpdate.value.filter( (item: any) => item.probation_status === body.value @@ -207,10 +207,6 @@ const getpersonalList = async () => { .then((res) => { const data = res.data.data; fillterStatus.value = data; - console.log( - "🚀 ~ file: MainProbation.vue:193 ~ .then ~ fillterStatus:", - fillterStatus - ); rows.value = data.map((item: FormMainProbation) => ({ personal_id: item.personal_id, name: item.name, @@ -282,7 +278,7 @@ const findlist = async (id: string) => { response2.forEach((e: any) => probationlist.value.push({ ...e, probation: false }) ); - console.log(probationlist.value); + // console.log(probationlist.value); rows2.value = probationlist.value.map((e: any) => ({ id: e.id, fullname: e.fullname, diff --git a/src/stores/mixin.ts b/src/stores/mixin.ts index 463b8e2ac..9e837b61f 100644 --- a/src/stores/mixin.ts +++ b/src/stores/mixin.ts @@ -353,6 +353,17 @@ export const useCounterMixin = defineStore("mixin", () => { onlycancel: true, }, }); + } else if (e.response.data.successful === false) { + q.dialog({ + component: CustomComponent, + componentProps: { + title: `พบข้อผิดพลาด`, + message: e.response.data.message, + icon: "warning", + color: "red", + onlycancel: true, + }, + }); } else { q.dialog({ component: CustomComponent,