FR11版本的JS无效

var url = encodeURI(encodeURI("/webroot/decision/view/form?viewlet=GMJT_JJ/MX/JJ_OA_JJJCGBQD.frm&ZGQK="+ZGQK));

//窗体

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

//将窗体的src属性设置为模板路径

$iframe.attr("src", url);

//窗体的属性

var o = {

    title: "纪检干部人员名单",    //标题

//    destroyOnClose:true,   // 是否在关闭对话框的时候将对话框从dom中移除

    width: 1350,         //宽度

    height: 800,        //高度

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

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

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

};

//弹出窗体

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

///

//

///

window.parent.FR.showDialog  

image.png

点击后只有对话框内容无法显示

FineReport 起床了 发布于 2023-5-17 17:30
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共3回答
最佳回答
0
起床了Lv4见习互助
发布于2023-5-18 09:19

白问

最佳回答
0
luojian0323Lv7资深互助
发布于2023-5-17 17:33

多看看11版本的js文档

有些变化 的

https://help.fanruan.com/finereport/doc-view-4285.html?source=4

最佳回答
0
年年plusLv5中级互助
发布于2023-5-17 17:34

var url = encodeURI(encodeURI("/webroot/decision/view/form?viewlet=GMJT_JJ/MX/JJ_OA_JJJCGBQD.frm&ZGQK="+ZGQK“”));

//窗体

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

//将窗体的src属性设置为模板路径

$iframe.attr("src", url);

//窗体的属性

var o = {

    title: "纪检干部人员名单",    //标题

//    destroyOnClose:true,   // 是否在关闭对话框的时候将对话框从dom中移除

    width: 1350,         //宽度

    height: 800,        //高度

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

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

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

};

//弹出窗体

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

///

//

///

window.parent.FR.showDialog  

  • 2关注人数
  • 229浏览人数
  • 最后回答于:2023-5-18 09:19
    请选择关闭问题的原因
    确定 取消
    返回顶部