fix: 筛选框

This commit is contained in:
wenyann 2021-04-28 15:17:56 +08:00 committed by 刘瑞斌
parent 387942050b
commit 37e99b3eee
1 changed files with 23 additions and 15 deletions

View File

@ -25,6 +25,7 @@
:select-ids="new Set(Array.from(this.selectRows).map(row => row.id))" @refresh="initTableData"/> :select-ids="new Set(Array.from(this.selectRows).map(row => row.id))" @refresh="initTableData"/>
<el-table <el-table
:key="updata"
ref="table" ref="table"
class="test-content adjust-table ms-select-all-fixed" class="test-content adjust-table ms-select-all-fixed"
border border
@ -323,6 +324,7 @@ export default {
}, },
data() { data() {
return { return {
updata: false,
type: TEST_PLAN_FUNCTION_TEST_CASE, type: TEST_PLAN_FUNCTION_TEST_CASE,
headerItems: Test_Plan_Function_Test_Case, headerItems: Test_Plan_Function_Test_Case,
screenHeight: 'calc(100vh - 330px)', screenHeight: 'calc(100vh - 330px)',
@ -413,6 +415,12 @@ export default {
}, },
selectNodeIds() { selectNodeIds() {
this.search(); this.search();
},
tableLabel: {
handler(newVal) {
this.updata = !this.updata;
},
deep: true
} }
}, },
mounted() { mounted() {
@ -430,8 +438,8 @@ export default {
}, },
methods: { methods: {
customHeader() { customHeader() {
//const list = deepClone(this.tableLabel); const list = deepClone(this.tableLabel);
this.$refs.headerCustom.open(this.tableLabel); this.$refs.headerCustom.open(list);
}, },
initTableData() { initTableData() {