From b35e6b316da8d21910941e2d201e1ab8db8f321d Mon Sep 17 00:00:00 2001 From: Lemuel Marquez Date: Tue, 8 Jun 2021 18:22:28 -0500 Subject: [PATCH] listo responsable info --- components/admin/responsables/cargaMasiva.vue | 12 +- .../infoResponsable/responsable.vue | 119 +++++++++++++++ .../admin/responsables/tablaResponsables.vue | 8 +- .../casoEspecial/nuevo/formularioEspecial.vue | 6 +- layouts/default.vue | 6 +- layouts/login.vue | 4 +- .../caso_especial/editar/index.vue | 2 +- .../casos_especiales/caso_especial/index.vue | 4 +- pages/admin/casos_especiales/index.vue | 4 +- .../responsables/infoResponsable/index.vue | 136 +++--------------- .../infoResponsable/modificar/index.vue | 4 +- pages/admin/servicio/index.vue | 2 +- pages/admin/servicio/modificar/index.vue | 2 +- pages/alumno/cuestionario/index.vue | 16 +-- pages/alumno/index.vue | 11 +- pages/casoEspecial/index.vue | 2 +- pages/casoEspecial/nuevo/index.vue | 4 +- pages/responsable/carta_aceptacion/index.vue | 2 +- pages/responsable/carta_termino/index.vue | 2 +- pages/responsable/cuestionario/index.vue | 2 +- pages/responsable/index.vue | 2 +- pages/responsable/nuevo/index.vue | 6 +- 22 files changed, 186 insertions(+), 170 deletions(-) create mode 100644 components/admin/responsables/infoResponsable/responsable.vue diff --git a/components/admin/responsables/cargaMasiva.vue b/components/admin/responsables/cargaMasiva.vue index 8abffe8..560f26e 100644 --- a/components/admin/responsables/cargaMasiva.vue +++ b/components/admin/responsables/cargaMasiva.vue @@ -5,7 +5,7 @@ { this.isLoading = false this.toastType = 'is-success' @@ -119,7 +115,7 @@ export default { }) .catch((err) => { this.isLoading = false - this.error(err.response.data) + this.imprimirError(err.response.data) }) }, imprimirError(err) { diff --git a/components/admin/responsables/infoResponsable/responsable.vue b/components/admin/responsables/infoResponsable/responsable.vue new file mode 100644 index 0000000..92477db --- /dev/null +++ b/components/admin/responsables/infoResponsable/responsable.vue @@ -0,0 +1,119 @@ + + + + + diff --git a/components/admin/responsables/tablaResponsables.vue b/components/admin/responsables/tablaResponsables.vue index 1996c05..a7c84a6 100644 --- a/components/admin/responsables/tablaResponsables.vue +++ b/components/admin/responsables/tablaResponsables.vue @@ -44,6 +44,7 @@ :per-page="perPage" :selected.sync="responsableSeleccionado" :loading="isLoading" + :row-class="(row, index) => 'pointer'" @page-change="onPageChange" hoverable striped @@ -164,6 +165,11 @@ export default { 'idResponsable', this.responsableSeleccionado.idUsuario ) + localStorage.setItem('correo', this.responsableSeleccionado.usuario) + localStorage.setItem( + 'nombreResponsable', + this.responsableSeleccionado.nombre + ) this.$router.push(`/admin/responsables/infoResponsable`) }, }, @@ -196,7 +202,7 @@ export default { border-color: #1b3d70; } -.pinter { +.pointer { cursor: pointer; } diff --git a/components/casoEspecial/nuevo/formularioEspecial.vue b/components/casoEspecial/nuevo/formularioEspecial.vue index e0a0e2a..15fdc60 100644 --- a/components/casoEspecial/nuevo/formularioEspecial.vue +++ b/components/casoEspecial/nuevo/formularioEspecial.vue @@ -20,15 +20,15 @@ -

{{ alumno.nombre }}

+

{{ alumno.nombre }}

-

{{ alumno.carrera }}

+

{{ alumno.carrera }}

-

+

{{ Number(alumno.creditos) }}% diff --git a/layouts/default.vue b/layouts/default.vue index edfb239..1ea043f 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -8,9 +8,9 @@ - + diff --git a/pages/admin/responsables/infoResponsable/modificar/index.vue b/pages/admin/responsables/infoResponsable/modificar/index.vue index ea76436..8310924 100644 --- a/pages/admin/responsables/infoResponsable/modificar/index.vue +++ b/pages/admin/responsables/infoResponsable/modificar/index.vue @@ -29,7 +29,7 @@