From 0d238306aaf8ed5c81703076b0209236bfd9ff73 Mon Sep 17 00:00:00 2001 From: Andres2908 Date: Sun, 29 Nov 2020 19:41:17 -0600 Subject: [PATCH 1/3] V-1.9-loading-colores --- components/responsable/inputTable.vue | 82 ++++++++++++++++----------- 1 file changed, 49 insertions(+), 33 deletions(-) diff --git a/components/responsable/inputTable.vue b/components/responsable/inputTable.vue index e9b663a..aaa89b3 100644 --- a/components/responsable/inputTable.vue +++ b/components/responsable/inputTable.vue @@ -2,7 +2,7 @@
-
+
-
+
- + - - - - - - - + + + + + + + @@ -60,6 +60,8 @@ :data="data" :loading="loading" + hoverable + striped paginated backend-pagination :total="total" @@ -69,33 +71,33 @@ {{ props.row.nombre}} - + {{ props.row.numeroCuenta}} {{ props.row.carrera}} - + {{ props.row.fechaInicio}} - + {{ props.row.fechaFin}} {{ props.row.status}} - + -
+
@@ -115,7 +116,7 @@ @@ -148,8 +149,7 @@ export default { perPage: 25, numeroCuenta: '', nombre: '', - idStatus: '', - tipoUsuario: 1 + idStatus: 1 } }, props: { @@ -183,21 +183,21 @@ export default { } }, botonCarta (cartaTermino) { - if (cartaTermino === true) { + if (cartaTermino === 1) { return 'is-success' } else { return 'is-danger' } }, botonCuestionario (cuestionario) { - if (cuestionario === true) { + if (cuestionario === 1) { return 'is-success' } else { return 'is-danger' } }, iconoCarta (cartaTermino) { - if (cartaTermino === true) { + if (cartaTermino === 1) { return 'check' } else { return 'close' @@ -211,15 +211,14 @@ export default { } }, obtenerDatos () { - // this.loading = true + this.loading = true this.data = [] - if (this.idStatus || this.nombre || this.numeroCuenta) { + /* if (this.idStatus || this.nombre || this.numeroCuenta) { this.page = 1 - } - axios.get(`${process.env.api}/servicio/servicios_responsable?idUsuario=2&pagina=${this.page}&idStatus&nombre=${this.nombre}&numeroCuenta=${this.numeroCuenta}`) + } */ + axios.get(`${process.env.api}/servicio/servicios_responsable?idUsuario=2&pagina=${this.page}&idStatus=${this.idStatus}&nombre=${this.nombre}&numeroCuenta=${this.numeroCuenta}`) .then(res => { const servicios = res.data.servicios - // this.page = 1 if (servicios.length !== 0) { for (let i = 0; i < servicios.length; i++) { @@ -230,14 +229,15 @@ export default { fechaInicio: servicios[i].fechaInicio, fechaFin: servicios[i].fechaFin, status: servicios[i].Status.status, - cuestionario: servicios[i].idCuestionarioAlumno + cuestionario: servicios[i].idCuestionarioPrograma, + cartaTermino: servicios[i].cartaTermino }) } } let currentTotal = servicios.length let contador - for (let i = 0; i < ((res.data.faltantes + res.data.registros) / 25) + 1; i++) { + for (let i = 0; i < (res.data.registros / 25) + 1; i++) { contador = i } currentTotal = this.perPage * contador @@ -253,4 +253,20 @@ export default { From 93b49a1ace479d0392a8e4814672b316f4085b2b Mon Sep 17 00:00:00 2001 From: Andres2908 Date: Mon, 30 Nov 2020 19:57:08 -0600 Subject: [PATCH 2/3] V-1.91 --- components/responsable/inputTable.vue | 41 ++++++++++++++++----------- nuxt.config.js | 6 ++-- 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/components/responsable/inputTable.vue b/components/responsable/inputTable.vue index aaa89b3..9077b1b 100644 --- a/components/responsable/inputTable.vue +++ b/components/responsable/inputTable.vue @@ -31,12 +31,15 @@ - - - + + + - - + + + + + @@ -132,7 +135,6 @@