Bladeren bron

fix: 分页

maopixin 2 jaren geleden
bovenliggende
commit
03a5cf9b50
1 gewijzigde bestanden met toevoegingen van 7 en 0 verwijderingen
  1. 7 0
      src/main/resources/static/app/business/purchase/controller/purchaseListCtrl.js

+ 7 - 0
src/main/resources/static/app/business/purchase/controller/purchaseListCtrl.js

@@ -13,6 +13,13 @@ angular.module('app.supervise').controller("purchaseListCtrl", function ($scope,
13 13
 	};
14 14
 	$scope.loadData();
15 15
 
16
+	$scope.goPage = function(pageNum) {
17
+		if ($scope.pageInfo.pageNum != pageNum && pageNum > 0) {
18
+			$scope.pageInfo.pageNum = pageNum;
19
+			$scope.loadData();
20
+		}
21
+	}
22
+
16 23
 	$scope.addRow = function() {
17 24
 		$state.go("app.business.gxhttz-add", {
18 25
 			info: 0,