zengyicheng 1 ano atrás
pai
commit
f424c03001
1 arquivos alterados com 0 adições e 20 exclusões
  1. 0 20
      src/components/pages/evaluation.vue

+ 0 - 20
src/components/pages/evaluation.vue

@@ -41,7 +41,6 @@
           ref="table"
           :data="dataArray"
           border
-          :height="tableHeight"
           :fit="true"
           v-loading="isLoading"
           style="width: 100%"
@@ -405,7 +404,6 @@ export default {
   data() {
     return {
       data: {
-        tableHeight: "500px",
         isLoading: false,
         meta: {
           name: "example",
@@ -881,24 +879,6 @@ export default {
         });
     },
   },
-  mounted() {
-    this.$nextTick(function () {
-      this.tableHeight =
-        window.innerHeight - this.$refs.table.$el.offsetTop - 200;
-      if (this.tableHeight <= 530) {
-        this.tableHeight = 530;
-      }
-      // 监听窗口大小变化
-      let self = this;
-      window.onresize = function () {
-        self.tableHeight =
-          window.innerHeight - self.$refs.table.$el.offsetTop - 200;
-        if (self.tableHeight <= 530) {
-          self.tableHeight = 530;
-        }
-      };
-    });
-  },
   created() {
     this.getData();
   },