主驾的人员选择从潜航员中选
This commit is contained in:
parent
580f832a86
commit
b4ae414413
|
|
@ -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
|
||||
})
|
||||
},
|
||||
// 选择航次名称
|
||||
|
|
|
|||
Loading…
Reference in New Issue