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
982e61a6
Commit
982e61a6
authored
Aug 31, 2018
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avance de mostrar estados en asignar monto amanecida
parent
3f9b81d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
11 deletions
+45
-11
general.css
src/main/webapp/css/general.css
+8
-2
asignar_monto_amanecida.js
src/main/webapp/js/pages/asignar_monto_amanecida.js
+37
-9
No files found.
src/main/webapp/css/general.css
View file @
982e61a6
...
...
@@ -262,4 +262,10 @@ table.display tbody tr:hover td {
}
.datepicker
{
z-index
:
9999
!important
}
.daterangepicker
{
z-index
:
9999
!important
}
\ No newline at end of file
.daterangepicker
{
z-index
:
9999
!important
}
.col-centered
{
float
:
none
;
margin
:
0
auto
;
}
\ No newline at end of file
src/main/webapp/js/pages/asignar_monto_amanecida.js
View file @
982e61a6
...
...
@@ -33,7 +33,7 @@ function getColumns() {
contenido
=
"ACTIVO"
;
}
else
if
(
data
===
0
)
{
label
=
`label label-danger`
;
contenido
=
"
PAS
IVO"
;
contenido
=
"
INACT
IVO"
;
}
return
`<span class="
${
label
}
">
${
contenido
}
</span>`
;
...
...
@@ -44,8 +44,16 @@ function getColumns() {
data
:
null
,
className
:
'text-center'
,
render
:
(
data
)
=>
{
let
acciones
=
`<span data-placement="left" title="Editar" style="cursor: pointer"> <i class="editar icon-pencil text-slate-800"></i> </span>
<span data-placement="left" title="Eliminar" style="cursor: pointer"> <i class="eliminar icon-cancel-circle2 text-danger-700"></i> </span>`
;
let
editar
=
""
;
let
eliminar
=
""
;
if
(
data
.
estado
===
1
)
{
editar
=
`<span data-placement="left" title="Editar" style="cursor: pointer"> <i class="editar icon-pencil text-slate-800"></i> </span>`
;
eliminar
=
`<span data-placement="left" title="Eliminar" style="cursor: pointer"> <i class="eliminar fa fa-power-off text-danger-700"></i> </span>`
;
}
else
{
eliminar
=
`<span data-placement="left" title="Eliminar" style="cursor: pointer"> <i class="eliminar fa fa-power-off text-success-700"></i> </span>`
;
}
let
acciones
=
editar
+
eliminar
;
return
acciones
;
}
}
...
...
@@ -142,14 +150,34 @@ function mostrarModalEdicion(data = {}) {
}
function
mostrarModalEliminacion
(
data
)
{
// axios.put(URI_POLICIA_MONTOS_AMANECIDAS, data)
let
{
id
,
estado
}
=
data
;
let
mensaje
=
""
;
let
estado
=
0
;
swal
({
type
:
'success'
,
title
:
'¡Eliminado correctamente!'
,
showConfirmButton
:
false
,
timer
:
1500
title
:
'Está seguro de eliminar?'
,
text
:
""
,
type
:
'warning'
,
showCancelButton
:
true
,
confirmButtonColor
:
'#3085d6'
,
cancelButtonColor
:
'#d33'
,
confirmButtonText
:
'Sí, eliminar!'
}).
then
((
result
)
=>
{
if
(
result
.
value
)
{
ajaxWebService
.
patch
(
`
${
URI_POLICIA_MONTOS_AMANECIDAS
}
/
${
id
}
`
,
{
estado
}).
then
((
response
)
=>
{
if
(
response
.
status
)
{
swal
({
type
:
'success'
,
title
:
'¡Eliminado correctamente!'
,
showConfirmButton
:
false
,
timer
:
1500
});
listarMontos
();
}
});
}
});
}
...
...
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