identacion

This commit is contained in:
Lemuel Marquez
2021-01-05 15:14:10 -06:00
parent 086da2a0c7
commit 2f92ddea4a
15 changed files with 1501 additions and 1362 deletions
@@ -49,8 +49,8 @@ export default {
validarExt() {
const extPermitidas = /(.csv)$/i;
if (!extPermitidas.exec(this.csv.name)) {
this.toastType = 'is-danger'
this.toastMessage = 'Asegurate de ingresar un archivo .CSV'
this.toastType = "is-danger";
this.toastMessage = "Asegurate de ingresar un archivo .CSV";
this.toast();
this.csv = {};
}
@@ -72,7 +72,7 @@ export default {
onConfirm: () => this.enviarCargaMasiva(),
});
},
enviarCargaMasiva () {
enviarCargaMasiva() {
this.isLoading = true;
const formData = new FormData();
if (this.cartaAceptacion) {
@@ -82,15 +82,15 @@ export default {
.put(`${process.env.api}/programa/carga_masiva`, formData)
.then((res) => {
this.isLoading = false;
this.toastType = 'is-success'
this.toastMessage = 'Se ha enviado la carga masiva con éxito'
this.toastType = "is-success";
this.toastMessage = "Se ha enviado la carga masiva con éxito";
this.toast();
})
.catch((err) => {
this.isLoading = false;
this.toastType = 'is-danger'
this.toastMessage = err.response.data.message
this.toast()
this.toastType = "is-danger";
this.toastMessage = err.response.data.message;
this.toast();
});
},
},
@@ -121,7 +121,7 @@ export default {
localStorage.setItem("correo", responsable.usuario);
localStorage.setItem("idResponsable", responsable.idUsuario);
localStorage.setItem("nombre", responsable.nombre);
this.$router.push('/admin/programa/infoResponsable');
this.$router.push("/admin/programa/infoResponsable");
},
},
computed: {