style(测试跟踪): 测试报告优化
This commit is contained in:
parent
ccf7c0e52f
commit
7e6530a591
|
@ -2,7 +2,8 @@
|
|||
<common-component :title="$t('test_track.plan_view.defect_list')">
|
||||
<template>
|
||||
<el-table
|
||||
row-key="id"
|
||||
row-key="id"
|
||||
:data="defectList"
|
||||
>
|
||||
<el-table-column
|
||||
prop="id"
|
||||
|
@ -19,28 +20,26 @@
|
|||
:label="$t('test_track.module.title')"
|
||||
show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
|
||||
|
||||
<el-table-column
|
||||
prop="title"
|
||||
:label="$t('描述')"
|
||||
show-overflow-tooltip>
|
||||
prop="description"
|
||||
:label="$t('test_track.module.describe')"
|
||||
show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="title"
|
||||
:label="$t('状态')"
|
||||
show-overflow-tooltip>
|
||||
prop="status"
|
||||
:label="$t('test_track.module.status')"
|
||||
show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="title"
|
||||
:label="$t('处理人')"
|
||||
show-overflow-tooltip>
|
||||
prop="currentOwner"
|
||||
:label="$t('test_track.module.current_owner')"
|
||||
show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="title"
|
||||
:label="$t('创建时间')">
|
||||
prop="created"
|
||||
:label="$t('test_track.module.creation_time')">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</template>
|
||||
|
@ -58,16 +57,19 @@
|
|||
name: "DefectListComponent",
|
||||
components: {StatusTableItem, MethodTableItem, TypeTableItem, PriorityTableItem, CommonComponent},
|
||||
props: {
|
||||
failureTestCases: {
|
||||
defectList: {
|
||||
type: Array,
|
||||
default() {
|
||||
return [
|
||||
{
|
||||
id: "1023",
|
||||
module: "模块e",
|
||||
title: 'testCase1',
|
||||
description: "第一个模块测试",
|
||||
status: "接受/处理",
|
||||
currentOwner: "Andy",
|
||||
created: "2010.3.3",
|
||||
},
|
||||
{
|
||||
title: 'testCase1',
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<test-result-component :test-results="metric.moduleExecuteResult" v-if="preview.id == 2"/>
|
||||
<test-result-chart-component :execute-result="metric.executeResult" v-if="preview.id == 3"/>
|
||||
<failure-result-component :failure-test-cases="metric.failureTestCases" v-if="preview.id == 4"/>
|
||||
<defect-list-component :failure-test-cases="metric.failureTestCases" v-if="preview.id == 5"/>
|
||||
<defect-list-component :defect-list="metric.defectList" v-if="preview.id == 5"/>
|
||||
<rich-text-component :is-report-view="isReportView" :preview="preview" v-if="preview.type != 'system'"/>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -167,7 +167,6 @@
|
|||
getMetric() {
|
||||
this.result = this.$get('/test/plan/get/metric/' + this.planId, response => {
|
||||
this.metric = response.data;
|
||||
console.log(this.metric)
|
||||
if (!this.metric.failureTestCases) {
|
||||
this.metric.failureTestCases = [];
|
||||
}
|
||||
|
@ -177,6 +176,9 @@
|
|||
if (!this.metric.moduleExecuteResult) {
|
||||
this.metric.moduleExecuteResult = [];
|
||||
}
|
||||
/*缺陷列表*/
|
||||
this.metric.defectList = [];
|
||||
|
||||
if (this.report.startTime) {
|
||||
this.metric.startTime = new Date(this.report.startTime);
|
||||
}
|
||||
|
|
|
@ -606,7 +606,11 @@ export default {
|
|||
delete_confirm: "Confirm delete module:",
|
||||
delete_all_resource: "and all submodules and test cases under the module",
|
||||
module: "Module",
|
||||
title:"Title"
|
||||
title: "Title",
|
||||
describe: "Describe",
|
||||
status: "Status",
|
||||
current_owner: "Current Owner",
|
||||
creation_time: "Creation time"
|
||||
},
|
||||
home: {
|
||||
recent_test: "Recent test",
|
||||
|
|
|
@ -611,7 +611,11 @@ export default {
|
|||
delete_confirm: "确认删除模块: ",
|
||||
delete_all_resource: "以及模块下所有子模块和测试用例",
|
||||
module: "模块",
|
||||
title:"标题",
|
||||
title: "标题",
|
||||
status: "状态",
|
||||
describe: "描述",
|
||||
current_owner: "处理人",
|
||||
creation_time: "创建时间"
|
||||
},
|
||||
home: {
|
||||
recent_test: "最近测试",
|
||||
|
|
|
@ -606,7 +606,11 @@ export default {
|
|||
delete_confirm: "確認刪除模塊: ",
|
||||
delete_all_resource: "以及模塊下所有子模塊和測試用例",
|
||||
module: "模塊",
|
||||
title:"標題",
|
||||
title: "標題",
|
||||
status: "狀態",
|
||||
describe: "描述",
|
||||
current_owner: "處理人",
|
||||
creation_time: "創建時間"
|
||||
},
|
||||
home: {
|
||||
recent_test: "最近測試",
|
||||
|
|
Loading…
Reference in New Issue