1 //查詢搜索 2 var revocationAuditQueryServ=function(){ 3 $scope.revocationAuditDto.pageNo=$scope.paginationConf.currentPage; 4 $scope.revocationAuditDto.pageSize=$scope.paginationConf.itemsPerPage; 5 revocationAuditServ.querypageinfo($scope.revocationAuditDto).then( //querypageinfo是請求的服務 6 function(answer){ 7 console.log(answer) 8 $scope.revocationAuditList=answer.data.list; 9 $scope.paginationConf.currentPage=answer.data.pageNum; 10 $scope.paginationConf.totalItems=answer.data.totalCount 11 },function(error){ 12 //console.log(JSON.stringify(error.data)); 13 }); 14 }; 15 $scope.revocationAuditQuery=function(){ 16 if(!$scope.revocationAuditDto.disasterCode){ 17 angular.alert('震災名稱是必填項') 18 }else { 19 revocationAuditQueryServ(); 20 } 21 };
搜索服務 ,震災名稱是必填spa
//查詢搜索
var revocationAuditQueryServ=function(){
$scope.revocationAuditDto.pageNo=$scope.paginationConf.currentPage;
$scope.revocationAuditDto.pageSize=$scope.paginationConf.itemsPerPage;
revocationAuditServ.querypageinfo($scope.revocationAuditDto).then(
function(answer){
console.log(answer)
$scope.revocationAuditList=answer.data.list;
$scope.paginationConf.currentPage=answer.data.pageNum;
$scope.paginationConf.totalItems=answer.data.totalCount
},function(error){
//console.log(JSON.stringify(error.data));
});
};
$scope.revocationAuditQuery=function(){
if(!$scope.revocationAuditDto.disasterCode){
angular.alert('震災名稱是必填項')
}else {
revocationAuditQueryServ(); }};