Commit 001f69a8 authored by liboyang's avatar liboyang

质检切换制证类型

parent 9a403919
......@@ -119,7 +119,6 @@
<td></td>
</tr>
<tr ng-repeat="police in item.policeList">
<td></td>
<td>{{police.ID}}</td>
<td>{{police.GAJG_DM}}</td>
<td>{{police.GAJG_MC}}</td>
......
......@@ -40,13 +40,22 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
$scope.currentTab = 0;
$scope.func = function (index) {
for (var idx in $scope.cycleSheetData) {
for (var idx in $scope.receitpData) {
if (index == idx) {
$scope.cycleSheetData[idx].isActive = true;
$scope.receitpData[idx].isActive = true;
} 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;
}
}
console.log($scope.receitpHistoryData)
console.log($scope.receitpData)
$scope.currentTab = index;
}
......@@ -87,14 +96,14 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
}
HttpService.getHistoryReceitp(startDate,endDate,function(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){
$scope.receitpData[i].isActive=true;
$scope.receitpHistoryData[i].isActive=true;
}else{
$scope.receitpData[i].isActive=false;
$scope.receitpHistoryData[i].isActive=false;
}
}
console.log($scope.receitpData);
console.log($scope.receitpHistoryData);
})
}
......
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