From a66425b86768b008190cabce4945c77f855cb95a Mon Sep 17 00:00:00 2001
From: eithan
Date: Mon, 4 Jan 2021 23:54:27 -0600
Subject: [PATCH] fechas max y min, programa acatlan,cambio status alumno,
otros
---
components/alumno/DataAlumno.vue | 24 ++++---
layouts/default.vue | 13 ++++
pages/alumno/cuestionario/index.vue | 99 ++++++++++++++++-------------
pages/responsable/nuevo/index.vue | 44 ++++++++++---
4 files changed, 119 insertions(+), 61 deletions(-)
diff --git a/components/alumno/DataAlumno.vue b/components/alumno/DataAlumno.vue
index b9e796f..03535a0 100644
--- a/components/alumno/DataAlumno.vue
+++ b/components/alumno/DataAlumno.vue
@@ -15,12 +15,12 @@
>
Dependencia: {{ programa.dependencia }}
Clave del programa: {{ programa.clave }}
-
- Programa Interno:
- {{ programa.programaInterno }}
-
+
Programa Interno: {{ programa.programaInterno }}
Profesor: {{ programa.profesor }}
@@ -72,7 +69,7 @@
Número de cuenta: {{ alumno.cuenta }}
Carrera: {{ alumno.carrera }}
- Créditos: {{ alumno.creditos}} %
+ Créditos: {{ alumno.creditos}}%
Correo del alumno: {{ alumno.correo }}
Fecha de inicio: {{ fecha(alumno.inicio) }}
@@ -101,6 +98,8 @@
placeholder="Fecha de nacimiento"
icon="calendar-today"
v-model="nacimiento"
+ :min-date="minDate"
+ :max-date="maxDate"
>
@@ -227,6 +226,8 @@ export default {
isFullPage: true,
file: [],
nacimiento: [],
+ minDate: new Date(),
+ maxDate: new Date(),
telefono: '',
direccion: '',
alumno: {
@@ -278,7 +279,7 @@ export default {
{ status: 6, mensaje: '' },
{ status: 7, mensaje: '' },
{ status: 8, mensaje: '' },
- { status: 9, mensaje: '' }
+ { status: 9, mensaje: 'Informe global de actividades rechazado. Por favor reenvia el informe correctamente' }
]
}
},
@@ -455,6 +456,13 @@ export default {
this.file = []
}
}
+ },
+ mounted (){
+
+ let i = new Date().getFullYear() - 80 // hoy - 80 años fecha minima
+ let j = new Date().getFullYear() - 10 //hoy - 10 años
+ this.minDate.setFullYear(i)
+ this.maxDate.setFullYear(j)
}
}
diff --git a/layouts/default.vue b/layouts/default.vue
index f6441e4..521e459 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -16,3 +16,16 @@ export default {
components: { Header, Footer, Logout },
};
+
diff --git a/pages/alumno/cuestionario/index.vue b/pages/alumno/cuestionario/index.vue
index 8a869e5..66e83b6 100644
--- a/pages/alumno/cuestionario/index.vue
+++ b/pages/alumno/cuestionario/index.vue
@@ -1,6 +1,17 @@
+
+ regresar
+
Evaluación de programas de servicio social
@@ -27,8 +38,9 @@
placeholder="Edad"
v-model="answers.edad"
type="number"
- min="0"
- max="100"
+ min="10"
+ max="80"
+ step="1"
>
@@ -43,38 +55,6 @@
> {{Sm}}
-
-
+