可以将参数a设为控件,加JS判断是否显示,
参考如下:
时间维度控件上加状态改变
写JS,JS脚本如下:
var form = this.options.form;
var value = this.getValue();
if(value == "twoweek"){
form.invisible(["L年月1","L年月2","month1","month2"]);
form.visible(["L上双周开始日期","L上双周结束日期","L本双周开始日期","L本双周结束日期","start_date_sz","end_date_sz","start_date_bz","end_date_bz"]);
}else if(value == "month"){
form.invisible(["L上双周开始日期","L上双周结束日期","L本双周开始日期","L本双周结束日期","start_date_sz","end_date_sz","start_date_bz","end_date_bz"]);
form.visible(["L年月1","L年月2","month1","month2"]);
}