fix(接口定义): 修复自定义字段多选成员没有值的缺陷 (#17970)

--bug=1016828 --user=王孝刚 【项目设置】模板管理-自定义字段,多选成员下拉框不显示数据
https://www.tapd.cn/55049933/s/1244631

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-09-19 11:31:16 +08:00 committed by GitHub
parent 1058e54655
commit 04676ea0cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 8 deletions

View File

@ -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) {