https://bbs.fanruan.com/wenda/question/61077.html
var a=_g().getWidgetByName("控件名1").getValue();
var b=_g().getWidgetByName("控件名2").getValue();
var url="/webroot/decision/view/report?viewlet=GettingStarted.cpt&op=write&a="+a+"&b="+b;
//或者这个格式 var url="${servletURL}?viewlet=GettingStarted.cpt&op=write&a="+a+"&b="+b;
var url = FR.cjkEncode(url);
//窗体
var $iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='no' frameborder='0'>");
//将窗体的src属性设置为模板路径
$iframe.attr("src", url);
//窗体的属性
var o = {
title: "对话框", //标题
width: 680, //宽度,可以换成w/2,自适应
height: 640, //高度
//closable:true, //是否显示关闭按钮,默认true
//confirm:true, //是否添加确认取消按钮,默认false
//draggable:true //是否可拖动,默认true
};
//弹出窗体
FR.showDialog(o.title, o.width, o.height, $iframe, o);
$(".fr-core-window-header").css("display", "none");//隐藏窗口标题栏
$(".fr-core-window-body").css("top", "0px");//设置高度