fix(测试跟踪): 自定义表头失效
--bug=1014240 --user=陈建星 【测试跟踪】自定义表头调整字段顺序后,列表显示不正确,刷新后正常 https://www.tapd.cn/55049933/s/1186931
This commit is contained in:
parent
499f59e3f3
commit
f117209c2f
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<el-table
|
||||
v-if="tableActive"
|
||||
border
|
||||
class="test-content adjust-table ms-table"
|
||||
v-loading="tableIsLoading"
|
||||
|
@ -164,7 +165,8 @@ export default {
|
|||
selectRows: new Set(),
|
||||
selectIds: [],
|
||||
hasBatchTipShow: false,
|
||||
defaultSort: {}
|
||||
defaultSort: {},
|
||||
tableActive: true
|
||||
};
|
||||
},
|
||||
props: {
|
||||
|
@ -480,7 +482,12 @@ export default {
|
|||
},
|
||||
resetHeader() {
|
||||
this.$emit('update:fields', getCustomTableHeader(this.fieldKey, this.customFields));
|
||||
this.reloadTable();
|
||||
this.tableActive = false;
|
||||
this.$nextTick(() => {
|
||||
this.doLayout();
|
||||
this.tableActive = true;
|
||||
});
|
||||
this.listenRowDrop();
|
||||
},
|
||||
toggleRowSelection() {
|
||||
this.$refs.table.toggleRowSelection();
|
||||
|
|
Loading…
Reference in New Issue