Commit dbf066eb authored by liboyang's avatar liboyang

新增页面

parent ce5e8b07
...@@ -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;
......
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