From 032af2ab9bcf561e34dfe157480cbbe5221e57e7 Mon Sep 17 00:00:00 2001 From: Andres2908 Date: Tue, 1 Dec 2020 12:24:37 -0600 Subject: [PATCH 1/2] V-2.0-Servicios --- components/responsable/inputTable.vue | 25 +++++++++++++++++-------- nuxt.config.js | 2 +- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/components/responsable/inputTable.vue b/components/responsable/inputTable.vue index 9077b1b..fb7d877 100644 --- a/components/responsable/inputTable.vue +++ b/components/responsable/inputTable.vue @@ -72,26 +72,26 @@ @page-change="onPageChange" > - {{ props.row.nombre}} + {{ props.row.nombre}} - {{ props.row.numeroCuenta}} + {{ props.row.numeroCuenta}} - {{ props.row.carrera}} + {{ props.row.carrera}} - {{ props.row.fechaInicio}} + {{ props.row.fechaInicio}} - {{ props.row.fechaFin}} + {{ props.row.fechaFin}} - {{ props.row.status}} + {{ props.row.status}} -
+
@@ -236,8 +236,10 @@ export default { fechaInicio: servicios[i].fechaInicio, fechaFin: servicios[i].fechaFin, status: servicios[i].Status.status, + idStatus: servicios[i].Status.idStatus, cuestionario: servicios[i].idCuestionarioPrograma, - cartaTermino: servicios[i].cartaTermino + cartaTermino: servicios[i].cartaTermino, + idServicio: servicios[i].idServicio }) } } @@ -254,6 +256,10 @@ export default { .catch((err) => { console.log(err.response.data.message) }) + }, + servicios (idServicio) { + window.localStorage.setItem('idServicio', idServicio) + this.$router.push('/admin/servicio') } }, created () { @@ -278,4 +284,7 @@ export default { background-color: #1b3d70; border-color: #1b3d70; } +.b-table{ + cursor: pointer; +} diff --git a/nuxt.config.js b/nuxt.config.js index fd7d450..db93a67 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -52,7 +52,7 @@ export default { }, env: { // api: 'http://localhost:3000' - api: 'https://676239f84128.ngrok.io' + api: 'https://3a654113271d.ngrok.io' // api: 'https//venus.acatlan.unam.mx/pruebas_pcpuma' } From 517000ff86e1352993665cb72e9b62c6bb1a28cf Mon Sep 17 00:00:00 2001 From: Andres2908 Date: Tue, 1 Dec 2020 17:23:49 -0600 Subject: [PATCH 2/2] V-2.1-2componentes --- components/admin/servicio/inputTableA.vue | 252 ++++++++++++++++++++++ components/responsable/inputTable.vue | 85 ++++---- pages/admin/index.vue | 11 +- pages/index.vue | 2 +- pages/responsable/index.vue | 7 +- 5 files changed, 293 insertions(+), 64 deletions(-) create mode 100644 components/admin/servicio/inputTableA.vue diff --git a/components/admin/servicio/inputTableA.vue b/components/admin/servicio/inputTableA.vue new file mode 100644 index 0000000..d67ec8f --- /dev/null +++ b/components/admin/servicio/inputTableA.vue @@ -0,0 +1,252 @@ + + + + + diff --git a/components/responsable/inputTable.vue b/components/responsable/inputTable.vue index fb7d877..10451c1 100644 --- a/components/responsable/inputTable.vue +++ b/components/responsable/inputTable.vue @@ -39,7 +39,6 @@ - @@ -53,10 +52,6 @@
-
- -
-
- {{ props.row.nombre}} + {{ props.row.nombre}} - - {{ props.row.numeroCuenta}} + + {{ props.row.numeroCuenta}} - {{ props.row.carrera}} + {{ props.row.carrera}} - {{ props.row.fechaInicio}} + {{ fecha(props.row.fechaInicio) }} - {{ props.row.fechaFin}} + {{ fecha(props.row.fechaFin) }} - {{ props.row.status}} + {{ props.row.status}} - +
- +
diff --git a/pages/index.vue b/pages/index.vue index 1bed370..5c482f0 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -86,7 +86,7 @@ export default { window.localStorage.setItem('nombre', resp.data.Usuario.nombre) window.localStorage.setItem('idTipoUsuario', resp.data.Usuario.TipoUsuario.idTipoUsuario) window.localStorage.setItem('tipoUsuario', resp.data.Usuario.TipoUsuario.tipoUsuario) - window.localStorage.setItem('usuario', resp.data.Usuario.TipoUsuario.usuario) + window.localStorage.setItem('usuario', resp.data.Usuario.usuario) this.$router.push(`/${resp.data.Usuario.TipoUsuario.tipoUsuario}`) }) diff --git a/pages/responsable/index.vue b/pages/responsable/index.vue index 9e11b22..6404857 100644 --- a/pages/responsable/index.vue +++ b/pages/responsable/index.vue @@ -18,7 +18,7 @@
- +
@@ -31,11 +31,6 @@ export default { components: { InputTable }, - data () { - return { - id: 2 - } - }, methods: { agregarAlumno () { this.$router.push('/responsable/nuevo')