Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Asistencia
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Billy Larru
Asistencia
Commits
7e730210
Commit
7e730210
authored
Aug 17, 2018
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cambiando nombres de URI
parent
1d1369b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
general.js
src/main/webapp/js/general.js
+6
-6
crearRolPolicia.js
src/main/webapp/js/pages/crearRolPolicia.js
+6
-6
No files found.
src/main/webapp/js/general.js
View file @
7e730210
...
...
@@ -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/r
olPolicias"
;
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/tipoR
olPolicias"
;
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>
...
...
src/main/webapp/js/pages/crearRolPolicia.js
View file @
7e730210
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment