Views updated and correct functionally. Improvements added.
This commit is contained in:
+7
-4
@@ -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);
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user