PageSourceSearch

https://bomjesus.rj.gov.br/scripts/controllers_rotas_app/control_rota_conselho.js?v=1786572767

js bomjesus.rj.gov.br collected 2026-10-02 12:56:26 UTC 2,180 bytes, 62 lines download raw bytes

1'use strict';
2
3/**
4 * @ngdoc function
5 * @name minovateApp.controller: Conselho_municipalCtrl
6 * @description
7 * # Chama seção de conselhos municipais
8 * Controller of the portalgovApp
9 */
10angular.module('portalgovApp')
11	.controller('conselho_municipalCtrl', function ($scope, $modal, $http,$rootScope,MetaService) {
12		$scope.filteredTodos = []
13		$scope.conselhos=[];
14		
15		$http({method: 'POST', url: 'controllers/membros_e_conselho/class_conselho.php', data: $.param({func:'7'}), headers: {'Content-Type': 'application/x-www-form-urlencoded'} }).
16  		then(function(response) {
17  			var r=response.data;
18			$scope.conselhos = r;
19  			
20  			$scope.$watch('conselhos + data.currentPage + data.numPerPage', function() {
21  			  var begin = (($scope.data.currentPage - 1) * $scope.data.numPerPage), end = begin + $scope.data.numPerPage;
22  			  $scope.filteredTodos = $scope.conselhos.slice(begin, end);
23  		    });
24  			
25  			$scope.data.totalItems = $scope.conselhos.length;
26  		});
27		
28		$rootScope.metaservice = MetaService;
29  		$rootScope.metaservice.set("Conselhos Municipais","","");
30	
31		$scope.change_page = function(page){
32			$scope.data.currentPage=page;	
33		};
34	
35		$scope.data ={
36			currentPage: 1,
37	  		numPerPage: 25,
38  			maxSize: 5
39		};
40	})
41	.controller('conselho_municipal_viewCtrl', function ($scope, $modal, $http, $stateParams,$rootScope,MetaService, $sce) {
42		var id = $stateParams.id;
43  		$http({method: 'POST', url: 'controllers/membros_e_conselho/class_conselho.php', data: $.param({func:'8', id: id}), headers: {'Content-Type': 'application/x-www-form-urlencoded'} }).
44  		then(function(response) {
45  			var r=response.data;
46  			$scope.conselho = r[0];
47  			$scope.conselho.maps = $sce.trustAsHtml(unescape($scope.conselho.maps));
48			
49  			$rootScope.metaservice = MetaService;
50  			$rootScope.metaservice.set($scope.conselho.nome,"","");
51  			
52  		});
53	    
54      $http({method: 'POST', url: 'controllers/membros_e_conselho/class_conselho.php', data: $.param({func:'9', id: id}), headers: {'Content-Type': 'application/x-www-form-urlencoded'} }).
55      then(function(response) {
56        var r=response.data;
57        $scope.anexos = r;
58      
59      });
60
61	});
62	

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.