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'))
|
||||
// this.operador = objeto.operador
|
||||
this.idTipoUsuario = objeto.operador.tipoUsuario.id_tipo_usuario
|
||||
console.log(objeto.operador)
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
@ -147,8 +147,9 @@ export default {
|
||||
for (let i = 0; i < this.tipoEntradas.length; i++) {
|
||||
if (this.idTipoEntrada != '') {
|
||||
if (
|
||||
this.equipo.tiposEntradas.length === 0 ||
|
||||
this.idTipoEntrada !=
|
||||
this.equipo.tiposEntradas[i].tipoEntrada.id_tipo_entrada
|
||||
this.equipo.tiposEntradas[i].tipoEntrada.id_tipo_entrada
|
||||
) {
|
||||
this.updateTipoEntradas()
|
||||
this.idTipoEntrada = ''
|
||||
|
@ -138,10 +138,9 @@ export default {
|
||||
const data = {
|
||||
id_equipo_programa: this.idEquipoPrograma,
|
||||
}
|
||||
console.log(data)
|
||||
this.updateIsLoading(true)
|
||||
axios
|
||||
.delete(`${process.env.api}/equipo-programa`, data)
|
||||
.delete(`${process.env.api}/equipo-programa`, { data })
|
||||
.then((res) => {
|
||||
this.buscar()
|
||||
this.updateIsLoading(false)
|
||||
@ -163,10 +162,9 @@ export default {
|
||||
const data = {
|
||||
id_equipo_tipo_entrada: this.idEquipoTipoEntrada,
|
||||
}
|
||||
console.log(data)
|
||||
this.updateIsLoading(true)
|
||||
axios
|
||||
.delete(`${process.env.api}/equipo-tipo-entrada`, data)
|
||||
.delete(`${process.env.api}/equipo-tipo-entrada`, { data })
|
||||
.then((res) => {
|
||||
this.buscar()
|
||||
this.updateIsLoading(false)
|
||||
|
Loading…
Reference in New Issue
Block a user