up
This commit is contained in:
@@ -68,7 +68,7 @@ Layout::open('Dashboard Turnero', 'fas fa-chart-bar');
|
||||
</style>
|
||||
|
||||
<div class="page-header">
|
||||
<a href="<?= BASE_URL ?>/erp.php?m=turnero&v=recepcion" class="back-btn">
|
||||
<a href="<?= BASE_URL ?>erp.php?m=turnero&v=recepcion" class="back-btn">
|
||||
<i class="fas fa-arrow-left me-1"></i>Volver
|
||||
</a>
|
||||
<h1><i class="fas fa-chart-bar me-2 text-primary"></i>Dashboard Turnero</h1>
|
||||
@@ -84,7 +84,7 @@ Layout::open('Dashboard Turnero', 'fas fa-chart-bar');
|
||||
<button class="btn btn-outline-secondary btn-sm" onclick="cargarDatos()" title="Refrescar">
|
||||
<i class="fas fa-sync-alt"></i>
|
||||
</button>
|
||||
<a href="<?= BASE_URL ?>/erp.php?m=turnero&v=configuracion" class="btn btn-outline-secondary btn-sm">
|
||||
<a href="<?= BASE_URL ?>erp.php?m=turnero&v=configuracion" class="btn btn-outline-secondary btn-sm">
|
||||
<i class="fas fa-cogs"></i>
|
||||
</a>
|
||||
</div>
|
||||
@@ -151,7 +151,7 @@ Layout::open('Dashboard Turnero', 'fas fa-chart-bar');
|
||||
/* ═══════════════════════════════════════════════════════════
|
||||
Dashboard Turnero
|
||||
═══════════════════════════════════════════════════════════ */
|
||||
const API = '<?= BASE_URL ?>/modules/turnero/api/';
|
||||
const API = '<?= BASE_URL ?>modules/turnero/api/';
|
||||
const BASE_WA = '<?= BASE_URL ?>';
|
||||
let _turnos = []; // cache para búsqueda local
|
||||
let _autoReloadId = null;
|
||||
@@ -194,7 +194,7 @@ function mostrarError(msg) {
|
||||
|
||||
// ── Render ───────────────────────────────────────────────────
|
||||
function renderDashboard(json) {
|
||||
const { sesion, resumen, por_prioridad, por_lugar, consent_stats, turnos } = json;
|
||||
const { sesion, resumen, por_prioridad, por_lugar, consent_stats = {}, turnos } = json;
|
||||
|
||||
// ── Sesión info ────────────────────────────────────────
|
||||
const si = document.getElementById('sesionInfo');
|
||||
|
||||
Reference in New Issue
Block a user