소스 검색

报表分析-总账统计页面

lichao 4 년 전
부모
커밋
ef914dd57d
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/views/reportManagement/outExcel/index.vue

+ 4 - 2
src/views/reportManagement/outExcel/index.vue

@@ -226,8 +226,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
@@ -315,6 +313,10 @@ export default {
           this.stockDate = res.rows;
           this.stockDate = res.rows;
           this.total = res.total;
           this.total = res.total;
           this.loading = false;
           this.loading = false;
+          // 根据浏览器高度设置初始高度
+          setInterval(() => {
+            this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 70
+          }, 300)
         }
         }
       });
       });
     },
     },