diff --git a/app/components/model-types/Table.vue b/app/components/model-types/Table.vue index c9babeb..9a812d8 100644 --- a/app/components/model-types/Table.vue +++ b/app/components/model-types/Table.vue @@ -33,7 +33,6 @@ Nom - Catégorie Notes Actions @@ -41,7 +40,6 @@ {{ item.name }} - {{ categoryLabel(item.category) }} {{ item.notes }} diff --git a/app/pages/component-catalog.vue b/app/pages/component-catalog.vue index 6c92083..a6ede45 100644 --- a/app/pages/component-catalog.vue +++ b/app/pages/component-catalog.vue @@ -34,7 +34,7 @@ v-model="searchTerm" type="text" class="input input-bordered input-sm w-full mt-1" - placeholder="Nom, référence ou catégorie…" + placeholder="Nom ou référence…" />
@@ -93,7 +93,6 @@ Aperçu Nom - Catégorie Référence Actions @@ -107,7 +106,6 @@ /> {{ component.name || 'Composant sans nom' }} - {{ component.typeComposant?.name || '—' }} {{ component.reference || '—' }}
@@ -232,11 +230,9 @@ const visibleComposants = computed(() => { ? source.filter((component) => { const name = (component?.name || '').toLowerCase() const reference = (component?.reference || '').toLowerCase() - const category = (component?.typeComposant?.name || '').toLowerCase() return ( name.includes(term) || - reference.includes(term) || - category.includes(term) + reference.includes(term) ) }) : [...source] diff --git a/app/pages/pieces-catalog.vue b/app/pages/pieces-catalog.vue index 6e616a8..21f350c 100644 --- a/app/pages/pieces-catalog.vue +++ b/app/pages/pieces-catalog.vue @@ -33,7 +33,7 @@ v-model="searchTerm" type="text" class="input input-bordered input-sm w-full mt-1" - placeholder="Nom, référence ou catégorie…" + placeholder="Nom ou référence…" />
@@ -92,7 +92,6 @@ Aperçu Nom - Catégorie Référence Actions @@ -106,7 +105,6 @@ /> {{ piece.name || 'Pièce sans nom' }} - {{ piece.typePiece?.name || '—' }} {{ piece.reference || '—' }}
@@ -234,11 +232,9 @@ const visiblePieces = computed(() => { ? source.filter((piece) => { const name = (piece?.name || '').toLowerCase() const reference = (piece?.reference || '').toLowerCase() - const category = (piece?.typePiece?.name || '').toLowerCase() return ( name.includes(term) || - reference.includes(term) || - category.includes(term) + reference.includes(term) ) }) : [...source]