From 52cbe284a2bfc93c435730c7dfc30e0e837c77e3 Mon Sep 17 00:00:00 2001 From: "yusron.alamsyah2311" Date: Thu, 30 Apr 2026 08:37:38 +0700 Subject: [PATCH] fix : filter dashboard all --- pages/dashboard.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pages/dashboard.vue b/pages/dashboard.vue index eefbbce..8e93908 100644 --- a/pages/dashboard.vue +++ b/pages/dashboard.vue @@ -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({
Belum
-

{{ totalBelum }}

+

{{ numberFormat(totalBelum) }}

@@ -805,7 +806,7 @@ definePageMeta({
Selesai
-

{{ totalSelesai }}

+

{{ numberFormat(totalSelesai) }}

@@ -828,7 +829,7 @@ definePageMeta({
Tunda
-

{{ totalTunda }}

+

{{ numberFormat(totalTunda) }}

@@ -851,7 +852,7 @@ definePageMeta({
Batal
-

{{ totalBatal }}

+

{{ numberFormat(totalBatal) }}