Commit 29bb6299 authored by liboyang's avatar liboyang

修改打包分页问题

parent abc8f247
......@@ -39,7 +39,15 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
perPageOptions: [10, 20, 30, 40, 50]
};
$scope.doPackageQuery=function(){
$scope.paginationConf = {
currentPage: 1,
itemsPerPage: 10,
perPageOptions: [10, 20, 30, 40, 50]
};
}
$scope.doPackageQueryPage=function(){
var date = $("#datepicker").val();
var cardType = $("#cardType").val();
var packageType = $("#packageType").val();
......@@ -80,9 +88,11 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
$scope.packageData = data.list;
console.log(data)
})
}
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope.$watch('paginationConf.currentPage +paginationConf.itemsPerPage', $scope.doPackageQuery);
$scope.$watch('paginationConf.currentPage +paginationConf.itemsPerPage', $scope.doPackageQueryPage);
$scope.updateIsValid = function (id,isValid) {
HttpService.updateIsValidData(id,isValid,function(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment