correcciones al agragar tipo-entrada
This commit is contained in:
parent
f1e72a3ad3
commit
77f5eebd4d
@ -313,7 +313,6 @@ export default {
|
|||||||
const objeto = JSON.parse(localStorage.getItem('usuario'))
|
const objeto = JSON.parse(localStorage.getItem('usuario'))
|
||||||
// this.operador = objeto.operador
|
// this.operador = objeto.operador
|
||||||
this.idTipoUsuario = objeto.operador.tipoUsuario.id_tipo_usuario
|
this.idTipoUsuario = objeto.operador.tipoUsuario.id_tipo_usuario
|
||||||
console.log(objeto.operador)
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -147,6 +147,7 @@ export default {
|
|||||||
for (let i = 0; i < this.tipoEntradas.length; i++) {
|
for (let i = 0; i < this.tipoEntradas.length; i++) {
|
||||||
if (this.idTipoEntrada != '') {
|
if (this.idTipoEntrada != '') {
|
||||||
if (
|
if (
|
||||||
|
this.equipo.tiposEntradas.length === 0 ||
|
||||||
this.idTipoEntrada !=
|
this.idTipoEntrada !=
|
||||||
this.equipo.tiposEntradas[i].tipoEntrada.id_tipo_entrada
|
this.equipo.tiposEntradas[i].tipoEntrada.id_tipo_entrada
|
||||||
) {
|
) {
|
||||||
|
@ -138,10 +138,9 @@ export default {
|
|||||||
const data = {
|
const data = {
|
||||||
id_equipo_programa: this.idEquipoPrograma,
|
id_equipo_programa: this.idEquipoPrograma,
|
||||||
}
|
}
|
||||||
console.log(data)
|
|
||||||
this.updateIsLoading(true)
|
this.updateIsLoading(true)
|
||||||
axios
|
axios
|
||||||
.delete(`${process.env.api}/equipo-programa`, data)
|
.delete(`${process.env.api}/equipo-programa`, { data })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.buscar()
|
this.buscar()
|
||||||
this.updateIsLoading(false)
|
this.updateIsLoading(false)
|
||||||
@ -163,10 +162,9 @@ export default {
|
|||||||
const data = {
|
const data = {
|
||||||
id_equipo_tipo_entrada: this.idEquipoTipoEntrada,
|
id_equipo_tipo_entrada: this.idEquipoTipoEntrada,
|
||||||
}
|
}
|
||||||
console.log(data)
|
|
||||||
this.updateIsLoading(true)
|
this.updateIsLoading(true)
|
||||||
axios
|
axios
|
||||||
.delete(`${process.env.api}/equipo-tipo-entrada`, data)
|
.delete(`${process.env.api}/equipo-tipo-entrada`, { data })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.buscar()
|
this.buscar()
|
||||||
this.updateIsLoading(false)
|
this.updateIsLoading(false)
|
||||||
|
Loading…
Reference in New Issue
Block a user