如图,点击重置按钮报错: 这是事件: 这是事件的详细js: if (type == 1 && ddiType = 1) { console.log("进入部分刷新,教学站登录") var a = this.options.form.getWidgetByName("admission_batch_name"); a.setValue(); a.setText(); a.reset(); var b = this.options.form.getWidgetByName("MAJOR_NAME"); b.setValue(); b.setText(); b.reset(); var b1 = this.options.form.getWidgetByName("MAJOR_TYPE"); b1.setValue(); b1.setText(); b1.reset(); var c = this.options.form.getWidgetByName("real_name"); c.setValue(); c.setText(); c.reset(); var d = this.options.form.getWidgetByName("school_number"); d.setValue(); d.setText(); d.reset(); var e = this.options.form.getWidgetByName("teachingPointName"); e.setValue(); e.setText(); e.reset(); } else if (type == 1 && ddiType = 2) { console.log("进入部分刷新,教学点登录") var a = this.options.form.getWidgetByName("admission_batch_name"); a.setValue(); a.setText(); a.reset(); var b = this.options.form.getWidgetByName("MAJOR_NAME"); b.setValue(); b.setText(); b.reset(); var b1 = this.options.form.getWidgetByName("MAJOR_TYPE"); b1.setValue(); b1.setText(); b1.reset(); var c = this.options.form.getWidgetByName("real_name"); c.setValue(); c.setText(); c.reset(); var d = this.options.form.getWidgetByName("school_number"); d.setValue(); d.setText(); d.reset(); } else { console.log("进入全部刷新") $.each(this.options.form.name_widgets, function(i, item) { if (item.options.type !== 'label') { item.setValue(); } }); } 请问大佬们哪里不对,万分感谢 |