every遍历
This commit is contained in:
@@ -594,9 +594,13 @@ export default {
|
|||||||
this.form.companionList = []
|
this.form.companionList = []
|
||||||
} else {
|
} else {
|
||||||
if(this.people.length != this.form.companionCount) {
|
if(this.people.length != this.form.companionCount) {
|
||||||
this.$u.toast('请输入完整的同行人信息')
|
return this.$u.toast('请输入完整的同行人信息')
|
||||||
} else {
|
} else {
|
||||||
this.form.companionList = this.people
|
if(this.people.every(val=> (val.name=='') || (val.phone=='')) ) {
|
||||||
|
return this.$u.toast('请输入完整的同行人信息')
|
||||||
|
} else {
|
||||||
|
this.form.companionList = this.people
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user