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 @@ @@ -902,7 +877,7 @@ export default { else return true }, navE () { - if(this.answers.p14[0] != null && this.answers.p14[1] != null && this.answers.p14[2] != null && this.answers.p14[3] != null && this.answers.p15[0] != null && this.answers.p15[1] != null && this.answers.p15[2] != null && this.answers.p15[3] != null && this.answers.p17.length ==3 && this.answers.p16) return false + if(this.answers.p14[0] != null && this.answers.p14[1] != null && this.answers.p14[2] != null && this.answers.p14[3] != null && this.answers.p15[0] != null && this.answers.p15[1] != null && this.answers.p15[2] != null && this.answers.p15[3] != null && this.answers.p17.length ==3 && this.answers.p16 !=null) return false else return true }, navF () { @@ -922,7 +897,40 @@ export default { const data = { idServicio: localStorage.getItem('idServicio'), - asnwers: this.answers + + sexo : this.answers.sexo , + edad : this.answers.edad , + servicioMedico : this.answers.servicioMedico , + pUno : this.answers.p1 , + pDos : this.answers.p2 , + pTres : this.answers.p3 , + pCuatro : this.answers.p4 , + pCinco : this.answers.p5 , + pSeis : this.answers.p6 , + pSiete : this.answers.p7 , + pOcho : this.answers.p8 , + pNueve : this.answers.p9 , + pDiez : this.answers.p10 , + pOnce : this.answers.p11 , + pDoce : this.answers.p12 , + pTrece : this.answers.p13 , + pCatorce : this.answers.p14 , + pQuince : this.answers.p15 , + pDieciseis : this.answers.p16 , + pDiecisiete : this.answers.p17 , + pDieciocho : this.answers.p18 , + pDiecinueve : this.answers.p19 , + pVeinte : this.answers.p20 , + pVeintiuno : this.answers.p21 , + pVeintidos : this.answers.p22 , + pVeintitres : this.answers.p23 , + pVeinticuatro : this.answers.p24 , + pVeinticinco : this.answers.p25 , + pVeintiseis : this.answers.p26 , + pVeintisiete : this.answers.p27 , + pVeintiocho : this.answers.p28 , + pVeintinueve : this.answers.p29 , + pTreinta : this.answers.p30 , } console.log(data) @@ -1011,4 +1019,7 @@ export default { .active, .active:hover{ background-color:#bb8800; } +.centro { + text-align: center; +} diff --git a/pages/responsable/nuevo/index.vue b/pages/responsable/nuevo/index.vue index d6791d1..37e50a6 100644 --- a/pages/responsable/nuevo/index.vue +++ b/pages/responsable/nuevo/index.vue @@ -8,6 +8,8 @@ type="is-info is-light " icon-left="arrow-left-box" class="border-info my-5" + size="is-medium" + > regresar @@ -84,10 +86,11 @@ +