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/scgl/sckbg.vue |   30 ++++++++++++++++++++++++------
 1 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/src/views/scgl/sckbg.vue b/src/views/scgl/sckbg.vue
index f28de38..75dc889 100644
--- a/src/views/scgl/sckbg.vue
+++ b/src/views/scgl/sckbg.vue
@@ -31,6 +31,8 @@
           <el-divider />
           <div class="elTableDiv">
             <el-table
+              ref="tableDataRef"
+              class="tableFixed"
               :data="tableData"
               :height="isIpad? (tableHeight+50):tableHeight"
               border
@@ -138,7 +140,7 @@
                 sortable="custom"
               >
                 <template slot-scope="{row}">
-                  <div v-if="row.plan_startdate">{{ row.plan_startdate.substring(0,11) }}</div>
+                  <div v-if="row.plan_startdate">{{ row.plan_startdate.substring(0, 11) }}</div>
                   <div v-else>/</div>
                 </template>
               </el-table-column>
@@ -150,7 +152,7 @@
                 fixed="right"
               >
                 <template slot-scope="{row}">
-                  <div v-if="row.plan_startdate">{{ row.plan_startdate.substring(0,11) }}</div>
+                  <div v-if="row.plan_startdate">{{ row.plan_startdate.substring(0, 11) }}</div>
                   <div v-else>/</div>
                 </template>
               </el-table-column>
@@ -220,6 +222,8 @@
           <el-divider />
           <div class="elTableDiv">
             <el-table
+              ref="tableDataRef"
+              class="tableFixed"
               :data="WXtableData"
               :height="isIpad? (tableHeight+50):tableHeight"
               border
@@ -326,7 +330,7 @@
                 sortable="custom"
               >
                 <template slot-scope="{row}">
-                  <div v-if="row.plan_startdate">{{ row.plan_startdate.substring(0,11) }}</div>
+                  <div v-if="row.plan_startdate">{{ row.plan_startdate.substring(0, 11) }}</div>
                   <div v-else>/</div>
                 </template>
               </el-table-column>
@@ -338,7 +342,7 @@
                 fixed="right"
               >
                 <template slot-scope="{row}">
-                  <div v-if="row.plan_startdate">{{ row.plan_startdate.substring(0,11) }}</div>
+                  <div v-if="row.plan_startdate">{{ row.plan_startdate.substring(0, 11) }}</div>
                   <div v-else>/</div>
                 </template>
               </el-table-column>
@@ -386,6 +390,8 @@
           <el-divider />
           <div class="elTableDiv">
             <el-table
+              ref="tableDataRef"
+              class="tableFixed"
               :data="badTableData"
               :height="isIpad? (tableHeight+50):tableHeight"
               border
@@ -877,7 +883,9 @@
             >
               <div id="qrCode2" ref="qrCodeDiv2" style="overflow-y: hidden;height:60px;position: absolute;left: 14px;" />
             </div>
-            <div style="display: flex;height: 30px;justify-content: flex-start;border-bottom:1px solid #000;align-items: center">
+            <div
+              style="display: flex;height: 30px;justify-content: flex-start;border-bottom:1px solid #000;align-items: center"
+            >
               <div style="margin-left: 5px;width: 28px">鏁伴噺:</div>
               {{ qrForm.startqty }}
             </div>
@@ -2098,6 +2106,7 @@
         if (window.innerHeight < 769) {
           this.tableHeight = this.tableHeight - 50
         }
+        this.$refs.tableDataRef.doLayout()
       })
     },
 
@@ -2145,7 +2154,7 @@
       this.badTableDataDialog = []
       this.judgeIsScanningArr = []
     },
-    async  getMesOrderSelectUserAll() {
+    async getMesOrderSelectUserAll() {
       const { data: res } = await MesOrderSelectUser({ usercode: '' })
       this.OperationArr = res
     },
@@ -2428,6 +2437,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