|
@@ -389,38 +389,40 @@
|
389
|
389
|
$scope.changeCheckBox1=function(data){
|
390
|
390
|
console.log($scope.my_power);
|
391
|
391
|
for(var i=0;i<$scope.my_power.length;i++){
|
392
|
|
- if(!$scope.my_power[i].biaoshi){
|
393
|
|
- if($scope.my_power[i].children){
|
394
|
|
- for(var j=0;j<$scope.my_power[i].children.length;j++){
|
395
|
|
- $scope.my_power[i].children[j].biaoshi=false
|
396
|
|
- if($scope.my_power[i].children[j].children){
|
397
|
|
- for(var k=0;k<$scope.my_power[i].children[j].children.length;k++){
|
398
|
|
- $scope.my_power[i].children[j].children[k].biaoshi=false
|
399
|
|
- if($scope.my_power[i].children[j].children[k].children){
|
400
|
|
- for(var l=0;l<$scope.my_power[i].children[j].children[k].children.length;l++){
|
401
|
|
- $scope.my_power[i].children[j].children[k].children[l].biaoshi=false
|
|
392
|
+ if(data.id === $scope.my_power[i].id){
|
|
393
|
+ if(!$scope.my_power[i].biaoshi){
|
|
394
|
+ if($scope.my_power[i].children){
|
|
395
|
+ for(var j=0;j<$scope.my_power[i].children.length;j++){
|
|
396
|
+ $scope.my_power[i].children[j].biaoshi=false
|
|
397
|
+ if($scope.my_power[i].children[j].children){
|
|
398
|
+ for(var k=0;k<$scope.my_power[i].children[j].children.length;k++){
|
|
399
|
+ $scope.my_power[i].children[j].children[k].biaoshi=false
|
|
400
|
+ if($scope.my_power[i].children[j].children[k].children){
|
|
401
|
+ for(var l=0;l<$scope.my_power[i].children[j].children[k].children.length;l++){
|
|
402
|
+ $scope.my_power[i].children[j].children[k].children[l].biaoshi=false
|
|
403
|
+ }
|
402
|
404
|
}
|
403
|
405
|
}
|
404
|
406
|
}
|
405
|
407
|
}
|
406
|
408
|
}
|
407
|
|
- }
|
408
|
|
- }else{
|
409
|
|
- if($scope.my_power[i].children){
|
410
|
|
- for(var j=0;j<$scope.my_power[i].children.length;j++){
|
411
|
|
- $scope.my_power[i].children[j].biaoshi=true
|
412
|
|
- if($scope.my_power[i].children[j].children){
|
413
|
|
- for(var k=0;k<$scope.my_power[i].children[j].children.length;k++){
|
414
|
|
- $scope.my_power[i].children[j].children[k].biaoshi=true
|
415
|
|
- if($scope.my_power[i].children[j].children[k].children){
|
416
|
|
- for(var l=0;l<$scope.my_power[i].children[j].children[k].children.length;l++){
|
417
|
|
- $scope.my_power[i].children[j].children[k].children[l].biaoshi=true
|
|
409
|
+ }else{
|
|
410
|
+ if($scope.my_power[i].children){
|
|
411
|
+ for(var j=0;j<$scope.my_power[i].children.length;j++){
|
|
412
|
+ $scope.my_power[i].children[j].biaoshi=true
|
|
413
|
+ if($scope.my_power[i].children[j].children){
|
|
414
|
+ for(var k=0;k<$scope.my_power[i].children[j].children.length;k++){
|
|
415
|
+ $scope.my_power[i].children[j].children[k].biaoshi=true
|
|
416
|
+ if($scope.my_power[i].children[j].children[k].children){
|
|
417
|
+ for(var l=0;l<$scope.my_power[i].children[j].children[k].children.length;l++){
|
|
418
|
+ $scope.my_power[i].children[j].children[k].children[l].biaoshi=true
|
|
419
|
+ }
|
418
|
420
|
}
|
419
|
421
|
}
|
420
|
422
|
}
|
421
|
423
|
}
|
422
|
|
- }
|
423
|
|
- }
|
|
424
|
+ }
|
|
425
|
+ }
|
424
|
426
|
}
|
425
|
427
|
}
|
426
|
428
|
}
|