点击事件里面写:
const name = {};
for (const key in this.form) {
if (this.form[key] !== '' && this.form[key] !== null) {
name[key] = this.form[key];
}
}
this.get(name); //列表请求
点击事件里面写:
const name = {};
for (const key in this.form) {
if (this.form[key] !== '' && this.form[key] !== null) {
name[key] = this.form[key];
}
}
this.get(name); //列表请求