Преглед изворни кода

客户分配点击问题处理

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@9782 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq пре 8 година
родитељ
комит
9e4785d27d
1 измењених фајлова са 5 додато и 2 уклоњено
  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.isChanged = false;
+        $scope.isChangedAll = false;
 		$scope.changes = [];
 		$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;
 				item.distribute = $scope.checkboxes.checked;
 			});
 			});
+			$scope.isChanged = true;
 		};
 		};
 		
 		
 		// 点击其中一个明细的复选框
 		// 点击其中一个明细的复选框
@@ -17154,6 +17156,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             });
             });
 	     };
 	     };
 
 
+	     
         // 单选
         // 单选
         $scope.checkOne = function(product) {
         $scope.checkOne = function(product) {
         	ids = [];// 每次选择时先清空,防止重复
         	ids = [];// 每次选择时先清空,防止重复