From 2c59863afca9475562c4c3a99e66b4b4a4122b0f Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 23 九月 2022 17:12:17 +0800
Subject: [PATCH] 1.设备保养记录开发完成2.修改页面放大时table表错位问题

---
 src/views/jcsz/yhqd.vue |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/views/jcsz/yhqd.vue b/src/views/jcsz/yhqd.vue
index e88ea5c..5718c68 100644
--- a/src/views/jcsz/yhqd.vue
+++ b/src/views/jcsz/yhqd.vue
@@ -80,7 +80,9 @@
 
       <div class="elTableDiv">
         <el-table
+          ref="tableDataRef"
           :data="tableData"
+          class="tableFixed"
           :height="tableHeight+'px'"
           highlight-current-row
           :style="{width: 100+'%',height:tableHeight+'px'}"
@@ -879,6 +881,7 @@
           this.tableHeight = this.tableHeight - 40
         }
         this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367
+        this.$refs.tableDataRef.doLayout()
       })
     },
     // 鍏宠仈瑙掕壊鐐瑰嚮浜嬩欢
@@ -1433,6 +1436,15 @@
   margin-bottom: 0;
 }
 
+.tableFixed{
+  ::v-deep .el-table__fixed-right{
+    height: 100% !important;
+  }
+  ::v-deep .el-table__fixed{
+    height: 100% !important;
+  }
+}
+
 </style>
 <style>
 

--
Gitblit v1.9.3