- 注册时间
- 2018-5-24
- 最后登录
- 2024-9-30
- 阅读权限
- 10
- 积分
- 344
- 精华
- 0
- 帖子
- 12
|
好的,这个新增的代码:
function addDetailRow(){
var select = datagridTitle.getSelected();
if(mini.isNull(select)){
mini.alert("<?php echo $this->translate("请选中一条记录");?>");
}else{
mini.open({
targetWindow: window,
url:"<?php echo $this->url('hr/default', array('controller'=>'BEBP', 'action'=>'selectwindow'));?>?co="+co,
title:"<?php echo $this->translate("新增");?>",
width: 800,
height: 435,
allowResize: false,
onload: function () { //弹出页面加载完成
var iframe = this.getIFrameEl();
var data ={CO:co,CYTDATFR:select.CYTDATFR,CYCDATTO:select.CYCDATTO};
iframe.contentWindow.SetData(data);
},
ondestroy: function (action) {
if (action =="ok") {
var iframe = this.getIFrameEl();
var data = iframe.contentWindow.GetData();
var data = mini.clone(data);
datagridDetail.addRows(data);
}
}
});
}
} |
|