FVS弹窗

FVS大屏点击柱形图打开弹窗,但是需要根据不同的参数打开不同的弹窗,使用JS打开弹窗,但是报错:$is not a function,JS如下:

//模板路径

var url = encodeURI(encodeURI("/webroot/decision/view/report?viewlet=/popup/urea.fvs"));

//窗体

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

    height: 640,        //高度

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

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

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

};

//弹出窗体

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

参考:https://help.fanruan.com/finereport/doc-view-3633.html,第二个第三个不报错,但是不显示内容,只显示标题

FineReport 铁骨铮铮 发布于 2024-5-28 18:54
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
snrtuemcLv8专家互助
发布于2024-5-28 19:40

FVS不一样,参考

FVS跳转网页链接/弹出框事件 https://help.fanruan.com/finereport/doc-view-4399.html

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