fix(FE) : add context cardlist antrean
This commit is contained in:
No files matched your search
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user