Commit 46d4b465 by Billy Larru

arreglando el listado de policias en el modal nuevoRol de policias

parent 14dd6b97
...@@ -15,7 +15,7 @@ function initDatePicker(selectorName) { ...@@ -15,7 +15,7 @@ function initDatePicker(selectorName) {
function listarRolesPolicias(objParams = {}) { function listarRolesPolicias(objParams = {}) {
debugger debugger
axios.get(URI_ROL_POLICIA, objParams).then((result) => { axios.get(URI_ROL_POLICIA, objParams).then((response) => {
let columns = [ let columns = [
{ {
title: `N°`, title: `N°`,
...@@ -91,7 +91,7 @@ function listarRolesPolicias(objParams = {}) { ...@@ -91,7 +91,7 @@ function listarRolesPolicias(objParams = {}) {
let footer = false let footer = false
makeDatatable({ makeDatatable({
data: result.data, data: response.data,
columns: columns, columns: columns,
columnDefs: columnDefs, columnDefs: columnDefs,
wrapsNameDatatable: wrapsNameDatatable, wrapsNameDatatable: wrapsNameDatatable,
...@@ -308,7 +308,7 @@ function mostrarModalNuevoRol() { ...@@ -308,7 +308,7 @@ function mostrarModalNuevoRol() {
listarTipoRoles(); listarTipoRoles();
listarFrecuenciaRol(); listarFrecuenciaRol();
listarSedes("#cboSedesModal"); listarSedes("#cboSedesModal");
listarPolicias(); listarPolicias("#cboPolicias");
$('.selectpicker').selectpicker({ $('.selectpicker').selectpicker({
......
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