填报弹窗遇到问题,麻烦哪位大神帮忙看下,谢谢~

点击“经理”下拉框进行筛选,然后点击弹窗单元格就会报错。(好像是没有识别上,JS不知道怎么修改)

var xm=FR.cjkEncode(contentPane.curLGP.getCellValue(2,1));

var id =contentPane.curLGP.getCellValue("B2");

 

window.pLocation=this.options.location;//当前控件的location值付给全局变量window.pLocation,记录当前双击的单元格号,便于子报表里定位从哪一行开始插入行、回填数据

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

$iframe.attr("src", "http://10.10.2.79:37799/webroot/decision/view/report?viewlet=HR%252F%25E5%2585%25A8%25E5%2593%2581%25E7%25B1%25BB%25E4%25BF%25A1%25E6%2581%25AF%25E5%25A1%25AB%25E6%258A%25A5-%25E5%25BC%25B9%25E7%25AA%25973%25EF%25BC%2588%25E5%25A4%259A%25E9%2580%2589%25EF%25BC%2589.cpt&ref_t=design&op=write&ref_c=1d3d1c0d-8abb-426b-8453-c8f753bb8050=&xm="+xm+"&id="+id);

var o = {

title : "",

width : 800,

height: 500

};

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

FineReport 慧慧036103 发布于 2023-1-7 16:07 (编辑于 2023-1-7 17:41)
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共2回答
最佳回答
0
用户6NWif5139660Lv6资深互助
发布于2023-1-7 16:11(编辑于 2023-1-7 16:15)

参考这个链接-https://bbs.fanruan.com/wenda/question/61809.html

用这个弹窗试试

var url = encodeURI("/webroot/decision/view/report?viewlet=GettingStarted.cpt");

//窗体

var $iframe = $("

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

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

//窗体的属性

var o = {    

title: "我是对话框",  //标题   

 width: 400,   //宽度    

  height: 500 //高度 

  //closable:true,    //是否显示关闭按钮,默认true,如果改为false就不显示关闭按钮了

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

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

 };

//弹出窗体

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

  • 慧慧036103 慧慧036103(提问者) var xm=FR.cjkEncode(contentPane.curLGP.getCellValue(2,1)); var id =contentPane.curLGP.getCellValue(\"B2\"); window.pLocation=this.options.location; var $iframe = $(\"