The Parámetros module is the system-wide configuration centre for each UZDI unit. Administrators can update institutional identity data, tune security policies, and control automated notification behaviour — all from a single page atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Zapiony/PUCE_UZDI_2026/llms.txt
Use this file to discover all available pages before exploring further.
/app/parametros. Access is restricted to users with tppr_id >= 3 (Administrador and Superadministrador); lower-privilege users are redirected to the dashboard by the router guard.
The page is organised as a responsive card grid with three independent configuration sections. Each section has its own Guardar button, so you can save changes to one area without affecting the others.
Changes to each section take effect immediately within the current session once saved. Organisational data is persisted to the backend via
PATCH /api/v1/uzdi/:id. Security and notification settings are stored in localStorage under the keys uzdi_params_seg and uzdi_params_notif respectively.Section 1 — Organización
Organización
Stores the institutional identity of the UZDI unit assigned to the currently logged-in administrator. Data is loaded on mount from
GET /api/v1/uzdi/:id (where :id is the uzdi_id on the user’s session token).Editable Fields
| Field | Description |
|---|---|
| Nombre de la unidad | Official name of the UZDI office |
| Zona | Geographic zone code (e.g. Zona 9) |
| Teléfono | Contact phone number |
| Dirección | Physical address of the unit |
| Correo institucional | Official email address (validated as email format) |
How to Save
Edit the fields
Click into any field in the Organización card and update the value. Changes are tracked reactively — no separate “Edit mode” toggle is needed in this section.
Click Guardar
Click the Guardar button at the bottom of the card. While the save is in progress the button shows
"Guardando…" and is temporarily disabled to prevent duplicate submissions.Confirm success
On a successful save a green confirmation banner appears at the top of the card:
✅ Cambios guardados correctamente.The banner fades automatically after 2.8 seconds. If the backend is unreachable the error is swallowed silently — verify the backend connection if the banner does not appear.
The Organización form only loads after
uzdi_id is read from the session token. If the currently logged-in user has no UZDI assigned, the form is replaced with the message: “El usuario no tiene UZDI asignada.” Assign a uzdi_id to the account via the Usuarios module to resolve this.Section 2 — Seguridad
Seguridad
Controls access and credential policies for the UZDI platform. Settings are saved to
localStorage under the key uzdi_params_seg and loaded automatically on the next visit.Editable Fields
| Field | Type | Range | Default | Description |
|---|---|---|---|---|
| Tiempo de sesión inactiva | Number (minutes) | 5 – 120 | 30 | Idle session timeout before the user is logged out |
| Intentos de login antes de bloqueo | Number | 1 – 10 | 3 | Maximum consecutive failed login attempts before the account is blocked |
| Caducidad de contraseña | Number (days) | 30 – 365 | 90 | Number of days before users are required to change their password |
How to Save
Edit the numeric fields directly and click Guardar at the bottom of the Seguridad card. The same green confirmation banner ("Cambios guardados correctamente.") confirms a successful write to localStorage.
Section 3 — Notificaciones
Notificaciones
Configures how and when the system sends automated alerts about upcoming expediente expirations. Settings are persisted to
localStorage under the key uzdi_params_notif.Editable Fields
| Field | Type | Range | Default | Description |
|---|---|---|---|---|
| Días de anticipación para alertar vencimientos | Number | 1 – 30 | 7 | How many days before fecha_fin_medida an alert should be triggered |
| Correo destinatario de alertas | — | — | Email address that receives automated expiration notifications | |
| Alertas por correo electrónico | Toggle switch | on / off | on (enabled) | Master switch to enable or disable all email alert delivery |
The Email Alerts Toggle
The Alertas por correo electrónico field uses a custom CSS toggle switch (<label class="toggle">). Click it to flip between enabled (blue track, thumb slid right) and disabled (grey track, thumb left). The visual state is bound two-way to notif.emailActivo via v-model.
emailActivo is false, the destination correo field is still saved but no alerts will be dispatched.
How to Save
Click Guardar in the Notificaciones card. The confirmation banner appears for 2.8 seconds on success, just like the other sections.Saving Changes — Summary
Each of the three sections is saved independently:| Section | Save target | Endpoint / Storage |
|---|---|---|
| Organización | UZDI record in the database | PATCH /api/v1/uzdi/:id |
| Seguridad | Browser local storage | localStorage.uzdi_params_seg |
| Notificaciones | Browser local storage | localStorage.uzdi_params_notif |
"Guardando…" → green banner confirms success. Sections load their persisted values on every page mount, so previously saved settings are always restored across sessions.
Because Seguridad and Notificaciones settings are stored in
localStorage, they are browser- and device-specific. Clearing browser data or opening the app in a different browser will revert those two sections to their default values (sesionTimeout: 30, intentosMaximos: 3, cambioPassDias: 90, diasAnticipacionVencimiento: 7, emailActivo: true).