admin mini cambios

This commit is contained in:
Lemuel Marquez
2021-08-04 18:25:24 -05:00
parent db0a63854a
commit 101f60f489
16 changed files with 48 additions and 48 deletions
@@ -105,7 +105,7 @@ export default {
if (date) {
const fecha = moment(date)
return `${fecha.date()}/${
return `${fecha.date() < 10 ? '0' + fecha.date() : fecha.date()}/${
fecha.month() < 9 ? '0' + (fecha.month() + 1) : fecha.month() + 1
}/${fecha.year()}`
}
@@ -113,7 +113,7 @@ export default {
if (date) {
const fecha = moment(date)
return `${fecha.date()}/${
return `${fecha.date() < 10 ? '0' + fecha.date() : fecha.date()}/${
fecha.month() < 9 ? '0' + (fecha.month() + 1) : fecha.month() + 1
}/${fecha.year()}`
}
@@ -137,7 +137,7 @@ export default {
if (date) {
const fecha = moment(date)
return `${fecha.date()}/${
return `${fecha.date() < 10 ? '0' + fecha.date() : fecha.date()}/${
fecha.month() < 9 ? '0' + (fecha.month() + 1) : fecha.month() + 1
}/${fecha.year()}`
}
+13 -1
View File
@@ -1,39 +1,51 @@
<template>
<div id="datosPersonales">
<p class="is-size-3"><b>Datos personales</b></p>
<p class="is-size-5 mt-3" v-if="alumno.Usuario.nombre">
<b>Nombre: </b>{{ alumno.Usuario.nombre }}
</p>
<p class="is-size-5 mt-3" v-if="alumno.Usuario.usuario">
<b>Número de cuenta: </b>{{ alumno.Usuario.usuario }}
</p>
<p class="is-size-5 mt-3" v-if="alumno.Carrera.carrera">
<b>Carrera: </b>{{ alumno.Carrera.carrera }}
</p>
<p class="is-size-5 mt-3" v-if="alumno.correo">
<b>Correo: </b>{{ alumno.correo }}
</p>
<p class="is-size-5 mt-3" v-if="alumno.creditos">
<b>Créditos: </b>{{ alumno.creditos + '%' }}
</p>
<p class="is-size-5 mt-3" v-if="alumno.fechaInicio">
<b>Fecha de inicio: </b>{{ fecha(alumno.fechaInicio) }}
</p>
<p class="is-size-5 mt-3" v-if="alumno.fechaFin">
<b>Fecha de fin: </b>{{ fecha(alumno.fechaFin) }}
</p>
<p class="is-size-5 mt-3" v-if="alumno.telefono">
<b>Teléfono: </b>{{ alumno.telefono }}
</p>
<p class="is-size-5 mt-3" v-if="alumno.direccion">
<b>Dirección: </b>{{ alumno.direccion }}
</p>
<p class="is-size-5 mt-3" v-if="alumno.fechaNacimiento">
<b>Fecha de nacimiento: </b>{{ fecha(alumno.fechaNacimiento) }}
</p>
<p class="is-size-5 mt-3" v-if="alumno.createdAt">
<b>Fecha de registro: </b>{{ fecha(alumno.createdAt) }}
</p>
<p class="is-size-5 mt-3" v-if="alumno.fechaLiberacion">
<b>Fecha de liberación: </b>{{ fecha(alumno.fechaLiberacion) }}
</p>
@@ -52,7 +64,7 @@ export default {
if (date) {
const fecha = moment(date)
return `${fecha.date()}/${
return `${fecha.date() < 10 ? '0' + fecha.date() : fecha.date()}/${
fecha.month() < 9 ? '0' + (fecha.month() + 1) : fecha.month() + 1
}/${fecha.year()}`
}
@@ -1,20 +1,27 @@
<template>
<div id="programa">
<br />
<p class="is-size-3"><b>Datos del programa</b></p>
<br />
<p class="is-size-5 mb-3" v-if="programa.programa">
<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>
</p>
<p class="is-size-5 mb-3" v-if="programa.dependencia">
<b>Dependecia: </b><span> {{ programa.dependencia }} </span>
</p>
<p class="is-size-5 mb-3" v-if="programa.institucion">
<b>Institución: </b><span> {{ programa.institucion }} </span>
</p>
<br />
</div>
</template>
+11 -6
View File
@@ -1,11 +1,13 @@
<template>
<div>
<span class="spanDoc"
><strong>{{ title }}</strong></span
>
<span class="spanDoc">
<strong>{{ title }}</strong>
</span>
<a :href="link" target="_blank">
<b-button class="is-link is-light"> Ver </b-button>
</a>
<b-button
class="is-danger"
v-if="esRechazable()"
@@ -13,9 +15,11 @@
>
Rechazar
</b-button>
<b-field label="Razón del rechazo: " v-if="mensajeBool">
<b-input maxlength="500" type="textarea" v-model="mensajeRech"></b-input>
<b-input maxlength="500" type="textarea" v-model="mensajeRech" />
</b-field>
<b-button
v-if="mensajeRech && mensajeBool"
class="is-danger"
@@ -23,15 +27,16 @@
>
Rechazar documento
</b-button>
<b-button v-else-if="mensajeBool" disabled> Rechazar documento </b-button>
<b-loading :is-full-page="true" :can-cancel="false" v-model="isLoading">
</b-loading>
<b-loading :is-full-page="true" :can-cancel="false" v-model="isLoading" />
</div>
</template>
<script>
import axios from 'axios'
export default {
props: {
title: String,
+1 -1
View File
@@ -198,7 +198,7 @@ export default {
if (date) {
const fecha = moment(date)
return `${fecha.date()}/${
return `${fecha.date() < 10 ? '0' + fecha.date() : fecha.date()}/${
fecha.month() < 9 ? '0' + (fecha.month() + 1) : fecha.month() + 1
}/${fecha.year()}`
}
@@ -1,10 +1,15 @@
<template>
<div id="Status">
<p class="is-size-1" v-if="status == 1">Pre Registro</p>
<p class="is-size-1" v-else-if="status == 2">Pre Registro Válidado</p>
<p class="is-size-1" v-else-if="status == 3">Registro</p>
<p class="is-size-1" v-else-if="status == 4">Pre Término</p>
<p class="is-size-1" v-else-if="status == 5">Término</p>
<p class="is-size-1" v-else-if="status == 6">Liberación</p>
</div>
</template>
@@ -3,9 +3,11 @@
<h3 class="is-size-3 mb-5" v-if="status == 1">
<strong> Confirmar el pre-registro del alumno </strong>
</h3>
<h3 class="is-size-3 mb-5" v-if="status == 4">
<strong> Término </strong>
</h3>
<h3 class="is-size-3 mb-5" v-if="status == 5">
<strong> Validar el término del alumno </strong>
</h3>
+1 -1
View File
@@ -62,7 +62,7 @@ export default {
if (date) {
const fecha = moment(date)
return `${fecha.date()}/${
return `${fecha.date() < 10 ? '0' + fecha.date() : fecha.date()}/${
fecha.month() < 9 ? '0' + (fecha.month() + 1) : fecha.month() + 1
}/${fecha.year()}`
}
+1 -1
View File
@@ -131,7 +131,7 @@ export default {
if (date) {
const fecha = moment(date)
return `${fecha.date()}/${
return `${fecha.date() < 10 ? '0' + fecha.date() : fecha.date()}/${
fecha.month() < 9 ? '0' + (fecha.month() + 1) : fecha.month() + 1
}/${fecha.year()}`
}
+1 -1
View File
@@ -189,7 +189,7 @@ export default {
if (date) {
const fecha = moment(date)
return `${fecha.date()}/${
return `${fecha.date() < 10 ? '0' + fecha.date() : fecha.date()}/${
fecha.month() < 9 ? '0' + (fecha.month() + 1) : fecha.month() + 1
}/${fecha.year()}`
}
@@ -18,15 +18,6 @@ export default {
components: {
FormEditar,
},
beforeCreate() {
const idTipoUsuario = Number(localStorage.getItem('idTipoUsuario'))
if (idTipoUsuario === 2) this.$router.push('/responsable')
if (idTipoUsuario === 3) this.$router.push('/alumno')
if (idTipoUsuario === 4) this.$router.push('/casoEspecial')
if (!localStorage.getItem('idCasoEspecial'))
this.$router.push('/admin/casos_especiales')
},
data() {
return {
admin: {},
@@ -103,6 +94,8 @@ export default {
if (this.admin.idTipoUsuario === 2) this.$router.push('/responsable')
if (this.admin.idTipoUsuario === 3) this.$router.push('/alumno')
if (this.admin.idTipoUsuario === 4) this.$router.push('/casoEspecial')
if (!localStorage.getItem('idCasoEspecial'))
this.$router.push('/admin/casos_especiales')
},
}
</script>
-7
View File
@@ -20,13 +20,6 @@ export default {
BotonRegresar,
TablaCasosEspeciales,
},
beforeCreate() {
const idTipoUsuario = Number(localStorage.getItem('idTipoUsuario'))
if (idTipoUsuario === 2) this.$router.push('/responsable')
if (idTipoUsuario === 3) this.$router.push('/alumno')
if (idTipoUsuario === 4) this.$router.push('/casoEspecial')
},
data() {
return {
admin: {},
-7
View File
@@ -40,13 +40,6 @@ export default {
Reporte,
GustavoBazPrada,
},
beforeCreate() {
const idTipoUsuario = Number(localStorage.getItem('idTipoUsuario'))
if (idTipoUsuario === 2) this.$router.push('/responsable')
if (idTipoUsuario === 3) this.$router.push('/alumno')
if (idTipoUsuario === 4) this.$router.push('/casoEspecial')
},
data() {
return {
admin: {},
+1 -11
View File
@@ -16,17 +16,6 @@ export default {
components: {
Form,
},
beforeCreate() {
const idTipoUsuario = Number(localStorage.getItem('idTipoUsuario'))
if (idTipoUsuario === 2) this.$router.push('/responsable')
if (idTipoUsuario === 3) this.$router.push('/alumno')
if (idTipoUsuario === 4) this.$router.push('/casoEspecial')
if (!localStorage.getItem('idServicio')) {
this.$router.push('/admin')
}
},
data() {
return {
admin: {},
@@ -103,6 +92,7 @@ export default {
if (this.admin.idTipoUsuario === 2) this.$router.push('/responsable')
if (this.admin.idTipoUsuario === 3) this.$router.push('/alumno')
if (this.admin.idTipoUsuario === 4) this.$router.push('/casoEspecial')
if (!localStorage.getItem('idServicio')) this.$router.push('/admin')
},
}
</script>