From b4ae414413b1ebe449f93b54d4514d3f1d1b06a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=90=AA?= <727393967@qq.com> Date: Tue, 22 Oct 2024 11:04:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E9=A9=BE=E7=9A=84=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E4=BB=8E=E6=BD=9C=E8=88=AA=E5=91=98=E4=B8=AD?= =?UTF-8?q?=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dataTransfer/sampleViews/formViews/Platform.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/dataTransfer/sampleViews/formViews/Platform.vue b/src/views/dataTransfer/sampleViews/formViews/Platform.vue index 0b64751..1b4ec6b 100644 --- a/src/views/dataTransfer/sampleViews/formViews/Platform.vue +++ b/src/views/dataTransfer/sampleViews/formViews/Platform.vue @@ -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 }) }, // 选择航次名称