094877b4 by 杨威

height报错修复

1 parent 8a6c87a9
......@@ -79,7 +79,9 @@
pageNo: this.pageNo,
pageSize: this.pageSize,
})
this.tableHeight = this.$refs.dataGrid.offsetHeight - 68;
this.$nextTick(()=>{
this.tableHeight = this.$refs.dataGrid.offsetHeight - 68;
})
},
methods: {
handleCurrentChange(val) {
......
......@@ -73,7 +73,9 @@
},
mounted() {
this.getData({})
this.tableHeight = this.$refs.dataGrid.offsetHeight - 68;
this.$nextTick(()=>{
this.tableHeight = this.$refs.dataGrid.offsetHeight - 68;
})
},
methods: {
onSubmit() {
......
......@@ -95,7 +95,9 @@ export default {
};
},
mounted() {
this.tableHeight = this.$refs.notice.offsetHeight - 53;
this.$nextTick(()=>{
this.tableHeight = this.$refs.notice.offsetHeight - 53;
})
},
methods: {
handleSelect() {},
......
......@@ -78,7 +78,9 @@
},
mounted() {
this.getData({})
this.tableHeight = this.$refs.dataGrid.offsetHeight - 68;
this.$nextTick(()=>{
this.tableHeight = this.$refs.dataGrid.offsetHeight - 68;
})
},
methods: {
handleCurrentChange(val) {
......
......@@ -63,15 +63,17 @@
pageNo: 1,
pageSize: 15,
tableData: [],
tableHeight: "",
tableHeight: 0,
queryData: {}
};
},
created() {
},
mounted() {
this.getData({pageSize:15})
this.tableHeight = this.$refs.dataGrid.offsetHeight - 68;
this.getData({pageSize:15});
this.$nextTick(()=>{
this.tableHeight = this.$refs.dataGrid.offsetHeight - 68;
})
},
methods: {
onSubmit() {
......