diff --git a/components/admin/tableTickets.vue b/components/admin/tableTickets.vue index b8a9140..7cd0675 100644 --- a/components/admin/tableTickets.vue +++ b/components/admin/tableTickets.vue @@ -48,16 +48,13 @@ - - {{ estatus(props.row.validacion) }} + + {{ props.row.confirmacion }} @@ -91,7 +88,7 @@ export default { }, methods: { types(value) { - return value === 1 ? 'is-success' : value === 0 ? 'is-danger' : '' + return value === true ? 'is-success' : 'is-danger' }, todasInscripciones() { axios @@ -106,15 +103,6 @@ export default { // this.imprimirError(err.response.data) }) }, - estatus(value) { - const status = { - 0: 'false', - 1: 'true', - 2: '--', - } - - return status[value] - }, verTicket(value) { console.log(value) this.$router.push({ diff --git a/components/registro/Steps.vue b/components/registro/Steps.vue index a39e65a..e344930 100644 --- a/components/registro/Steps.vue +++ b/components/registro/Steps.vue @@ -38,12 +38,13 @@ diff --git a/pages/registro/index.vue b/pages/registro/index.vue index 4cc3de9..94876c4 100644 --- a/pages/registro/index.vue +++ b/pages/registro/index.vue @@ -3,7 +3,7 @@

Registro

- +

Datos del alumno

@@ -41,8 +41,6 @@ export default { }, data() { return { - activeStep: 0, - datosUsuario: {}, inscripcionesUsuario: [], } @@ -55,25 +53,12 @@ export default { ) .then((res) => { this.inscripcionesUsuario = res.data - console.log(res.data) - if (this.inscripcionesUsuario[0].confirmacion === true) - this.activeStep = 1 - if (this.inscripcionesUsuario[0].validacion === 1) this.activeStep = 2 - // if (this.inscripcionesUsuario.length > 0 && mostrarWarning) { - // this.imprimirWarning( - // 'Tu ya tienes una inscripción en proceso, ¿Quieres realizar otra?', - // this.clearActiveStep - // ) - // } }) .catch((err) => { this.error = 'is-danger' this.imprimirError(err.response.data) }) }, - // clearActiveStep() { - // this.activeStep = 0 - // }, area(idArea) { if (idArea === 1) return 'Windows' return idArea === 2 ? 'Mac' : 'Linux'