Commit c6c1a512 authored by liboyang's avatar liboyang

新增页面

parent b7a4ad6b
<style> <style>
.table th, .table td {
text-align: center;
vertical-align: middle!important;
}
.ul li{ .ul li{
cursor: pointer; cursor: pointer;
} }
...@@ -31,7 +27,7 @@ ...@@ -31,7 +27,7 @@
<table class="table" style="border-color: black;"> <table class="table" style="border-color: black;">
<thead> <thead>
<tr> <tr>
<th><input type="checkbox"></th> <th ng-if="show"><input type="checkbox"></th>
<th>组号</th> <th>组号</th>
<th>合格数量</th> <th>合格数量</th>
<th>不合格数量</th> <th>不合格数量</th>
...@@ -43,7 +39,7 @@ ...@@ -43,7 +39,7 @@
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="groups in policeList"> <tr ng-repeat="groups in policeList">
<td><input type="checkbox"></td> <td ng-if="show"><input type="checkbox"></td>
<td>{{groups.GROUP_NO}}</td> <td>{{groups.GROUP_NO}}</td>
<td>{{groups.VALID_COUNT}}</td> <td>{{groups.VALID_COUNT}}</td>
<td>{{groups.INVALID_COUNT}}</td> <td>{{groups.INVALID_COUNT}}</td>
......
...@@ -132,6 +132,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -132,6 +132,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);
console.log(body)
$http({ $http({
method: 'POST', method: 'POST',
url: "../personPostApi/findPersonalDataCount", url: "../personPostApi/findPersonalDataCount",
......
...@@ -61,6 +61,7 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm ...@@ -61,6 +61,7 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
cache: false, cache: false,
closeByDocument:false, closeByDocument:false,
controller: ['$scope', 'HttpService',function ($scope,HttpService) { controller: ['$scope', 'HttpService',function ($scope,HttpService) {
$scope.show = true;
console.log($('#datepicker').val(),countyCode,typeCode); console.log($('#datepicker').val(),countyCode,typeCode);
$scope.paginationConf = { $scope.paginationConf = {
currentPage: 1, currentPage: 1,
......
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody ng-repeat="task in type.countyList">
<tr ng-repeat="task in type.countyList"> <tr>
<td><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td> <td><input type="checkbox" class="checkOneBox" ng-checked="isSelected(task)" value="{{task.taskId}}" ng-click="updateSelection($event,task)"></td>
<td class="mailbox-star"><b>{{task.taskId}}</b></td> <td class="mailbox-star"><b>{{task.taskId}}</b></td>
<td class="mailbox-name"><a>{{task.countyName}}</a></td> <td class="mailbox-name"><a>{{task.countyName}}</a></td>
...@@ -57,9 +57,33 @@ ...@@ -57,9 +57,33 @@
<td class="mailbox-date" ng-if="task.faileCount==0">{{task.faileCount}}</td> <td class="mailbox-date" ng-if="task.faileCount==0">{{task.faileCount}}</td>
<td class="mailbox-date text-danger" ng-if="task.faileCount!=0">{{task.faileCount}}</td> <td class="mailbox-date text-danger" ng-if="task.faileCount!=0">{{task.faileCount}}</td>
<td class="mailbox-date">{{task.specialCount}}</td> <td class="mailbox-date">{{task.specialCount}}</td>
<td class="mailbox-date"><a ng-click="getPoliceList(task.countyCode,type.typeCode)">组号列表</a></td> <td class="mailbox-date"><a ng-click="getPoliceList(task.groupList,task.taskId)">组号列表</a></td>
</tr>
<tr ng-if="task.taskId==taskId">
<td></td>
<td colspan="10">
<table class="table">
<thead>
<th>组号</th>
<th>核验数量</th>
<th>证件数量</th>
<th>特殊证件数量</th>
<th>废证数量</th>
<th></th>
</thead>
<tbody>
<tr ng-repeat="item in policeList">
<td>{{item.GROUP_NO}}</td>
<td>{{item.VALID_COUNT}}</td>
<td>{{item.VALID_COUNT-item.SPECIAL_CARD_COUNT}}</td>
<td>{{item.SPECIAL_CARD_COUNT}}</td>
<td>{{item.FAILECOUNT}}</td>
<td><a ng-click="getSpecialCardsInfo(item.GROUP_NO,item.SPECIAL_CARD_COUNT)">特殊证件详情</a></td>
</tr>
</tbody>
</table>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<!-- /.table --> <!-- /.table -->
......
...@@ -109,30 +109,35 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p ...@@ -109,30 +109,35 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope.currentTab = index; $scope.currentTab = index;
} }
$scope.getPoliceList = function(countyCode,typeCode){ $scope.taskId=1;
ngDialog.open({ $scope.getPoliceList = function(groupList,taskId){
template: 'dialogs/policeList.html' + urlTimeStamp(), $scope.policeList = groupList;
width: 800, if($scope.taskId==1){
cache: false, $scope.taskId=taskId;
closeByDocument:false, }else{
controller: ['$scope', 'HttpService',function ($scope,HttpService) { $scope.taskId=1
console.log($('#datepicker').val(),countyCode,typeCode); }
$scope.paginationConf = { console.log(groupList)
currentPage: 1, }
itemsPerPage: 10,
perPageOptions: [10, 20, 30, 40, 50] $scope.getSpecialCardsInfo = function(groupNo,specialCardCount){
}; if(parseInt(specialCardCount)>0){
var getGroupInfoList = function () { ngDialog.open({
HttpService.getGroupListData($('#datepicker').val(),countyCode,typeCode,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data){ template: 'dialogs/specailCardInfo.html' + urlTimeStamp(),
$scope.paginationConf.totalItems = data.count; width: 600,
$scope.policeList =data.groupList; cache: false,
closeByDocument:false,
controller: ['$scope', function ($scope) {
HttpService.getSpecialCardData(groupNo,function(data) {
$scope.specailCardData = data;
console.log(data)
}) })
} }]
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目 });
$scope.$watch('paginationConf.currentPage +paginationConf.itemsPerPage', getGroupInfoList); }else{
MessageService.showAlert("该组中没有特殊证件")
}
}]
});
} }
$scope.goes = function(){ $scope.goes = function(){
......
...@@ -30,7 +30,6 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http ...@@ -30,7 +30,6 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
HttpService.getCountyListData(function (data) { HttpService.getCountyListData(function (data) {
$scope.countyList = data; $scope.countyList = data;
console.log($scope.countyList)
}) })
...@@ -109,10 +108,10 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http ...@@ -109,10 +108,10 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
return json; return json;
} }
$scope.doQuery = function () { $scope.doQuery = function () {
// HttpService.getRecordsCount(getCountJson(), function (data) { HttpService.getRecordsCount(getCountJson(), function (data) {
// $scope.paginationConf.totalItems = data; $scope.paginationConf.totalItems = data;
// console.log(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