这段JS目前只对第一次选择起作用,选择调整表1,表2科目的控件会被隐藏,但是再切换成调整表2,没有任何变化;以下时JS,设置的编辑后事件://获取下拉框控件 车型 科目var model = this.options.form.getWidgetByName("车型");var account = this.options.form.getWidgetByName("科目");var account2 = this.options.form.getWidgetByName("表2科目");//获取下拉框控件areavar tablename = this.options.form.getWidgetByName("表名");var thisvalue = this.getValue();//取表名控件中值if(thisvalue="调整表1") { model.setVisible(true); account.setVisible(true); account2.setVisible(false); this.options.form.getWidgetByName("车型").setVisible(true); this.options.form.getWidgetByName("科目").setVisible(true); this.options.form.getWidgetByName("表2科目").setVisible(false); this.options.form.getWidgetByName("Label表2科目").setVisible(false);} else if(thisvalue="调整表2") { model.setVisible(false); account.setVisible(false); account2.setVisible(true); this.options.form.getWidgetByName("车型").setVisible(false); this.options.form.getWidgetByName("科目").setVisible(false); this.options.form.getWidgetByName("表2科目").setVisible(true); this.options.form.getWidgetByName("Label表2科目").setVisible(true);} else { model.setVisible(true); account.setVisible(true); account2.setVisible(true); this.options.form.getWidgetByName("车型").setVisible(true); this.options.form.getWidgetByName("科目").setVisible(true); this.options.form.getWidgetByName("表2科目").setVisible(true); this.options.form.getWidgetByName("Label表2科目").setVisible(true);}