When the form under tabs fails to pass, open the corresponding tabs directly, and verify the input where it is popular
this.$refs["form"].validate((valid,obj) => {
if (valid && !this.isSame(groupName)) {
if (this.active++ > 2) this.active = 0;
} else if (this.isSame(groupName)) {
this.msgError('名称不能重复')
} else if (!valid) {
this.msgError('请正确填写必填项');
for(let key in obj){
if(JSON.stringify(key).indexOf("groupList.0") >= 1){
return this.activeName=0;
}else if(JSON.stringify(key).indexOf("groupList.1") >= 1){
return this.activeName=1;
}else if(JSON.stringify(key).indexOf("groupList.2") >= 1){
return this.activeName=2;
}
}
}
})