我怎么把这些参数加进代码里

var th=this.getValue();

if(th=='请假'||th=='加班'){

//模板路径

var url = "http://localhost:8075/webroot/decision/view/report?viewlet=ypx%252Fypx_1%252F%25E5%25A1%25AB%25E6%258A%25A5%25E5%2588%2586%25E9%25A1%25B5.cpt&op=write";

var url = FR.cjkEncode(url);

//窗体

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);

}

d6648ec829ddd0920e11cffd451dfdf.jpg

FineReport 帆软用户wYukXssXS5 发布于 2024-5-27 19:42
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
华莉星宸Lv7高级互助
发布于2024-5-27 20:01

参照这个格式加进去

var url = "http://localhost:8075/webroot/decision/view/report?viewlet=ypx%252Fypx_1%252F%25E5%25A1%25AB%25E6%258A%25A5%25E5%2588%2586%25E9%25A1%25B5.cpt&op=write&参数1='"+dname+"'&参数2='"+dept+"'";

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