identacion
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user