js跳转出来一个窗口

https://help.fanruan.com/finereport/doc-view-2128.html?source=4#这个是跳一个新页面,有没有跳成一个窗口的js啊。

FineReport zts1998 发布于 2022-10-13 16:36
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共3回答
最佳回答
0
CD20160914Lv8专家互助
发布于2022-10-13 16:38

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 $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 //高度 

  //closable:true,    //是否显示关闭按钮,默认true,如果改为false就不显示关闭按钮了

    //confirm:true,     //是否添加确认取消按钮,默认false

    //draggable:true   //是否可拖动,默认true 

 };

//弹出窗体

FR.showDialog(o.title, o.width, o.height, $iframe, o);

最佳回答
0
Z4u3z1Lv6专家互助
发布于2022-10-13 16:38

var config = {

title: '三天内的收银扎帐情况',

width: 900,

height: 560,

url: "${servletURL}?viewlet=" + FR.cjkEncode("数据更新/扎帐情况") + ".cpt&ref_t=design&ref_t=design&op=view"

};

FR.showIframeDialog(config);

最佳回答
0
LTC朝Lv6高级互助
发布于2022-10-13 16:38

FR.showIframeDialog({

url:"${servletURL}?reportlet=报表路径/报表名称.cpt&op=write",

title:"编辑",

width:900,

height:1000

});

  • 2关注人数
  • 247浏览人数
  • 最后回答于:2022-10-13 16:38
    请选择关闭问题的原因
    确定 取消
    返回顶部