fix : filter dashboard all

This commit is contained in:
2026-04-30 08:37:38 +07:00
parent 873a156923
commit 52cbe284a2
+6 -5
View File
@@ -7,6 +7,7 @@ import ModalPendaftaran from '@/components/pendaftaran/ModalPendaftaranV2.vue';
import api from '@/services/api';
import { useAuth } from '~/composables/useAuth';
import { useUserMenuStore } from '~/store/userMenu';
import { numberFormat } from '~/utils/helpers';
// Check user access to dashboard
const { user } = useAuth();
@@ -64,8 +65,8 @@ const years = ref([
]);
const dashboardParams = computed(() => {
if (useAllPeriod.value) return {};
return {
is_all : useAllPeriod.value ? true : false,
year: selectedYear.value,
month: selectedMonth.value + 1 // API expects 1-12, not 0-11
};
@@ -782,7 +783,7 @@ definePageMeta({
</v-avatar>
<div>
<h6 class="text-subtitle-1 text-white opacity-80 mb-1">Belum</h6>
<h3 class="text-h2 font-weight-bold text-white">{{ totalBelum }}</h3>
<h3 class="text-h2 font-weight-bold text-white">{{ numberFormat(totalBelum) }}</h3>
</div>
</div>
</v-card-item>
@@ -805,7 +806,7 @@ definePageMeta({
</v-avatar>
<div>
<h6 class="text-subtitle-1 text-white opacity-80 mb-1">Selesai</h6>
<h3 class="text-h2 font-weight-bold text-white">{{ totalSelesai }}</h3>
<h3 class="text-h2 font-weight-bold text-white">{{ numberFormat(totalSelesai) }}</h3>
</div>
</div>
</v-card-item>
@@ -828,7 +829,7 @@ definePageMeta({
</v-avatar>
<div>
<h6 class="text-subtitle-1 text-white opacity-80 mb-1">Tunda</h6>
<h3 class="text-h2 font-weight-bold text-white">{{ totalTunda }}</h3>
<h3 class="text-h2 font-weight-bold text-white">{{ numberFormat(totalTunda) }}</h3>
</div>
</div>
</v-card-item>
@@ -851,7 +852,7 @@ definePageMeta({
</v-avatar>
<div>
<h6 class="text-subtitle-1 text-white opacity-80 mb-1">Batal</h6>
<h3 class="text-h2 font-weight-bold text-white">{{ totalBatal }}</h3>
<h3 class="text-h2 font-weight-bold text-white">{{ numberFormat(totalBatal) }}</h3>
</div>
</div>
</v-card-item>