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 @@
-
+
+ v-model="search.numeroCuenta"
+ rounded
+ />
@@ -18,15 +18,16 @@
type="name"
placeholder="Nombre"
icon="account"
- rounded
- v-model="nombre"
@keyup.enter.native="obtenerServicios()"
- >
+ v-model="search.nombre"
+ rounded
+ />
-
+
+
-
- Buscar
-
+
+
+ Buscar
+
+
-
-
- {{ props.row.Usuario.usuario }}
-
-
-
- {{ props.row.Usuario.nombre }}
-
-
-
- {{ props.row.Carrera.carrera }}
-
-
-
- {{ fecha(props.row.fechaInicio) }}
-
-
-
- {{ fecha(props.row.fechaFin) }}
-
-
-
-
- Carta Aceptación Rechazada
-
-
- {{
- props.row.Status.status
- }}
-
-
-
-
-
-
-
-
-
- Carta Término
-
-
-
-
-
-
-
-
-
-
-
- Cuestionario
-
-
-
-
+ :data="data"
+ :onPageChange="onPageChange"
+ />
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 @@