refactor(测试跟踪): 缺陷列表平台状态字段宽度显示优化

--bug=1025402 --user=陈建星 【测试跟踪】缺陷管理-复选框下拉图标显示未剧中 https://www.tapd.cn/55049933/s/1362357
--bug=1025391 --user=陈建星 【测试跟踪】缺陷管理-tab栏显示问题 https://www.tapd.cn/55049933/s/1362451
This commit is contained in:
chenjianxing 2023-04-13 16:19:43 +08:00 committed by jianxing
parent 15c7c6ec7c
commit 3fc34cc060
3 changed files with 8 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<el-table-column class-name="msTableColumn"
v-if="active && (!field || field.id === prop)"
:min-width="minWidth"
:width="fieldsWidth ? fieldsWidth[prop] : width"
:width="displayWidth"
:fixed="fixed"
:filters="filters"
:prop="prop"
@ -91,6 +91,11 @@ export default {
mounted() {
this.active = true;
},
computed: {
displayWidth() {
return (this.fieldsWidth && this.fieldsWidth[this.prop]) ? this.fieldsWidth[this.prop] : this.width;
},
},
methods: {
renderHeader(h, data) {
if (data.column.label.length > 7) {

View File

@ -59,6 +59,7 @@
:sortable="item.sortable"
:min-width="item.minWidth"
:column-key="item.columnKey"
:width="item.width"
:fields-width="fieldsWidth"
:filters="item.filters"
>

View File

@ -130,7 +130,7 @@ const TRACK_HEADER = {
ISSUE_LIST: [
{id: 'num', key: '1', label: 'test_track.issue.id'},
{id: 'title', key: '2', label: 'test_track.issue.title'},
{id: 'platformStatus', key: '3', label: 'test_track.issue.platform_status'},
{id: 'platformStatus', key: '3', label: 'test_track.issue.platform_status', width: 120},
{id: 'platform', key: '4', label: 'test_track.issue.platform'},
{id: 'creatorName', key: '5', label: 'custom_field.issue_creator'},
{id: 'resourceName', key: '6', label: 'test_track.issue.issue_resource'},