设计控件可用不可用就好了啊 你这样说 就只能这样回答
var province = this.options.form.getWidgetByName("province");
var area = this.options.form.getWidgetByName("area");
var thislen = this.getValue(area).length;
if(thislen) {
province.setVisible(true);
this.options.form.getWidgetByName("label3").setVisible(true);
} else {
province.setVisible(false);
this.options.form.getWidgetByName("label3").setVisible(false);
alert("请选择地区");
}
JS根据条件控制参数控件是否显示(可用)-https://help.finereport.com/doc-view-1195.html