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();
    }
    };
  • 相关阅读:
    win8平板App文件上传
    win8 APP中网页js如何触发后台的ScriptNotify方法
    lsof list open files
    python下的一个人脸识别包
    mysql hex() and unhex()
    git 补丁git formatpatch
    perl sort
    git 分支无法checkout的解决办法
    PERL 语言中的q,qw,qr,qx,qq......符号用法总结
    perl 的真假值
  • 原文地址:https://www.cnblogs.com/xu-blog/p/9597425.html
Copyright © 2011-2022 走看看