diff --git a/src/modules/05_placement/components/PersonalList/PersonalListPage.vue b/src/modules/05_placement/components/PersonalList/PersonalListPage.vue index aee589448..43f6d086d 100644 --- a/src/modules/05_placement/components/PersonalList/PersonalListPage.vue +++ b/src/modules/05_placement/components/PersonalList/PersonalListPage.vue @@ -12,6 +12,7 @@ import config from "@/app.config"; import CardTop from "@/modules/05_placement/components/PersonalList/StatCard.vue"; import AddTablePosition from "@/modules/05_placement/components/PersonalList/Table.vue"; +import type { StatResponse } from "@/modules/05_placement/interface/response/Main"; const $q = useQuasar(); const router = useRouter(); const route = useRoute(); @@ -25,12 +26,13 @@ const round = ref(""); const title = ref(""); const examData = ref(); const roleAdmin = ref(false); -const stat = ref({ +const stat = ref({ total: 0, unContain: 0, prepareContain: 0, contain: 0, disclaim: 0, + report: 0, }); /** @@ -49,6 +51,7 @@ async function getStat() { prepareContain: statCard.prepareContain, contain: statCard.contain, disclaim: statCard.disclaim, + report: statCard.report, }; DataStore.checkLoad(1); }) @@ -131,6 +134,11 @@ onMounted(async () => { label="จำนวนที่เตรียมบรรจุ" color="#2EA0FF" /> + x.statusId !== "CONTAIN")); + : rowsAll.value.filter((x: any) => x.statusId !== "DONE")); // รายชื่อไปยังหน่วยงาน rowsFilter.value = await rows.value.filter( (e: any) => @@ -748,9 +750,9 @@ function openModalOrder(val: boolean) { watch(containStatus, () => { if (containStatus.value) { - rows.value = rowsAll.value.filter((x: any) => x.statusId == "CONTAIN"); + rows.value = rowsAll.value.filter((x: any) => x.statusId == "DONE"); } else { - rows.value = rowsAll.value.filter((x: any) => x.statusId != "CONTAIN"); + rows.value = rowsAll.value.filter((x: any) => x.statusId != "DONE"); } }); @@ -804,7 +806,7 @@ onMounted(async () => { {