移动端不支持windows.open()
要换方式
var reportLink = "";
if (dataType == "学校") {
reportLink = encodeURI("${servletURL}?viewlet=学校.cpt&name=" +name + "&policeStation=" + policeStation);
}
else if (dataType == "学生") {
reportLink = encodeURI("${servletURL}?viewlet=学生.cpt&name=" +name + "&policeStation=" + policeStation);
}
else{
reportLink="";
}
// 打开链接
if (reportLink) {
FR.doHyperlinkByGet(reportLink);
} else {
FR.Msg.alert("提示", "未匹配到对应数据类型的报表链接!");
}
[通用]JS自定义超链标题- FineReport帮助文档 - 全面的报表使用教程和学习资料
