if(this.getValue()=="2"){
$("td[id^='H']").css("display","");
}else{
$("td[id^='H']").css("display","none");
var cr = FR.cellStr2ColumnRow("H2");
_g().setCellValue(0, cr.col, cr.row,"");
}
你这个是分页预览
这个要直接显示控件,还要有延迟
var th=this;
setTimeout(function() {
if(th.getValue()=="2"){
}, 500);//1000毫秒等于一秒,自己根据需要修改时间
https://help.fanruan.com/finereport/doc-view-1215.html 参考
状态改变事件如下
var bl=this.getValue();
if(bl=="2"){
var ro = FR.cellStr2ColumnRow(this.options.location).row;
var co = FR.cellStr2ColumnRow(this.options.location).col;
_g().setCellValue(0, co,ro,"");
}, 200)
同时预览的时候用填报预览,而不是分页预览