ThinkCMF5的弹框子页面操作关闭及父页面刷新

function getPaike(id){
        openIframeLayer("{:url('classroom/addpaike')}?id=" + id , "", {
            area: ['880px', '600px'],
            btn: ['确定', '取消'],
        })
    }

  addpaike.html

<div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary" onclick="save({$id})">保存</button>
            </div>
        </div>

  

function save(id){
     let time1 = setInterval(function(){
          //父级弹框关闭 parent.layer.closeAll();
          //父级页面刷新
parent.location.reload();
            },500);
 }

  

posted @ 2019-03-21 12:13  嘉煠  阅读(1267)  评论(0编辑  收藏  举报