fix(接口测试): 修复修改表头设置调整字段顺序没立即生效的缺陷
--bug=1011885 --user=王孝刚 【接口测试】接口定义 - CASE 列表,表头设置调整字段顺序没生效 https://www.tapd.cn/55049933/s/1129312
This commit is contained in:
parent
69a0b46f00
commit
816b5f4031
|
@ -1,25 +1,26 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-table
|
<el-table
|
||||||
border
|
border
|
||||||
class="test-content adjust-table ms-table"
|
class="test-content adjust-table ms-table"
|
||||||
v-loading="tableIsLoading"
|
v-loading="tableIsLoading"
|
||||||
:data="data"
|
:data="data"
|
||||||
:default-sort="defaultSort"
|
:default-sort="defaultSort"
|
||||||
:class="{'ms-select-all-fixed': showSelectAll, 'row-click': rowClickStyle}"
|
:class="{'ms-select-all-fixed': showSelectAll, 'row-click': rowClickStyle}"
|
||||||
:height="screenHeight"
|
:height="screenHeight"
|
||||||
:row-key="rowKey"
|
:row-key="rowKey"
|
||||||
:row-class-name="tableRowClassName"
|
:row-class-name="tableRowClassName"
|
||||||
:cell-class-name="addPaddingColClass"
|
:cell-class-name="addPaddingColClass"
|
||||||
:highlight-current-row="highlightCurrentRow"
|
:highlight-current-row="highlightCurrentRow"
|
||||||
@sort-change="sort"
|
@sort-change="sort"
|
||||||
@filter-change="filter"
|
@filter-change="filter"
|
||||||
@select-all="handleSelectAll"
|
@select-all="handleSelectAll"
|
||||||
@select="handleSelect"
|
@select="handleSelect"
|
||||||
@header-dragend="headerDragend"
|
@header-dragend="headerDragend"
|
||||||
@cell-mouse-enter="showPopover"
|
@cell-mouse-enter="showPopover"
|
||||||
@row-click="handleRowClick"
|
@row-click="handleRowClick"
|
||||||
ref="table">
|
:key="tableActive"
|
||||||
|
ref="table">
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-if="enableSelection"
|
v-if="enableSelection"
|
||||||
|
@ -165,7 +166,8 @@ export default {
|
||||||
selectRows: new Set(),
|
selectRows: new Set(),
|
||||||
selectIds: [],
|
selectIds: [],
|
||||||
// hasBatchTipShow: false,
|
// hasBatchTipShow: false,
|
||||||
defaultSort: {}
|
defaultSort: {},
|
||||||
|
tableActive: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
@ -493,8 +495,10 @@ export default {
|
||||||
this.$refs.table.toggleRowSelection();
|
this.$refs.table.toggleRowSelection();
|
||||||
},
|
},
|
||||||
reloadTable() {
|
reloadTable() {
|
||||||
|
this.tableActive = false;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.doLayout();
|
this.doLayout();
|
||||||
|
this.tableActive = true;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
addPaddingColClass({column}) {
|
addPaddingColClass({column}) {
|
||||||
|
|
Loading…
Reference in New Issue