fix(测试跟踪): 评审和测试计划用例的评论不应展示评论状态

--bug=1025872 --user=陈建星 【测试跟踪】测试跟踪评审中查看用例显示评论为空 https://www.tapd.cn/55049933/s/1368891
This commit is contained in:
chenjianxing 2023-05-05 16:07:39 +08:00 committed by jianxing
parent 21f692b9af
commit 37fd7ca7c6
2 changed files with 7 additions and 2 deletions

View File

@ -123,6 +123,7 @@
:key="index"
:comment="comment"
:read-only="readOnly"
:show-status="false"
@refresh="getComments" api-url="/test/case"/>
<div v-if="!comments || comments.length === 0" style="text-align: center">
<i class="el-icon-chat-line-square" style="font-size: 15px;color: #8a8b8d;">

View File

@ -10,7 +10,7 @@
<span style="color: #8a8b8d; margin-left: 8px; font-size: 12px">
{{ comment.createTime | datetimeFormat }}
</span>
<span>
<span v-if="showStatus">
<status-table-item v-if="comment.status" :value="comment.status"/>
</span>
<span class="comment-delete">
@ -65,7 +65,11 @@ export default {
type: Boolean,
default: false
},
apiUrl: String
apiUrl: String,
showStatus: {
type: Boolean,
default: true
},
},
data() {
return {