Commit 1a2e66b4 by Billy Larru

renderizando estado en rol de policias

parent 7e730210
...@@ -40,7 +40,16 @@ function listarRolesPolicias() { ...@@ -40,7 +40,16 @@ function listarRolesPolicias() {
}, },
{ {
title: `ESTADO`, title: `ESTADO`,
data: `estado` data: `estado`,
render: (data) => {
let label;
if(Object.is(data, 1)){
return `<span class="label label-success">ACTIVO</span>`;
}else{
return `<span class="label label-danger">INACTIVO</span>`;
}
}
}, },
]; ];
...@@ -157,7 +166,7 @@ function registrarRolPolicia() { ...@@ -157,7 +166,7 @@ function registrarRolPolicia() {
debugger; debugger;
axios.post(URI_POLICIA, params) axios.post(URI_ROL_POLICIA, params)
.then( (result) => { .then( (result) => {
debugger debugger
......
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