From 98af63e609055ebdbd869776bd5763dfb2b6f868 Mon Sep 17 00:00:00 2001 From: xXpuma99Xx <51341582+xXpuma99Xx@users.noreply.github.com> Date: Thu, 25 Nov 2021 07:04:06 -0600 Subject: [PATCH] responsable tabla --- components/TablaServiciosSociales.vue | 134 ++++++--- .../responsable/TablaServiciosSociales.vue | 266 ++++-------------- pages/responsable/cuestionario/index.vue | 1 - pages/responsable/index.vue | 4 +- 4 files changed, 159 insertions(+), 246 deletions(-) diff --git a/components/TablaServiciosSociales.vue b/components/TablaServiciosSociales.vue index a2abc17..1df6af9 100644 --- a/components/TablaServiciosSociales.vue +++ b/components/TablaServiciosSociales.vue @@ -18,6 +18,7 @@ field="fechaCreado" label="Fecha Registro" v-slot="props" + v-if="columnaFechaCreado" centered > {{ fecha(props.row.createdAt) }} @@ -61,10 +62,82 @@ - + + Carta Aceptación Rechazada + + + {{ props.row.Status.status }} + + +
+ + + + Carta Término + +
+
+ + +
+ + + + Cuestionario + +
+
@@ -73,13 +146,12 @@ import moment from 'moment' export default { - data() { - return { - servicioSelected: {}, - perPage: 25, - } - }, props: { + columnaFechaCreado: { + type: Boolean, + required: false, + default: true, + }, columnaFechaFin: { type: Boolean, required: false, @@ -90,13 +162,18 @@ export default { required: false, default: true, }, + columnasResponsable: { + type: Boolean, + required: false, + default: false, + }, isLoading: { type: Boolean, required: true, }, path: { type: String, - required: true, + required: false, }, idTipoUsuario: { type: Number, @@ -119,6 +196,12 @@ export default { require: true, }, }, + data() { + return { + servicioSelected: {}, + perPage: 25, + } + }, methods: { fecha(date) { if (date) { @@ -175,6 +258,16 @@ export default { if (this.idTipoUsuario === 1) return 'pointer' return '' }, + responsableUpdate(servicio, path) { + /*pendiente*/ + localStorage.setItem('idServicio', servicio.idServicio) + localStorage.setItem( + // 'idCuestionarioPrograma', + 'cuestionario', + servicio.idCuestionarioPrograma + ) + this.$router.push(`/responsable/${path}`) + }, }, watch: { servicioSelected() { @@ -193,27 +286,4 @@ export default { } - + diff --git a/components/responsable/TablaServiciosSociales.vue b/components/responsable/TablaServiciosSociales.vue index 8ea96c0..542a3d0 100644 --- a/components/responsable/TablaServiciosSociales.vue +++ b/components/responsable/TablaServiciosSociales.vue @@ -1,16 +1,16 @@ diff --git a/pages/responsable/cuestionario/index.vue b/pages/responsable/cuestionario/index.vue index 5d5649a..84c1f34 100644 --- a/pages/responsable/cuestionario/index.vue +++ b/pages/responsable/cuestionario/index.vue @@ -100,6 +100,5 @@ export default { if (this.admin.idTipoUsuario === 3) this.$router.push('/alumno') if (this.admin.idTipoUsuario === 4) this.$router.push('/casoEspecial') }, - F, } diff --git a/pages/responsable/index.vue b/pages/responsable/index.vue index 928fe90..bf51d49 100644 --- a/pages/responsable/index.vue +++ b/pages/responsable/index.vue @@ -15,7 +15,7 @@

-
+
Agregar alumno @@ -23,9 +23,9 @@