144 lines
5.1 KiB
Vue
144 lines
5.1 KiB
Vue
<template>
|
|
<div>
|
|
<h1>Sistema de Censo</h1>
|
|
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text" id="basic-addon1"><i class="fa fa-search" style="font-size:20px"></i></span>
|
|
</div>
|
|
<input type="text" class="form-control searchBar" placeholder="Buscar" aria-label="Buscar" aria-describedby="basic-addon1" >
|
|
<button type="button" class="btn btn-outline-primary">Primary</button>
|
|
</div>
|
|
<div class="table-responsive">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th v-for="item in header" v-bind:key="item.nombre" scope="col">
|
|
<div class="dropdown">
|
|
<button class="btn nav-link dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
{{item.nombre}}
|
|
</button>
|
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
|
<a v-for="type in item.data" v-bind:key=" type" scope="col" class="dropdown-item" >{{ type}}</a>
|
|
</div>
|
|
</div>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="item in data" v-bind:key="item.index">
|
|
<td class="text-primary">{{ item.noInventario }}</td>
|
|
<td>{{ item.activoFijo }}</td>
|
|
<td>{{ item.modelo }}</td>
|
|
<td>{{ item.marca }}</td>
|
|
<td>{{ item.noSerie }}</td>
|
|
<td>{{ item.procesador }}</td>
|
|
<td>{{ item.vProcesador }}</td>
|
|
<td>{{ item.hdd }}</td>
|
|
<td>{{ item.memoriasz }}</td>
|
|
<td>{{ item.memoria }}</td>
|
|
<td>{{ item.vMemoria }}</td>
|
|
<td>{{ item.graficos }}</td>
|
|
<td>{{ item.osname }}</td>
|
|
<td>{{ item.noResguardo }}</td>
|
|
<td>{{ item.uResponsable }}</td>
|
|
<td>{{ item.nombreResponsable }}</td>
|
|
<td>{{ item.ubicacion }}</td>
|
|
<td>{{ item.uso }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="pure-u-1 pure-u-md-1-2">
|
|
<button class="button " >
|
|
Descargar Excel
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
name: "home",
|
|
data() {
|
|
return {
|
|
header: [
|
|
{nombre: "Inventario", data: []},
|
|
{nombre: "Tipo", data: ["compu"]},
|
|
{nombre: "Modelo", data: []},
|
|
{nombre: "Marca", data: []},
|
|
{nombre: "Serie", data: []},
|
|
{nombre: "Procesador", data: []},
|
|
{nombre: "Velocidad de procesador (MHz)", data: []},
|
|
{nombre: "ROM (GB)", data: []},
|
|
{nombre: "RAM (MB)", data: []},
|
|
{nombre: "Tipo de memoria", data: []},
|
|
{nombre: "Velocidad de memoria (MHz)", data: []},
|
|
{nombre: "Gráficos", data: []},
|
|
{nombre: "Sistema operativo", data: []},
|
|
{nombre: "Resguardo", data: []},
|
|
{nombre: "Unidad responsable", data: []},
|
|
{nombre: "Responsable", data: []},
|
|
{nombre: "Ubicación", data: []},
|
|
{nombre: "Uso", data: []} ],
|
|
data: [
|
|
{ noInventario: "Inventario",
|
|
activoFijo: "Tipo",
|
|
modelo: "Modelo",
|
|
marca: "Marca",
|
|
noSerie: "Serie",
|
|
procesador: "Procesador",
|
|
vProcesador: "Velocidad de procesador (MHz)",
|
|
hdd: "ROM (GB)",
|
|
memoriasz: "RAM (MB)",
|
|
memoria: "Tipo de memoria",
|
|
vMemoria: "Velocidad de memoria (MHz)",
|
|
graficos: "Gráficos",
|
|
osname: "Sistema operativo",
|
|
noResguardo: "Resguardo",
|
|
uResponsable: "Unidad responsable",
|
|
nombreResponsable: "Responsable",
|
|
ubicacion: "Ubicación",
|
|
uso: "Uso" },
|
|
|
|
]
|
|
}
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
};
|
|
</script>
|
|
<style scoped>
|
|
.searchBar{
|
|
|
|
width: 15rem;
|
|
margin-right: 15rem;
|
|
|
|
}
|
|
|
|
.button {
|
|
background-color: #1b3d70; /* Green */
|
|
border: none;
|
|
color: white;
|
|
height: 4rem;
|
|
width: 15rem;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
font-size: 1.5rem;
|
|
border-radius: 1rem;
|
|
-webkit-transition-duration: 0.4s; /* Safari */
|
|
transition-duration: 0.4s;
|
|
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
|
margin-left: 2rem;
|
|
margin-right: 2rem;
|
|
margin-bottom: 2rem;
|
|
margin-top: 2rem;
|
|
}
|
|
.button:hover {
|
|
background-color: #46c200;
|
|
color: white;
|
|
}
|
|
</style>
|