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

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) { getMemberList(id) {
memberList({ voyage_id: id }).then(res => { memberList({ voyage_id: id }).then(res => {
this.memberOptions = res.array this.memberOptions = res.array
this.mainMemberOptions = this.memberOptions.filter(obj => { const mainArr = []
if (obj.member_dept.includes('潜航员')) { res.array.forEach(item => {
return obj if (item.member_dept && item.member_dept.includes('潜航员')) {
mainArr.push(item)
} }
}) })
this.mainMemberOptions = mainArr
}) })
}, },
// //