瀏覽代碼

fix: 分页

maopixin 2 年之前
父節點
當前提交
03a5cf9b50
共有 1 個文件被更改,包括 7 次插入0 次删除
  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,