Commit 059071d2 authored by dahai's avatar dahai

Merge remote-tracking branch 'origin/dev' into dev

parents 87f95e85 dbf066eb
...@@ -8,16 +8,14 @@ ...@@ -8,16 +8,14 @@
<th>身份证号</th> <th>身份证号</th>
<th>姓名</th> <th>姓名</th>
<th>性别</th> <th>性别</th>
<th>任务单编号</th>
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="item in personInfo"> <tr ng-repeat="item in personInfo">
<td>{{$index + 1}}</td> <td>{{$index + 1}}</td>
<td>{{item.idCard}}</td> <td>{{item.ID_NO}}</td>
<td>{{item.name}}</td> <td>{{item.NAME}}</td>
<td ng-if="item.sex==1"></td> <td ng-if="item.SEX_NO==1"></td>
<td ng-if="item.sex==2"></td> <td ng-if="item.SEX_NO==2"></td>
<td>{{item.taskId}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
......
...@@ -267,6 +267,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -267,6 +267,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
if(date==""){ if(date==""){
date=$filter("date")(new Date(), "yyyy-MM-dd"); date=$filter("date")(new Date(), "yyyy-MM-dd");
} }
console.log(oldPackageName,date)
$http({ $http({
method: 'GET', method: 'GET',
url: "../LogApi/selectAnalysisLogCount"+urlTimeStamp(), url: "../LogApi/selectAnalysisLogCount"+urlTimeStamp(),
...@@ -451,14 +452,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -451,14 +452,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}) })
}, },
addFailedCard:function(data,succuss){ addFailedCard:function(data,succuss){
var body = JSON.stringify(idCardArr); var body = JSON.stringify(data);
$http({ $http({
method: 'POST', method: 'POST',
url: "../FailedCardApi/selectInfoByCardId", url: "../FailedCardApi/insertFailedCard",
data: body, data: body,
headers: {'Content-Type': 'application/json'} headers: {'Content-Type': 'application/json'}
}).then(function successCallback(response) { }).then(function successCallback(response) {
success(response.data) succuss(response.data)
}) })
} }
} }
......
...@@ -38,9 +38,10 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -38,9 +38,10 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
var list=[]; var list=[];
for (var i=0;i<result.length;i++){ for (var i=0;i<result.length;i++){
var json = {}; var json = {};
json.idCard=result[i][0]; json.cardId=result[i][0];
json.reason=result[i][1]; json.note=result[i][1];
json.failedType=result[i][2]; json.failedCardReasonId=result[i][2];
json.initiator = $rootScope.loginData.roleList[0].process
list.push(json) list.push(json)
} }
console.log(list) console.log(list)
...@@ -52,7 +53,7 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -52,7 +53,7 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
controller: ['$scope', 'HttpService','MessageService',function ($scope,HttpService,MessageService) { controller: ['$scope', 'HttpService','MessageService',function ($scope,HttpService,MessageService) {
var idCardArr =[]; var idCardArr =[];
for(var i=0;i<list.length;i++){ for(var i=0;i<list.length;i++){
idCardArr.push(list[i].idCard); idCardArr.push(list[i].cardId);
} }
HttpService.getPersonInfo(idCardArr,function(data){ HttpService.getPersonInfo(idCardArr,function(data){
$scope.personInfo = data; $scope.personInfo = data;
...@@ -62,7 +63,7 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -62,7 +63,7 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
HttpService.addFailedCard(list,function(data){ HttpService.addFailedCard(list,function(data){
$scope.closeThisDialog(); $scope.closeThisDialog();
MessageService.showAlert("添加成功"); MessageService.showAlert("添加成功");
console.log($scope.cancelAdd) console.log(data)
}) })
} }
}] }]
......
...@@ -32,11 +32,10 @@ angular.module('AvatarCheck.analysisLog', ['ngRoute', 'AvatarCheck.http', 'tm.pa ...@@ -32,11 +32,10 @@ angular.module('AvatarCheck.analysisLog', ['ngRoute', 'AvatarCheck.http', 'tm.pa
$scope.getAnalyseLog = function(){ $scope.getAnalyseLog = function(){
// HttpService.selectAnalyseLogCount($scope.oldPackageName,$("#datepicker").val(),function (data) { HttpService.selectAnalyseLogCount($scope.oldPackageName,$("#datepicker").val(),function (data) {
// $scope.paginationConf.totalItems = data; $scope.paginationConf.totalItems = data;
// console.log($scope.paginationConf.totalItems) console.log($scope.paginationConf.totalItems)
// }) })
console.log($scope.oldPackageName,document.getElementById("datepicker").value)
HttpService.selectAnalyseLog($scope.oldPackageName,$("#datepicker").val(),$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data){ HttpService.selectAnalyseLog($scope.oldPackageName,$("#datepicker").val(),$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data){
$scope.analyseLog = data; $scope.analyseLog = data;
console.log($scope.analyseLog) console.log($scope.analyseLog)
......
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