Browse Source

筛选都重置页面为第一页

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@1204 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
suntg 10 years ago
parent
commit
701370679e
1 changed files with 20 additions and 0 deletions
  1. 20 0
      src/main/webapp/resources/js/index/app.js

+ 20 - 0
src/main/webapp/resources/js/index/app.js

@@ -817,10 +817,12 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		};
 		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 		// 选择查找日期
 		$scope.onDateCondition = function(){
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 		//设置为已查看
@@ -1013,6 +1015,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		
 		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 	}]);
@@ -1177,6 +1180,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		
 		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 	}]);
@@ -1338,6 +1342,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		
 		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 	}]);
@@ -1568,6 +1573,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
   		
   		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.customerParams.reload();
 		};
 	}]);
@@ -1731,11 +1737,13 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		
 		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 		
 		// 选择查找日期
 		$scope.onDateCondition = function(){
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 		
@@ -1907,11 +1915,13 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		
 		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 		
 		// 选择查找日期
 		$scope.onDateCondition = function(){
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 		
@@ -2019,6 +2029,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		
 		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 	}]);
@@ -2119,6 +2130,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		
 		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 		
@@ -2191,6 +2203,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		
 		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 		
@@ -2263,6 +2276,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		
 		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 		
@@ -2334,6 +2348,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		
 		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 		
@@ -2405,6 +2420,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		
 		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 		
@@ -2476,6 +2492,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		
 		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 		
@@ -2547,6 +2564,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		
 		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 		
@@ -2625,11 +2643,13 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 		
 		// 搜索框回车
 		$scope.onSearch = function() {
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};
 		
 		// 选择查找日期
 		$scope.onDateCondition = function(){
+			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};