fix: 修复缺陷描述,测试结果列表表格太长
This commit is contained in:
parent
f642b5ace1
commit
7afbe8fa3f
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue