feat: retire la colonne catégorie des catalogues

This commit is contained in:
Matthieu
2025-10-31 10:04:40 +01:00
parent dc2bc6c70a
commit 3af6c50892
3 changed files with 4 additions and 14 deletions

View File

@@ -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…"
/>
</label>
<div class="flex items-center gap-2">
@@ -93,7 +93,6 @@
<tr>
<th class="w-24">Aperçu</th>
<th>Nom</th>
<th>Catégorie</th>
<th>Référence</th>
<th>Actions</th>
</tr>
@@ -107,7 +106,6 @@
/>
</td>
<td>{{ component.name || 'Composant sans nom' }}</td>
<td>{{ component.typeComposant?.name || '—' }}</td>
<td>{{ component.reference || '—' }}</td>
<td>
<div class="flex items-center gap-2">
@@ -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]

View File

@@ -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…"
/>
</label>
<div class="flex items-center gap-2">
@@ -92,7 +92,6 @@
<tr>
<th class="w-24">Aperçu</th>
<th>Nom</th>
<th>Catégorie</th>
<th>Référence</th>
<th>Actions</th>
</tr>
@@ -106,7 +105,6 @@
/>
</td>
<td>{{ piece.name || 'Pièce sans nom' }}</td>
<td>{{ piece.typePiece?.name || '—' }}</td>
<td>{{ piece.reference || '—' }}</td>
<td>
<div class="flex items-center gap-2">
@@ -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]