Commit cd56f3e3 authored by liboyang's avatar liboyang

新增页面

parent dd7f07b1
...@@ -133,7 +133,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -133,7 +133,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
getRecordsCount: function (data, success) { getRecordsCount: function (data, success) {
var body = JSON.stringify(data); var body = JSON.stringify(data);
$http({ $http({
method: 'GET', method: 'POST',
url: "../personPostApi/findPersonalDataCount", url: "../personPostApi/findPersonalDataCount",
data:body, data:body,
headers: {'Content-Type': 'application/json'} headers: {'Content-Type': 'application/json'}
......
...@@ -116,8 +116,8 @@ ...@@ -116,8 +116,8 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div style="padding-left: 27%;"> <div style="padding-left: 27%;" ng-if="postData.length>0">
<tm-pagination ng-if="show" conf="paginationConf" class="ul"></tm-pagination> <tm-pagination conf="paginationConf" class="ul"></tm-pagination>
</div> </div>
<h4 ng-if="postData.length==0">暂无记录。</h4> <h4 ng-if="postData.length==0">暂无记录。</h4>
</div> </div>
......
...@@ -38,7 +38,6 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http ...@@ -38,7 +38,6 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
itemsPerPage: 10, itemsPerPage: 10,
perPageOptions: [10, 20, 30, 40, 50] perPageOptions: [10, 20, 30, 40, 50]
}; };
$scope.show = true;
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd"); $scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
var getCountJson = function(){ var getCountJson = function(){
var json={}; var json={};
...@@ -72,7 +71,6 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http ...@@ -72,7 +71,6 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
return json; return json;
} }
var getJson = function () { var getJson = function () {
console.log($scope.paginationConf.currentPage+1,"in")
var json={}; var json={};
if (angular.isDefined($scope.applicantName)) { if (angular.isDefined($scope.applicantName)) {
json.applicantName=$scope.applicantName; json.applicantName=$scope.applicantName;
...@@ -101,17 +99,17 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http ...@@ -101,17 +99,17 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
json.getToCounty=[]; json.getToCounty=[];
} }
json.uploadDate = $("#datepicker").val(); json.uploadDate = $("#datepicker").val();
json.firstIndex=$scope.paginationConf.currentPage+1; json.firstIndex=$scope.paginationConf.currentPage;
json.pageSize=$scope.paginationConf.itemsPerPage; json.pageSize=$scope.paginationConf.itemsPerPage;
return json; return json;
} }
$scope.postData = []; $scope.postData = [];
$scope.paginationConf.totalItems = 0 $scope.paginationConf.totalItems = 0
$scope.doQuery = function () { $scope.doQuery = function () {
$scope.show = true; HttpService.getRecordsCount(getCountJson(), function (data) {
// HttpService.getRecordsCount(getCountJson, function (data) { $scope.paginationConf.totalItems = data;
// $scope.paginationConf.totalItems = data; console.log(data)
// }) })
HttpService.searchPostData(getJson(), function (data) { HttpService.searchPostData(getJson(), function (data) {
$scope.postData = data; $scope.postData = data;
console.log(data) console.log(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