Browse Source

fix: 分页

maopixin 2 years ago
parent
commit
03a5cf9b50

+ 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,