updated status contain

This commit is contained in:
Warunee Tamkoo 2024-10-07 17:39:18 +07:00
parent ca5b49d16b
commit f891926553
3 changed files with 28 additions and 9 deletions

View file

@ -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<string>("");
const title = ref<string>("");
const examData = ref<any>();
const roleAdmin = ref<boolean>(false);
const stat = ref<any>({
const stat = ref<StatResponse>({
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"
/>
<CardTop
:amount="stat.report"
label="ส่งไปออกคำสั่ง"
color="orange"
/>
<CardTop
:amount="stat.contain"
label="จำนวนที่บรรจุแล้ว"