problemas con las rutas al buscar equipo, carrito, modulo
This commit is contained in:
parent
6896f35197
commit
dd7b942bd8
@ -99,9 +99,7 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.updateModulo(res.data)
|
this.updateModulo(res.data)
|
||||||
this.updateIsLoading(false)
|
this.updateIsLoading(false)
|
||||||
this.$router.push({
|
this.$router.push(`/admin/modulos/buscar_modulo/${this.idModulo}`)
|
||||||
path: '../buscar_modulo/' + this.idModulo,
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
this.updateIsLoading(false)
|
this.updateIsLoading(false)
|
||||||
|
@ -118,9 +118,10 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.updateCarrito(res.data)
|
this.updateCarrito(res.data)
|
||||||
this.updateIsLoading(false)
|
this.updateIsLoading(false)
|
||||||
this.$router.push({
|
if (!this.idModulo) this.idModulo = res.data.modulo.id_modulo
|
||||||
path: '../buscar_carrito/' + this.idCarrito,
|
this.$router.push(
|
||||||
})
|
`/operador/carritos/buscar_carrito/${this.idCarrito}`
|
||||||
|
)
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
this.updateIsLoading(false)
|
this.updateIsLoading(false)
|
||||||
|
@ -79,9 +79,9 @@ export default {
|
|||||||
// this.obtenerPrestamos()
|
// this.obtenerPrestamos()
|
||||||
// this.obtenerReportes()
|
// this.obtenerReportes()
|
||||||
this.obtenerMotivos()
|
this.obtenerMotivos()
|
||||||
this.$router.push({
|
this.$router.push(
|
||||||
path: '../buscar_equipo/' + this.numeroInventario,
|
`/operador/equipos/buscar_equipo/${this.numeroInventario}`
|
||||||
})
|
)
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
this.updateIsLoading(false)
|
this.updateIsLoading(false)
|
||||||
|
@ -73,9 +73,9 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.updateUsuario(res.data)
|
this.updateUsuario(res.data)
|
||||||
this.updateIsLoading(false)
|
this.updateIsLoading(false)
|
||||||
this.$router.push({
|
this.$router.push(
|
||||||
path: '../buscar_usuario/' + this.numeroCuenta,
|
`/operador/usuarios/buscar_usuario/${this.numeroCuenta}`
|
||||||
})
|
)
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
this.updateIsLoading(false)
|
this.updateIsLoading(false)
|
||||||
|
Loading…
Reference in New Issue
Block a user