Commit 7c885cc3 authored by liboyang's avatar liboyang

表单验证

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