refactor(接口测试): 修复修改表头设置调整字段顺序没立即生效的缺陷 (#12276)

--bug=1011885 --user=王孝刚 【接口测试】接口定义 - CASE 列表,表头设置调整字段顺序没生效
https://www.tapd.cn/55049933/s/1129312

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-04-02 12:34:51 +08:00 committed by GitHub
parent 707a1c295e
commit b51bc1e444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 20 deletions

View File

@ -1,25 +1,26 @@
<template>
<div>
<el-table
border
class="test-content adjust-table ms-table"
v-loading="tableIsLoading"
:data="data"
:default-sort="defaultSort"
:class="{'ms-select-all-fixed': showSelectAll}"
:height="screenHeight"
:row-key="rowKey"
:row-class-name="tableRowClassName"
:cell-class-name="addPaddingColClass"
:highlight-current-row="highlightCurrentRow"
@sort-change="sort"
@filter-change="filter"
@select-all="handleSelectAll"
@select="handleSelect"
@header-dragend="headerDragend"
@cell-mouse-enter="showPopover"
@row-click="handleRowClick"
ref="table">
border
class="test-content adjust-table ms-table"
v-loading="tableIsLoading"
:data="data"
:default-sort="defaultSort"
:class="{'ms-select-all-fixed': showSelectAll}"
:height="screenHeight"
:row-key="rowKey"
:row-class-name="tableRowClassName"
:cell-class-name="addPaddingColClass"
:highlight-current-row="highlightCurrentRow"
@sort-change="sort"
@filter-change="filter"
@select-all="handleSelectAll"
@select="handleSelect"
@header-dragend="headerDragend"
@cell-mouse-enter="showPopover"
@row-click="handleRowClick"
:key="tableActive"
ref="table">
<el-table-column
v-if="enableSelection"
@ -165,7 +166,8 @@ export default {
selectRows: new Set(),
selectIds: [],
// hasBatchTipShow: false,
defaultSort: {}
defaultSort: {},
tableActive: true
};
},
props: {
@ -479,8 +481,10 @@ export default {
this.$refs.table.toggleRowSelection();
},
reloadTable() {
this.tableActive = false;
this.$nextTick(() => {
this.doLayout();
this.tableActive = true;
});
},
addPaddingColClass({column}) {