Browse Source

添加合作伙伴缓存关键词的清除

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@8341 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 9 years ago
parent
commit
314fec8c40
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/main/webapp/resources/js/index/app.js

+ 3 - 3
src/main/webapp/resources/js/index/app.js

@@ -13590,8 +13590,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 			getData : function($defer, params) {
 				$scope.loading = true;
 				var pageParams = params.url();
-				pageParams.keyword = $rootScope.enterpriseKeyword;
-				$scope.tip = $rootScope.enterpriseKeyword;
+				pageParams.keyword = $scope.keyword;
+				$scope.tip = $scope.keyword;
 				getService()[getState($scope.active)].call(null, BaseService.parseParams(pageParams), function(page) {
 					$scope.loading = false;
 					if(page) {
@@ -13608,7 +13608,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 
 		// 搜索框回车
 		$scope.onSearch = function(keyword) {
-			$rootScope.enterpriseKeyword = keyword;
+			$scope.keyword = keyword;
 			$scope.tableParams.page(1);
 			$scope.tableParams.reload();
 		};