angular1 搜索服务 ,震灾名称是必填

 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         };

搜索服务 ,震灾名称是必填

//查询搜索
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();
}
};

转载于:https://www.cnblogs.com/xu-blog/p/9597425.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值