$scope.searchEntity={};//定义搜索对象 //条件查询 $scope.search=function(page,rows){ $http.post('../brand/search.do?page='+page+"&rows="+rows, $scope.searchEntity).success( function(response){ $scope.paginationConf.totalItems=response.total;//总记录数 $scope.list=response.rows;//给列表变量赋值 } ); } |
修改reloadList方法
//刷新列表 $scope.reloadList=function(){ $scope.search( $scope.paginationConf.currentPage, $scope.paginationConf.itemsPerPage); } |