点击事件js如下:
//获取控件参数值
window.p_s_month = _g().getWidgetByName('p_s_month').getValue();
window.p_e_month = _g().getWidgetByName('p_e_month').getValue();
var url=location.href.split('=')[0]+模版路径;
//cs为所有参数拼接起来的URL后缀
var cs="&p_s_month="+p_s_month+"&p_e_month="+p_e_month
Obj_Bak(url);
var $iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='no' frameborder='0'>");
//将窗体的src属性设置为模板路径
$iframe.attr("src", url+cs);
//窗体的属性
var o = {
title: 标题, //标题
destroyOnClose:true, // 是否在关闭对话框的时候将对话框从dom中移除
width: 1300, //宽度
height: 650, //高度
//closable:true, //是否显示关闭按钮,默认true
//confirm:true, //是否添加确认取消按钮,默认false
//draggable:true //是否可拖动,默认true
};
//弹出窗体
FR.showDialog(o.title, o.width, o.height, $iframe, o);