angular1 一个页面有弹窗

1、页面regist.html有个弹窗 弹窗页面batch.html;

2、弹窗页面的数据请求应该在regist.ctrl(也就是regist的控制器里)

3、代码如下regist.ctrl.js:(弹窗里面的方法和数据获取应该都在主页面里面进行请求)

 1   //显示报案批次号详情页面
 2         $scope.batchDetail = function (datas,time,disasterName) {
 3             $scope.registQueryConditionDto={};
 4             $scope.batchDetailFlag = false;
 5             $scope.registQueryConditionDto.batchNo = datas;
 6             $scope.registQueryConditionDto.applyName = time;
 7             $scope.registQueryConditionDto.disasterName = disasterName;
 8             //初始化分页
 9             $scope.paginationConfs = {
10                 currentPage: 1,     //当前所在的页
11                 totalItems: 0,      //总共有多少条记录
12                 itemsPerPage: 10,   //每页展示的数据条数
13                 pagesLength: 10,    //分页条目的长度(如果设置建议设置为奇数)
14                 perPageOptions: [10, 20, 30, 40, 50]   // 可选择显示条数的数组
15             };
16             $scope.policyRegistShow=false;
17             $scope.appliRegistShow=false;
18             $scope.importFileRegistShow=false;
19             $scope.registQueryConditionDto.batchNo = datas;
20             $scope.registQueryConditionDto.pageNo=$scope.paginationConf.currentPage;
21             $scope.registQueryConditionDto.pageSize=$scope.paginationConf.itemsPerPage;
22             registEditServ.queryRegistBatchByBatch( $scope.registQueryConditionDto).then(
23                 function(answer){
24                     console.log(answer);
25                     $scope.queryRegistBatch=answer.data.list;
26                     $scope.paginationConfs.currentPage=answer.data.pageNum;
27                     $scope.paginationConfs.totalItems=answer.data.totalCount
28                 },function(error){
29                     //cconsole.log(JSON.stringify(error.data));
30                 });
31         };
32         //返回按钮
33         $scope.onEdit = function () {
34             $scope.batchDetailFlag = true;
35         };
36          //关闭报案批次号详情页面
37         $scope.batchDetailClose = function () {
38             $scope.batchDetailFlag = true;
39 
40         };

 

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值