fix(测试跟踪): 功能用例列表多选字段处理导致样式问题
--bug=1018360 --user=宋昌昌 【测试跟踪】用例列表样式错乱,刷新浏览器或重新登录都无法恢复 https://www.tapd.cn/55049933/s/1266854 Co-authored-by: song-cc-rock <changchang.song@fit2cloud.com>
This commit is contained in:
parent
96be530110
commit
d60ffba0cb
|
@ -466,16 +466,18 @@ export function getCustomFieldValue(row, field, members) {
|
||||||
}
|
}
|
||||||
} else if (field.type === 'multipleMember') {
|
} else if (field.type === 'multipleMember') {
|
||||||
let values = '';
|
let values = '';
|
||||||
item.value.forEach(v => {
|
if (item.value.length > 0) {
|
||||||
for (let j = 0; j < members.length; j++) {
|
item.value.forEach(v => {
|
||||||
let member = members[j];
|
for (let j = 0; j < members.length; j++) {
|
||||||
if (member.id === v) {
|
let member = members[j];
|
||||||
values += member.name;
|
if (member.id === v) {
|
||||||
values += " ";
|
values += member.name;
|
||||||
break;
|
values += " ";
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
}
|
||||||
return values;
|
return values;
|
||||||
} else if (['radio', 'select'].indexOf(field.type) > -1) {
|
} else if (['radio', 'select'].indexOf(field.type) > -1) {
|
||||||
if (field.options) {
|
if (field.options) {
|
||||||
|
|
Loading…
Reference in New Issue