Commit 7c885cc3 authored by liboyang's avatar liboyang

表单验证

parent b6c99ff1
......@@ -17,28 +17,18 @@
<tbody>
<tr ng-repeat="item in resultData">
<td>{{$index+1}}</td>
<td>{{item.UPLOAD_DATE|date:'yyyy-MM-dd hh:mm:ss'}}</td>
<td>{{item.UPLOAD_DATE|myDateFilter}}</td>
<td>{{item.FILE_NAME}}</td>
<td>{{item.RECORD_NUMBER}}</td>
<td>{{item.FORM_START_TIME|date:'yyyy-MM-dd hh:mm:ss'}}</td>
<td>{{item.FORM_DEADLINE|date:'yyyy-MM-dd hh:mm:ss'}}</td>
<td ng-click="">
<button class="btn">解析</button>
<td>{{item.count}}</td>
<td>{{item.FORM_START_TIME|myDateFilter}}</td>
<td>{{item.FORM_DEADLINE|myDateFilter}}</td>
<td>
<button class="btn" ng-click="analyseToUpdateIfPost(item.FILE_ID)">解析</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="ui-dialog-confirm">
<div class="progress">
<div class="progress-bar progress-bar-success progress-bar-striped"
role="progressbar"
aria-valuemin="0"
aria-valuemax="100"
style="width: 90%"> 90% Complete (success)
</div>
</div>
</div>
<div style="text-align: center;">
<button class="btn btn-success" style="width: 70%" ng-click="closeThisDialog()">关闭</button>
</div>
\ No newline at end of file
......@@ -663,12 +663,13 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
})
},
analyseData:function(date,success){
date=date.substr(0,10);
console.log(date)
$http({
method: 'GET',
url: "../LogApi/selectAnalysisData"+urlTimeStamp(),
params:{
uploadDate:date
uploadDate:'2019-03-11'
}
}).then(function successCallback(response) {
success(response.data)
......@@ -689,6 +690,18 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success(response.data)
})
},
analyseToUpdateIfPostCard:function(fileid,uploadDate,success) {
$http({
method: 'GET',
url: "../LogApi/analysis"+urlTimeStamp(),
params:{
fileId:fileid,
printDate:uploadDate
}
}).then(function successCallback(response) {
success(response.data)
})
},
updateTaskListProcess:function(json,success){
var body = JSON.stringify(json);
$http({
......
......@@ -44,6 +44,14 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope.resultData = data;
console.log($scope.resultData)
})
$scope.analyseToUpdateIfPost=function(fileid){
console.log(uploadDate)
HttpService.analyseToUpdateIfPostCard(fileid,uploadDate,function(data){
if(data){
MessageService.showAlert("解析完成")
}
})
}
}]
});
......
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