|
@@ -1394,8 +1394,6 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.$nextTick(() => {
|
|
|
- // 根据浏览器高度设置初始高度
|
|
|
- this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 160
|
|
|
// 监听浏览器高度变化,改变表格高度
|
|
|
window.onresize = () => {
|
|
|
this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 70
|
|
@@ -1647,6 +1645,10 @@ export default {
|
|
|
this.$set(this.form, 'createTime', moment(Date.parse(this.warehousebillsList.createTime)).format("YYYY-MM-DD HH:mm:ss"))
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
+ // 根据浏览器高度设置初始高度
|
|
|
+ setInterval(() => {
|
|
|
+ this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 70
|
|
|
+ }, 300)
|
|
|
});
|
|
|
},
|
|
|
// 取消按钮
|