|
|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
<script setup>
|
|
|
|
|
import { onMounted } from "vue"
|
|
|
|
|
import { onMounted, computed } from "vue"
|
|
|
|
|
import NavbarModerno from '../../nabvar.vue'
|
|
|
|
|
import FooterModerno from '../../Footer.vue'
|
|
|
|
|
import { FileSearchOutlined } from "@ant-design/icons-vue"
|
|
|
|
|
@ -10,14 +10,28 @@ const webStore = useWebAdmisionStore()
|
|
|
|
|
const resultadosStore = useProcesoAdmisionResultadoStore()
|
|
|
|
|
|
|
|
|
|
onMounted(async () => {
|
|
|
|
|
|
|
|
|
|
if (!webStore.procesos.length) {
|
|
|
|
|
await webStore.cargarProcesos()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const proceso = webStore.procesoPrincipal
|
|
|
|
|
|
|
|
|
|
if (proceso?.id) {
|
|
|
|
|
await resultadosStore.fetchArchivosPublico(proceso.id)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const archivosExamen1 = computed(() =>
|
|
|
|
|
resultadosStore.archivos.filter(a => [1,2,3,4].includes(a.orden))
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const archivosExamen2 = computed(() =>
|
|
|
|
|
resultadosStore.archivos.filter(a => [5,6].includes(a.orden))
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
@ -25,68 +39,86 @@ onMounted(async () => {
|
|
|
|
|
|
|
|
|
|
<section id="proceso-resultado" class="convocatorias-modern">
|
|
|
|
|
<div class="section-container">
|
|
|
|
|
|
|
|
|
|
<!-- HEADER -->
|
|
|
|
|
<div class="section-header">
|
|
|
|
|
<div class="header-with-badge">
|
|
|
|
|
<h2 class="section-title">
|
|
|
|
|
RESULTADOS — {{ webStore.procesoPrincipal?.titulo ?? 'Proceso vigente' }}
|
|
|
|
|
</h2>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<p class="section-subtitle">
|
|
|
|
|
Resultados del proceso de admisión vigente.
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Estado -->
|
|
|
|
|
<!-- ESTADO -->
|
|
|
|
|
<a-card class="main-convocatoria-card" :loading="resultadosStore.loading">
|
|
|
|
|
<div class="card-badge">Resultados</div>
|
|
|
|
|
|
|
|
|
|
<template v-if="resultadosStore.error">
|
|
|
|
|
<div style="padding: 6px 2px; color: #dc2626; font-weight: 700;">
|
|
|
|
|
<div style="padding:6px 2px; color:#dc2626; font-weight:700;">
|
|
|
|
|
{{ resultadosStore.error }}
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-else-if="!resultadosStore.archivos.length && !resultadosStore.loading">
|
|
|
|
|
<div style="padding: 6px 2px; color: #666;">
|
|
|
|
|
<div style="padding:6px 2px; color:#666;">
|
|
|
|
|
Resultados próximamente.
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-else>
|
|
|
|
|
<div style="padding: 6px 2px; color:#666;">
|
|
|
|
|
<div style="padding:6px 2px; color:#666;">
|
|
|
|
|
Resultados disponibles — {{ webStore.procesoPrincipal?.titulo }}
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</a-card>
|
|
|
|
|
|
|
|
|
|
<!-- Cards de archivos -->
|
|
|
|
|
|
|
|
|
|
<!-- ================= EXAMEN 1 ================= -->
|
|
|
|
|
<a-card
|
|
|
|
|
v-if="resultadosStore.archivos.length"
|
|
|
|
|
v-if="archivosExamen1.length"
|
|
|
|
|
class="year-section-card"
|
|
|
|
|
>
|
|
|
|
|
<div class="year-header">
|
|
|
|
|
<div class="year-icon">
|
|
|
|
|
<FileSearchOutlined />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<h3 class="year-title">{{ webStore.procesoPrincipal?.titulo }}</h3>
|
|
|
|
|
<p class="year-subtitle">Selecciona el archivo que deseas consultar.</p>
|
|
|
|
|
<h3 class="year-title">
|
|
|
|
|
Resultados — Sábado - Primera Etapa.
|
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
|
|
<p class="year-subtitle">
|
|
|
|
|
{{ webStore.procesoPrincipal?.fecha_examen1
|
|
|
|
|
? new Date(webStore.procesoPrincipal.fecha_examen1)
|
|
|
|
|
.toLocaleDateString('es-PE', { day:'2-digit', month:'long', year:'numeric' })
|
|
|
|
|
: ''
|
|
|
|
|
}}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<a-divider class="custom-divider" />
|
|
|
|
|
|
|
|
|
|
<div class="secondary-list one-col">
|
|
|
|
|
|
|
|
|
|
<a-card
|
|
|
|
|
v-for="archivo in resultadosStore.archivos"
|
|
|
|
|
v-for="archivo in archivosExamen1"
|
|
|
|
|
:key="archivo.id"
|
|
|
|
|
class="secondary-convocatoria-card"
|
|
|
|
|
>
|
|
|
|
|
<div class="convocatoria-header">
|
|
|
|
|
<div>
|
|
|
|
|
<h4 class="secondary-title">{{ archivo.nombre }}</h4>
|
|
|
|
|
</div>
|
|
|
|
|
<a-tag class="status-tag" color="blue">DISPONIBLE</a-tag>
|
|
|
|
|
<h4 class="secondary-title">
|
|
|
|
|
{{ archivo.nombre }}
|
|
|
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<a-tag class="status-tag" color="blue">
|
|
|
|
|
Publicado
|
|
|
|
|
</a-tag>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="card-footer">
|
|
|
|
|
@ -97,11 +129,79 @@ onMounted(async () => {
|
|
|
|
|
:href="archivo.archivo_url"
|
|
|
|
|
target="_blank"
|
|
|
|
|
>
|
|
|
|
|
<template #icon><FileSearchOutlined /></template>
|
|
|
|
|
<template #icon>
|
|
|
|
|
<FileSearchOutlined />
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
Ver Resultados
|
|
|
|
|
</a-button>
|
|
|
|
|
</div>
|
|
|
|
|
</a-card>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</a-card>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a-card
|
|
|
|
|
v-if="archivosExamen2.length"
|
|
|
|
|
class="year-section-card"
|
|
|
|
|
>
|
|
|
|
|
<div class="year-header">
|
|
|
|
|
<div class="year-icon">
|
|
|
|
|
<FileSearchOutlined />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<h3 class="year-title">
|
|
|
|
|
Resultados — Domingo - Segunda Etapa.
|
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
|
|
<p class="year-subtitle">
|
|
|
|
|
{{ webStore.procesoPrincipal?.fecha_examen2
|
|
|
|
|
? new Date(webStore.procesoPrincipal.fecha_examen2)
|
|
|
|
|
.toLocaleDateString('es-PE', { day:'2-digit', month:'long', year:'numeric' })
|
|
|
|
|
: ''
|
|
|
|
|
}}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<a-divider class="custom-divider" />
|
|
|
|
|
|
|
|
|
|
<div class="secondary-list one-col">
|
|
|
|
|
|
|
|
|
|
<a-card
|
|
|
|
|
v-for="archivo in archivosExamen2"
|
|
|
|
|
:key="archivo.id"
|
|
|
|
|
class="secondary-convocatoria-card"
|
|
|
|
|
>
|
|
|
|
|
<div class="convocatoria-header">
|
|
|
|
|
<h4 class="secondary-title">
|
|
|
|
|
{{ archivo.nombre }}
|
|
|
|
|
</h4>
|
|
|
|
|
<a-tag class="status-tag" color="blue">
|
|
|
|
|
Publicado
|
|
|
|
|
</a-tag>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="card-footer">
|
|
|
|
|
<a-button
|
|
|
|
|
type="primary"
|
|
|
|
|
ghost
|
|
|
|
|
size="small"
|
|
|
|
|
:href="archivo.archivo_url"
|
|
|
|
|
target="_blank"
|
|
|
|
|
>
|
|
|
|
|
<template #icon>
|
|
|
|
|
<FileSearchOutlined />
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
Ver Resultados
|
|
|
|
|
</a-button>
|
|
|
|
|
</div>
|
|
|
|
|
</a-card>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</a-card>
|
|
|
|
|
|
|
|
|
|
@ -110,7 +210,6 @@ onMounted(async () => {
|
|
|
|
|
|
|
|
|
|
<FooterModerno />
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.convocatorias-modern {
|
|
|
|
|
position: relative;
|
|
|
|
|
|