选择产品名称后导出带不出该产品名称?

产品名称 施耐德工控 S&S传感器

筛选器下产品选择该名称,点击导出没有对应客户清单内容?

初步认为该名称跟sql传参同个意思,请问现在在怎么解决呢?

这里参数名是CPX,是不是改成encodeURIComponent("&CPX")+"="

具体内容:

var $iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='no' frameborder='0'>"); // iframe参数的命名及宽高等

$iframe.attr("src", "http://bi.zyd.cn:37799/webroot/decision/view/report?viewlet=%25E5%25AE%25A2%25E6%2588%25B7%25E6%258A%25A5%25E8%25A1%25A8%252F2021%25E5%25B9%25B4%25E7%2589%2588%252F%25E5%25AD%2590%25E5%2585%25AC%25E5%258F%25B8%25E6%25B8%2585%25E5%258D%2595.cpt&ref_t=design&op=write&ref_c=44a2e5c2-0171-4849-b26f-d697aa088f10&SJFL=" +SJFL + "&XSYF=" +XSYF + "&XSGM=" +XSGM + "&daqu=" +daqu + "&company=" +company + "&BSC=" +BSC + "&XSTD=" +XSTD + "&YWBM=" +YWBM + "&YWY=" +YWY + "&ZLCP=" +ZLCP + "&PP=" +PP + "&CPZ=" +CPZ + encodeURIComponent("&CPX")+"=" +CPX + "&CPXL=" +CPXL + "&SFMC=" +SFMC + "&CSMC=" +CSMC + "&QXMC=" +QXMC); 

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

你的产品名称有帆软的关键字

&

导致解析出错了

===========

做一个编码转换把

编码转换-https://help.fanruan.com/finereport10.0/doc-view-936.html

================

你改错地方了吧,看下面的

var $iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='no' frameborder='0'>"); // iframe参数的命名及宽高等

$iframe.attr("src", "http://bi.zyd.cn:37799/webroot/decision/view/report?viewlet=%25E5%25AE%25A2%25E6%2588%25B7%25E6%258A%25A5%25E8%25A1%25A8%252F2021%25E5%25B9%25B4%25E7%2589%2588%252F%25E5%25AD%2590%25E5%2585%25AC%25E5%258F%25B8%25E6%25B8%2585%25E5%258D%2595.cpt&ref_t=design&op=write&ref_c=44a2e5c2-0171-4849-b26f-d697aa088f10&SJFL=" +SJFL + "&XSYF=" +XSYF + "&XSGM=" +XSGM + "&daqu=" +daqu + "&company=" +company + "&BSC=" +BSC + "&XSTD=" +XSTD + "&YWBM=" +YWBM + "&YWY=" +YWY + "&ZLCP=" +ZLCP + "&PP=" +PP + "&CPZ=" +CPZ + "&CPX=" +encodeURIComponent(CPX)+ "&CPXL=" +CPXL + "&SFMC=" +SFMC + "&CSMC=" +CSMC + "&QXMC=" +QXMC); 

最佳回答
0
luojian0323Lv7资深互助
发布于2022-2-9 15:11(编辑于 2022-2-9 15:12)

对参数值的特殊符号做转义处理https://help.fanruan.com/finereport/doc-view-1136.html?source=4

  • 3关注人数
  • 321浏览人数
  • 最后回答于:2022-2-9 15:53
    请选择关闭问题的原因
    确定 取消
    返回顶部