@if (error(); as message) {
{{ message }}
}
Indicadores
Los indicadores se recalculan automáticamente después de cada carga de información.
@for (domain of domains; track domain.id) {
@if (statuses()?.[domain.id]; as status) {
{{ domain.description }}
{{ statusLabel(status) }}
@if (status.fin) {
Último cálculo: {{ status.fin | date: 'dd/MM/yyyy HH:mm' }} ({{ status.duracion_s | number: '1.0-1' }} s)
}
@if (status.error) {
{{ status.error.tipo }}: {{ status.error.mensaje }}
}
}
}
Intentos de carga y validación
La bitácora registra únicamente conteos y formatos agregados; no almacena valores de los registros.
@if (attempts().length === 0) {
No se han registrado intentos de carga o validación.
} @else {
| Fecha | Operación | Destino | Resultado |
Leídas | Válidas | Escritas | Rechazadas | |
@for (attempt of attempts(); track attempt.id) {
| {{ attempt.fecha | date: 'dd/MM/yyyy HH:mm' }} |
{{ attempt.operacion === 'carga' ? 'Carga' : 'Validación' }} |
{{ attempt.fuentes.length ? attempt.fuentes[0].destino : (attempt.dominio ?? '—') }}@if (attempt.fuentes.length > 1) { +{{ attempt.fuentes.length - 1 }} } |
{{ outcomeLabel(attempt.resultado) }} |
{{ attempt.totales['leidas'] ?? 0 }} |
{{ attempt.totales['validas'] ?? 0 }} |
{{ (attempt.totales['insertadas'] ?? 0) + (attempt.totales['actualizadas'] ?? 0) }} |
{{ (attempt.totales['rechazadas_en_validacion'] ?? 0) + (attempt.totales['rechazadas_por_conflicto'] ?? 0) }} |
|
@if (expanded() === attempt.id) {
|
@if (attempt.error) {
{{ attempt.error.tipo }}: {{ attempt.error.mensaje }}
}
@for (source of attempt.fuentes; track $index) {
{{ source.destino }} desde {{ source.origen.tipo }}
@if (source.mapeo.requeridos_sin_mapear.length) {
· requeridos sin mapear: {{ source.mapeo.requeridos_sin_mapear.join(', ') }}
}
}
| Campo | Con valor | Vacíos | Errores | Formatos o valores rechazados |
@for (row of fieldsWithProblems(attempt); track row.target + row.name) {
| {{ row.name }} |
{{ row.field.con_valor }} |
{{ row.field.vacios }} |
@for (e of row.field.errores | keyvalue; track e.key) { {{ e.key }}: {{ e.value }} } |
@for (f of row.field.formatos_rechazados | keyvalue; track f.key) { {{ f.key }} ×{{ f.value }} }
@for (v of row.field.valores_fuera_de_catalogo | keyvalue; track v.key) { {{ v.key }} ×{{ v.value }} }
@if (row.field.valores_fuera_de_catalogo_poco_frecuentes) { otros ×{{ row.field.valores_fuera_de_catalogo_poco_frecuentes }} }
|
} @empty {
| No se encontraron errores ni campos vacíos. |
}
|
}
}
}