You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
313 lines
6.7 KiB
Vue
313 lines
6.7 KiB
Vue
|
2 months ago
|
<script setup>
|
||
|
|
import { onMounted } from "vue"
|
||
|
|
import NavbarModerno from '../../nabvar.vue'
|
||
|
|
import FooterModerno from '../../Footer.vue'
|
||
|
|
import { FileSearchOutlined } from "@ant-design/icons-vue"
|
||
|
|
import { useWebAdmisionStore } from '../../../store/web'
|
||
|
|
import { useProcesoAdmisionResultadoStore } from '../../../store/procesoAdmisionResultado.store'
|
||
|
|
|
||
|
|
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)
|
||
|
|
}
|
||
|
|
})
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<NavbarModerno />
|
||
|
|
|
||
|
|
<section id="proceso-resultado" class="convocatorias-modern">
|
||
|
|
<div class="section-container">
|
||
|
|
<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 -->
|
||
|
|
<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;">
|
||
|
|
{{ resultadosStore.error }}
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<template v-else-if="!resultadosStore.archivos.length && !resultadosStore.loading">
|
||
|
|
<div style="padding: 6px 2px; color: #666;">
|
||
|
|
Resultados próximamente.
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<template v-else>
|
||
|
|
<div style="padding: 6px 2px; color:#666;">
|
||
|
|
Resultados disponibles — {{ webStore.procesoPrincipal?.titulo }}
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
</a-card>
|
||
|
|
|
||
|
|
<!-- Cards de archivos -->
|
||
|
|
<a-card
|
||
|
|
v-if="resultadosStore.archivos.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>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<a-divider class="custom-divider" />
|
||
|
|
|
||
|
|
<div class="secondary-list one-col">
|
||
|
|
<a-card
|
||
|
|
v-for="archivo in resultadosStore.archivos"
|
||
|
|
: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>
|
||
|
|
</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>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
|
||
|
|
<FooterModerno />
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<style scoped>
|
||
|
|
.convocatorias-modern {
|
||
|
|
position: relative;
|
||
|
|
padding: 40px 0;
|
||
|
|
font-family: "Times New Roman", Times, serif;
|
||
|
|
background: #fbfcff;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.convocatorias-modern::before {
|
||
|
|
content: "";
|
||
|
|
position: absolute;
|
||
|
|
inset: 0;
|
||
|
|
pointer-events: none;
|
||
|
|
z-index: 0;
|
||
|
|
background-image:
|
||
|
|
repeating-linear-gradient(
|
||
|
|
to right,
|
||
|
|
rgba(13, 27, 82, 0.06) 0,
|
||
|
|
rgba(13, 27, 82, 0.06) 1px,
|
||
|
|
transparent 1px,
|
||
|
|
transparent 24px
|
||
|
|
),
|
||
|
|
repeating-linear-gradient(
|
||
|
|
to bottom,
|
||
|
|
rgba(13, 27, 82, 0.06) 0,
|
||
|
|
rgba(13, 27, 82, 0.06) 1px,
|
||
|
|
transparent 1px,
|
||
|
|
transparent 24px
|
||
|
|
);
|
||
|
|
opacity: 0.55;
|
||
|
|
}
|
||
|
|
|
||
|
|
.section-container {
|
||
|
|
position: relative;
|
||
|
|
z-index: 1;
|
||
|
|
max-width: 1200px;
|
||
|
|
margin: 0 auto;
|
||
|
|
padding: 0 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.section-header {
|
||
|
|
text-align: center;
|
||
|
|
margin-bottom: 50px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.header-with-badge {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.section-title {
|
||
|
|
font-size: 2.6rem;
|
||
|
|
font-weight: 700;
|
||
|
|
color: #0d1b52;
|
||
|
|
margin: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.section-subtitle {
|
||
|
|
font-size: 1.125rem;
|
||
|
|
color: #666;
|
||
|
|
max-width: 640px;
|
||
|
|
margin: 14px auto 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.main-convocatoria-card {
|
||
|
|
position: relative;
|
||
|
|
border: none;
|
||
|
|
box-shadow: 0 10px 34px rgba(0, 0, 0, 0.08);
|
||
|
|
border-radius: 16px;
|
||
|
|
margin-bottom: 18px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.main-convocatoria-card :deep(.ant-card-body) {
|
||
|
|
padding: 28px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.card-badge {
|
||
|
|
position: absolute;
|
||
|
|
top: -12px;
|
||
|
|
left: 24px;
|
||
|
|
background: linear-gradient(45deg, #1890ff, #52c41a);
|
||
|
|
color: white;
|
||
|
|
padding: 6px 16px;
|
||
|
|
border-radius: 999px;
|
||
|
|
font-size: 0.75rem;
|
||
|
|
font-weight: 700;
|
||
|
|
}
|
||
|
|
|
||
|
|
.year-section-card {
|
||
|
|
border: none;
|
||
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
|
||
|
|
border-radius: 16px;
|
||
|
|
margin-top: 18px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.year-section-card :deep(.ant-card-body) {
|
||
|
|
padding: 22px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.year-header {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.year-icon {
|
||
|
|
width: 44px;
|
||
|
|
height: 44px;
|
||
|
|
border-radius: 999px;
|
||
|
|
display: grid;
|
||
|
|
place-items: center;
|
||
|
|
background: rgba(24, 144, 255, 0.12);
|
||
|
|
color: #1890ff;
|
||
|
|
font-size: 18px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.year-title {
|
||
|
|
margin: 0;
|
||
|
|
font-size: 1.35rem;
|
||
|
|
color: #1a237e;
|
||
|
|
font-weight: 700;
|
||
|
|
font-family: "Times New Roman", Times, serif;
|
||
|
|
}
|
||
|
|
|
||
|
|
.year-subtitle {
|
||
|
|
margin: 4px 0 0;
|
||
|
|
color: #666;
|
||
|
|
font-size: 0.95rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.custom-divider {
|
||
|
|
margin: 18px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.secondary-convocatoria-card {
|
||
|
|
border: none;
|
||
|
|
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
|
||
|
|
border-radius: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.secondary-convocatoria-card :deep(.ant-card-body) {
|
||
|
|
padding: 18px;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
justify-content: center;
|
||
|
|
min-height: 100px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.convocatoria-header {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: flex-start;
|
||
|
|
gap: 14px;
|
||
|
|
margin-bottom: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.secondary-title {
|
||
|
|
margin: 0;
|
||
|
|
font-size: 1.05rem;
|
||
|
|
color: #1a237e;
|
||
|
|
text-align: center;
|
||
|
|
text-transform: uppercase;
|
||
|
|
font-family: "Times New Roman", Times, serif;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-tag {
|
||
|
|
font-weight: 700;
|
||
|
|
padding: 4px 12px;
|
||
|
|
border-radius: 999px;
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.card-footer {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
margin-top: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.card-footer > :last-child {
|
||
|
|
margin-left: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.secondary-list.one-col {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr;
|
||
|
|
gap: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 992px) {
|
||
|
|
.section-title { font-size: 2.1rem; }
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.convocatorias-modern { padding: 55px 0; }
|
||
|
|
}
|
||
|
|
</style>
|