var w=document.body.clientWidth-100;//获取电脑的高度减100,自己调整
var h=document.body.clientHeight-80;//获取电脑宽度减80,自己调整
var url = encodeURI("/webroot/decision/view/report?viewlet=GettingStarted.cpt");//路径改成自己的决策报表路径
var startdate = this.options.form.getWidgetByName("startdate").getValue(); //获取参数值,自己改
var enddate = this.options.form.getWidgetByName("enddate").getValue(); //获取参数2自己改
//窗体
var $iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='no' frameborder='0'>");
//将窗体的src属性设置为模板路径
$iframe.attr("src", url);
//窗体的属性
var o = {
title: "我是对话框", //标题
width: w, //宽度
height: h, //高度
enddate:enddate,//传参数
startdate:startdate//传参数
};
//弹出窗体
FR.showDialog(o.title, o.width, o.height, $iframe, o);