feat: retire la colonne catégorie des catalogues
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user