var textEditor0 = this.getValue();
console.log('textEditor0',textEditor0)
if (textEditor0 == "催收员") {
$(".fr-sheetbutton-container").eq(0).trigger("click");
$('li[title="佣金趋势图"]').hide();
$('li[title="业绩趋势图"]').show();
}
JS隐藏sheet页:https://help.fanruan.com/finereport/doc-view-1740.html?source=4
参考:https://bbs.fanruan.com/wenda/question/139449.html
------------------------------------------------------
var sheet=this.getValue(); //获取参数值
if(sheet=="分公司"){
$(".fr-sheetbutton-container").eq(0).trigger("click");//第一个sheet
$('li[title="支公司"]').hide(); // 隐藏sheet
$('li[title="中支"]').hide();// 隐藏sheet
$('li[title="营服"]').hide();// 隐藏sheet
$('li[title="分公司"]').show();// 显示sheet
控件初始化后事件
setTimeout(function(){
var textEditor0=this.getValue(); //获取参数值
if(textEditor0=="催收员"){
$('li[title="佣金趋势图"]').hide();// 隐藏sheet
$('li[title="业绩趋势图"]').show();// 显示sheet
},500)