From 4c670701c4b349c670264e94b0580e028f2b4252 Mon Sep 17 00:00:00 2001 From: riefive Date: Wed, 3 Dec 2025 13:22:25 +0700 Subject: [PATCH] feat: enhance filter navigation with role-based visibility and active position handling --- app/components/app/encounter/filter-nav.vue | 7 ++++-- app/components/content/encounter/list.vue | 25 ++++++++++++--------- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/app/components/app/encounter/filter-nav.vue b/app/components/app/encounter/filter-nav.vue index 2a16d723..947148aa 100644 --- a/app/components/app/encounter/filter-nav.vue +++ b/app/components/app/encounter/filter-nav.vue @@ -8,6 +8,7 @@ import { cn } from '~/lib/utils' import type { RefExportNav, RefSearchNav } from '~/components/pub/my-ui/data/types' const props = defineProps<{ + activePositon?: string refSearchNav?: RefSearchNav enableExport?: boolean refExportNav?: RefExportNav @@ -30,6 +31,8 @@ const props = defineProps<{ // } const searchQuery = ref('') +const isRoleRegistration = props.activePositon === 'registration' +const isRoleMedical = props.activePositon === 'medical' const dateRange = ref<{ from: Date | null; to: Date | null }>({ from: new Date(), to: new Date(), @@ -70,7 +73,7 @@ const value = ref({