Commit da1468e1 authored by liboyang's avatar liboyang

1.统一风格

2.分页
parent 9e970e27
......@@ -33,17 +33,21 @@ angular.module('AvatarCheck.analysisLog', ['ngRoute', 'AvatarCheck.http', 'tm.pa
};
$scope.getAnalyseLog=function(){
$scope.paginationConf.currentPage=0;
$scope.paginationConf.itemsPerPage=10;
if($scope.paginationConf.currentPage!=1){
$scope.paginationConf.currentPage=1;
$scope.paginationConf.itemsPerPage=10;
}else{
$scope.getAnalyseLogPage();
}
}
$scope.getAnalyseLogPage = function(){
HttpService.selectAnalyseLogCount($scope.oldPackageName,$("#datepicker").val(),function (data) {
$scope.paginationConf.totalItems = data;
console.log($scope.paginationConf.totalItems)
})
if($scope.paginationConf.currentPage==0){
$scope.paginationConf.currentPage=1;
}
// if($scope.paginationConf.currentPage==0){
// $scope.paginationConf.currentPage=1;
// }
HttpService.selectAnalyseLog($scope.oldPackageName,$("#datepicker").val(),$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data){
$scope.analyseLog = data;
console.log($scope.analyseLog)
......
......@@ -90,7 +90,14 @@
</div>
</div>
<div class="box box-default">
<strong class="box-header with-border">制证信息详情</strong>
<div class="box-header with-border">
<strong >制证信息详情</strong>
(<span style="color:#0b93d5;">每页显示{{paginationConf.itemsPerPage}}条/共
{{paginationConf.totalItems}}条</span>)
<div class="pull-right">
<span style="color:#9f191f;"><span style="margin-right: 15px;">普通证:{{simpleCardCount}}</span><span style="margin-right: 15px;">邮寄证:{{postCardCount}}</span><span>禁用数:{{forbiddenCount}}</span></span>
</div>
</div>
<div class="box-info" style="padding: 7px; padding-top: 0px;">
<div ng-if="packageData.length>0">
<table class="table table-bordered table-hover">
......@@ -120,7 +127,6 @@
</tr>
</tbody>
</table>
<p style="color:#9f191f;"><span style="margin-right: 15px;">普通证:{{simpleCardCount}}</span><span style="margin-right: 15px;">邮寄证:{{postCardCount}}</span><span>禁用数:{{forbiddenCount}}</span></p>
<div style="padding-left: 27%;">
<tm-pagination conf="paginationConf" class="ul"></tm-pagination>
</div>
......
......@@ -35,12 +35,16 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
})
$scope.paginationConf = {
currentPage: 1,
itemsPerPage: 10,
itemsPerPage:10,
perPageOptions: [10, 20, 30, 40, 50]
};
$scope.doPackageQuery=function(){
$scope.paginationConf.currentPage=0;
$scope.paginationConf.itemsPerPage=10;
if($scope.paginationConf.currentPage!=1){
$scope.paginationConf.currentPage=1;
$scope.paginationConf.itemsPerPage=10;
}else{
$scope.doPackageQueryPage();
}
}
$scope.doPackageQueryPage=function(){
var date = $("#datepicker").val();
......@@ -71,9 +75,9 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
if(date=='{{choseDate}}'){
date=$scope.choseDate
}
if($scope.paginationConf.currentPage==0){
$scope.paginationConf.currentPage=1
}
// if($scope.paginationConf.currentPage==0){
// $scope.paginationConf.currentPage=1
// }
HttpService.getPackageData($scope.uploadNo,$scope.idCard,$scope.oldPackageNo,$scope.newPackageNo,$scope.sljg,
cardType,packageType,downloadState,date,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data) {
$scope.paginationConf.totalItems=data.total;
......
......@@ -81,7 +81,9 @@
</div>
<div class="box box-default">
<strong class="box-header with-border">制证信息详情</strong>
<div class="box-header with-border"><strong>制证信息详情</strong>
(<span style="color:#0b93d5;">每页显示{{paginationConf.itemsPerPage}}条/共
{{paginationConf.totalItems}}条</span>)</div>
<div class="box-info" style="padding: 7px;padding-top: 0px;">
<table class="table table-bordered table-hover" ng-if="xmlDatas.length>0">
<thead>
......
......@@ -52,8 +52,12 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http'])
perPageOptions: [10, 20, 30, 40, 50]
};
$scope.doXmlQuery=function(){
$scope.paginationConf.currentPage=0;
$scope.paginationConf.itemsPerPage=10;
if($scope.paginationConf.currentPage!=1){
$scope.paginationConf.currentPage=1;
$scope.paginationConf.itemsPerPage=10;
}else{
$scope.doXmlQueryPage();
}
}
$scope.doXmlQueryPage = function() {
var startDate=$("#datepicker1").val();
......@@ -73,9 +77,9 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http'])
if(endDate=='{{choseDate}}'){
endDate=$scope.choseDate;
}
if($scope.paginationConf.currentPage==0){
$scope.paginationConf.currentPage=1
}
// if($scope.paginationConf.currentPage==0){
// $scope.paginationConf.currentPage=1
// }
if((startDate!=''&&endDate=='')||(endDate!=''&&startDate=='')){
MessageService.showAlert("请选择起始日期和结束日期")
}else{
......
......@@ -89,17 +89,21 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm
perPageOptions: [5 ,10 ,15 ,20 ,25]
};
$scope.getPostPackage=function(){
$scope.paginationConf.currentPage=0;
$scope.paginationConf.itemsPerPage=10;
if($scope.paginationConf.currentPage!=1){
$scope.paginationConf.currentPage=1;
$scope.paginationConf.itemsPerPage=10;
}else{
$scope.getPostPackagePage();
}
}
$scope.getPostPackagePage = function(){
HttpService.selectPostPackageCount($scope.fileName,$scope.state,$("#datepicker3").val(),function (data) {
$scope.paginationConf.totalItems = data.respData.string;
console.log($scope.paginationConf.totalItems)
})
if($scope.paginationConf.currentPage==0){
$scope.paginationConf.currentPage=1;
}
// if($scope.paginationConf.currentPage==0){
// $scope.paginationConf.currentPage=1;
// }
HttpService.selectPostPackage($scope.fileName,$scope.state,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,$("#datepicker3").val(),function(data){
$scope.postPackageData = data.respData;
console.log($scope.postPackageData)
......
......@@ -70,7 +70,9 @@
</div>
</div>
<div class="box box-default">
<strong class="box-header with-border">打包信息详情</strong>
<div class="box-header with-border"><strong>打包信息详情</strong>
(<span style="color:#0b93d5;">每页显示{{paginationConf.itemsPerPage}}条/共
{{paginationConf.totalItems}}条</span>)</div>
<div class="box-info" style="padding: 7px;padding-top: 0px;">
<table class="table table-bordered table-hover postTable" ng-if="packageLogData.length>0">
<thead>
......
......@@ -35,8 +35,12 @@ angular.module('AvatarCheck.packageLog', ['ngRoute', 'AvatarCheck.http', 'tm.pag
perPageOptions: [10, 20, 30, 40, 50]
};
$scope.getPackageLog=function(){
$scope.paginationConf.currentPage=0;
$scope.paginationConf.itemsPerPage=10;
if($scope.paginationConf.currentPage!=1){
$scope.paginationConf.currentPage=1;
$scope.paginationConf.itemsPerPage=10;
}else{
$scope.getPackageLogPage();
}
}
$scope.getPackageLogPage = function(){
var county = $("#county").val();
......@@ -44,9 +48,9 @@ angular.module('AvatarCheck.packageLog', ['ngRoute', 'AvatarCheck.http', 'tm.pag
$scope.paginationConf.totalItems = data;
console.log($scope.paginationConf.totalItems,"$scope.paginationConf.totalItems")
})
if($scope.paginationConf.currentPage==0){
$scope.paginationConf.currentPage=1
}
// if($scope.paginationConf.currentPage==0){
// $scope.paginationConf.currentPage=1
// }
HttpService.selectPackageLog($scope.newPackageName,$scope.idCard,$('#datepicker').val(),county,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data){
$scope.packageLogData = data;
console.log($scope.packageLogData,"$scope.packageLogData")
......
......@@ -82,7 +82,7 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="item in json.policeCardsList">
<tr ng-repeat="item in json.policeCardsList | orderBy:'acceptNo'">
<td>{{$index+1}}</td>
<td>{{item.ACCEPT_NO}}</td>
<td>{{item.NAME}}</td>
......
......@@ -12,6 +12,8 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
.controller('tagPrintCtrl', function ($scope, $rootScope, HttpService, $interval, MessageService, $timeout, $filter, ngDialog) {
$scope.acceptNo = 'ACCEPT_NO';
//Date picker
$('#datepicker').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
......
......@@ -40,7 +40,6 @@
<th><input type="checkbox" ng-click="selectAll(type.countyList,$event)" ng-checked="isSelectedAll($index)"></th>
<th><a ng-click="countyCode='taskId';desc=!desc">任务单编号</a></th>
<th>核验日期</th>
<th><a ng-click="countyCode='countyCode';desc=!desc">地区</a></th>
<th>组数</th>
<th><a ng-click="countyCode='groupNum';desc=!desc">受理组号</a></th>
<th>核验数量</th>
......@@ -57,7 +56,6 @@
<td ng-if="task.faileCount>0||(task.countyValidCount-task.specialCount)!=task.downloadCount"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-subject">{{task.saveDate | date:'yyyy-MM-dd'}}</td>
<td class="mailbox-subject"><a>{{task.countyName}}</a></td>
<td class="mailbox-subject">{{task.groupList.length}}</td>
<td class="mailbox-subject">{{task.groupNum}}</td>
<td class="mailbox-subject">{{task.countyValidCount}}</td>
......
......@@ -42,8 +42,12 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
perPageOptions: [10, 20, 30, 40, 50]
};
$scope.doQuery=function(){
$scope.paginationConf.currentPage=0;
$scope.paginationConf.itemsPerPage=10;
if($scope.paginationConf.currentPage!=1){
$scope.paginationConf.currentPage=1;
$scope.paginationConf.itemsPerPage=10;
}else{
$scope.doQueryPage();
}
}
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
var getCountJson = function(){
......@@ -138,9 +142,9 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
}else{
json.notNull=notNull
}
if($scope.paginationConf.currentPage==0){
$scope.paginationConf.currentPage=1
}
// if($scope.paginationConf.currentPage==0){
// $scope.paginationConf.currentPage=1
// }
json.firstIndex=$scope.paginationConf.currentPage;
json.pageSize=$scope.paginationConf.itemsPerPage;
return json;
......
......@@ -48,8 +48,12 @@
</table>
</div>
</div>
<div class="box ">
<strong class="box-header with-border ">制证包管理</strong>
<div class="box">
<div class="box-header with-border">
<strong>制证包管理</strong>
(<span style="color:#0b93d5;">每页显示{{paginationConf.itemsPerPage}}条/共
{{paginationConf.totalItems}}条</span>)
</div>
<div class="box box-primary">
<table class="table table-bordered" style="margin-bottom: 0;">
<tr>
......
......@@ -39,13 +39,17 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
perPageOptions: [10, 20, 30, 40, 50]
};
$scope.getXmlPackage=function(){
$scope.paginationConf.currentPage=0;
$scope.paginationConf.itemsPerPage=10;
}
$scope.getXmlPackagePage = function(){
if($scope.paginationConf.currentPage==0){
if($scope.paginationConf.currentPage!=1){
$scope.paginationConf.currentPage=1;
$scope.paginationConf.itemsPerPage=10;
}else{
$scope.getXmlPackagePage();
}
}
$scope.getXmlPackagePage = function(){
// if($scope.paginationConf.currentPage==0){
// $scope.paginationConf.currentPage=1;
// }
HttpService.selectXmlPackage($("#datepicker").val(),$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data){
$scope.paginationConf.totalItems=data.respData.count;
$scope.xmlPackageData = data.respData.mapList;
......
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