下面这段提示错误var type;type = _g().getWidgetByName("type").getValue(); //获取报表主体控件的控件值var d = this.options.form.getWidgetByName("data_date");var w = this.options.form.getWidgetByName("data_week");if (type == "日") { d.setVisible(true); w.setVisible(false);} else if(type == "周"){ d.setVisible(false); w.setVisible(true);} { d.setVisible(false); w.setVisible(false);}