|
@@ -343,8 +343,7 @@ export default {
|
|
|
|
|
|
|
|
//45为分页栏的高度
|
|
//45为分页栏的高度
|
|
|
//页面高度-列表上面的高度-分页栏高度
|
|
//页面高度-列表上面的高度-分页栏高度
|
|
|
- self.tableHeight =
|
|
|
|
|
- window.innerHeight - self.$refs.formTable.$el.offsetTop - 100;
|
|
|
|
|
|
|
+ self.adjustTableHeight();
|
|
|
})
|
|
})
|
|
|
.catch(error => {
|
|
.catch(error => {
|
|
|
self.loading = false;
|
|
self.loading = false;
|
|
@@ -363,6 +362,10 @@ export default {
|
|
|
handleSelectionChange(val) {
|
|
handleSelectionChange(val) {
|
|
|
this.multipleSelection = val;
|
|
this.multipleSelection = val;
|
|
|
},
|
|
},
|
|
|
|
|
+ adjustTableHeight() {
|
|
|
|
|
+ var self = this;
|
|
|
|
|
+ self.tableHeight = window.innerHeight - self.$refs.formTable.$el.offsetTop - 100;
|
|
|
|
|
+ },
|
|
|
handleReset(name) {
|
|
handleReset(name) {
|
|
|
this.$refs[name].resetFields();
|
|
this.$refs[name].resetFields();
|
|
|
this.queryModel.timeRanges = "";
|
|
this.queryModel.timeRanges = "";
|
|
@@ -471,6 +474,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
mounted: function() {
|
|
mounted: function() {
|
|
|
this.changePage(1);
|
|
this.changePage(1);
|
|
|
|
|
+ window.addEventListener('resize',this.adjustTableHeight);
|
|
|
|
|
+ },
|
|
|
|
|
+ beforeDestroy() {
|
|
|
|
|
+ window.removeEventListener('resize',this.adjustTableHeight);
|
|
|
},
|
|
},
|
|
|
components: {
|
|
components: {
|
|
|
"el-select-tree": SelectTree
|
|
"el-select-tree": SelectTree
|