Views updated and correct functionally. Improvements added.

This commit is contained in:
alfredojl
2020-09-18 22:10:05 -05:00
parent 6777c24879
commit 5bcc1dcdb0
6 changed files with 653 additions and 61 deletions
+7 -4
View File
@@ -38,7 +38,7 @@
</tr>
</thead>
<tbody class="overflow-auto thov" v-for="item in respuesta" :key="item.noInventario">
<tr @click="watchRow()">
<tr @click="watchRow(item.noInventario)">
<td class="text-primary">{{ item.noInventario }}</td>
<td>{{ item.activoFijo }}</td>
<td>{{ item.modelo }}</td>
@@ -208,8 +208,11 @@ export default {
});
},
watchRow(noInventario) {
if(typeof window.localStorage.isAdmin === true)
this.$router.push('./updateEquip')
localStorage.setItem('noInventario', noInventario);
if(this.pcView)
this.$router.push('./updateEquip');
else
this.$router.push('./updatePrinter');
},
changeView() {
this.loading = true;
@@ -224,7 +227,7 @@ export default {
},
admin() {
return !!window.localStorage.isAdmin;
return JSON.parse(localStorage.isAdmin);
}
},
}