fix: 修复缺陷描述,测试结果列表表格太长

This commit is contained in:
wenyann 2020-08-26 13:29:29 +08:00
parent f642b5ace1
commit 7afbe8fa3f
2 changed files with 34 additions and 13 deletions

View File

@ -24,6 +24,17 @@
prop="description"
:label="$t('test_track.module.describe')"
show-overflow-tooltip>
<template v-slot:default="scope">
<el-popover
placement="left"
width="400"
trigger="hover"
>
<ckeditor :editor="editor" disabled :config="readConfig"
v-model="scope.row.description"/>
<el-button slot="reference" type="text">{{$t('test_track.issue.preview')}}</el-button>
</el-popover>
</template>
</el-table-column>
<el-table-column
@ -57,6 +68,7 @@
import TypeTableItem from "../../../../../common/tableItems/planview/TypeTableItem";
import MethodTableItem from "../../../../../common/tableItems/planview/MethodTableItem";
import StatusTableItem from "../../../../../common/tableItems/planview/StatusTableItem";
import ClassicEditor from "@ckeditor/ckeditor5-build-classic";
export default {
name: "DefectListComponent",
components: {StatusTableItem, MethodTableItem, TypeTableItem, PriorityTableItem, CommonComponent},
@ -77,6 +89,13 @@
]
}
}
},
data() {
return {
editor: ClassicEditor,
readConfig: {toolbar: []},
}
}
}
</script>

View File

@ -11,53 +11,55 @@
<el-table-column
prop="moduleName"
:label="$t('test_track.module.module')"
width="180">
width="102">
</el-table-column>
<el-table-column
prop="caseCount"
:label="$t('test_track.plan_view.case_count')"
width="180">
width="102">
</el-table-column>
<el-table-column
prop="passCount"
:label="$t('test_track.plan_view.pass')"
width="180">
width="102">
</el-table-column>
<el-table-column
prop="failureCount"
:label="$t('test_track.plan_view.failure')"
width="180">
width="102">
</el-table-column>
<el-table-column
prop="blockingCount"
:label="$t('test_track.plan_view.blocking')"
width="180">
width="102">
</el-table-column>
<el-table-column
prop="skipCount"
:label="$t('test_track.plan_view.skip')"
width="180">
width="102">
</el-table-column>
<el-table-column
prop="underwayCount"
:label="$t('test_track.plan.plan_status_running')"
width="180">
width="102">
</el-table-column>
<el-table-column
prop="prepareCount"
:label="$t('test_track.plan.plan_status_prepare')"
width="180">
width="102">
</el-table-column>
<el-table-column
prop="passRate"
:label="$t('test_track.pass_rate')">
:label="$t('test_track.pass_rate')"
width="102">
<template v-slot:default="scope">
{{scope.row.passRate}}%
</template>
</el-table-column>
<el-table-column
prop="issuesCount"
:label="$t('test_track.plan_view.issues_count')">
:label="$t('test_track.plan_view.issues_count')"
width="102">
</el-table-column>
</el-table>
</template>