zoukankan      html  css  js  c++  java
  • 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();
    }
    };
  • 相关阅读:
    搬家来博客园了
    公司初印象
    毕业之殇觉醒
    毕业之殇天意弄人
    毕业之殇预告篇
    scribe 安装文档
    毕业之殇寻找
    IOS 资料整理(转)
    IOS IPHONE相册应用 资料整理
    NSFileManager和NSFileHandle(附:获取文件大小 )
  • 原文地址:https://www.cnblogs.com/xu-blog/p/9597425.html
Copyright © 2011-2022 走看看