npm run build
This commit is contained in:
@@ -31,9 +31,9 @@
|
||||
td {{i.nombre_trabajo}}
|
||||
td {{i.autor_principal}}
|
||||
td.center
|
||||
input.form-check-input(type="checkbox")
|
||||
input.form-check-input(type="checkbox" disabled)
|
||||
td.center
|
||||
input.form-check-input(type="checkbox")
|
||||
input.form-check-input(type="checkbox" disabled)
|
||||
//- td.center
|
||||
//- input.form-check-input(type="checkbox")
|
||||
//- td.center
|
||||
@@ -59,15 +59,15 @@
|
||||
tbody
|
||||
tr(v-for="j in carteles")
|
||||
td
|
||||
button.btn.btn-primary(type="button") ver
|
||||
a.btn.btn-primary(:href="`https://venus.acatlan.unam.mx/coloquioeducacion/descargar_cartel?id_persona=${j.id_persona}`" download="ponencia" ) ver
|
||||
//- td
|
||||
//- button.btn.btn-info(type="button") ver
|
||||
td {{j.nombre_trabajo}}
|
||||
td {{j.autor_principal}}
|
||||
td.center
|
||||
input.form-check-input(type="checkbox")
|
||||
input.form-check-input(type="checkbox" disabled)
|
||||
td.center
|
||||
input.form-check-input(type="checkbox")
|
||||
input.form-check-input(type="checkbox" disabled)
|
||||
//- td.center
|
||||
//- input.form-check-input(type="checkbox")
|
||||
//- td.center
|
||||
|
||||
@@ -13,11 +13,17 @@
|
||||
form
|
||||
.form-group.left
|
||||
label(for="email") Email
|
||||
input#email.form-control(type="email")
|
||||
input#email.form-control(type="email" v-model="correo")
|
||||
.form-group.left
|
||||
label(for="email") Contraseña
|
||||
input#email.form-control(type="email")
|
||||
button.btn.btn-primary(type="submit") Iniciar Sesión
|
||||
input.form-control(type="password" v-model="password")
|
||||
div
|
||||
.row
|
||||
.col-6
|
||||
router-link(to="registro") Registro
|
||||
.col-6.right
|
||||
router-link(to="recuperar") Se olvido tu contraseña?
|
||||
button.btn.btn-primary(type="submit" v-on:click="login") Iniciar Sesión
|
||||
br
|
||||
br
|
||||
br
|
||||
@@ -26,10 +32,51 @@
|
||||
|
||||
<script>
|
||||
import webMenu from '../estetica/menu.vue'
|
||||
import axios from 'axios'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
correo: '',
|
||||
password: '',
|
||||
}
|
||||
},
|
||||
components: {
|
||||
appMenu: webMenu,
|
||||
},
|
||||
methods: {
|
||||
login: function() {
|
||||
axios
|
||||
.post(
|
||||
'https://venus.acatlan.unam.mx/coloquioeducacion/loggin_persona',
|
||||
{
|
||||
correo: this.correo,
|
||||
password: this.password,
|
||||
}
|
||||
)
|
||||
.then(response => {
|
||||
// eslint-disable-next-line
|
||||
console.log(response.data)
|
||||
if (response.data.trabajo) {
|
||||
// eslint-disable-next-line
|
||||
console.log('trabajo')
|
||||
this.$router.push({
|
||||
path: `/usuario/${response.data.id_persona[0].id_persona}`,
|
||||
})
|
||||
} else {
|
||||
// eslint-disable-next-line
|
||||
console.log('sin trabajo')
|
||||
|
||||
this.$router.push({
|
||||
path: `/ponencia/${response.data.id_persona[0].id_persona}`,
|
||||
})
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
// eslint-disable-next-line
|
||||
console.log(error)
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -37,4 +84,7 @@ export default {
|
||||
.left {
|
||||
text-align: left;
|
||||
}
|
||||
.right {
|
||||
text-align: right;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,68 @@
|
||||
<template lang="pug">
|
||||
div
|
||||
app-menu
|
||||
br
|
||||
br
|
||||
h1 Recuperar Contraseña
|
||||
.row
|
||||
.col-6.offset-3
|
||||
p Introduzca su email para recuperar su contraseña {{ title }}
|
||||
p {{ title }}
|
||||
.input-group
|
||||
input.form-control(type='text' v-model="correo" placeholder="Correo" aria-label="Recipient's username with two button addons" aria-describedby='button-addon4')
|
||||
#button-addon4.input-group-append
|
||||
button.btn.btn-primary(type='button' v-on:click="recupera") Enviar
|
||||
br
|
||||
br
|
||||
br
|
||||
br
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import webMenu from '../estetica/menu.vue'
|
||||
import Swal from 'sweetalert2'
|
||||
import axios from 'axios'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: process.env.API,
|
||||
correo: '',
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
recupera: function() {
|
||||
axios
|
||||
.get(
|
||||
`https://venus.acatlan.unam.mx/coloquioeducacion/enviar_email?correo=${this.correo}`
|
||||
)
|
||||
.then(res => {
|
||||
// eslint-disable-next-line
|
||||
console.log(res.data)
|
||||
Swal.fire({
|
||||
title: 'Exito',
|
||||
text: 'Se envio un correo con la nueva contraseña',
|
||||
icon: 'success',
|
||||
confirmButtonText: 'Aceptar',
|
||||
})
|
||||
})
|
||||
.catch(error => {
|
||||
// eslint-disable-next-line
|
||||
console.log(error)
|
||||
Swal.fire({
|
||||
title: 'Error',
|
||||
icon: 'error',
|
||||
text: error.response.data.msj,
|
||||
confirmButtonText: 'Aceptar',
|
||||
})
|
||||
})
|
||||
},
|
||||
},
|
||||
components: {
|
||||
appMenu: webMenu,
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
+16
-16
@@ -41,22 +41,22 @@
|
||||
input#exampleRadios2.form-check-input(type='radio' v-model="data.comunidad" value='externa')
|
||||
label.form-check-label(for='exampleRadios2')
|
||||
| Comunidad Externa
|
||||
.col-6
|
||||
.row
|
||||
.col-12
|
||||
.form-check.form-check-inline
|
||||
input#inlineRadio2.form-check-input(type='radio' v-model="data.tipo_participacion" name='inlineRadioOptions' value='asistente')
|
||||
label.form-check-label(for='inlineRadio2') Asistente
|
||||
.row(v-if="data.tipo_participacion=='asistente'")
|
||||
.col-12.offset-1
|
||||
.form-check
|
||||
input#exampleRadios1.form-check-input(type='radio' v-model="data.comunidad" value='interna' checked='')
|
||||
label.form-check-label(for='exampleRadios1')
|
||||
| Comunidad Interna
|
||||
.form-check
|
||||
input#exampleRadios2.form-check-input(type='radio' v-model="data.comunidad" value='externa')
|
||||
label.form-check-label(for='exampleRadios2')
|
||||
| Comunidad Externa
|
||||
//- .col-6
|
||||
//- .row
|
||||
//- .col-12
|
||||
//- .form-check.form-check-inline
|
||||
//- input#inlineRadio2.form-check-input(type='radio' v-model="data.tipo_participacion" name='inlineRadioOptions' value='asistente')
|
||||
//- label.form-check-label(for='inlineRadio2') Asistente
|
||||
//- .row(v-if="data.tipo_participacion=='asistente'")
|
||||
//- .col-12.offset-1
|
||||
//- .form-check
|
||||
//- input#exampleRadios1.form-check-input(type='radio' v-model="data.comunidad" value='interna' checked='')
|
||||
//- label.form-check-label(for='exampleRadios1')
|
||||
//- | Comunidad Interna
|
||||
//- .form-check
|
||||
//- input#exampleRadios2.form-check-input(type='radio' v-model="data.comunidad" value='externa')
|
||||
//- label.form-check-label(for='exampleRadios2')
|
||||
//- | Comunidad Externa
|
||||
.row(v-if="data.comunidad=='externa'")
|
||||
.col-8.offset-2
|
||||
br
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
<template lang="pug">
|
||||
div
|
||||
app-menu
|
||||
.row
|
||||
.col-8.offset-2.left
|
||||
br
|
||||
br
|
||||
.row
|
||||
.col-6
|
||||
h5 Usuario : {{`${data.persona[0].nombre} ${data.persona[0].apellido_p} ${data.persona[0].apellido_m} `}}
|
||||
p Correo : {{data.persona[0].correo_electronico}}
|
||||
p Comunidad : {{data.persona[0].comunidad}}
|
||||
p Situacion Academica : {{data.persona[0].situacion_academica}}
|
||||
.col-6.right
|
||||
button.btn.btn-danger(v-on:click="$router.push('/')") Salir
|
||||
br
|
||||
br
|
||||
table.table
|
||||
thead
|
||||
tr
|
||||
td Tipo
|
||||
td Nombre del Trabajo
|
||||
td Nombre Autor
|
||||
td Nombre Segundo Autor
|
||||
tbody
|
||||
tr(v-for="i in data.trabajo")
|
||||
td {{i.nombre_trabajo}}
|
||||
td {{i.nombre_trabajo}}
|
||||
td {{i.autor_principal}}
|
||||
td {{i.segundo_autor}}
|
||||
br
|
||||
br
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import webMenu from '../estetica/menu.vue'
|
||||
import axios from 'axios'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
data: '',
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
info: function() {
|
||||
axios
|
||||
.get(
|
||||
`https://venus.acatlan.unam.mx/coloquioeducacion/traer_persona?id_persona=${this.$route.params.id}`
|
||||
)
|
||||
.then(res => {
|
||||
// eslint-disable-next-line
|
||||
console.log(res.data.data)
|
||||
this.data = res.data.data
|
||||
})
|
||||
.catch(error => {
|
||||
// eslint-disable-next-line
|
||||
console.log(error)
|
||||
})
|
||||
},
|
||||
},
|
||||
created: function() {
|
||||
this.info()
|
||||
},
|
||||
components: {
|
||||
appMenu: webMenu,
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.left {
|
||||
text-align: left;
|
||||
}
|
||||
.right {
|
||||
text-align: right;
|
||||
}
|
||||
</style>
|
||||
@@ -31,9 +31,9 @@
|
||||
<li class="nav-item">
|
||||
<router-link to="/registro" class="nav-item nav-link"><a>Registro</a></router-link>
|
||||
</li>
|
||||
<!-- <li class="nav-item">
|
||||
<li class="nav-item">
|
||||
<router-link to="/login" class="nav-item nav-link"><a>Iniciar Sesión</a></router-link>
|
||||
</li> -->
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -9,6 +9,8 @@ import Admin from './components/Admin.vue'
|
||||
import LoginAdmin from './components/LoginAdmin.vue'
|
||||
import Login from './components/Login.vue'
|
||||
import Aviso from './components/Aviso.vue'
|
||||
import User from './components/User.vue'
|
||||
import Recuperar from './components/Recuperar.vue'
|
||||
|
||||
export const routes = [
|
||||
{ path: '/', component: Inicio, name: 'inicio' },
|
||||
@@ -22,6 +24,8 @@ export const routes = [
|
||||
{ path: '/admin', component: Admin, name: 'admin' },
|
||||
{ path: '/loginadmin', component: LoginAdmin, name: 'loginadmin' },
|
||||
{ path: '/aviso', component: Aviso, name: 'aviso' },
|
||||
{ path: '/usuario/:id', component: User, name: 'user' },
|
||||
{ path: '/recuperar', component: Recuperar, name: 'recuperar' },
|
||||
]
|
||||
|
||||
// const isAuthenticated = function() {
|
||||
|
||||
Reference in New Issue
Block a user