Commit df6f65c5 authored by ad's avatar ad

Merge branch 'dev' of…

Merge branch 'dev' of http://121.22.111.250:8000/YX_IDENT_auxiliary/YX_IDENT_beijing_auxiliary into dev
parents ffad0b2b 835eccb8
...@@ -119,7 +119,6 @@ ...@@ -119,7 +119,6 @@
<td></td> <td></td>
</tr> </tr>
<tr ng-repeat="police in item.policeList"> <tr ng-repeat="police in item.policeList">
<td></td>
<td>{{police.ID}}</td> <td>{{police.ID}}</td>
<td>{{police.GAJG_DM}}</td> <td>{{police.GAJG_DM}}</td>
<td>{{police.GAJG_MC}}</td> <td>{{police.GAJG_MC}}</td>
......
...@@ -40,11 +40,18 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http']) ...@@ -40,11 +40,18 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
$scope.currentTab = 0; $scope.currentTab = 0;
$scope.func = function (index) { $scope.func = function (index) {
for (var idx in $scope.cycleSheetData) { for (var idx in $scope.receitpData) {
if (index == idx) { if (index == idx) {
$scope.cycleSheetData[idx].isActive = true; $scope.receitpData[idx].isActive = true;
} else { } else {
$scope.cycleSheetData[idx].isActive = false; $scope.receitpData[idx].isActive = false;
}
}
for (var idx in $scope.receitpHistoryData) {
if (index == idx) {
$scope.receitpHistoryData[idx].isActive = true;
} else {
$scope.receitpHistoryData[idx].isActive = false;
} }
} }
$scope.currentTab = index; $scope.currentTab = index;
...@@ -87,14 +94,14 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http']) ...@@ -87,14 +94,14 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
} }
HttpService.getHistoryReceitp(startDate,endDate,function(data){ HttpService.getHistoryReceitp(startDate,endDate,function(data){
$scope.receitpHistoryData=data; $scope.receitpHistoryData=data;
for(var i=0;i<$scope.receitpData.length;i++){ for(var i=0;i<$scope.receitpHistoryData.length;i++){
if(i==$scope.currentTab){ if(i==$scope.currentTab){
$scope.receitpData[i].isActive=true; $scope.receitpHistoryData[i].isActive=true;
}else{ }else{
$scope.receitpData[i].isActive=false; $scope.receitpHistoryData[i].isActive=false;
} }
} }
console.log($scope.receitpData); console.log($scope.receitpHistoryData);
}) })
} }
...@@ -112,10 +119,12 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http']) ...@@ -112,10 +119,12 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
} }
$scope.printReceitp = function(typeCode) { $scope.printReceitp = function(typeCode) {
var date = $('#datepicker').val(); var startDate=$('#datepicker1').val();
var endDate=$('#datepicker2').val();
var json={ var json={
type:typeCode, type:typeCode,
date:date, startDate:startDate,
endDate:endDate,
list:[] list:[]
} }
var checks = $(".checkAllPolice:checked") var checks = $(".checkAllPolice:checked")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment