Commit 6c54680a authored by liboyang's avatar liboyang

新增页面

parent 059071d2
...@@ -15,7 +15,18 @@ ...@@ -15,7 +15,18 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr > <tr ng-repeat="item in resultData">
<td>{{$index+1}}</td>
<td>2019-03-04 15:08</td>
<td>格口文件.xls</td>
<td>400</td>
<td>2019-03-01</td>
<td>2019-03-03</td>
<td ng-click="">
<button class="btn">解析</button>
</td>
</tr>
<tr>
<td>1</td> <td>1</td>
<td>2019-03-04 15:08</td> <td>2019-03-04 15:08</td>
<td>格口文件.xls</td> <td>格口文件.xls</td>
...@@ -66,12 +77,15 @@ ...@@ -66,12 +77,15 @@
2019-03-03 2019-03-03
</td> </td>
<td ng-click=""> <td ng-click="">
<button class="btn">解析</button> <button class="btn" ng-click="doAnalyse()">解析</button>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div style="padding-left: 27%;">
<tm-pagination conf="paginationConf" class="ul"></tm-pagination>
</div>
</div> </div>
<div class="ui-dialog-confirm"> <div class="ui-dialog-confirm">
<div class="progress"> <div class="progress">
......
...@@ -82,9 +82,6 @@ angular.module('AvatarCheck', [ ...@@ -82,9 +82,6 @@ angular.module('AvatarCheck', [
if ($location.path() == "/xmlAndSearch") { if ($location.path() == "/xmlAndSearch") {
$rootScope.tab = '/xmlAndSearch'; $rootScope.tab = '/xmlAndSearch';
} }
if ($location.path() == "/cardProdUpdate") {
$rootScope.tab = '/cardProdUpdate';
}
if ($location.path() == "/uploadExcelAndSearch") { if ($location.path() == "/uploadExcelAndSearch") {
$rootScope.tab = '/uploadExcelAndSearch'; $rootScope.tab = '/uploadExcelAndSearch';
} }
...@@ -138,10 +135,10 @@ angular.module('AvatarCheck', [ ...@@ -138,10 +135,10 @@ angular.module('AvatarCheck', [
$("body").addClass("sidebar-collapse"); $("body").addClass("sidebar-collapse");
} }
if ($location.path() == "/analysisLog") { if ($location.path() == "/analysisLog") {
$rootScope.tab = '/cardProdUpdate'; $rootScope.tab = '/analysisLog';
} }
if ($location.path() == "/packageLog") { if ($location.path() == "/packageLog") {
$rootScope.tab = '/cardProdUpdate'; $rootScope.tab = '/packageLog';
} }
......
...@@ -431,12 +431,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -431,12 +431,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}, },
createTask:function(data,success){ createTask:function(data,success){
var body = JSON.stringify(data); var body = JSON.stringify(data);
console.log("data:",body)
$http({ $http({
method: 'POST', method: 'POST',
url: "../TaskList/createTask", url: "../TaskList/createTask",
data: body, data: body,
headers: {'Content-Type': 'application/json'} headers: {'Content-Type': 'application/json'}
}).then(function successCallback(response) { }).then(function successCallback(response) {
console.log(response.data)
success(response.data) success(response.data)
}) })
}, },
...@@ -461,6 +463,41 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -461,6 +463,41 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).then(function successCallback(response) { }).then(function successCallback(response) {
succuss(response.data) succuss(response.data)
}) })
},
getTaskListByProcess:function(success){
$http({
method: 'GET',
url: "../TaskList/queryByCountyAtAuxiliary"+urlTimeStamp(),
params:{
process:$rootScope.loginData.roleList[0].process
}
}).then(function successCallback(response) {
success(response.data)
})
},
analyseData:function(date,currPage,pageSize,success){
$http({
method: 'GET',
url: "../importXML/queryPersonXML"+urlTimeStamp(),
params:{
importDate:date,
currPage:currPage,
pageSize:pageSize
}
}).then(function successCallback(response) {
success(response.data)
})
},
analyseDataCount:function(date,success) {
$http({
method: 'GET',
url: "../importXML/queryPersonXMLCount"+urlTimeStamp(),
params:{
importDate:date
}
}).then(function successCallback(response) {
success(response.data)
})
} }
} }
}); });
\ No newline at end of file
...@@ -33,10 +33,12 @@ angular.module('AvatarCheck.analysisLog', ['ngRoute', 'AvatarCheck.http', 'tm.pa ...@@ -33,10 +33,12 @@ angular.module('AvatarCheck.analysisLog', ['ngRoute', 'AvatarCheck.http', 'tm.pa
$scope.getAnalyseLog = function(){ $scope.getAnalyseLog = function(){
HttpService.selectAnalyseLogCount($scope.oldPackageName,$("#datepicker").val(),function (data) { HttpService.selectAnalyseLogCount($scope.oldPackageName,$("#datepicker").val(),function (data) {
console.log($scope.newPackageName,$scope.idCard,$('#datepicker').val())
$scope.paginationConf.totalItems = data; $scope.paginationConf.totalItems = data;
console.log($scope.paginationConf.totalItems) console.log($scope.paginationConf.totalItems)
}) })
HttpService.selectAnalyseLog($scope.oldPackageName,$("#datepicker").val(),$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data){ HttpService.selectAnalyseLog($scope.oldPackageName,$("#datepicker").val(),$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data){
console.log($scope.newPackageName,$scope.idCard,$('#datepicker').val())
$scope.analyseLog = data; $scope.analyseLog = data;
console.log($scope.analyseLog) console.log($scope.analyseLog)
}) })
......
...@@ -41,6 +41,9 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm ...@@ -41,6 +41,9 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
} }
$scope.searchCurrent(); $scope.searchCurrent();
var reGet = function () {
$scope.searchCurrent();
}
$scope.currentTab = 0; $scope.currentTab = 0;
$scope.func = function (index) { $scope.func = function (index) {
...@@ -155,9 +158,11 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm ...@@ -155,9 +158,11 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
groupList:groupList, groupList:groupList,
tag:0 tag:0
} }
console.log(map)
HttpService.createTask(map,function(data){ HttpService.createTask(map,function(data){
MessageService.showAlert("创建成功") MessageService.showAlert("创建成功")
$scope.searchCurrent(); console.log(reGet)
reGet();
}) })
} }
......
...@@ -22,69 +22,84 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p ...@@ -22,69 +22,84 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd"); $scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
$scope.cycleSheetData = [ $scope.searchTaskList = function(){
{ HttpService.getTaskListByProcess(function(data){
typeCode: '1', $scope.cycleSheetData = data;
typeName: '普通证', for(var i=0;i<$scope.cycleSheetData.length;i++){
typeSum: 300, if(i==$scope.currentTab){
isActive: 'true', $scope.cycleSheetData[i].isActive=true;
countyList: [ }else{
{ $scope.cycleSheetData[i].isActive=false;
saveDate: '20190228',
county: '朝阳区',
groupCount:5,
groupNo: '00234653-03687587',
valid: 240,
invalid: 0,
state:'未下发'
},
{
saveDate: '20190228',
county: '海淀区',
groupCount:6,
groupNo: '00234653-03687588',
valid: 280,
invalid: 2,
state:'未下发'
},
{
saveDate: '20190228',
county: '海淀区',
groupCount:6,
groupNo: '00234653-03687588',
valid: 280,
invalid: 2,
state:'未下发'
} }
] }
}, console.log($scope.cycleSheetData)
{ })
typeCode: '9', }
typeName: '邮寄证', $scope.searchTaskList();
typeSum: 500,
isActive: 'false', // $scope.cycleSheetData = [
countyList: [ // {
{ // typeCode: '1',
saveDate: '20190228', // typeName: '普通证',
county: '朝阳区', // typeSum: 300,
groupCount:5, // isActive: 'true',
groupNo: '00234653-03687587', // countyList: [
valid: 240, // {
invalid: 0, // saveDate: '20190228',
state:'未下发' // county: '朝阳区',
}, // groupCount:5,
{ // groupNo: '00234653-03687587',
saveDate: '20190228', // valid: 240,
county: '海淀区', // invalid: 0,
groupCount:6, // state:'未下发'
groupNo: '00234653-03687588', // },
valid: 280, // {
invalid: 2, // saveDate: '20190228',
state:'未下发' // county: '海淀区',
} // groupCount:6,
] // groupNo: '00234653-03687588',
} // valid: 280,
] // invalid: 2,
// state:'未下发'
// },
// {
// saveDate: '20190228',
// county: '海淀区',
// groupCount:6,
// groupNo: '00234653-03687588',
// valid: 280,
// invalid: 2,
// state:'未下发'
// }
// ]
// },
// {
// typeCode: '9',
// typeName: '邮寄证',
// typeSum: 500,
// isActive: 'false',
// countyList: [
// {
// saveDate: '20190228',
// county: '朝阳区',
// groupCount:5,
// groupNo: '00234653-03687587',
// valid: 240,
// invalid: 0,
// state:'未下发'
// },
// {
// saveDate: '20190228',
// county: '海淀区',
// groupCount:6,
// groupNo: '00234653-03687588',
// valid: 280,
// invalid: 2,
// state:'未下发'
// }
// ]
// }
// ]
$scope.currentTab = 0; $scope.currentTab = 0;
$scope.func = function (index) { $scope.func = function (index) {
for (var idx in $scope.cycleSheetData) { for (var idx in $scope.cycleSheetData) {
......
...@@ -42,23 +42,23 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http']) ...@@ -42,23 +42,23 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
$location.path("/taskListPreLocating"); $location.path("/taskListPreLocating");
$rootScope.tab = '/taskListPreLocating'; $rootScope.tab = '/taskListPreLocating';
break; break;
case 4: case 6:
$location.path("/taskListSorting"); $location.path("/taskListSorting");
$rootScope.tab = '/taskListSorting'; $rootScope.tab = '/taskListSorting';
break; break;
case 5: case 5:
$location.path("/taskListQualityCheck");
$rootScope.tab = '/taskListQualityCheck';
break; break;
case 6: case 4:
$location.path("/receitp");
$rootScope.tab = '/receitp';
break; break;
case 7: case 7:
$location.path("/uploadExcelAndSearch"); $location.path("/receitp");
$rootScope.tab = '/uploadExcelAndSearch'; $rootScope.tab = '/receitp';
break; break;
case 8: case 8:
$location.path("/searchCardMsg");
$rootScope.tab = '/searchCardMsg';
break;
case 9:
$location.path("/createTaskList"); $location.path("/createTaskList");
$rootScope.tab = '/createTaskList'; $rootScope.tab = '/createTaskList';
break; break;
......
...@@ -35,11 +35,12 @@ angular.module('AvatarCheck.packageLog', ['ngRoute', 'AvatarCheck.http', 'tm.pag ...@@ -35,11 +35,12 @@ angular.module('AvatarCheck.packageLog', ['ngRoute', 'AvatarCheck.http', 'tm.pag
$scope.getPackageLog = function(){ $scope.getPackageLog = function(){
HttpService.selectPackageLogCount($scope.newPackageName,$scope.idCard,$('#datepicker').val(),$scope.county,function (data) { HttpService.selectPackageLogCount($scope.newPackageName,$scope.idCard,$('#datepicker').val(),$scope.county,function (data) {
console.log(data) console.log($scope.newPackageName,$scope.idCard,$('#datepicker').val())
$scope.paginationConf.totalItems = data; $scope.paginationConf.totalItems = data;
console.log($scope.paginationConf.totalItems) console.log($scope.paginationConf.totalItems)
}) })
HttpService.selectPackageLog($scope.newPackageName,$scope.idCard,$('#datepicker').val(),$scope.county,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data){ HttpService.selectPackageLog($scope.newPackageName,$scope.idCard,$('#datepicker').val(),$scope.county,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data){
console.log($scope.newPackageName,$scope.idCard,$('#datepicker').val())
$scope.packageLogData = data; $scope.packageLogData = data;
console.log($scope.packageLogData) console.log($scope.packageLogData)
}) })
......
...@@ -33,14 +33,30 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p ...@@ -33,14 +33,30 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope.analysis = function (uploadDate,packageCount) { $scope.analysis = function (uploadDate,packageCount) {
ngDialog.open({ ngDialog.open({
template: 'dialogs/analysisDialog.html' + urlTimeStamp(), template: 'dialogs/analysisDialog.html' + urlTimeStamp(),
width: 876, width: 876,
cache: false, cache: false,
controller: ['$scope', function ($scope) { controller: ['$scope','HttpService', function ($scope,HttpService) {
$scope.paginationConf = {
currentPage: 1,
itemsPerPage: 10,
perPageOptions: [10, 20, 30, 40, 50]
};
$scope.upDate =uploadDate; $scope.upDate =uploadDate;
$scope.upCount=packageCount; $scope.upCount=packageCount;
$scope.getAnalyseData = function() {
HttpService.analyseDataCount(uploadDate, function (data) {
$scope.paginationConf.totalItems =data.respData.string;
console.log($scope.paginationConf.totalItems)
})
HttpService.analyseData(uploadDate, $scope.paginationConf.currentPage, $scope.paginationConf.itemsPerPage, function (data) {
$scope.resultData = data;
console.log($scope.resultData)
})
}
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope.$watch('paginationConf.currentPage +paginationConf.itemsPerPage', $scope.getAnalyseData);
}] }]
}); });
...@@ -61,12 +77,12 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p ...@@ -61,12 +77,12 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
} }
} }
$scope.paginationConf = { $scope.paginationConf = {
currentPage: 1, currentPage: 1,
itemsPerPage: 10, itemsPerPage: 10,
perPageOptions: [10, 20, 30, 40, 50] perPageOptions: [10, 20, 30, 40, 50]
}; };
$scope.getXmlPackage = function(){ $scope.getXmlPackage = function(){
console.log($("#datepicker").val()) console.log($("#datepicker").val())
HttpService.selectXmlPackageCount($("#datepicker").val(),function(data){ HttpService.selectXmlPackageCount($("#datepicker").val(),function(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