六月下旬全新资源上线!丨 解锁高效能实战方案

更新亮点:本次新增5大专题9项资源,点击标题5分钟极速了解!参与互动赢取麦豆,解锁更多内容)

一、实战技巧分享

即席/透视的逆袭之路:从卡顿到秒出→ 性能优化实战,实现报表秒级响应!

体验中心焕新一“夏”,全新导览页及新DEMO上线!→ 抢先体验夏季更新DEMO!

速看!明细/汇总/交叉表的实现秘籍→ 高效构建复杂报表指南

二、开发技能突破

视频课《仪表盘图片鼠标提示几行代码,让你的仪表盘“会说话”!

视频课《仪表盘宏开发技巧→ 解锁宏开发技巧和注意事项

三、直播上线

直播《交互式仪表盘最佳实践解锁可视化大屏最佳实践技巧

四、AI每日一学

人工智能三驾马车:算法、算力与数据→ 深度解析AI核心支柱

通俗的讲一下神经网络模型的基本组成、工作原理、工作类型和生活应用场景→ 从基础到场景实战

五、资源上新

插件《安全检测→ 一键加固系统安全防护

麦粉社区
>
帖子详情

组件明细表导出功能用宏实现关闭

数据准备 发表于 2024-12-12 13:14
发表于 2024-12-12 13:14:40

使用明细表有导出功能,如何用宏控制导出功能的隐藏或开启

发表于 2024-12-12 13:14:41
需要隐藏的地方写 =‘none’ ,我这个是正好不隐藏导出,其他都隐藏。
你反过来就行。
不需要隐藏的菜单可以不写代码,或者写=‘’;
宏代码左下角的禁用选框,可以启用或禁用。
34211675a78aef00e0.png
function main(simpleReport, simpleReportContext) {
    //debugger;
    //"none"表示为隐藏,""表示为显示
    setTimeout(function() {
        simpleReport.btnBackward.parentNode.style.display = "none"; //后退
        simpleReport.btnForward.parentNode.style.display = "none"; //前进
        simpleReport.btnRefresh.parentNode.style.display = ""; //刷新
        simpleReport.btnSave.parentNode.style.display = "none"; //保存
        simpleReport.btnSaveAs.parentNode.style.display = "none"; //另存为
        simpleReport.btnMyFavorite.parentNode.style.display = "none"; //隐藏收藏夹
        simpleReport.btnChart.parentNode.style.display = "none"; //图形
        simpleReport.btnView.parentNode.style.display = "none"; //视图
        simpleReport.btnSelectField.parentNode.style.display = "none"; //添加/删除字段
        simpleReport.btnQueryViewSetting.parentNode.style.display = "none"; //报表设置
        simpleReport.btnReportParam.parentNode.style.display = "none"; //参数设置
        simpleReport.btnExport.parentNode.style.display = ""; //导出
        simpleReport.btnPrint.parentNode.style.display = "none"; //打印

        if (simpleReport.btnTimeConsuming) {
            simpleReport.btnTimeConsuming.parentNode.style.display = "none"; //耗时分析
        }
        if (simpleReport.elem_btnSetUserParam) {
            simpleReport.elem_btnSetUserParam.parentNode.style.display = "none"; //个人参数
        }
        simpleReport.btnEditDataset.parentNode.style.display = "none"; //定位数据集
        if (simpleReport.elemCreateInsightInQuery) {
            simpleReport.elemCreateInsightInQuery.parentNode.style.display = "none"; //透视分析
        }
    }, 100)
}

回复

使用道具 举报

发表于 2024-12-12 15:57:13
回复

使用道具 举报

发表于 2025-4-10 15:12:47
学习了
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

8回帖数 0关注人数 1055浏览人数
最后回复于:2025-4-10 15:12
快速回复 返回顶部 返回列表