pos err
This commit is contained in:
+23
-45
@@ -64,17 +64,18 @@
|
||||
<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.uResponsable }}</td>
|
||||
<td>{{ item.ubicacion }}</td>
|
||||
<td>{{ item.nombreResponsable }}</td>
|
||||
<td>{{ item.uso }}</td>
|
||||
<td>{{ item.noResguardo }}</td>
|
||||
<td>{{ item.uResponsable }}</td>
|
||||
<td>{{ item.nombreResponsable }}</td>
|
||||
<td>{{ item.ubicacion }}</td>
|
||||
<td>{{ item.uso }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -103,6 +104,11 @@
|
||||
<td>{{ item.marca }}</td>
|
||||
<td>{{ item.noSerie }}</td>
|
||||
<td>{{ item.descripcion }}</td>
|
||||
<td>{{ item.noResguardo }}</td>
|
||||
<td>{{ item.uResponsable }}</td>
|
||||
<td>{{ item.nombreResponsable }}</td>
|
||||
<td>{{ item.ubicacion }}</td>
|
||||
<td>{{ item.uso }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -111,41 +117,6 @@
|
||||
<b-spinner variant="primary" label="Spinning" v-if="loading"></b-spinner>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4 class="text-left container-fluid mt-4">
|
||||
Carga masiva de equipos
|
||||
</h4>
|
||||
<div
|
||||
class="d-flex justify-content-start input-group mb-3"
|
||||
>
|
||||
<div class="custom-file">
|
||||
<input
|
||||
type="file"
|
||||
class="custom-file-input thob"
|
||||
id="inputGroupFile04"
|
||||
aria-describedby="inputGroupFileAddon04"
|
||||
@change="previewFile"
|
||||
accept=".csv"
|
||||
/>
|
||||
<label
|
||||
class="custom-file-label"
|
||||
ref="file"
|
||||
for="inputGroupFile04"
|
||||
>
|
||||
Selecciona el archivo
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-group-append">
|
||||
<button
|
||||
class="btn btn-outline-secondary"
|
||||
type="button"
|
||||
id="inputGroupFileAddon04"
|
||||
v-on:click=""
|
||||
>
|
||||
Subir
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button
|
||||
v-on:click="onDescarga(respuesta)"
|
||||
@@ -204,17 +175,18 @@ export default {
|
||||
"Marca",
|
||||
"Serie",
|
||||
"Procesador",
|
||||
"Velocidad de procesador (MHz)",
|
||||
"ROM (GB)",
|
||||
"RAM (MB)",
|
||||
"Tipo de memoria",
|
||||
"Velocidad de memoria (MHz)",
|
||||
"Gráficos",
|
||||
"Sistema operativo",
|
||||
"Resguardo",
|
||||
"Unidad responsable",
|
||||
"Ubicación",
|
||||
"Responsable",
|
||||
"Uso",
|
||||
"Resguardo"
|
||||
"Ubicación",
|
||||
"Uso"
|
||||
],
|
||||
printerHeads: [
|
||||
"Inventario",
|
||||
@@ -222,13 +194,19 @@ export default {
|
||||
"Modelo",
|
||||
"Marca",
|
||||
"Serie",
|
||||
"Descripción adicional"
|
||||
"Descripción adicional",
|
||||
"Resguardo",
|
||||
"Unidad Responsable",
|
||||
"Responsable",
|
||||
"Ubicacion",
|
||||
"Uso",
|
||||
],
|
||||
respuesta: [],
|
||||
datosmios: [],
|
||||
tipo: [],
|
||||
seleccionado: String,
|
||||
miNoInventario: String,
|
||||
file: null
|
||||
}
|
||||
},
|
||||
|
||||
@@ -274,6 +252,7 @@ export default {
|
||||
this.loading = false;
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error.response);
|
||||
if(error.response.status === 409) {
|
||||
localStorage.clear();
|
||||
this.$bvModal.show('session');
|
||||
@@ -316,7 +295,6 @@ export default {
|
||||
|
||||
},
|
||||
admin() {
|
||||
// return !!window.localStorage.isAdmin;
|
||||
return JSON.parse(window.localStorage.isAdmin);
|
||||
},
|
||||
onDescarga(datos){
|
||||
@@ -338,10 +316,10 @@ export default {
|
||||
}
|
||||
MiXLSX.utils.sheet_add_json(miDato,this.datosmios,{
|
||||
skipHeader:true, origin : "A2"});
|
||||
let miDato = MiXLSX.utils.json_to_sheet(datos);
|
||||
const LibroTrabajo = MiXLSX.utils.book_new();
|
||||
MiXLSX.utils.book_append_sheet(LibroTrabajo, miDato, "SalidaFalsa");
|
||||
MiXLSX.writeFile(LibroTrabajo, "SalidaFalsa.xlsx");
|
||||
console.log("Terminado");
|
||||
return JSON.parse(localStorage.isAdmin);
|
||||
},
|
||||
previewFile(event) {
|
||||
|
||||
Reference in New Issue
Block a user