fix(测试跟踪): 缺陷列表状态显示重复

--bug=1014488 --user=陈建星 【测试跟踪】集成metersphere平台,创建缺陷的状态列表页显示重复 https://www.tapd.cn/55049933/s/1193720
This commit is contained in:
chenjianxing 2022-07-04 10:50:08 +08:00 committed by jianxing
parent 9e42c8ae83
commit f01d7de5f2
1 changed files with 5 additions and 4 deletions

View File

@ -136,9 +136,9 @@
:prop="field.name">
<template v-slot="scope">
<span v-if="field.name === '状态'">
{{getCustomFieldValue(scope.row, field) ? getCustomFieldValue(scope.row, field) : issueStatusMap[scope.row.status]}}
{{getCustomFieldValue(scope.row, field, issueStatusMap[scope.row.status])}}
</span>
<span v-if="field.type === 'richText'">
<span v-else-if="field.type === 'richText'">
<el-popover
placement="right"
width="500"
@ -280,8 +280,9 @@ export default {
tableDoLayout() {
if (this.$refs.table) this.$refs.table.doLayout();
},
getCustomFieldValue(row, field) {
return getCustomFieldValue(row, field, this.members);
getCustomFieldValue(row, field, defaultVal) {
let value = getCustomFieldValue(row, field, this.members);
return value ? value : defaultVal;
},
initFields(template) {
this.issueTemplate = template;