feat(测试跟踪): 缺陷列表新增更新时间字段
--story=1011149 --user=陈建星 缺陷管理页面增加更新时间字段 https://www.tapd.cn/55049933/s/1333585
This commit is contained in:
parent
99e88868da
commit
78b9d08652
|
@ -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];
|
||||
|
|
|
@ -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: {}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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: [
|
||||
|
|
|
@ -34,20 +34,20 @@
|
|||
>
|
||||
<template v-slot="scope">
|
||||
|
||||
<span v-if="item.id === 'platformStatus'">
|
||||
<span v-if="scope.row.platform === 'Tapd'">
|
||||
{{ scope.row.platformStatus ? tapdIssueStatusMap[scope.row.platformStatus] : '--' }}
|
||||
</span>
|
||||
<span v-else-if="scope.row.platform ==='Local'">
|
||||
{{ scope.row.platformStatus ? tapdIssueStatusMap[scope.row.platformStatus] : '--' }}
|
||||
</span>
|
||||
<span v-else-if="platformStatusMap && platformStatusMap.get(scope.row.platformStatus)">
|
||||
{{ platformStatusMap.get(scope.row.platformStatus) }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ scope.row.platformStatus ? scope.row.platformStatus : '--' }}
|
||||
</span>
|
||||
</span>
|
||||
<span v-if="item.id === 'platformStatus'">
|
||||
<span v-if="scope.row.platform === 'Tapd'">
|
||||
{{ scope.row.platformStatus ? tapdIssueStatusMap[scope.row.platformStatus] : '--' }}
|
||||
</span>
|
||||
<span v-else-if="scope.row.platform ==='Local'">
|
||||
{{ scope.row.platformStatus ? tapdIssueStatusMap[scope.row.platformStatus] : '--' }}
|
||||
</span>
|
||||
<span v-else-if="platformStatusMap && platformStatusMap.get(scope.row.platformStatus)">
|
||||
{{ platformStatusMap.get(scope.row.platformStatus) }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ scope.row.platformStatus ? scope.row.platformStatus : '--' }}
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<ms-review-table-item
|
||||
v-else-if="item.id === 'description'"
|
||||
|
@ -55,40 +55,44 @@
|
|||
prop="description"/>
|
||||
|
||||
<span v-else-if="item.id === 'resourceName'">
|
||||
<el-link v-if="scope.row.resourceName"
|
||||
@click="$router.push('/track/plan/view/' + scope.row.resourceId)">
|
||||
{{ scope.row.resourceName }}
|
||||
</el-link>
|
||||
<span v-else>
|
||||
--
|
||||
</span>
|
||||
</span>
|
||||
<el-link v-if="scope.row.resourceName"
|
||||
@click="$router.push('/track/plan/view/' + scope.row.resourceId)">
|
||||
{{ scope.row.resourceName }}
|
||||
</el-link>
|
||||
<span v-else>
|
||||
--
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<span v-else-if="item.id === 'createTime'">
|
||||
{{ scope.row.createTime | datetimeFormat }}
|
||||
</span>
|
||||
</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 }} : {}">
|
||||
{{ scope.row.caseCount }}
|
||||
</router-link>
|
||||
</span>
|
||||
<router-link
|
||||
:to="scope.row.caseCount > 0 ? {name: 'testCase', params: { projectId: 'all', ids: scope.row.caseIds }} : {}">
|
||||
{{ scope.row.caseCount }}
|
||||
</router-link>
|
||||
</span>
|
||||
|
||||
<!-- 自定义字段 -->
|
||||
<span v-else-if="item.isCustom">
|
||||
<span v-if="item.type === 'richText' && scope.row.displayValueMap[item.id]">
|
||||
<ms-review-table-item
|
||||
:data="scope.row.displayValueMap" :prop="item.id"/>
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ scope.row.displayValueMap[item.id] }}
|
||||
</span>
|
||||
</span>
|
||||
<span v-if="item.type === 'richText' && scope.row.displayValueMap[item.id]">
|
||||
<ms-review-table-item
|
||||
:data="scope.row.displayValueMap" :prop="item.id"/>
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ scope.row.displayValueMap[item.id] }}
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<span v-else>
|
||||
{{ scope.row[item.id] }}
|
||||
</span>
|
||||
{{ scope.row[item.id] }}
|
||||
</span>
|
||||
|
||||
</template>
|
||||
</ms-table-column>
|
||||
|
@ -195,6 +199,10 @@ export default {
|
|||
sortable: true,
|
||||
minWidth: 180
|
||||
},
|
||||
updateTime: {
|
||||
sortable: true,
|
||||
minWidth: 180
|
||||
},
|
||||
caseCount: {}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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: [
|
||||
|
|
Loading…
Reference in New Issue