|
@@ -674,8 +674,6 @@ export default {
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- // 根据浏览器高度设置初始高度
|
|
|
|
- this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 160
|
|
|
|
// 监听浏览器高度变化,改变表格高度
|
|
// 监听浏览器高度变化,改变表格高度
|
|
window.onresize = () => {
|
|
window.onresize = () => {
|
|
this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 70
|
|
this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 70
|
|
@@ -853,6 +851,10 @@ export default {
|
|
this.whgenlegList = response.rows;
|
|
this.whgenlegList = response.rows;
|
|
this.total = response.total;
|
|
this.total = response.total;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
|
+ // 根据浏览器高度设置初始高度
|
|
|
|
+ setInterval(() => {
|
|
|
|
+ this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 70
|
|
|
|
+ }, 300)
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 取消按钮
|
|
// 取消按钮
|