fix(测试跟踪): 缺陷列表状态显示重复
--bug=1014488 --user=陈建星 【测试跟踪】集成metersphere平台,创建缺陷的状态列表页显示重复 https://www.tapd.cn/55049933/s/1193720
This commit is contained in:
parent
57338c3c12
commit
7533d68578
|
@ -140,9 +140,9 @@
|
||||||
:prop="field.name">
|
:prop="field.name">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<span v-if="field.name === '状态'">
|
<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>
|
||||||
<span v-if="field.type === 'richText'">
|
<span v-else-if="field.type === 'richText'">
|
||||||
<el-popover
|
<el-popover
|
||||||
placement="right"
|
placement="right"
|
||||||
width="500"
|
width="500"
|
||||||
|
@ -289,8 +289,9 @@ export default {
|
||||||
tableDoLayout() {
|
tableDoLayout() {
|
||||||
if (this.$refs.table) this.$refs.table.doLayout();
|
if (this.$refs.table) this.$refs.table.doLayout();
|
||||||
},
|
},
|
||||||
getCustomFieldValue(row, field) {
|
getCustomFieldValue(row, field, defaultVal) {
|
||||||
return getCustomFieldValue(row, field, this.members);
|
let value = getCustomFieldValue(row, field, this.members);
|
||||||
|
return value ? value : defaultVal;
|
||||||
},
|
},
|
||||||
getCustomFieldFilter(field) {
|
getCustomFieldFilter(field) {
|
||||||
if (field.type === 'multipleMember') {
|
if (field.type === 'multipleMember') {
|
||||||
|
|
Loading…
Reference in New Issue