|
|
|
|
@ -10,26 +10,21 @@ 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 ids = webStore.procesos.map(p => p.id)
|
|
|
|
|
if (ids.length) await resultadosStore.fetchArchivosMultiples(ids)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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))
|
|
|
|
|
const procesosConResultados = computed(() =>
|
|
|
|
|
webStore.procesos
|
|
|
|
|
.map(p => ({
|
|
|
|
|
proceso: p,
|
|
|
|
|
examen1: (resultadosStore.archivosPorProceso[p.id] ?? []).filter(a => [1,2,3,4].includes(a.orden)),
|
|
|
|
|
examen2: (resultadosStore.archivosPorProceso[p.id] ?? []).filter(a => [5,6].includes(a.orden)),
|
|
|
|
|
}))
|
|
|
|
|
.filter(item => item.examen1.length || item.examen2.length)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
@ -44,7 +39,7 @@ const archivosExamen2 = computed(() =>
|
|
|
|
|
<div class="section-header">
|
|
|
|
|
<div class="header-with-badge">
|
|
|
|
|
<h2 class="section-title">
|
|
|
|
|
RESULTADOS — {{ webStore.procesoPrincipal?.titulo ?? 'Proceso vigente' }}
|
|
|
|
|
RESULTADOS — PROCESO DE ADMISIÓN 2026
|
|
|
|
|
</h2>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@ -63,7 +58,7 @@ const archivosExamen2 = computed(() =>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-else-if="!resultadosStore.archivos.length && !resultadosStore.loading">
|
|
|
|
|
<template v-else-if="!procesosConResultados.length && !resultadosStore.loading">
|
|
|
|
|
<div style="padding:6px 2px; color:#666;">
|
|
|
|
|
Resultados próximamente.
|
|
|
|
|
</div>
|
|
|
|
|
@ -71,139 +66,91 @@ const archivosExamen2 = computed(() =>
|
|
|
|
|
|
|
|
|
|
<template v-else>
|
|
|
|
|
<div style="padding:6px 2px; color:#666;">
|
|
|
|
|
Resultados disponibles — {{ webStore.procesoPrincipal?.titulo }}
|
|
|
|
|
Resultados disponibles.
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</a-card>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ================= EXAMEN 1 ================= -->
|
|
|
|
|
<a-card
|
|
|
|
|
v-if="archivosExamen1.length"
|
|
|
|
|
class="year-section-card"
|
|
|
|
|
>
|
|
|
|
|
<div class="year-header">
|
|
|
|
|
<div class="year-icon">
|
|
|
|
|
<FileSearchOutlined />
|
|
|
|
|
<!-- ================= UN BLOQUE POR PROCESO ================= -->
|
|
|
|
|
<template v-for="item in procesosConResultados" :key="item.proceso.id">
|
|
|
|
|
|
|
|
|
|
<!-- Examen 1 (sábado / slots 1-4) -->
|
|
|
|
|
<a-card v-if="item.examen1.length" class="year-section-card">
|
|
|
|
|
<div class="year-header">
|
|
|
|
|
<div class="year-icon"><FileSearchOutlined /></div>
|
|
|
|
|
<div>
|
|
|
|
|
<h3 class="year-title">{{ item.proceso.titulo }} — Sábado</h3>
|
|
|
|
|
<p class="year-subtitle">
|
|
|
|
|
{{ item.proceso.fecha_examen1
|
|
|
|
|
? new Date(item.proceso.fecha_examen1)
|
|
|
|
|
.toLocaleDateString('es-PE', { day:'2-digit', month:'long', year:'numeric' })
|
|
|
|
|
: ''
|
|
|
|
|
}}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<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>
|
|
|
|
|
<a-divider class="custom-divider" />
|
|
|
|
|
|
|
|
|
|
<div class="secondary-list one-col">
|
|
|
|
|
<a-card
|
|
|
|
|
v-for="archivo in item.examen1"
|
|
|
|
|
: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>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<a-divider class="custom-divider" />
|
|
|
|
|
|
|
|
|
|
<div class="secondary-list one-col">
|
|
|
|
|
|
|
|
|
|
<a-card
|
|
|
|
|
v-for="archivo in archivosExamen1"
|
|
|
|
|
: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>
|
|
|
|
|
</a-card>
|
|
|
|
|
|
|
|
|
|
<!-- Examen 2 (domingo / slots 5-6) -->
|
|
|
|
|
<a-card v-if="item.examen2.length" class="year-section-card">
|
|
|
|
|
<div class="year-header">
|
|
|
|
|
<div class="year-icon"><FileSearchOutlined /></div>
|
|
|
|
|
<div>
|
|
|
|
|
<h3 class="year-title">{{ item.proceso.titulo }} — Domingo</h3>
|
|
|
|
|
<p class="year-subtitle">
|
|
|
|
|
{{ item.proceso.fecha_examen2
|
|
|
|
|
? new Date(item.proceso.fecha_examen2)
|
|
|
|
|
.toLocaleDateString('es-PE', { day:'2-digit', month:'long', year:'numeric' })
|
|
|
|
|
: ''
|
|
|
|
|
}}
|
|
|
|
|
</p>
|
|
|
|
|
</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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
<a-divider class="custom-divider" />
|
|
|
|
|
|
|
|
|
|
<div class="secondary-list one-col">
|
|
|
|
|
<a-card
|
|
|
|
|
v-for="archivo in item.examen2"
|
|
|
|
|
: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>
|
|
|
|
|
</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>
|
|
|
|
|
</a-card>
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
|