report changes

This commit is contained in:
gandhimathi 2018-08-21 20:23:38 +05:30
parent d9936a4e27
commit 7a9173a82f

View File

@ -2,7 +2,6 @@
/*** controller***/
app.controller('report_markcard_statusCtrl', ["$scope", "$filter","$rootScope", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', '$window',"dateListDescService","$modal",
function ($scope, $filter,$rootScope, apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window, dateListDescService,$modal,$log) {
/**
* auto call tracking
*/
@ -47,7 +46,7 @@ app.controller('report_markcard_statusCtrl', ["$scope", "$filter","$rootScope",
};
$scope.filters = function () {
var filterlist = {
var filterlist = {
method: 'POST',
url: apiPoint.url + 'report_filters/',
headers: {
@ -82,6 +81,19 @@ app.controller('report_markcard_statusCtrl', ["$scope", "$filter","$rootScope",
}
});
}
/* watch university model for bind batch objects*/
$scope.$watch('univModel.university', function (newValue,oldValue) {
if(newValue==undefined || newValue==''){
$scope.filterBatchDetails="";
}
else{
if(angular.isString(newValue)){
$scope.filterBatchDetails=angular.fromJson(newValue);
}
}
});
$scope.show = false;
$scope.onSubmit = function (form) {