This commit is contained in:
2022-05-20 10:45:21 -05:00
parent 0227962f79
commit 76278e7aec
7 changed files with 11 additions and 14 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
<template>
<div class="full-h cont">
<h2 class="has-text-centered is-size-2">
Registro de invitados para la entrega de medallas
Registro de invitados
</h2>
<div class="is-flex">
<div class="">
@@ -68,6 +68,7 @@ export default {
axios
.post(`${process.env.api}/profesor/login`, data)
.then((res) => {
this.updateIsLoading(false)
const info = res.data
localStorage.setItem('token', info.token)
@@ -78,12 +79,11 @@ export default {
'numeroTrabajador',
info.Profesor.numeroTrabajador
)
this.updateIsLoading(false)
this.$router.push(`/${'profesor'}`)
this.$router.push('profesor')
})
.catch((err) => {
this.error = 'is-danger'
this.updateIsLoading(false)
this.error = 'is-danger'
this.imprimirError(err.response.data)
})
}
+1 -1
View File
@@ -6,7 +6,7 @@
<b-field label="Nombre de la premiación">
<b-input
type="text"
placeholder="Digite el usuario"
placeholder="Digite el nombre de la premiación"
v-model="premiacion"
/>
</b-field>
+1 -1
View File
@@ -1,7 +1,7 @@
<template>
<div class="full-h container">
<b-button @click="atras()" type="is-primary"> Atrás </b-button>
<h2 class="has-text-centered is-size-2">Creación de Operadores</h2>
<h2 class="has-text-centered is-size-2">Editar premiación</h2>
<div class="is-flex is-justify-content-center">
<form class="box">
<p class="is-size-4 block mr-4">
+2 -1
View File
@@ -183,10 +183,10 @@ export default {
this.csv = {}
}
},
async fetchDataReporte() {},
},
watch: {
idPremiacion() {
console.log("Algo")
this.dataExport = []
this.isLoading = true
axios
@@ -194,6 +194,7 @@ export default {
`${process.env.api}/invitado/get?idPremiacion=${this.idPremiacion}`
)
.then((res) => {
console.log(res.data)
this.isLoading = false
if (res.data.length > 0) {
res.data.forEach((item, index) => {
+1 -6
View File
@@ -33,7 +33,7 @@
</b-table-column>
<b-table-column field="hora" label="Hora" v-slot="props" centered sortable>
<span v-if="props.row.hora">{{ hora(props.row.horaInicio) }}</span>
<span v-if="props.row.hora">{{ props.row.hora }}</span>
<span v-else>-</span>
</b-table-column>
@@ -112,11 +112,6 @@ export default {
return fecha.isValid() ? fecha.format('YYYY-MM-DD') : ''
},
hora(date) {
const fecha = moment(date)
return fecha.isValid() ? fecha.format('HH:mm') : ''
},
type(bool) {
if (bool === false) {
return 'is-danger'
+1
View File
@@ -27,6 +27,7 @@ export default {
} catch (err) {
this.idProfesor = ''
this.idPremiacion = ''
console.log(err)
this.errorMessage()
}
if (this.idProfesor && this.idPremiacion) {
+1 -1
View File
@@ -5,7 +5,7 @@ export default {
server: { port: 3166 },
target: 'static',
head: {
title: 'nuxt_buefy',
title: 'Registro',
htmlAttrs: {
lang: 'es',
},