Commit 9250964a4bbc66e953346c8377c43bcdff896ac2

Authored by Nicolás Guarnieri
1 parent 64d354f8ce
Exists in master and in 1 other branch develop

union con fecha

src/js/controller.js
... ... @@ -36,11 +36,17 @@ angular.module('focaAdminSeguimiento') .controller('focaAdminSeguimientoControll
36 36 getSeguimiento();
37 37 }
38 38 };
  39 +
  40 + $scope.fecha = function() {
  41 + getSeguimiento();
  42 + };
39 43  
40 44 function getSeguimiento () {
41 45 var datos = {
42 46 actividad: $scope.actividad,
43   - idUsuario: $scope.idUsuario
  47 + idUsuario: $scope.idUsuario,
  48 + fechaDesde: $scope.now,
  49 + fechaHasta: $scope.now
44 50 };
45 51  
46 52 focaAdminSeguimientoService.obtenerActividad(datos).then(function(datos) {
src/views/foca-admin-seguimiento.html
... ... @@ -14,6 +14,7 @@
14 14 ng-model="now"
15 15 class="btn col-12 my-1"
16 16 foca-focus="true"
  17 + ng-blur="fecha()"
17 18 hasta-hoy
18 19 />
19 20 <button