diff --git a/package-lock.json b/package-lock.json
index 663ffd1..fbd8754 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10658,6 +10658,11 @@
"util.promisify": "~1.0.0"
}
},
+ "sweetalert2": {
+ "version": "9.7.2",
+ "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-9.7.2.tgz",
+ "integrity": "sha512-VmFmigf+rO20t5fOql21wIZlk60B8M02kXwPLmMA2qaBcVwvDQA+qGXuqtXipx1wsztTOiXgyDiBvdbHbIvQpw=="
+ },
"symbol-tree": {
"version": "3.2.4",
"resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",
diff --git a/package.json b/package.json
index 94f7bab..16b8c5c 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,7 @@
"core-js": "^3.4.4",
"jspdf": "^1.5.3",
"pdfvuer": "^1.4.0",
+ "sweetalert2": "^9.7.2",
"vue": "^2.6.11",
"vue-pdf": "^4.0.7",
"vue-router": "^3.1.5"
diff --git a/src/components/Admin.vue b/src/components/Admin.vue
index be192a0..4e1b676 100644
--- a/src/components/Admin.vue
+++ b/src/components/Admin.vue
@@ -5,7 +5,7 @@
.col-4.offset-2.left
h1 Dictamen
.col-4.right
- button.btn.btn-danger(type="button") Salir
+ button.btn.btn-danger(type="button" v-on:click="salir") Salir
.row
.col-8.offset-2.left
br
@@ -15,30 +15,29 @@
thead
tr
td Resumen
- td Extenso
+ //- td Extenso
td Nombre del trabajo
td Nombre del aspirante
td Aceptado
td Rechaado
- td Publicado
- td Pagado
+ //- td Publicado
+ //- td Pagado
tbody
- each row in [1,2,3,4,5,6]
- tr
- td
- button.btn.btn-primary(type="button") ver
- td
- button.btn.btn-info(type="button") ver
- td= 'Trabajo '+row
- td= 'Aspirante '+row
- td.center
- input.form-check-input(type="checkbox")
- td.center
- input.form-check-input(type="checkbox")
- td.center
- input.form-check-input(type="checkbox")
- td.center
- input.form-check-input(type="checkbox")
+ tr(v-for="i in ponencias")
+ td
+ a.btn.btn-primary(:href="`https://venus.acatlan.unam.mx/coloquioeducacion/descargar_ponencia?id_persona=${i.id_persona}`" download="ponencia" ) ver
+ //- td
+ //- button.btn.btn-info(type="button") ver
+ td {{i.nombre_trabajo}}
+ td {{i.autor_principal}}
+ td.center
+ input.form-check-input(type="checkbox")
+ td.center
+ input.form-check-input(type="checkbox")
+ //- td.center
+ //- input.form-check-input(type="checkbox")
+ //- td.center
+ //- input.form-check-input(type="checkbox")
br
br
.row
@@ -50,35 +49,107 @@
thead
tr
td Resumen
- td Extenso
+ //- td Extenso
td Nombre del trabajo
td Nombre del aspirante
td Aceptado
td Rechaado
- td Publicado
- td Pagado
+ //- td Publicado
+ //- td Pagado
tbody
- each row in [1,2,3,4,5,6]
- tr
- td
- button.btn.btn-primary(type="button") ver
- td
- button.btn.btn-info(type="button") ver
- td= 'Trabajo '+row
- td= 'Aspirante '+row
- td.center
- input.form-check-input(type="checkbox")
- td.center
- input.form-check-input(type="checkbox")
- td.center
- input.form-check-input(type="checkbox")
- td.center
- input.form-check-input(type="checkbox")
+ tr(v-for="j in carteles")
+ td
+ button.btn.btn-primary(type="button") 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")
+ td.center
+ input.form-check-input(type="checkbox")
+ //- td.center
+ //- input.form-check-input(type="checkbox")
+ //- td.center
+ //- input.form-check-input(type="checkbox")
\ No newline at end of file
diff --git a/src/components/LoginAdmin.vue b/src/components/LoginAdmin.vue
new file mode 100644
index 0000000..0d352a2
--- /dev/null
+++ b/src/components/LoginAdmin.vue
@@ -0,0 +1,67 @@
+
+ div
+ br
+ br
+ br
+ br
+ .row
+ .col-4.offset-4
+ h1 Iniciar Sesión
+ br
+ br
+ form
+ .form-group.left
+ label(for="text") Usuario
+ input#email.form-control(type="text" v-model="user")
+ .form-group.left
+ label(for="email") Contraseña
+ input#email.form-control(type="password" v-model="pass")
+ button.btn.btn-primary(type="submit" v-on:click="Login") Iniciar Sesión
+ br
+ br
+ br
+ br
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/Ponencia.vue b/src/components/Ponencia.vue
index 7a3cd54..ff846e8 100644
--- a/src/components/Ponencia.vue
+++ b/src/components/Ponencia.vue
@@ -1,33 +1,32 @@
- .container-fluid
+ div
+ app-menu
br
h1 Registro Ponencia
.row
.col-6.offset-2
br
.form-group
- input#exampleInputEmail1.form-control(type='email' aria-describedby='emailHelp' placeholder='Nombre del Autor pricipal')
+ input#exampleInputEmail1.form-control(type='text' aria-describedby='emailHelp' v-model="autor" placeholder='Nombre del Autor pricipal')
.form-group
- input#exampleInputPassword1.form-control(type='password' placeholder='Nombre del segundo autor')
+ input#exampleInputPassword1.form-control(type='text' v-model="autorsegundo" placeholder='Nombre del segundo autor')
.row
.col-8.offset-2.left
.form-check
- input#exampleRadios1.form-check-input(type='radio' name='exampleRadios' value='option1' checked='')
+ input#exampleRadios1.form-check-input(type='checkbox' name='exampleRadios' v-model="ponencia" checked='')
label.form-check-label(for='exampleRadios1')
| Ponencia
- .row
+ .row(v-if="ponencia")
.col-8.offset-2
.form-group
- input#exampleInputEmail1.form-control(type='email' aria-describedby='emailHelp' placeholder='Nombre de la Ponencia')
+ input#exampleInputEmail1.form-control(type='text' aria-describedby='emailHelp' placeholder='Nombre de la Ponencia' v-model="nombrepon")
.form-group
select.custom-select
- option(selected='') Seleccione la mesa
- option(value='1') One
- option(value='2') Two
- option(value='3') Three
+ option(selected='' v-model="mesapon") Seleccione la mesa
+ option(v-for="mesa in mesas" value="mesa") {{mesa}}
.custom-file
- input#validatedCustomFile.custom-file-input(type='file' required='')
- label.custom-file-label(for='validatedCustomFile') Seleccionar Archivo
+ input.custom-file-input(type='file' required='' @change="previewPonencia" accept=".doc,.docx")
+ label.custom-file-label( ref="ponenciafile" for='validatedCustomFile') Seleccionar Archivo
small#emailHelp.form-text.text-muted
| Instrucciones: Subir el archivo resumen de 250 palabras en word de acuerdo a
| la convocatoria
@@ -35,22 +34,20 @@
.row
.col-8.offset-2.left
.form-check
- input#exampleRadios1.form-check-input(type='radio' name='exampleRadios' value='option1' checked='')
+ input#exampleRadios1.form-check-input(type='checkbox' v-model="cartel" name='exampleRadios' value='option1' checked='')
label.form-check-label(for='exampleRadios1')
| Cartel
- .row
+ .row(v-if="cartel")
.col-8.offset-2
.form-group
- input#exampleInputEmail1.form-control(type='email' aria-describedby='emailHelp' placeholder='Nombre de la Cartel')
+ input#exampleInputEmail1.form-control(type='text' aria-describedby='emailHelp' placeholder='Nombre de la Cartel' v-model="nombrecartel")
.form-group
- select.custom-select
+ select.custom-select(v-model="mesacartel")
option(selected='') Seleccione la mesa
- option(value='1') One
- option(value='2') Two
- option(value='3') Three
+ option(v-for="mesa in mesas" value="mesa") {{mesa}}
.custom-file
- input#validatedCustomFile.custom-file-input(type='file' required='')
- label.custom-file-label(for='validatedCustomFile') Seleccionar Archivo
+ input.custom-file-input(type='file' required='' @change="previewCarta" accept=".doc,.docx")
+ label.custom-file-label( ref="cartelfile" for='validatedCustomFile') Seleccionar Archivo
small#emailHelp.form-text.text-muted
| Instrucciones: Subir el archivo resumen de 250 palabras en word de acuerdo a
| la convocatoria
@@ -58,14 +55,118 @@
.row
.col-8.offset-2
br
- button.btn.btn-primary(type='submit') Enviar
+ button.btn.btn-primary(type='submit' v-on:click="registrar()") Enviar
br
br
\ No newline at end of file
diff --git a/src/routes.js b/src/routes.js
index 12ab46d..7fc84bc 100644
--- a/src/routes.js
+++ b/src/routes.js
@@ -6,14 +6,35 @@ import Mesas from './components/mesas.vue'
import Registro from './components/Registro.vue'
import Ponencia from './components/Ponencia.vue'
import Admin from './components/Admin.vue'
+import LoginAdmin from './components/LoginAdmin.vue'
+import Login from './components/Login.vue'
export const routes = [
{ path: '/', component: Inicio, name: 'inicio' },
+ { path: '/login', component: Login, name: 'login' },
{ path: '/convocatoria', component: Convocatoria, name: 'convocatoria' },
{ path: '/costos', component: Costos, name: 'costos' },
{ path: '/fechas', component: Fechas, name: 'fechas' },
{ path: '/mesas', component: Mesas, name: 'mesas' },
{ path: '/registro', component: Registro, name: 'registro' },
- { path: '/ponencia', component: Ponencia, name: 'ponencia' },
+ { path: '/ponencia/:id', component: Ponencia, name: 'ponencia' },
{ path: '/admin', component: Admin, name: 'admin' },
+ { path: '/loginadmin', component: LoginAdmin, name: 'loginadmin' },
]
+
+// const isAuthenticated = function() {
+// if (window.localStorage.pcpumaT) {
+// return true
+// }
+// return false
+// }
+
+// router.beforeEach((to, from, next) => {
+// if (!isAuthenticated() && to.path !== '/login') {
+// return next('/login')
+// }
+// if (isAuthenticated() && to.path === '/login') {
+// return next('/')
+// }
+// next()
+// })