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