From 7a1d00d56c10d74d76432d18c4a4b3947e6c49a4 Mon Sep 17 00:00:00 2001 From: elmer-20 <80175046+elmer-20@users.noreply.github.com> Date: Fri, 13 Mar 2026 17:54:04 -0500 Subject: [PATCH] 123 --- .../WebPageSections/HeroSection.vue | 61 +++++--- .../navbarcontent/ProcesoResultado.vue | 131 +++++++++++++++--- 2 files changed, 159 insertions(+), 33 deletions(-) diff --git a/front/src/components/WebPageSections/HeroSection.vue b/front/src/components/WebPageSections/HeroSection.vue index a682165..5546700 100644 --- a/front/src/components/WebPageSections/HeroSection.vue +++ b/front/src/components/WebPageSections/HeroSection.vue @@ -54,20 +54,30 @@

{{ procesoPrincipal?.titulo ?? 'Proceso vigente' }}

- -

+

- {{ fechasExamen }} -

- - - Resultados del Examen - + + {{ f.label }}: {{ f.fecha }} + +
+ + + Resultados del {{ f.label }} + +
+
+ + @@ -98,24 +108,41 @@ const resultadosStore = useProcesoAdmisionResultadoStore() const procesoPrincipal = computed(() => webStore.procesoPrincipal) const hayResultados = computed(() => resultadosStore.archivos.length > 0) +const hayExamen1 = computed(() => { + return resultadosStore.archivos.some(a => a.orden === 1 || a.orden === 2) +}) + +const hayExamen2 = computed(() => { + return resultadosStore.archivos.some(a => a.orden === 5 || a.orden === 6) +}) const fechasExamen = computed(() => { const p = procesoPrincipal.value - if (!p) return '' + if (!p) return [] + const fmt = (iso) => { if (!iso) return null const d = new Date(iso) if (Number.isNaN(d.getTime())) return null return d.toLocaleDateString('es-PE', { day: '2-digit', month: 'long' }) } + + const fechas = [] + const f1 = fmt(p.fecha_examen1) const f2 = fmt(p.fecha_examen2) - if (f1 && f2) return `${f1} • ${f2}` - return f1 ?? f2 ?? '' + + if (f1) fechas.push({ label: "Sábado", fecha: f1, tipo: 1 }) + if (f2) fechas.push({ label: "Domingo", fecha: f2, tipo: 2 }) + + return fechas }) -function irAResultados() { - router.push('/proceso-resultado') +function irAResultados(tipo) { + router.push({ + path: '/proceso-resultado', + query: { examen: tipo } + }) } onMounted(async () => { diff --git a/front/src/components/WebPageSections/navbarcontent/ProcesoResultado.vue b/front/src/components/WebPageSections/navbarcontent/ProcesoResultado.vue index 758ff63..d0805dc 100644 --- a/front/src/components/WebPageSections/navbarcontent/ProcesoResultado.vue +++ b/front/src/components/WebPageSections/navbarcontent/ProcesoResultado.vue @@ -1,5 +1,5 @@ -