frm中,按钮跳转到其他cpt报表,是直接在当前页面打开,js怎么写成弹出框

图片.png

FineReport 发粪的小青年 发布于 2021-6-4 17:10
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共3回答
最佳回答
0
Doctor_WeiLv7中级互助
发布于2021-6-4 17:11

//window.form = this.options.form;

var $iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='no' frameborder='0'>");

$iframe.attr("src", FR.cjkEncode("${servletURL}?viewlet=doc/Parameter/下拉框数据量大-参数界面子模板.cpt&op=write"));

var o = {

title : "请选择记录项",

width : 460,

height: 350

};

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

最佳回答
0
snrtuemcLv8专家互助
发布于2021-6-4 17:11

var url = FR.cjkEncode("/webroot/decision/view/report?viewlet=GettingStarted.cpt&op=write");

//窗体

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,         //宽度

    height: 640,        //高度

    //closable:true,    //是否显示关闭按钮,默认true

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

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

};

//弹出窗体

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

  • colcol00 colcol00 好用
    2021-11-12 15:01 
最佳回答
0
杨朝健Lv5中级互助
发布于2021-6-4 17:24

image.png

FR.doHyperlinkByPost({

"url":"/webroot/decision/view/report?viewlet=弹窗页面.cpt&op=write",

"para":{

  //"__pi__":true,

  "ssyh2":ssyh2,

  "ssym2":ssym2

},

"target":"_dialog",

"feature":{

  "width":800,

  "height":600,

  "isCenter":true,

  "title":"用户渠道"

}

}

);

  • 4关注人数
  • 538浏览人数
  • 最后回答于:2021-6-4 17:24
    请选择关闭问题的原因
    确定 取消
    返回顶部