|
|
|
@@ -59,7 +59,10 @@
|
|
|
|
|
<p><strong> Dependencia: </strong> {{ programa.dependencia }}</p>
|
|
|
|
|
<p><strong> Clave del programa: </strong> {{ programa.clave }}</p>
|
|
|
|
|
<div v-if="programa.acatlan == true">
|
|
|
|
|
<p><strong> Programa Interno: </strong> {{ programa.programaInterno }}</p>
|
|
|
|
|
<p>
|
|
|
|
|
<strong> Programa Interno: </strong>
|
|
|
|
|
{{ programa.programaInterno }}
|
|
|
|
|
</p>
|
|
|
|
|
<p><strong> Profesor: </strong> {{ programa.profesor }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@@ -69,7 +72,8 @@
|
|
|
|
|
<p><strong> Número de cuenta: </strong> {{ alumno.cuenta }}</p>
|
|
|
|
|
<p><strong> Carrera: </strong> {{ alumno.carrera }}</p>
|
|
|
|
|
<p>
|
|
|
|
|
<strong> Créditos: </strong>{{ alumno.creditos}}<span v-if="alumno.creditos">%</span>
|
|
|
|
|
<strong> Créditos: </strong>{{ alumno.creditos
|
|
|
|
|
}}<span v-if="alumno.creditos">%</span>
|
|
|
|
|
</p>
|
|
|
|
|
<p><strong> Correo del alumno: </strong> {{ alumno.correo }}</p>
|
|
|
|
|
<p><strong> Fecha de inicio: </strong> {{ fecha(alumno.inicio) }}</p>
|
|
|
|
@@ -84,7 +88,8 @@
|
|
|
|
|
<p><strong> Direccion: </strong> {{ alumno.direccion }}</p>
|
|
|
|
|
<p><strong> Telefono: </strong> {{ alumno.telefono }}</p>
|
|
|
|
|
<p>
|
|
|
|
|
<strong> Fecha de nacimiento: </strong> {{ fecha(alumno.nacimiento) }}
|
|
|
|
|
<strong> Fecha de nacimiento: </strong>
|
|
|
|
|
{{ fecha(alumno.nacimiento) }}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@@ -208,263 +213,266 @@
|
|
|
|
|
<div class="Liberacion" v-if="activeStep == 5"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="container px-3">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="container px-3"></div>
|
|
|
|
|
</section>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import 'buefy/dist/buefy.css'
|
|
|
|
|
import moment from 'moment'
|
|
|
|
|
import axios from 'axios'
|
|
|
|
|
import "buefy/dist/buefy.css";
|
|
|
|
|
import moment from "moment";
|
|
|
|
|
import axios from "axios";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data () {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
activeStep: '',
|
|
|
|
|
activeStep: "",
|
|
|
|
|
isFullPage: true,
|
|
|
|
|
file: [],
|
|
|
|
|
nacimiento: [],
|
|
|
|
|
minDate: new Date(),
|
|
|
|
|
maxDate: new Date(),
|
|
|
|
|
telefono: '',
|
|
|
|
|
direccion: '',
|
|
|
|
|
maxDate: new Date(),
|
|
|
|
|
telefono: "",
|
|
|
|
|
direccion: "",
|
|
|
|
|
alumno: {
|
|
|
|
|
carrera: '',
|
|
|
|
|
creditos: '',
|
|
|
|
|
nombre: '',
|
|
|
|
|
cuenta: '',
|
|
|
|
|
correo: '',
|
|
|
|
|
direccion: '',
|
|
|
|
|
nacimiento: '',
|
|
|
|
|
telefono: '',
|
|
|
|
|
idCuestionario: '',
|
|
|
|
|
informeGlobal: '',
|
|
|
|
|
idAlumno: '',
|
|
|
|
|
idCarrera: '',
|
|
|
|
|
idServicio: '',
|
|
|
|
|
carrera: "",
|
|
|
|
|
creditos: "",
|
|
|
|
|
nombre: "",
|
|
|
|
|
cuenta: "",
|
|
|
|
|
correo: "",
|
|
|
|
|
direccion: "",
|
|
|
|
|
nacimiento: "",
|
|
|
|
|
telefono: "",
|
|
|
|
|
idCuestionario: "",
|
|
|
|
|
informeGlobal: "",
|
|
|
|
|
idAlumno: "",
|
|
|
|
|
idCarrera: "",
|
|
|
|
|
idServicio: "",
|
|
|
|
|
inicio: [],
|
|
|
|
|
fin: [],
|
|
|
|
|
registro: []
|
|
|
|
|
registro: [],
|
|
|
|
|
},
|
|
|
|
|
programa: {
|
|
|
|
|
programa: '',
|
|
|
|
|
institucion: '',
|
|
|
|
|
dependencia: '',
|
|
|
|
|
clave: '',
|
|
|
|
|
acatlan: '',
|
|
|
|
|
programaInterno: '',
|
|
|
|
|
profesor: ''
|
|
|
|
|
programa: "",
|
|
|
|
|
institucion: "",
|
|
|
|
|
dependencia: "",
|
|
|
|
|
clave: "",
|
|
|
|
|
acatlan: "",
|
|
|
|
|
programaInterno: "",
|
|
|
|
|
profesor: "",
|
|
|
|
|
},
|
|
|
|
|
mensajes: [
|
|
|
|
|
{ status: 0, mensaje: '' },
|
|
|
|
|
{ status: 1, mensaje: '' },
|
|
|
|
|
{ status: 0, mensaje: "" },
|
|
|
|
|
{ status: 1, mensaje: "" },
|
|
|
|
|
{
|
|
|
|
|
status: 2,
|
|
|
|
|
mensaje:
|
|
|
|
|
'Te informamos que el Área de Registro y Control de Servicio Social ha validado tu solicitud de registro de servicio social por lo que el siguiente trámite lo realizarás hasta que concluyas 480 horas en un periodo de mínimo 6 meses y obtengas tu carta de término por parte de la institución, quien se encargará de subir dicho archivo a este sistema, además de responder un cuestionario sobre tu desempeño. A su vez, deberás responder el siguiente cuestionario de evaluación del programa de servicio social en donde participaste y enviar el informe global de actividades elaborado por ti, con firma y sello de visto bueno de tu jefe inmediato. En cuanto el Área de Registro y Control de Servicio Social valide tu solicitud, podrás revisar las indicaciones del siguiente paso en el panel llamado “Liberación” Cualquier duda puedes acudir al área de Registro y Control de Servicio Social en COESI de lunes a viernes de 10:00 a 14:00 hrs. y de 16:00 a 20:00 hrs. o bien, comunicarte al 5623 1686 o al correo registross@acatlan.unam.mx'
|
|
|
|
|
"Te informamos que el Área de Registro y Control de Servicio Social ha validado tu solicitud de registro de servicio social por lo que el siguiente trámite lo realizarás hasta que concluyas 480 horas en un periodo de mínimo 6 meses y obtengas tu carta de término por parte de la institución, quien se encargará de subir dicho archivo a este sistema, además de responder un cuestionario sobre tu desempeño. A su vez, deberás responder el siguiente cuestionario de evaluación del programa de servicio social en donde participaste y enviar el informe global de actividades elaborado por ti, con firma y sello de visto bueno de tu jefe inmediato. En cuanto el Área de Registro y Control de Servicio Social valide tu solicitud, podrás revisar las indicaciones del siguiente paso en el panel llamado “Liberación” Cualquier duda puedes acudir al área de Registro y Control de Servicio Social en COESI de lunes a viernes de 10:00 a 14:00 hrs. y de 16:00 a 20:00 hrs. o bien, comunicarte al 5623 1686 o al correo registross@acatlan.unam.mx",
|
|
|
|
|
},
|
|
|
|
|
{ status: 3, mensaje: '' },
|
|
|
|
|
{ status: 3, mensaje: "" },
|
|
|
|
|
{
|
|
|
|
|
status: 4,
|
|
|
|
|
mensaje:
|
|
|
|
|
'Espera a que tus documentos sean validados por el Departamento de Servicio Social y Bolsa de Trabajo'
|
|
|
|
|
"Espera a que tus documentos sean validados por el Departamento de Servicio Social y Bolsa de Trabajo",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
status: 5,
|
|
|
|
|
mensaje:
|
|
|
|
|
'Te confirmamos que has concluido con los trámites necesarios para la liberación de tu servicio social por lo que ahora sólo queda esperar a que en máximo 15 días hábiles se te notifique por correo electrónico a partir de cuándo puedes recoger la copia de tu carta de liberación en las ventanillas del Área de Registro y Control de Servicio Social. Cualquier duda puedes acudir al área de Registro y Control de Servicio Social en COESI de lunes a viernes de 10:00 a 13:00 hrs. y de 16:00 a 19:00 hrs. o bien, comunicarte al 5623 1686 o al correo registross@apolo.acatlan.unam.mx'
|
|
|
|
|
"Te confirmamos que has concluido con los trámites necesarios para la liberación de tu servicio social por lo que ahora sólo queda esperar a que en máximo 15 días hábiles se te notifique por correo electrónico a partir de cuándo puedes recoger la copia de tu carta de liberación en las ventanillas del Área de Registro y Control de Servicio Social. Cualquier duda puedes acudir al área de Registro y Control de Servicio Social en COESI de lunes a viernes de 10:00 a 13:00 hrs. y de 16:00 a 19:00 hrs. o bien, comunicarte al 5623 1686 o al correo registross@apolo.acatlan.unam.mx",
|
|
|
|
|
},
|
|
|
|
|
{ status: 6, mensaje: '' },
|
|
|
|
|
{ status: 7, mensaje: '' },
|
|
|
|
|
{ status: 8, mensaje: '' },
|
|
|
|
|
{ status: 9, mensaje: 'Informe global de actividades rechazado. Por favor reenvia el informe correctamente' }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
{ status: 6, mensaje: "" },
|
|
|
|
|
{ status: 7, mensaje: "" },
|
|
|
|
|
{ status: 8, mensaje: "" },
|
|
|
|
|
{
|
|
|
|
|
status: 9,
|
|
|
|
|
mensaje:
|
|
|
|
|
"Informe global de actividades rechazado. Por favor reenvia el informe correctamente",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
reset () {
|
|
|
|
|
this.file = []
|
|
|
|
|
this.nacimiento = []
|
|
|
|
|
this.telefono = ''
|
|
|
|
|
this.direccion = ''
|
|
|
|
|
reset() {
|
|
|
|
|
this.file = [];
|
|
|
|
|
this.nacimiento = [];
|
|
|
|
|
this.telefono = "";
|
|
|
|
|
this.direccion = "";
|
|
|
|
|
},
|
|
|
|
|
getData () {
|
|
|
|
|
getData() {
|
|
|
|
|
axios
|
|
|
|
|
.get(`${process.env.api}/servicio/alumno`, {
|
|
|
|
|
params: {
|
|
|
|
|
idUsuario: localStorage.getItem('idUsuario')
|
|
|
|
|
}
|
|
|
|
|
idUsuario: localStorage.getItem("idUsuario"),
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
.then((resp) => {
|
|
|
|
|
console.log(resp.data)
|
|
|
|
|
this.activeStep = resp.data.Status.idStatus - 1
|
|
|
|
|
console.log(resp.data);
|
|
|
|
|
this.activeStep = resp.data.Status.idStatus - 1;
|
|
|
|
|
|
|
|
|
|
this.programa.programa = resp.data.Programa.programa
|
|
|
|
|
this.programa.dependencia = resp.data.Programa.dependencia
|
|
|
|
|
this.programa.institucion = resp.data.Programa.institucion
|
|
|
|
|
this.programa.clave = resp.data.Programa.clavePrograma
|
|
|
|
|
this.programa.profesor = resp.data.profesor
|
|
|
|
|
this.programa.acatlan = resp.data.Programa.acatlan
|
|
|
|
|
this.programa.programaInterno = resp.data.programaInterno
|
|
|
|
|
this.programa.programa = resp.data.Programa.programa;
|
|
|
|
|
this.programa.dependencia = resp.data.Programa.dependencia;
|
|
|
|
|
this.programa.institucion = resp.data.Programa.institucion;
|
|
|
|
|
this.programa.clave = resp.data.Programa.clavePrograma;
|
|
|
|
|
this.programa.profesor = resp.data.profesor;
|
|
|
|
|
this.programa.acatlan = resp.data.Programa.acatlan;
|
|
|
|
|
this.programa.programaInterno = resp.data.programaInterno;
|
|
|
|
|
|
|
|
|
|
this.alumno.creditos = parseInt(resp.data.creditos, 10)
|
|
|
|
|
this.alumno.carrera = resp.data.Carrera.carrera
|
|
|
|
|
this.alumno.idCarrera = resp.data.Carrera.idCarrera
|
|
|
|
|
this.alumno.correo = resp.data.correo
|
|
|
|
|
this.alumno.inicio = resp.data.fechaInicio
|
|
|
|
|
this.alumno.fin = resp.data.fechaFin
|
|
|
|
|
this.alumno.registro = resp.data.createdAt
|
|
|
|
|
this.alumno.direccion = resp.data.direccion
|
|
|
|
|
this.alumno.nacimiento = resp.data.fechaNacimiento
|
|
|
|
|
this.alumno.telefono = resp.data.telefono
|
|
|
|
|
this.alumno.idServicio = resp.data.idServicio
|
|
|
|
|
this.alumno.idCuestionario = resp.data.idCuestionarioAlumno
|
|
|
|
|
this.alumno.informeGlobal = resp.data.informeGlobal
|
|
|
|
|
this.alumno.nombre = localStorage.getItem('nombre')
|
|
|
|
|
this.alumno.cuenta = localStorage.getItem('usuario')
|
|
|
|
|
this.alumno.creditos = parseInt(resp.data.creditos, 10);
|
|
|
|
|
this.alumno.carrera = resp.data.Carrera.carrera;
|
|
|
|
|
this.alumno.idCarrera = resp.data.Carrera.idCarrera;
|
|
|
|
|
this.alumno.correo = resp.data.correo;
|
|
|
|
|
this.alumno.inicio = resp.data.fechaInicio;
|
|
|
|
|
this.alumno.fin = resp.data.fechaFin;
|
|
|
|
|
this.alumno.registro = resp.data.createdAt;
|
|
|
|
|
this.alumno.direccion = resp.data.direccion;
|
|
|
|
|
this.alumno.nacimiento = resp.data.fechaNacimiento;
|
|
|
|
|
this.alumno.telefono = resp.data.telefono;
|
|
|
|
|
this.alumno.idServicio = resp.data.idServicio;
|
|
|
|
|
this.alumno.idCuestionario = resp.data.idCuestionarioAlumno;
|
|
|
|
|
this.alumno.informeGlobal = resp.data.informeGlobal;
|
|
|
|
|
this.alumno.nombre = localStorage.getItem("nombre");
|
|
|
|
|
this.alumno.cuenta = localStorage.getItem("usuario");
|
|
|
|
|
|
|
|
|
|
window.localStorage.setItem('idCuestionarioAlumno', resp.data.idCuestionarioAlumno)
|
|
|
|
|
window.localStorage.setItem('idServicio', resp.data.idServicio)
|
|
|
|
|
|
|
|
|
|
window.localStorage.setItem(
|
|
|
|
|
"idCuestionarioAlumno",
|
|
|
|
|
resp.data.idCuestionarioAlumno
|
|
|
|
|
);
|
|
|
|
|
window.localStorage.setItem("idServicio", resp.data.idServicio);
|
|
|
|
|
})
|
|
|
|
|
.catch((error) => {
|
|
|
|
|
console.log(error.message)
|
|
|
|
|
})
|
|
|
|
|
console.log(error.message);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
enviarRegistro () {
|
|
|
|
|
enviarRegistro() {
|
|
|
|
|
const loadingComponent = this.$buefy.loading.open({
|
|
|
|
|
container: this.isFullPage ? null : this.$refs.element.$el
|
|
|
|
|
})
|
|
|
|
|
container: this.isFullPage ? null : this.$refs.element.$el,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const data = {
|
|
|
|
|
idServicio: this.alumno.idServicio,
|
|
|
|
|
direccion: this.direccion,
|
|
|
|
|
telefono: this.telefono,
|
|
|
|
|
fechaNacimiento: moment(this.nacimiento)
|
|
|
|
|
}
|
|
|
|
|
fechaNacimiento: moment(this.nacimiento),
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
axios
|
|
|
|
|
.put(`${process.env.api}/servicio/registro_validado`, data)
|
|
|
|
|
.then((res) => {
|
|
|
|
|
loadingComponent.close()
|
|
|
|
|
loadingComponent.close();
|
|
|
|
|
this.$buefy.dialog.alert({
|
|
|
|
|
title: 'Success',
|
|
|
|
|
message: 'Se enviaron los datos correctamente',
|
|
|
|
|
type: 'is-success',
|
|
|
|
|
title: "Success",
|
|
|
|
|
message: "Se enviaron los datos correctamente",
|
|
|
|
|
type: "is-success",
|
|
|
|
|
hasIcon: true,
|
|
|
|
|
icon: 'checkbox-marked-circle',
|
|
|
|
|
iconPack: 'mdi',
|
|
|
|
|
ariaRole: 'alertdialog',
|
|
|
|
|
ariaModal: true
|
|
|
|
|
})
|
|
|
|
|
icon: "checkbox-marked-circle",
|
|
|
|
|
iconPack: "mdi",
|
|
|
|
|
ariaRole: "alertdialog",
|
|
|
|
|
ariaModal: true,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.reset()
|
|
|
|
|
this.getData()
|
|
|
|
|
this.reset();
|
|
|
|
|
this.getData();
|
|
|
|
|
})
|
|
|
|
|
.catch((error) => {
|
|
|
|
|
loadingComponent.close()
|
|
|
|
|
loadingComponent.close();
|
|
|
|
|
this.$buefy.dialog.alert({
|
|
|
|
|
title: 'Error',
|
|
|
|
|
title: "Error",
|
|
|
|
|
message: error.response.data.message,
|
|
|
|
|
type: 'is-danger',
|
|
|
|
|
type: "is-danger",
|
|
|
|
|
hasIcon: true,
|
|
|
|
|
icon: 'alert-circle',
|
|
|
|
|
iconPack: 'mdi',
|
|
|
|
|
ariaRole: 'alertdialog',
|
|
|
|
|
ariaModal: true
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
icon: "alert-circle",
|
|
|
|
|
iconPack: "mdi",
|
|
|
|
|
ariaRole: "alertdialog",
|
|
|
|
|
ariaModal: true,
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
enviarInforme () {
|
|
|
|
|
enviarInforme() {
|
|
|
|
|
const loadingComponent = this.$buefy.loading.open({
|
|
|
|
|
container: this.isFullPage ? null : this.$refs.element.$el
|
|
|
|
|
})
|
|
|
|
|
container: this.isFullPage ? null : this.$refs.element.$el,
|
|
|
|
|
});
|
|
|
|
|
const data = {
|
|
|
|
|
idServicio: this.alumno.idServicio
|
|
|
|
|
}
|
|
|
|
|
const formData = new FormData()
|
|
|
|
|
console.log(data)
|
|
|
|
|
formData.append('data', JSON.stringify(data))
|
|
|
|
|
formData.append('informeGlobal', this.file)
|
|
|
|
|
idServicio: this.alumno.idServicio,
|
|
|
|
|
};
|
|
|
|
|
const formData = new FormData();
|
|
|
|
|
console.log(data);
|
|
|
|
|
formData.append("data", JSON.stringify(data));
|
|
|
|
|
formData.append("informeGlobal", this.file);
|
|
|
|
|
|
|
|
|
|
axios
|
|
|
|
|
.put(`${process.env.api}/servicio/informe_global`, formData, {
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'multipart/form-data'
|
|
|
|
|
}
|
|
|
|
|
"Content-Type": "multipart/form-data",
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
.then((res) => {
|
|
|
|
|
loadingComponent.close()
|
|
|
|
|
loadingComponent.close();
|
|
|
|
|
this.$buefy.dialog.alert({
|
|
|
|
|
title: 'Success',
|
|
|
|
|
message: 'Se enviaron los datos correctamente',
|
|
|
|
|
type: 'is-success',
|
|
|
|
|
title: "Success",
|
|
|
|
|
message: "Se enviaron los datos correctamente",
|
|
|
|
|
type: "is-success",
|
|
|
|
|
hasIcon: true,
|
|
|
|
|
icon: 'checkbox-marked-circle',
|
|
|
|
|
iconPack: 'mdi',
|
|
|
|
|
ariaRole: 'alertdialog',
|
|
|
|
|
ariaModal: true
|
|
|
|
|
})
|
|
|
|
|
icon: "checkbox-marked-circle",
|
|
|
|
|
iconPack: "mdi",
|
|
|
|
|
ariaRole: "alertdialog",
|
|
|
|
|
ariaModal: true,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.reset()
|
|
|
|
|
this.getData()
|
|
|
|
|
this.reset();
|
|
|
|
|
this.getData();
|
|
|
|
|
})
|
|
|
|
|
.catch((error) => {
|
|
|
|
|
loadingComponent.close()
|
|
|
|
|
loadingComponent.close();
|
|
|
|
|
this.$buefy.dialog.alert({
|
|
|
|
|
title: 'Error',
|
|
|
|
|
title: "Error",
|
|
|
|
|
message: error.response.data.message,
|
|
|
|
|
type: 'is-danger',
|
|
|
|
|
type: "is-danger",
|
|
|
|
|
hasIcon: true,
|
|
|
|
|
icon: 'alert-circle',
|
|
|
|
|
iconPack: 'mdi',
|
|
|
|
|
ariaRole: 'alertdialog',
|
|
|
|
|
ariaModal: true
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
icon: "alert-circle",
|
|
|
|
|
iconPack: "mdi",
|
|
|
|
|
ariaRole: "alertdialog",
|
|
|
|
|
ariaModal: true,
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
fecha(date) {
|
|
|
|
|
const fecha = moment(date);
|
|
|
|
|
return `${fecha.year()}/${fecha.month() + 1}/${fecha.date()}`;
|
|
|
|
|
},
|
|
|
|
|
fecha (date) {
|
|
|
|
|
const fecha = moment(date)
|
|
|
|
|
return `${fecha.year()}/${fecha.month() + 1}/${fecha.date()}`
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
steps () {
|
|
|
|
|
const steps = [...this.baseSteps]
|
|
|
|
|
return steps
|
|
|
|
|
}
|
|
|
|
|
steps() {
|
|
|
|
|
const steps = [...this.baseSteps];
|
|
|
|
|
return steps;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
created () {
|
|
|
|
|
this.getData()
|
|
|
|
|
created() {
|
|
|
|
|
this.getData();
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
file () {
|
|
|
|
|
console.log(this.file.size)
|
|
|
|
|
file() {
|
|
|
|
|
console.log(this.file.size);
|
|
|
|
|
if (this.file.size >= 20000000) {
|
|
|
|
|
this.$buefy.dialog.alert({
|
|
|
|
|
title: 'Error',
|
|
|
|
|
message: 'El tamaño del archivo exede los 20MB',
|
|
|
|
|
type: 'is-danger',
|
|
|
|
|
title: "Error",
|
|
|
|
|
message: "El tamaño del archivo exede los 20MB",
|
|
|
|
|
type: "is-danger",
|
|
|
|
|
hasIcon: true,
|
|
|
|
|
icon: 'alert-circle',
|
|
|
|
|
iconPack: 'mdi',
|
|
|
|
|
ariaRole: 'alertdialog',
|
|
|
|
|
ariaModal: true
|
|
|
|
|
})
|
|
|
|
|
this.file = []
|
|
|
|
|
icon: "alert-circle",
|
|
|
|
|
iconPack: "mdi",
|
|
|
|
|
ariaRole: "alertdialog",
|
|
|
|
|
ariaModal: true,
|
|
|
|
|
});
|
|
|
|
|
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)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
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);
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|