Commit 6c54680a authored by liboyang's avatar liboyang

新增页面

parent 059071d2
......@@ -15,7 +15,18 @@
</tr>
</thead>
<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>2019-03-04 15:08</td>
<td>格口文件.xls</td>
......@@ -66,12 +77,15 @@
2019-03-03
</td>
<td ng-click="">
<button class="btn">解析</button>
<button class="btn" ng-click="doAnalyse()">解析</button>
</td>
</tr>
</tbody>
</table>
<div style="padding-left: 27%;">
<tm-pagination conf="paginationConf" class="ul"></tm-pagination>
</div>
</div>
<div class="ui-dialog-confirm">
<div class="progress">
......
......@@ -82,9 +82,6 @@ angular.module('AvatarCheck', [
if ($location.path() == "/xmlAndSearch") {
$rootScope.tab = '/xmlAndSearch';
}
if ($location.path() == "/cardProdUpdate") {
$rootScope.tab = '/cardProdUpdate';
}
if ($location.path() == "/uploadExcelAndSearch") {
$rootScope.tab = '/uploadExcelAndSearch';
}
......@@ -138,10 +135,10 @@ angular.module('AvatarCheck', [
$("body").addClass("sidebar-collapse");
}
if ($location.path() == "/analysisLog") {
$rootScope.tab = '/cardProdUpdate';
$rootScope.tab = '/analysisLog';
}
if ($location.path() == "/packageLog") {
$rootScope.tab = '/cardProdUpdate';
$rootScope.tab = '/packageLog';
}
......
......@@ -431,12 +431,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
},
createTask:function(data,success){
var body = JSON.stringify(data);
console.log("data:",body)
$http({
method: 'POST',
url: "../TaskList/createTask",
data: body,
headers: {'Content-Type': 'application/json'}
}).then(function successCallback(response) {
console.log(response.data)
success(response.data)
})
},
......@@ -461,6 +463,41 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).then(function successCallback(response) {
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
$scope.getAnalyseLog = function(){
HttpService.selectAnalyseLogCount($scope.oldPackageName,$("#datepicker").val(),function (data) {
console.log($scope.newPackageName,$scope.idCard,$('#datepicker').val())
$scope.paginationConf.totalItems = data;
console.log($scope.paginationConf.totalItems)
})
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;
console.log($scope.analyseLog)
})
......
......@@ -41,6 +41,9 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
}
$scope.searchCurrent();
var reGet = function () {
$scope.searchCurrent();
}
$scope.currentTab = 0;
$scope.func = function (index) {
......@@ -155,9 +158,11 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
groupList:groupList,
tag:0
}
console.log(map)
HttpService.createTask(map,function(data){
MessageService.showAlert("创建成功")
$scope.searchCurrent();
console.log(reGet)
reGet();
})
}
......
......@@ -22,69 +22,84 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
$scope.cycleSheetData = [
{
typeCode: '1',
typeName: '普通证',
typeSum: 300,
isActive: 'true',
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:'未下发'
},
{
saveDate: '20190228',
county: '海淀区',
groupCount:6,
groupNo: '00234653-03687588',
valid: 280,
invalid: 2,
state:'未下发'
$scope.searchTaskList = function(){
HttpService.getTaskListByProcess(function(data){
$scope.cycleSheetData = data;
for(var i=0;i<$scope.cycleSheetData.length;i++){
if(i==$scope.currentTab){
$scope.cycleSheetData[i].isActive=true;
}else{
$scope.cycleSheetData[i].isActive=false;
}
]
},
{
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:'未下发'
}
]
}
]
}
console.log($scope.cycleSheetData)
})
}
$scope.searchTaskList();
// $scope.cycleSheetData = [
// {
// typeCode: '1',
// typeName: '普通证',
// typeSum: 300,
// isActive: 'true',
// 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:'未下发'
// },
// {
// 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.func = function (index) {
for (var idx in $scope.cycleSheetData) {
......
......@@ -42,23 +42,23 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
$location.path("/taskListPreLocating");
$rootScope.tab = '/taskListPreLocating';
break;
case 4:
case 6:
$location.path("/taskListSorting");
$rootScope.tab = '/taskListSorting';
break;
case 5:
$location.path("/taskListQualityCheck");
$rootScope.tab = '/taskListQualityCheck';
break;
case 6:
$location.path("/receitp");
$rootScope.tab = '/receitp';
case 4:
break;
case 7:
$location.path("/uploadExcelAndSearch");
$rootScope.tab = '/uploadExcelAndSearch';
$location.path("/receitp");
$rootScope.tab = '/receitp';
break;
case 8:
$location.path("/searchCardMsg");
$rootScope.tab = '/searchCardMsg';
break;
case 9:
$location.path("/createTaskList");
$rootScope.tab = '/createTaskList';
break;
......
......@@ -35,11 +35,12 @@ angular.module('AvatarCheck.packageLog', ['ngRoute', 'AvatarCheck.http', 'tm.pag
$scope.getPackageLog = function(){
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;
console.log($scope.paginationConf.totalItems)
})
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;
console.log($scope.packageLogData)
})
......
......@@ -33,14 +33,30 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope.analysis = function (uploadDate,packageCount) {
ngDialog.open({
template: 'dialogs/analysisDialog.html' + urlTimeStamp(),
width: 876,
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.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
}
}
$scope.paginationConf = {
currentPage: 1,
itemsPerPage: 10,
perPageOptions: [10, 20, 30, 40, 50]
};
$scope.getXmlPackage = function(){
console.log($("#datepicker").val())
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