From 9250964a4bbc66e953346c8377c43bcdff896ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s?= Date: Mon, 12 Nov 2018 18:48:55 -0300 Subject: [PATCH] union con fecha --- src/js/controller.js | 8 +++++++- src/views/foca-admin-seguimiento.html | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/js/controller.js b/src/js/controller.js index cccf99b..0b15b72 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -36,11 +36,17 @@ angular.module('focaAdminSeguimiento') .controller('focaAdminSeguimientoControll getSeguimiento(); } }; + + $scope.fecha = function() { + getSeguimiento(); + }; function getSeguimiento () { var datos = { actividad: $scope.actividad, - idUsuario: $scope.idUsuario + idUsuario: $scope.idUsuario, + fechaDesde: $scope.now, + fechaHasta: $scope.now }; focaAdminSeguimientoService.obtenerActividad(datos).then(function(datos) { diff --git a/src/views/foca-admin-seguimiento.html b/src/views/foca-admin-seguimiento.html index 6f02c02..f503d18 100644 --- a/src/views/foca-admin-seguimiento.html +++ b/src/views/foca-admin-seguimiento.html @@ -14,6 +14,7 @@ ng-model="now" class="btn col-12 my-1" foca-focus="true" + ng-blur="fecha()" hasta-hoy />