fehca viata alumno reparada
This commit is contained in:
@@ -207,6 +207,7 @@ export default {
|
||||
},
|
||||
fecha(date) {
|
||||
const fecha = moment(date.substr(0, 10));
|
||||
|
||||
return `${fecha.date()}/${fecha.month() + 1}/${fecha.year()}`;
|
||||
},
|
||||
obtenerDatos(idStatus) {
|
||||
|
||||
@@ -134,7 +134,6 @@ export default {
|
||||
.catch((err) => {
|
||||
this.isLoading = false;
|
||||
this.error(err.response.data.message);
|
||||
console.log(err.response.data.message);
|
||||
this.errorDoc();
|
||||
});
|
||||
},
|
||||
@@ -154,7 +153,6 @@ export default {
|
||||
.catch((err) => {
|
||||
this.isLoading = false;
|
||||
this.error(err.response.data.message);
|
||||
console.log(err.response.data.message);
|
||||
this.errorDoc();
|
||||
});
|
||||
},
|
||||
|
||||
@@ -201,12 +201,11 @@ export default {
|
||||
this.viejo = res.data;
|
||||
})
|
||||
.catch((err) => {
|
||||
this.error(err.response.data.message)
|
||||
console.log(err.response.data.message);
|
||||
this.error(err.response.data.message);
|
||||
})
|
||||
.finally(() => {
|
||||
this.isLoading = false;
|
||||
})
|
||||
});
|
||||
},
|
||||
dangerToast() {
|
||||
this.$buefy.toast.open({
|
||||
@@ -298,11 +297,10 @@ export default {
|
||||
})
|
||||
.catch((err) => {
|
||||
this.error(err.response.data.message);
|
||||
console.log(err.response.data.message);
|
||||
})
|
||||
.finally(() => {
|
||||
this.isLoading = false;
|
||||
})
|
||||
});
|
||||
},
|
||||
actualizarDialog() {
|
||||
this.$buefy.dialog.confirm({
|
||||
@@ -336,10 +334,10 @@ export default {
|
||||
message: "Se ha enviado el correo con la nueva contraseña",
|
||||
type: "is-success",
|
||||
});
|
||||
this.$router.push("/admin")
|
||||
this.$router.push("/admin");
|
||||
})
|
||||
.catch((err) => {
|
||||
this.error(err.response.data.message)
|
||||
this.error(err.response.data.message);
|
||||
})
|
||||
.finally(() => {
|
||||
this.isLoading = false;
|
||||
|
||||
@@ -85,7 +85,6 @@ export default {
|
||||
onPageChange(page) {
|
||||
this.page = page;
|
||||
this.obtenerDatos();
|
||||
console.log(this.page);
|
||||
},
|
||||
obtenerDatos(idStatus) {
|
||||
this.loading = true;
|
||||
@@ -118,7 +117,6 @@ export default {
|
||||
.catch((err) => {
|
||||
this.loading = false;
|
||||
this.error(err.response.data.message);
|
||||
console.log(err.response.data.message);
|
||||
});
|
||||
},
|
||||
error(msj) {
|
||||
|
||||
@@ -169,25 +169,30 @@ export default {
|
||||
}
|
||||
return false;
|
||||
},
|
||||
mostrarVistoBueno(){
|
||||
if(!this.alumno.Programa.acatlan) return true
|
||||
if(this.alumno.vistoBuenoAcatlan) return true
|
||||
return false
|
||||
mostrarVistoBueno() {
|
||||
if (!this.alumno.Programa.acatlan) return true;
|
||||
if (this.alumno.vistoBuenoAcatlan) return true;
|
||||
return false;
|
||||
},
|
||||
obtenerRegistro() {
|
||||
this.isLoading = true;
|
||||
return axios
|
||||
.get(`${process.env.api}/servicio/admin?idServicio=${this.idServicio}`, this.token)
|
||||
.get(
|
||||
`${process.env.api}/servicio/admin?idServicio=${this.idServicio}`,
|
||||
this.token
|
||||
)
|
||||
.then((res) => {
|
||||
this.alumno = res.data;
|
||||
this.alumno.creditos = Number(res.data.creditos);
|
||||
if (this.alumno.cartaAceptacion) this.linkCartaAceptacion = `https://drive.google.com/file/d/${this.alumno.cartaAceptacion}/view?usp=sharing`;
|
||||
if (this.alumno.cartaTermino) this.linkCartaTermino = `https://drive.google.com/file/d/${this.alumno.cartaTermino}/view?usp=sharing`;
|
||||
if (this.alumno.informeGlobal) this.linkInformeGlobal = `https://drive.google.com/file/d/${this.alumno.informeGlobal}/view?usp=sharing`;
|
||||
if (this.alumno.cartaAceptacion)
|
||||
this.linkCartaAceptacion = `https://drive.google.com/file/d/${this.alumno.cartaAceptacion}/view?usp=sharing`;
|
||||
if (this.alumno.cartaTermino)
|
||||
this.linkCartaTermino = `https://drive.google.com/file/d/${this.alumno.cartaTermino}/view?usp=sharing`;
|
||||
if (this.alumno.informeGlobal)
|
||||
this.linkInformeGlobal = `https://drive.google.com/file/d/${this.alumno.informeGlobal}/view?usp=sharing`;
|
||||
})
|
||||
.catch((err) => {
|
||||
this.error(err.response.data.message);
|
||||
console.log(err.response.data.message);
|
||||
})
|
||||
.finally(() => {
|
||||
this.isLoading = false;
|
||||
@@ -236,7 +241,6 @@ export default {
|
||||
})
|
||||
.catch((err) => {
|
||||
this.error(err.response.data.message);
|
||||
console.log(err.response.data.message);
|
||||
})
|
||||
.finally(() => {
|
||||
this.isLoading = false;
|
||||
@@ -254,7 +258,6 @@ export default {
|
||||
})
|
||||
.catch((err) => {
|
||||
this.error(err.response.data.message);
|
||||
console.log(err.response.data.message);
|
||||
})
|
||||
.finally(() => {
|
||||
this.isLoading = false;
|
||||
@@ -263,7 +266,8 @@ export default {
|
||||
confirmarLiberacion() {
|
||||
this.isLoading = true;
|
||||
const data = { idServicio: this.idServicio };
|
||||
if (this.alumno.vistoBuenoAcatlan) data.vistoBuenoAcatlan = this.alumno.vistoBuenoAcatlan;
|
||||
if (this.alumno.vistoBuenoAcatlan)
|
||||
data.vistoBuenoAcatlan = this.alumno.vistoBuenoAcatlan;
|
||||
axios
|
||||
.put(`${process.env.api}/servicio/liberacion`, data, this.token)
|
||||
.then((res) => {
|
||||
@@ -273,7 +277,6 @@ export default {
|
||||
})
|
||||
.catch((err) => {
|
||||
this.error(err.response.data.message);
|
||||
console.log(err.response.data.message);
|
||||
})
|
||||
.finally(() => {
|
||||
this.isLoading = false;
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
|
||||
<script>
|
||||
import moment from "moment";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {};
|
||||
@@ -58,9 +59,10 @@ export default {
|
||||
props: ["status", "alumno", "programa"],
|
||||
methods: {
|
||||
fecha(date) {
|
||||
const fecha = moment(date);
|
||||
// const fecha = moment(date);
|
||||
const fecha = moment(date.substr(0, 10));
|
||||
|
||||
return `${fecha.date()}/${fecha.month() + 1}/${fecha.year()}`;
|
||||
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -76,7 +76,7 @@ export default {
|
||||
validarTamaño() {
|
||||
const TamMax = 20000000;
|
||||
const archivo = this.file;
|
||||
console.log(archivo);
|
||||
|
||||
if (archivo.size > TamMax) {
|
||||
this.toast();
|
||||
this.file = "";
|
||||
|
||||
+2
-2
@@ -47,8 +47,8 @@ export default {
|
||||
build: {},
|
||||
env: {
|
||||
// api: "http://localhost:3000",
|
||||
api: "https://venus.acatlan.unam.mx/ss-pruebas",
|
||||
// api: "https://venus.acatlan.unam.mx/ss-pruebas",
|
||||
// api: "https://890af9d598a4.ngrok.io"
|
||||
// api: 'https://venus.acatlan.unam.mx/serviciosocial'
|
||||
api: 'https://venus.acatlan.unam.mx/serviciosocial'
|
||||
},
|
||||
};
|
||||
|
||||
@@ -93,7 +93,6 @@ export default {
|
||||
.then((res) => {
|
||||
this.link = `${process.env.api}/${this.selectedYear}_${this.selectedCuestionario}.csv`;
|
||||
this.botonDos = true;
|
||||
console.log(res.data.message);
|
||||
})
|
||||
.catch((err) => {
|
||||
this.error(err.response.data.message);
|
||||
@@ -148,14 +147,14 @@ export default {
|
||||
},
|
||||
selectedCuestionario() {
|
||||
this.botonDos = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.container {
|
||||
margin-bottom: 4%;
|
||||
margin-top:2%;
|
||||
}
|
||||
</style>
|
||||
.container {
|
||||
margin-bottom: 4%;
|
||||
margin-top: 2%;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -81,11 +81,9 @@ export default {
|
||||
)
|
||||
.then((res) => {
|
||||
this.programas = res.data;
|
||||
console.log(res.data);
|
||||
})
|
||||
.catch((err) => {
|
||||
this.error(err.response.data.message);
|
||||
console.log(err.response.data.message);
|
||||
});
|
||||
},
|
||||
error(msj) {
|
||||
|
||||
+5
-15
@@ -23,7 +23,6 @@
|
||||
|
||||
<script>
|
||||
import "buefy/dist/buefy.css";
|
||||
import moment from "moment";
|
||||
import axios from "axios";
|
||||
import Steps from "../../components/alumno/steps";
|
||||
import Info from "../../components/alumno/info";
|
||||
@@ -40,13 +39,6 @@ export default {
|
||||
},
|
||||
activeStep: "",
|
||||
status: "",
|
||||
isLoading: false,
|
||||
file: [],
|
||||
nacimiento: [],
|
||||
minDate: new Date(),
|
||||
maxDate: new Date(),
|
||||
telefono: "",
|
||||
direccion: "",
|
||||
alumno: {
|
||||
carrera: "",
|
||||
creditos: "",
|
||||
@@ -61,9 +53,9 @@ export default {
|
||||
idAlumno: "",
|
||||
idCarrera: "",
|
||||
idServicio: "",
|
||||
inicio: [],
|
||||
fin: [],
|
||||
registro: [],
|
||||
inicio: "",
|
||||
fin: "",
|
||||
registro: "",
|
||||
},
|
||||
programa: {
|
||||
programa: "",
|
||||
@@ -172,8 +164,7 @@ export default {
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD <<<<<<< HEAD
|
||||
|
||||
<style scoped>
|
||||
.border-info {
|
||||
@@ -193,5 +184,4 @@ export default {
|
||||
align-content: center !important;
|
||||
}
|
||||
</style>
|
||||
=======
|
||||
>>>>>>> 076b92672393aa93c92ea79ffc6f024ffc3a683f
|
||||
======= >>>>>>> 076b92672393aa93c92ea79ffc6f024ffc3a683f
|
||||
|
||||
Reference in New Issue
Block a user