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];
|
export const TEST_CASE_RELEVANCE_ISSUE_LIST = [NAME, PLATFORM, CREATE_TIME, CREATOR];
|
||||||
|
|
|
@ -98,6 +98,10 @@
|
||||||
{{ scope.row.createTime | datetimeFormat }}
|
{{ 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'">
|
<span v-else-if="item.id === 'caseCount'">
|
||||||
<router-link
|
<router-link
|
||||||
:to="scope.row.caseCount > 0 ? {name: 'testCase', params: { projectId: 'all', ids: scope.row.caseIds }} : {}">
|
:to="scope.row.caseCount > 0 ? {name: 'testCase', params: { projectId: 'all', ids: scope.row.caseIds }} : {}">
|
||||||
|
@ -268,6 +272,10 @@ export default {
|
||||||
sortable: true,
|
sortable: true,
|
||||||
minWidth: 180
|
minWidth: 180
|
||||||
},
|
},
|
||||||
|
updateTime: {
|
||||||
|
sortable: true,
|
||||||
|
minWidth: 180
|
||||||
|
},
|
||||||
caseCount: {}
|
caseCount: {}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -137,6 +137,7 @@ const TRACK_HEADER = {
|
||||||
{id: 'description', key: '7', label: 'test_track.issue.description'},
|
{id: 'description', key: '7', label: 'test_track.issue.description'},
|
||||||
{id: 'caseCount', key: '9', label: 'api_test.definition.api_case_number'},
|
{id: 'caseCount', key: '9', label: 'api_test.definition.api_case_number'},
|
||||||
{id: 'createTime', key: '8', label: 'commons.create_time'},
|
{id: 'createTime', key: '8', label: 'commons.create_time'},
|
||||||
|
{id: 'updateTime', key: 'a', label: 'commons.update_time'}
|
||||||
],
|
],
|
||||||
//用例评审
|
//用例评审
|
||||||
TEST_CASE_REVIEW: [
|
TEST_CASE_REVIEW: [
|
||||||
|
|
|
@ -34,20 +34,20 @@
|
||||||
>
|
>
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
|
|
||||||
<span v-if="item.id === 'platformStatus'">
|
<span v-if="item.id === 'platformStatus'">
|
||||||
<span v-if="scope.row.platform === 'Tapd'">
|
<span v-if="scope.row.platform === 'Tapd'">
|
||||||
{{ scope.row.platformStatus ? tapdIssueStatusMap[scope.row.platformStatus] : '--' }}
|
{{ scope.row.platformStatus ? tapdIssueStatusMap[scope.row.platformStatus] : '--' }}
|
||||||
</span>
|
</span>
|
||||||
<span v-else-if="scope.row.platform ==='Local'">
|
<span v-else-if="scope.row.platform ==='Local'">
|
||||||
{{ scope.row.platformStatus ? tapdIssueStatusMap[scope.row.platformStatus] : '--' }}
|
{{ scope.row.platformStatus ? tapdIssueStatusMap[scope.row.platformStatus] : '--' }}
|
||||||
</span>
|
</span>
|
||||||
<span v-else-if="platformStatusMap && platformStatusMap.get(scope.row.platformStatus)">
|
<span v-else-if="platformStatusMap && platformStatusMap.get(scope.row.platformStatus)">
|
||||||
{{ platformStatusMap.get(scope.row.platformStatus) }}
|
{{ platformStatusMap.get(scope.row.platformStatus) }}
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
{{ scope.row.platformStatus ? scope.row.platformStatus : '--' }}
|
{{ scope.row.platformStatus ? scope.row.platformStatus : '--' }}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<ms-review-table-item
|
<ms-review-table-item
|
||||||
v-else-if="item.id === 'description'"
|
v-else-if="item.id === 'description'"
|
||||||
|
@ -55,40 +55,44 @@
|
||||||
prop="description"/>
|
prop="description"/>
|
||||||
|
|
||||||
<span v-else-if="item.id === 'resourceName'">
|
<span v-else-if="item.id === 'resourceName'">
|
||||||
<el-link v-if="scope.row.resourceName"
|
<el-link v-if="scope.row.resourceName"
|
||||||
@click="$router.push('/track/plan/view/' + scope.row.resourceId)">
|
@click="$router.push('/track/plan/view/' + scope.row.resourceId)">
|
||||||
{{ scope.row.resourceName }}
|
{{ scope.row.resourceName }}
|
||||||
</el-link>
|
</el-link>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
--
|
--
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span v-else-if="item.id === 'createTime'">
|
<span v-else-if="item.id === 'createTime'">
|
||||||
{{ scope.row.createTime | datetimeFormat }}
|
{{ 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'">
|
<span v-else-if="item.id === 'caseCount'">
|
||||||
<router-link
|
<router-link
|
||||||
:to="scope.row.caseCount > 0 ? {name: 'testCase', params: { projectId: 'all', ids: scope.row.caseIds }} : {}">
|
:to="scope.row.caseCount > 0 ? {name: 'testCase', params: { projectId: 'all', ids: scope.row.caseIds }} : {}">
|
||||||
{{ scope.row.caseCount }}
|
{{ scope.row.caseCount }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<!-- 自定义字段 -->
|
<!-- 自定义字段 -->
|
||||||
<span v-else-if="item.isCustom">
|
<span v-else-if="item.isCustom">
|
||||||
<span v-if="item.type === 'richText' && scope.row.displayValueMap[item.id]">
|
<span v-if="item.type === 'richText' && scope.row.displayValueMap[item.id]">
|
||||||
<ms-review-table-item
|
<ms-review-table-item
|
||||||
:data="scope.row.displayValueMap" :prop="item.id"/>
|
:data="scope.row.displayValueMap" :prop="item.id"/>
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
{{ scope.row.displayValueMap[item.id] }}
|
{{ scope.row.displayValueMap[item.id] }}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span v-else>
|
<span v-else>
|
||||||
{{ scope.row[item.id] }}
|
{{ scope.row[item.id] }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</ms-table-column>
|
</ms-table-column>
|
||||||
|
@ -195,6 +199,10 @@ export default {
|
||||||
sortable: true,
|
sortable: true,
|
||||||
minWidth: 180
|
minWidth: 180
|
||||||
},
|
},
|
||||||
|
updateTime: {
|
||||||
|
sortable: true,
|
||||||
|
minWidth: 180
|
||||||
|
},
|
||||||
caseCount: {}
|
caseCount: {}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -134,6 +134,7 @@ const TRACK_HEADER = {
|
||||||
{id: 'description', key: '7', label: 'test_track.issue.description'},
|
{id: 'description', key: '7', label: 'test_track.issue.description'},
|
||||||
{id: 'caseCount', key: '9', label: 'api_test.definition.api_case_number'},
|
{id: 'caseCount', key: '9', label: 'api_test.definition.api_case_number'},
|
||||||
{id: 'createTime', key: '8', label: 'commons.create_time'},
|
{id: 'createTime', key: '8', label: 'commons.create_time'},
|
||||||
|
{id: 'updateTime', key: 'a', label: 'commons.update_time'}
|
||||||
],
|
],
|
||||||
//用例评审
|
//用例评审
|
||||||
TEST_CASE_REVIEW: [
|
TEST_CASE_REVIEW: [
|
||||||
|
|
Loading…
Reference in New Issue