Editar información del equipo
Datos generales:
@@ -11,108 +31,152 @@
enctype="multipart/form-data"
>
-
+ /> -->
-
+
+
+ Unidad Responsable:
+
+
-
+
+
+ Ubicación:
+
+
-
+
+
+ Uso:
+
+
-
Computadora
-
-
+ Computadora
@@ -128,7 +192,7 @@
@@ -170,18 +234,65 @@
+
+
\ No newline at end of file
diff --git a/src/views/User.vue b/src/views/User.vue
index f9bc34f..e47bada 100644
--- a/src/views/User.vue
+++ b/src/views/User.vue
@@ -38,7 +38,7 @@
-
+
| {{ item.noInventario }} |
{{ item.activoFijo }} |
{{ item.modelo }} |
@@ -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);
}
},
}