当获取到前端登录人ID为000时 BZ控件不展示
if(Pdata="000"){
_g().options.form.getwidgetByName("bz") .setVisible(true);
}
else {
_g().options.form.getwidgetByName("bz") .setVisible(flase);
这个对的啊
不行,这个框起来的去掉试试
记得加一个延迟函数
setTimeout(function() {
你现在的js
}, 800);
https://help.fanruan.com/finereport/doc-view-3151.html
用$fine_username查ID
$fr_username用这个啊,你这个loginid从哪里来的
var that=this;
setTimeout(function(){
that.options.form.getwidgetByName("bz") .setVisible(true);
that.options.form.getwidgetByName("bz") .setVisible(flase);
},100)
控件默认为显示,只需要
this.setVisible(false);
就可以了
loginid 改成$fine_username