Commit 301644a2 by Billy Larru

arreglando login

parent 626ce74f
......@@ -52,8 +52,7 @@ function defaultConfigHandsonTable() {
function mostrarVistaPrevia() {
axios.get(URI_ROL_POLICIA).then((response) => {
response.data = formatResponse(response);
debugger
if (response.data.status) {
handsonTable.destroy();
let container = document.getElementById("tblProyectado");
......@@ -72,16 +71,16 @@ function mostrarVistaPrevia() {
fecha_salida: dr.fecha_salida,
sede_id: d.sede_id,
sede_descripcion: d.sede_descripcion,
};
};
filas.push(objFila);
});
});
handsonTable = new Handsontable(container, {
data: response.data.data,
data: filas,
stretchH: 'all',
rowHeaders: true,
colHeaders: ['DNI', 'Apellidos y Nombres', 'Sede', 'Horario', 'Rol', 'Fecha Entrada', 'Hora entrada', 'Hora Salida', 'Fecha Salida'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment