From aab7a50b7fda3d5e05886eece652611d505f52d2 Mon Sep 17 00:00:00 2001 From: MeterSphere Bot <78466014+metersphere-bot@users.noreply.github.com> Date: Mon, 19 Sep 2022 11:31:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=A4=9A=E9=80=89=E6=88=90=E5=91=98=E6=B2=A1=E6=9C=89=E5=80=BC?= =?UTF-8?q?=E7=9A=84=E7=BC=BA=E9=99=B7=20(#17971)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016828 --user=王孝刚 【项目设置】模板管理-自定义字段,多选成员下拉框不显示数据 https://www.tapd.cn/55049933/s/1244631 Co-authored-by: wxg0103 <727495428@qq.com> --- .../project/template/CustomFiledComponent.vue | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/frontend/src/business/components/project/template/CustomFiledComponent.vue b/frontend/src/business/components/project/template/CustomFiledComponent.vue index 2e4cf23a13..f53dc5eb58 100644 --- a/frontend/src/business/components/project/template/CustomFiledComponent.vue +++ b/frontend/src/business/components/project/template/CustomFiledComponent.vue @@ -155,15 +155,14 @@ export default { } } } - if (this.data.type.indexOf("member") < 0) { - return; + if (this.data.type === 'member' || this.data.type === 'multipleMember') { + getProjectMemberOption((data) => { + this.memberOptions = data; + if (this.data.name === '责任人' && this.data.system && this.isTemplateEdit) { + this.memberOptions.unshift({id: 'CURRENT_USER', name: '创建人', email: ''}); + } + }); } - getProjectMemberOption((data) => { - this.memberOptions = data; - if (this.data.name === '责任人' && this.data.system && this.isTemplateEdit) { - this.memberOptions.unshift({id: 'CURRENT_USER', name: '创建人', email: ''}); - } - }); }, methods: { getTranslateOption(item) {