help carlos
This commit is contained in:
@@ -27,27 +27,35 @@ export default function TableEquipos() {
|
||||
}
|
||||
|
||||
return (
|
||||
<table style={{ width: "100%", borderCollapse: "collapse" }}>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Ubicación</th>
|
||||
<th>Nombre</th>
|
||||
<th>Plataforma</th>
|
||||
<th>Área</th>
|
||||
<th>Activo</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{equipos.map((eq) => (
|
||||
<tr key={eq.id_equipo}>
|
||||
<td>{eq.ubicacion}</td>
|
||||
<td>{eq.nombre_equipo}</td>
|
||||
<td>{eq.plataforma?.nombre || eq.id_plataforma}</td>
|
||||
<td>{eq.areaUbicacion?.nombre || eq.id_area_ubicacion}</td>
|
||||
<td>{eq.activo ? "Sí" : "No"}</td>
|
||||
<div
|
||||
style={{
|
||||
overflow: "auto",
|
||||
height: "430px",
|
||||
scrollbarColor: "#2563eb white",
|
||||
}}
|
||||
>
|
||||
<table style={{ width: "100%", borderCollapse: "collapse" }}>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Ubicación</th>
|
||||
<th>Nombre</th>
|
||||
<th>Plataforma</th>
|
||||
<th>Área</th>
|
||||
<th>Activo</th>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</thead>
|
||||
<tbody>
|
||||
{equipos.map((eq) => (
|
||||
<tr key={eq.id_equipo}>
|
||||
<td>{eq.ubicacion}</td>
|
||||
<td>{eq.nombre_equipo}</td>
|
||||
<td>{eq.plataforma?.nombre || eq.id_plataforma}</td>
|
||||
<td>{eq.areaUbicacion?.nombre || eq.id_area_ubicacion}</td>
|
||||
<td>{eq.activo ? "Sí" : "No"}</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user