Commit 7e730210 by Billy Larru

cambiando nombres de URI

parent 1d1369b1
......@@ -11,12 +11,12 @@ const PATH_SERVICIO_REST = 'http://app9.sacooliveros.edu.pe:8080/security-rest/a
//<editor-fold> SERVICIOS REST
//<editor-fold> MODULO DE POLICIAS
const URI_LISTAR_TIPOROL_POLICIA = "http://172.16.2.91:666/rolPolicias";
const URI_LISTAR_FRECUENCIA_ROL_POLICIA = "http://172.16.2.91:666/frecuenciaRolPolicias";
const URI_LISTAR_SEDES = "http://172.16.2.91:666/sedes";
const URI_LISTAR_ESTADO_ASISTENCIA = "http://172.16.2.91:666/estadoAsistencia";
const URI_LISTAR_POLICIAS = "http://172.16.2.91:666/policias";
const URI_LISTAR_ROL_POLICIA = "http://172.16.2.91:666/rolesPolicias";
const URI_TIPOROL_POLICIA = "http://172.16.2.91:666/tipoRolPolicias";
const URI_FRECUENCIA_ROL_POLICIA = "http://172.16.2.91:666/frecuenciaRolPolicias";
const URI_SEDES = "http://172.16.2.91:666/sedes";
const URI_ESTADO_ASISTENCIA = "http://172.16.2.91:666/estadoAsistencia";
const URI_POLICIAS = "http://172.16.2.91:666/policias";
const URI_ROL_POLICIA = "http://172.16.2.91:666/rolesPolicias";
//</editor-fold>
......
......@@ -7,7 +7,7 @@ function init() {
}
function listarRolesPolicias() {
axios.get(URI_LISTAR_ROL_POLICIA).then((result) => {
axios.get(URI_ROL_POLICIA).then((result) => {
let columns = [
{
title: `N°`,
......@@ -72,7 +72,7 @@ function listarRolesPolicias() {
}
function listarTipoRoles() {
axios.get(URI_LISTAR_TIPOROL_POLICIA).then((result) => {
axios.get(URI_TIPOROL_POLICIA).then((result) => {
let roles = result.data;
let html = "<option>[SELECCIONE]</option>";
roles.forEach(rol => html += `<option value="${rol.codigo}">${rol.descripcion}</option>`);
......@@ -82,7 +82,7 @@ function listarTipoRoles() {
function listarFrecuenciaRol() {
axios.get(URI_LISTAR_FRECUENCIA_ROL_POLICIA).then((result) => {
axios.get(URI_FRECUENCIA_ROL_POLICIA).then((result) => {
let frecuenciasRol = result.data;
let html = "<option>[SELECCIONE]</option>";
frecuenciasRol.forEach(f => html += `<option value="${f.codigo}">${f.descripcion}</option>`);
......@@ -91,7 +91,7 @@ function listarFrecuenciaRol() {
}
function listarSedes() {
axios.get(URI_LISTAR_SEDES).then((result) => {
axios.get(URI_SEDES).then((result) => {
let sedes = result.data;
sedes = _.orderBy(sedes, s => s.descripcion);
let html = "<option>[SELECCIONE]</option>";
......@@ -101,7 +101,7 @@ function listarSedes() {
}
function listarPolicias() {
axios.get(URI_LISTAR_POLICIAS).then((result) => {
axios.get(URI_POLICIAS).then((result) => {
let policias = result.data;
policias = _.orderBy(policias, p => p.nombres);
let html = "<option>[SELECCIONE]</option>";
......@@ -157,7 +157,7 @@ function registrarRolPolicia() {
debugger;
axios.post(URI_LISTAR_ROL_POLICIA, params)
axios.post(URI_POLICIA, params)
.then( (result) => {
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