walter 9 months ago
parent
commit
434dff8741
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/point/views/statistics/integral_event.vue

+ 5 - 4
src/point/views/statistics/integral_event.vue

@@ -96,14 +96,13 @@
         </el-collapse-item>
       </el-collapse>
     </el-header>
-    <el-main>
+    <el-main :style="{height:tableMaxHeight}">
       <el-table
         :data="list"
         style="width: 100%"
         v-loading="loading"
         @row-click="open_detail"
         @selection-change="deleteEvents"
-        :height="tableMaxHeight"
       >
 <!--        <el-table-column v-if="noticeRole" :selectable="isSelectable" type="selection" width="55" fixed></el-table-column>-->
         <el-table-column :selectable="isSelectable" type="selection" width="55" fixed></el-table-column>
@@ -1257,10 +1256,12 @@ export default {
   },
   computed:{
     tableMaxHeight(){
-      return this.activeCollapseName.includes('search') ? 530 : 710
+      // return this.activeCollapseName.includes('search') ? 530 : 710
+      return this.activeCollapseName.includes('search') ? '30%' : '80%'
     },
     headerMaxHeight(){
-      return this.activeCollapseName.includes('search') ? '300' : '50'
+      // return this.activeCollapseName.includes('search') ? '300' : '50'
+      return this.activeCollapseName.includes('search') ? '27%' : '5%'
     }
   }
 };