主驾的人员选择从潜航员中选

This commit is contained in:
2024-10-22 11:04:34 +08:00
parent 580f832a86
commit b4ae414413
1 changed files with 5 additions and 3 deletions

View File

@ -444,11 +444,13 @@ export default {
getMemberList(id) {
memberList({ voyage_id: id }).then(res => {
this.memberOptions = res.array
this.mainMemberOptions = this.memberOptions.filter(obj => {
if (obj.member_dept.includes('潜航员')) {
return obj
const mainArr = []
res.array.forEach(item => {
if (item.member_dept && item.member_dept.includes('潜航员')) {
mainArr.push(item)
}
})
this.mainMemberOptions = mainArr
})
},
//