FVS组件通过JS打开对话框(弹出框)该怎么写

image.png

想通过JS用对话框(弹出框)的方式打开某个报表

报错:image.png

FineReport eblanc 发布于 2025-9-30 14:22 (编辑于 2025-9-30 14:34)
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
snrtuemcLv8专家互助
发布于2025-9-30 14:26

FVS弹窗

"use document";

const iframe = document.createElement("iframe");

iframe.width = "100%";

iframe.height = "100%";

iframe.scrolling = "no";

iframe.style="border: none";

iframe.src = "/webroot/decision/view/report?viewlet=GettingStarted.cpt";

duchamp.showDialog(

        {

                title:"销量弹窗",

                width: 700,

                height: 500,

                innerContent:iframe,

                dialogType:"center",

        }

);

  • eblanc eblanc(提问者) 试过了在标题的交互事件写会报错,报错贴图我新增了
    2025-09-30 14:35 
  • snrtuemc snrtuemc 回复 eblanc(提问者) 这个有没有拷贝,必须要的
    "use document";
    2025-09-30 14:38 
  • eblanc eblanc(提问者) 回复 snrtuemc 可以了 感谢,use document写到if条件里面去了,挪到最外层就行了
    2025-09-30 14:49 
  • 2关注人数
  • 32浏览人数
  • 最后回答于:2025-9-30 14:34
    请选择关闭问题的原因
    确定 取消
    返回顶部