想实现按钮跳转后日期联动,应该怎么传参?这样写获取不到日期的值 下面是js var a = _g().getWidgetByName('a').getValue(); // 获取参数a的值 var b = _g().getWidgetByName('b').getValue(); // 获取参数b的值
var iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='no' frameborder='0'>"); // 对话框内 iframe 参数的命名,默认宽高占比是 100%,可向下滚动 iframe.attr("src", "?reportlet=/人事信息录入/统计图形.cpt&op=write&a=" + a + "&b=" + b); // 给 iframe 添加 src 属性并传递参数 a 和 b
var o = { width: 1000, // 对话框宽度 height: 500 // 对话框高度 };
FR.showDialog("统计", o.width, o.height, iframe, o); // 弹出对话框 |