QuKatie пре 3 година
родитељ
комит
f92f30c1b2
1 измењених фајлова са 2 додато и 17 уклоњено
  1. 2 17
      src/views/reportManagement/profitGeneralLedger/index.vue

+ 2 - 17
src/views/reportManagement/profitGeneralLedger/index.vue

@@ -383,8 +383,6 @@
         :data="receivableList"
         show-summary
         :summary-method="getSum"
-        ref="table"
-        :height="tableHeight"
         @expand-change="expandChange"
       >
         <!-- <el-table-column type="selection" width="55" align="center" /> -->
@@ -589,7 +587,6 @@ export default {
           }
         }
       },
-      tableHeight: "0",
       //费用名称
       fWbuOptions: [],
       businessInTypeOption: [],
@@ -822,26 +819,19 @@ export default {
           label: "fVslid",
           name: "船名",
           checked: 0,
-          width: 120,
+          width: 200,
         },
         {
           surface: "11",
           label: "fVoyid",
           name: "航次",
           checked: 0,
-          width: 120,
+          width: 200,
         }
       );
     }
   },
   mounted() {
-    this.$nextTick(() => {
-      // 监听浏览器高度变化,改变表格高度
-      window.onresize = () => {
-        this.tableHeight =
-          window.innerHeight - this.$refs.table.$el.offsetTop - 70;
-      };
-    });
   },
   methods: {
     //列设置全选
@@ -1030,11 +1020,6 @@ export default {
           });
         }
         this.loading = false;
-        // 根据浏览器高度设置初始高度
-        setInterval(() => {
-          this.tableHeight =
-            window.innerHeight - this.$refs.table.$el.offsetTop - 70;
-        }, 300);
       });
     },