From 81e14523f3aad4b93acf2d3d7d79d3737d41a22c Mon Sep 17 00:00:00 2001 From: Andres2908 Date: Mon, 7 Dec 2020 14:11:29 -0600 Subject: [PATCH] V-2.2-StatusTable --- components/admin/servicio/inputTableA.vue | 19 +++++--------- components/responsable/inputTable.vue | 32 +++++++++++------------ pages/admin/index.vue | 7 +++++ 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/components/admin/servicio/inputTableA.vue b/components/admin/servicio/inputTableA.vue index d67ec8f..69d3147 100644 --- a/components/admin/servicio/inputTableA.vue +++ b/components/admin/servicio/inputTableA.vue @@ -46,19 +46,13 @@
- + Buscar
-
- - Ver programas - -
-
{ const servicios = res.data.servicios @@ -218,14 +212,13 @@ export default { window.localStorage.setItem('idServicio', idServicio) this.$router.push('/admin/servicio') }, - admRes () { + insertIdLocal () { this.idUsuario = localStorage.getItem('idUsuario') - console.log(this.idUsuario) } }, created () { - this.admRes() - this.obtenerDatos() + this.insertIdLocal() + this.obtenerDatos(0) } } diff --git a/components/responsable/inputTable.vue b/components/responsable/inputTable.vue index 0f89b5f..19c9a7a 100644 --- a/components/responsable/inputTable.vue +++ b/components/responsable/inputTable.vue @@ -45,7 +45,7 @@
- + Buscar
@@ -67,32 +67,33 @@ @page-change="onPageChange" > - {{ props.row.nombre}} + {{ props.row.nombre}} {{ props.row.nombre}} - {{ props.row.numeroCuenta}} + {{ props.row.numeroCuenta}} {{ props.row.numeroCuenta}} - {{ props.row.carrera}} + {{ props.row.carrera}} {{ props.row.carrera}} - {{ fecha(props.row.fechaInicio) }} + {{ fecha(props.row.fechaInicio) }} {{ fecha(props.row.fechaInicio) }} - {{ fecha(props.row.fechaFin) }} + {{ fecha(props.row.fechaFin) }} {{ fecha(props.row.fechaFin) }} - {{ fecha(props.row.fechaFin) }} + {{ fecha(props.row.fechaFin) }} {{ props.row.status}} -
+ ----- +
@@ -111,7 +112,8 @@ -
+ ----- +
@@ -216,11 +218,10 @@ export default { const fecha = moment(date.substr(0, 10)) return `${fecha.date()}/${fecha.month() + 1}/${fecha.year()}` }, - obtenerDatos () { + obtenerDatos (idStatus) { this.loading = true this.data = [] - - axios.get(`${process.env.api}/servicio/servicios_responsable?idUsuario=${this.idUsuario}&pagina=${this.page}&idStatus=${this.idStatus}&nombre=${this.nombre}&numeroCuenta=${this.numeroCuenta}`) + axios.get(`${process.env.api}/servicio/servicios_responsable?idUsuario=${this.idUsuario}&pagina=${this.page}&idStatus=${idStatus}&nombre=${this.nombre}&numeroCuenta=${this.numeroCuenta}`) .then(res => { const servicios = res.data.servicios @@ -258,14 +259,13 @@ export default { window.localStorage.setItem('idServicio', idServicio) this.$router.push('/responsable/cartaTermino') }, - admRes () { + insertIdLocal () { this.idUsuario = localStorage.getItem('idUsuario') - console.log(this.idUsuario) } }, created () { - this.admRes() - this.obtenerDatos() + this.insertIdLocal() + this.obtenerDatos(0) } } diff --git a/pages/admin/index.vue b/pages/admin/index.vue index 59750ba..cfbcd92 100644 --- a/pages/admin/index.vue +++ b/pages/admin/index.vue @@ -1,6 +1,13 @@