fix(FE) : add context cardlist antrean

This commit is contained in:
Yusron alamsyah
2026-03-09 11:08:38 +07:00
parent 3e21705795
commit 7bcefb4622
5 changed files with 15 additions and 7 deletions

No files matched your search

+8 -3
View File
@@ -10,13 +10,15 @@ interface Props {
hasMore?: boolean;
totalItems?: number;
getActions?: (item: any) => Array<{ icon: string; color: string; tooltip: string; event: string }>;
context?: 'all' | 'kategori' | 'spesialis' | 'subspesialis';
}
const props = withDefaults(defineProps<Props>(), {
loading: false,
hasMore: false,
totalItems: 0,
getActions: () => []
getActions: () => [],
context: 'all'
});
const emit = defineEmits<{
@@ -194,12 +196,15 @@ onUnmounted(() => {
</v-chip>
</div>
<div class="d-flex ga-2 mb-4">
<v-chip size="small" color="primary" variant="outlined" label class="font-weight-medium">
<!-- Show all numbers for 'all' and 'kategori' context -->
<v-chip v-if="context === 'all' || context === 'kategori'" size="small" color="primary" variant="outlined" label class="font-weight-medium">
No : {{ item.NoUrutKategori }}
</v-chip>
<v-chip size="small" color="primary" variant="outlined" label class="font-weight-medium">
<!-- Show spesialis number for 'all', 'kategori', 'spesialis' context -->
<v-chip v-if="context === 'all' || context === 'kategori' || context === 'spesialis'" size="small" color="primary" variant="outlined" label class="font-weight-medium">
No Spesialis : {{ item.NoUrutSpesialis }}
</v-chip>
<!-- Show subspesialis number for all contexts -->
<v-chip size="small" color="primary" variant="outlined" label class="font-weight-medium">
No Sub Spesialis : {{ item.NoUrutSubSpesialis }}
</v-chip>