(本文档仅供参考)(不适用于v11新即席查询以及v10基于模型的即席查询)
问题说明
旧即席查询,设置跳转规则之后,字体变成蓝色,希望设置这个字体的颜色,和去除下划线。
解决方案
可添加如下宏代码:
//类型:客户端 对象:simpleReport 事件:onRender function main(simpleReport, simpleReportContext) { simpleReport.setLinkStyle = function(cell) { if (cell.hasSetJumpStyle) return; cell.hasSetJumpStyle = true; if (util.trim(cell.innerText) == "") { return; } cell.style.cursor = "pointer"; //光标手势形状 cell.style.color = "green"; //文字颜色 } }
添加后的效果: