identacion
This commit is contained in:
@@ -39,7 +39,7 @@ import moment from "moment";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
alumno: Object
|
||||
alumno: Object,
|
||||
},
|
||||
methods: {
|
||||
fecha(date) {
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
<b>Programa: </b><span> {{ programa.programa }} </span>
|
||||
</p>
|
||||
<p class="is-size-5 mb-3" v-if="programa.clavePrograma">
|
||||
<b>Clave del programa: </b
|
||||
><span> {{ programa.clavePrograma }} </span>
|
||||
<b>Clave del programa: </b><span> {{ programa.clavePrograma }} </span>
|
||||
</p>
|
||||
<p class="is-size-5 mb-3" v-if="programa.dependencia">
|
||||
<b>Dependecia: </b><span> {{ programa.dependencia }} </span>
|
||||
@@ -23,7 +22,7 @@
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
programa: Object
|
||||
}
|
||||
}
|
||||
</script>
|
||||
programa: Object,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
status: Number
|
||||
}
|
||||
}
|
||||
status: Number,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<div class="mb-5">
|
||||
<BotonRegresar
|
||||
:path="'/admin'"
|
||||
<BotonRegresar
|
||||
:path="'/admin'"
|
||||
:deleteFromLocalStorage="['idServicio']"
|
||||
/>
|
||||
</div>
|
||||
@@ -103,10 +103,10 @@
|
||||
Cancelar servicio
|
||||
</b-button>
|
||||
<div>
|
||||
<BotonRegresar
|
||||
:path="'/admin'"
|
||||
:deleteFromLocalStorage="['idServicio']"
|
||||
/>
|
||||
<BotonRegresar
|
||||
:path="'/admin'"
|
||||
:deleteFromLocalStorage="['idServicio']"
|
||||
/>
|
||||
</div>
|
||||
<b-loading
|
||||
:is-full-page="true"
|
||||
@@ -300,7 +300,7 @@ export default {
|
||||
ariaRole: "alertdialog",
|
||||
ariaModal: true,
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
async created() {
|
||||
await this.obtenerRegistro();
|
||||
|
||||
Reference in New Issue
Block a user