Browse Source

客户分配点击问题处理

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

+ 5 - 2
src/main/webapp/resources/js/index/app.js

@@ -2035,12 +2035,14 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 		})
 		
 		$scope.isChanged = false;
+        $scope.isChangedAll = false;
 		$scope.changes = [];
 		// 点击勾选全部的复选框
-		$scope.checkAll = function() {
-			angular.forEach($scope.userinfos, function(item, value) {
+		$scope.checkAll = function(isChanged) {
+			angular.forEach($scope.userinfos, function(item, index) {
 				item.distribute = $scope.checkboxes.checked;
 			});
+			$scope.isChanged = true;
 		};
 		
 		// 点击其中一个明细的复选框
@@ -17154,6 +17156,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             });
 	     };
 
+	     
         // 单选
         $scope.checkOne = function(product) {
         	ids = [];// 每次选择时先清空,防止重复