Commit b893705d by Billy Larru

usan lista desordenada para mostrar los dias de un rol

parent f11476a7
......@@ -100,7 +100,7 @@ function listarRolesPolicias(objParams = {}) {
}).then((datatable) => {
$(datatable).on("click", ".ver-detalle", function () {
let data = $(datatable).DataTable().row($(this).parents("tr")).data();
console.log(data);
axios.get("modals/policias/mantenimientoRol/detalleRol.jspf").then((response) => {
debugger
......@@ -120,6 +120,9 @@ function listarRolesPolicias(objParams = {}) {
$("#spanSede").html(data.sede_descripcion);
$("#spanHorario").html(`${data.tiporol_descripcion} ${data.frecuencia_descripcion}`);
$("#spanRangoFechas").html(`${data.fecha_inicio} - ${data.fecha_fin}`);
let htmlList = ``;
data.detalles_rol.forEach(x => htmlList += `<li class="list-group-item" id="${x.id}">${x.fecha_entrada}</li>`);
$("#listaDias").html(htmlList);
}
});
......
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