reportes falta mayuscula
This commit is contained in:
@@ -5,7 +5,9 @@
|
||||
<b-field label="Cuestionario:">
|
||||
<b-select v-model="selectedCuestionario" expanded>
|
||||
<option value="" disabled>Seleccione un cuestionario:</option>
|
||||
|
||||
<option value="cuestionario_alumno">Cuestionarios del Alumnos</option>
|
||||
|
||||
<option value="cuestionario_programa">
|
||||
Cuestionarios del Programas
|
||||
</option>
|
||||
@@ -15,6 +17,7 @@
|
||||
<b-field label="Año:">
|
||||
<b-select v-model="selectedYear" expanded>
|
||||
<option value="" disabled>Seleccione un año:</option>
|
||||
|
||||
<option v-for="(y, i) in years" :key="i" :value="y">
|
||||
{{ y }}
|
||||
</option>
|
||||
@@ -40,24 +43,17 @@ import fileDownload from 'js-file-download'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
years: [],
|
||||
selectedYear: '',
|
||||
selectedCuestionario: '',
|
||||
selectedYear: '',
|
||||
}
|
||||
},
|
||||
props: {
|
||||
years: { type: Array, required: true },
|
||||
admin: { type: Object, required: true },
|
||||
imprimirMensaje: { type: Function, required: true },
|
||||
imprimirWarning: { type: Function, required: true },
|
||||
imprimirError: { type: Function, required: true },
|
||||
updateIsLoading: { type: Function, required: true },
|
||||
},
|
||||
methods: {
|
||||
obtenerYears() {
|
||||
const now = new Date()
|
||||
|
||||
for (let i = 2020; i <= now.getFullYear(); i++) this.years.push(i)
|
||||
},
|
||||
descargar() {
|
||||
this.updateIsLoading(true)
|
||||
axios
|
||||
@@ -80,9 +76,6 @@ export default {
|
||||
})
|
||||
},
|
||||
},
|
||||
created() {
|
||||
if (this.admin.idTipoUsuario === 1) this.obtenerYears()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<b-field label="Año:">
|
||||
<b-select v-model="selectedYearGustavoBaz" expanded>
|
||||
<option value="" disabled>Seleccione un año:</option>
|
||||
|
||||
<option v-for="(y, i) in years" :key="i" :value="y">
|
||||
{{ y }}
|
||||
</option>
|
||||
@@ -30,23 +31,16 @@ import fileDownload from 'js-file-download'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
years: [],
|
||||
selectedYearGustavoBaz: '',
|
||||
}
|
||||
},
|
||||
props: {
|
||||
years: { type: Array, required: true },
|
||||
admin: { type: Object, required: true },
|
||||
imprimirMensaje: { type: Function, required: true },
|
||||
imprimirWarning: { type: Function, required: true },
|
||||
imprimirError: { type: Function, required: true },
|
||||
updateIsLoading: { type: Function, required: true },
|
||||
},
|
||||
methods: {
|
||||
obtenerYears() {
|
||||
const now = new Date()
|
||||
|
||||
for (let i = 2020; i <= now.getFullYear(); i++) this.years.push(i)
|
||||
},
|
||||
descargar() {
|
||||
this.updateIsLoading(true)
|
||||
axios
|
||||
@@ -68,9 +62,6 @@ export default {
|
||||
})
|
||||
},
|
||||
},
|
||||
created() {
|
||||
if (this.admin.idTipoUsuario === 1) this.obtenerYears()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -40,16 +40,14 @@ import fileDownload from 'js-file-download'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
selectedInicio: [],
|
||||
selectedFin: [],
|
||||
minDate: new Date('January 1, 2020'),
|
||||
selectedInicio: [],
|
||||
maxDate: new Date(),
|
||||
minDate: new Date('January 1, 2020'),
|
||||
}
|
||||
},
|
||||
props: {
|
||||
admin: { type: Object, required: true },
|
||||
imprimirMensaje: { type: Function, required: true },
|
||||
imprimirWarning: { type: Function, required: true },
|
||||
imprimirError: { type: Function, required: true },
|
||||
updateIsLoading: { type: Function, required: true },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user