infoResponsable

This commit is contained in:
2020-12-09 16:13:26 -06:00
parent b4fc8a7f43
commit 17f109900c
2 changed files with 35 additions and 49 deletions
@@ -44,7 +44,7 @@
@page-change="onPageChange"
>
<b-table-column field="nombre" label="Nombre" v-slot="props" centered>
<span @click="verRegistro(props.row.usuario)">{{
<span @click="verRegistro(props.row)">{{
props.row.nombre
}}</span>
</b-table-column>
@@ -54,7 +54,7 @@
v-slot="props"
centered
>
<span @click="verRegistro(props.row.usuario)">{{
<span @click="verRegistro(props.row)">{{
props.row.usuario
}}</span>
</b-table-column>
@@ -91,7 +91,7 @@ export default {
this.data = [];
axios
.get(
`${process.env.api}/usuario/responsable?idUsuario=${this.idUsuario}&pagina=${this.page}&nombre=${this.nombre}&correo=${this.correo}`
`${process.env.api}/usuario/responsable?pagina=${this.page}&nombre=${this.nombre}&correo=${this.correo}`
)
.then((res) => {
const servicios = res.data.servicios;
@@ -121,8 +121,10 @@ export default {
insertIdLocal() {
this.idUsuario = localStorage.getItem("idUsuario");
},
verRegistro(correoResponsable) {
localStorage.setItem("correo", correoResponsable);
verRegistro(responsable) {
localStorage.setItem("correo", responsable.usuario);
localStorage.setItem("idResponsable", responsable.idUsuario);
localStorage.setItem("nombre", responsable.nombre);
this.$router.push("./infoResponsable");
},
},