feat(测试跟踪): 缺陷列表新增更新时间字段

--story=1011149 --user=陈建星 缺陷管理页面增加更新时间字段 https://www.tapd.cn/55049933/s/1333585
This commit is contained in:
chenjianxing 2023-02-10 10:48:50 +08:00 committed by jianxing
parent 5666dea7de
commit cf92376038
5 changed files with 57 additions and 39 deletions

View File

@ -982,7 +982,7 @@ export const TEST_CASE_RELEVANCE_LOAD_CASE = [NAME, STATUS, CREATE_TIME, UPDATE_
// 测试跟踪-缺陷管理-缺陷列表
export const TEST_TRACK_ISSUE_LIST = [NAME, PLATFORM, CREATE_TIME, CREATOR];
export const TEST_TRACK_ISSUE_LIST = [NAME, PLATFORM, CREATE_TIME, UPDATE_TIME, CREATOR];
// 测试跟踪-测试用例-关联缺陷
export const TEST_CASE_RELEVANCE_ISSUE_LIST = [NAME, PLATFORM, CREATE_TIME, CREATOR];

View File

@ -98,6 +98,10 @@
{{ scope.row.createTime | datetimeFormat }}
</span>
<span v-else-if="item.id === 'updateTime'">
{{ scope.row.updateTime | datetimeFormat }}
</span>
<span v-else-if="item.id === 'caseCount'">
<router-link
:to="scope.row.caseCount > 0 ? {name: 'testCase', params: { projectId: 'all', ids: scope.row.caseIds }} : {}">
@ -268,6 +272,10 @@ export default {
sortable: true,
minWidth: 180
},
updateTime: {
sortable: true,
minWidth: 180
},
caseCount: {}
}
};

View File

@ -137,6 +137,7 @@ const TRACK_HEADER = {
{id: 'description', key: '7', label: 'test_track.issue.description'},
{id: 'caseCount', key: '9', label: 'api_test.definition.api_case_number'},
{id: 'createTime', key: '8', label: 'commons.create_time'},
{id: 'updateTime', key: 'a', label: 'commons.update_time'}
],
//用例评审
TEST_CASE_REVIEW: [

View File

@ -68,6 +68,10 @@
{{ scope.row.createTime | datetimeFormat }}
</span>
<span v-else-if="item.id === 'updateTime'">
{{ scope.row.updateTime | datetimeFormat }}
</span>
<span v-else-if="item.id === 'caseCount'">
<router-link
:to="scope.row.caseCount > 0 ? {name: 'testCase', params: { projectId: 'all', ids: scope.row.caseIds }} : {}">
@ -195,6 +199,10 @@ export default {
sortable: true,
minWidth: 180
},
updateTime: {
sortable: true,
minWidth: 180
},
caseCount: {}
}
};

View File

@ -134,6 +134,7 @@ const TRACK_HEADER = {
{id: 'description', key: '7', label: 'test_track.issue.description'},
{id: 'caseCount', key: '9', label: 'api_test.definition.api_case_number'},
{id: 'createTime', key: '8', label: 'commons.create_time'},
{id: 'updateTime', key: 'a', label: 'commons.update_time'}
],
//用例评审
TEST_CASE_REVIEW: [