cambiar nombre del modulo
This commit is contained in:
parent
eed0392465
commit
2f9ce00a80
@ -60,13 +60,13 @@ export default {
|
|||||||
updateCarrito() {
|
updateCarrito() {
|
||||||
const data = {
|
const data = {
|
||||||
id_modulo: this.modulo.id_modulo,
|
id_modulo: this.modulo.id_modulo,
|
||||||
modulo: this.nuevoNombreCarrito
|
modulo: this.nuevoNombreModulo
|
||||||
? this.nuevoNombreCarrito
|
? this.nuevoNombreModulo
|
||||||
: this.carrito.carrito,
|
: this.modulo.modulo,
|
||||||
}
|
}
|
||||||
this.updateIsLoading(true)
|
this.updateIsLoading(true)
|
||||||
axios
|
axios
|
||||||
.put(`${process.env.api}/equipo`, data, this.operador.token)
|
.put(`${process.env.api}/modulo`, data)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.buscar()
|
this.buscar()
|
||||||
this.updateIsLoading(false)
|
this.updateIsLoading(false)
|
||||||
@ -78,21 +78,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
|
||||||
carrito() {
|
|
||||||
// this.obtenerCatalogoCarritos()
|
|
||||||
// this.idStatus = this.equipo.status.id_status
|
|
||||||
// this.idCarrito = this.equipo.carrito.id_carrito
|
|
||||||
// if (this.equipo.programa)
|
|
||||||
// this.idPrograma = this.equipo.programa.id_programa
|
|
||||||
},
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
// if (this.operador.tipoUsuario.id_tipo_usuario === 3) {
|
|
||||||
// this.obtenerCatalogoStatus()
|
|
||||||
// this.idStatus = this.equipo.status.id_status
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user