页面树结构
转至元数据结尾
转至元数据起始

温馨提示

本文档的示例代码仅适用于本文档中的示例报表/场景。若实际报表/场景与示例代码无法完全适配(如使用功能不一致,或多个宏代码冲突等),需根据实际需求开发代码。

示例说明

在灵活分析中,添加跳转规则时,对应的字段上会显示链接下划线。

可以通过宏代码隐藏链接下划线


实现步骤

  1. 在资源定制中,创建一张灵活分析报表。

  2. 选中灵活分析,右键选择 编辑宏 进入报表宏界面。

  3. 在报表宏界面新建客户端模块,在弹出的新建模块对话框中选择对象为simpleReport;事件为onRenderTable;并把下面宏代码复制到代码区域。 

宏事件

类型对象事件
ClientSidesimpleReportonRender

宏代码

function main(simpleReport, simpleReportContext) {
    createClass(".jump-link", "text-decoration:none");
}
function createClass(name, rules) {
    var style = document.createElement('style');
    style.type = 'text/css';
    document.getElementsByTagName('head')[0].appendChild(style);
    if (! (style.sheet || {}).insertRule)(style.styleSheet || style.sheet).addRule(name, rules);
    else style.sheet.insertRule(name + "{" + rules + "}", 0);
}


资源下载migrate.xml

  • 无标签