Browse Source

跳转失败增加错误提示

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

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

@@ -7838,8 +7838,10 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
 		}
 		}
 	}]);
 	}]);
 	
 	
+	/**
+	 * 财务对账时,企业进行筛选操作
+	 */
 	app.controller('SearchCustInfoCtrl', ['$scope', '$modalInstance', 'suuorname', 'FaApCheck', function($scope, $modalInstance, suuorname, FaApCheck) {
 	app.controller('SearchCustInfoCtrl', ['$scope', '$modalInstance', 'suuorname', 'FaApCheck', function($scope, $modalInstance, suuorname, FaApCheck) {
-		
 		$scope.getData = function(){
 		$scope.getData = function(){
 		    FaApCheck.getAll(function(data){
 		    FaApCheck.getAll(function(data){
 				$scope.custs= data;
 				$scope.custs= data;
@@ -7864,11 +7866,14 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
 		}
 		}
 	}]);
 	}]);
 	
 	
-	app.controller('BusinessGroupsCtrl', ['$scope', 'GetProductInfo', function($scope, GetProductInfo) {
+	/**
+	 * 跳转到企业圈
+	 */
+	app.controller('BusinessGroupsCtrl', ['$scope', 'GetProductInfo', 'toaster', function($scope, GetProductInfo, toaster) {
 		GetProductInfo.businessGroups({}, function(data) {
 		GetProductInfo.businessGroups({}, function(data) {
 			window.open(data.url);
 			window.open(data.url);
 		}, function(response) {
 		}, function(response) {
-			
+			toaster.pop('error', '提示', response.data);
 		});
 		});
 	}]);
 	}]);