|
@@ -10,7 +10,7 @@
|
|
|
ref="multipleTable"
|
|
|
:data="tableData"
|
|
|
size="small"
|
|
|
- height="calc(100vh - 500px)"
|
|
|
+ max-height="500px"
|
|
|
stripe
|
|
|
border
|
|
|
@selection-change ="selectionChange">
|
|
@@ -371,6 +371,11 @@ export default {
|
|
|
this.tableData = res.data
|
|
|
this.total = res.total
|
|
|
this.currentPage = res.pageNumber
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.multipleTable.doLayout()
|
|
|
+ });
|
|
|
+ }, 300);
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|
|
@@ -544,17 +549,11 @@ export default {
|
|
|
})
|
|
|
console.log(this.columnTitle)
|
|
|
},
|
|
|
- watch:{
|
|
|
- listData () {
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.mutipleTable.doLayout();
|
|
|
- });
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
-<style scoped>
|
|
|
-
|
|
|
+<style>
|
|
|
+body .el-table th.gutter{
|
|
|
+display: table-cell!important;
|
|
|
+}
|
|
|
</style>
|