From d33eacc1f85ac3a736b33ba4713a19aae466d711 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 05 八月 2022 16:42:53 +0800
Subject: [PATCH] 1.做适应平板显示的内容大小

---
 src/views/zzmx/gxdy.vue |   33 +++++++++++++++++++++------------
 1 files changed, 21 insertions(+), 12 deletions(-)

diff --git a/src/views/zzmx/gxdy.vue b/src/views/zzmx/gxdy.vue
index 7ab483b..33fb664 100644
--- a/src/views/zzmx/gxdy.vue
+++ b/src/views/zzmx/gxdy.vue
@@ -147,7 +147,12 @@
             <template slot-scope="{row}">
               <div class="operationClass">
                 <i v-if="row.is_eqp==='Y'" class="el-icon-share" @click="workClick(row)" />
-                <i v-if="row.is_eqp==='N'" class="el-icon-share" style="color: rgb(180 ,181, 185)" @click="workClick(row)" />
+                <i
+                  v-if="row.is_eqp==='N'"
+                  class="el-icon-share"
+                  style="color: rgb(180 ,181, 185)"
+                  @click="workClick(row)"
+                />
               </div>
             </template>
           </el-table-column>
@@ -159,13 +164,19 @@
             <template slot-scope="{row}">
               <div class="operationClass">
                 <i v-if="row.is_defect==='Y'" class="el-icon-share" @click="defectClick(row)" />
-                <i v-if="row.is_defect==='N'" class="el-icon-share" style="color:rgb(180 ,181, 185);" @click="defectClick(row)" />
+                <i
+                  v-if="row.is_defect==='N'"
+                  class="el-icon-share"
+                  style="color:rgb(180 ,181, 185);"
+                  @click="defectClick(row)"
+                />
               </div>
             </template>
           </el-table-column>
           <el-table-column
             label="鎿嶄綔"
             fixed="right"
+            width="120"
           >
             <template slot-scope="{row}">
               <div class="operationClass">
@@ -267,8 +278,7 @@
       title="鍏宠仈宸ヤ綔绔�"
       :visible.sync="workDialogVisible"
       width="50%"
-      top="15vh"
-      :fullscreen="isFullscreen"
+      :top="isIpad?'5vh': '15vh'"
       :close-on-click-modal="false"
       class="workDialogVisible"
       @closed="workHandleClose"
@@ -315,7 +325,7 @@
           :data="workDialogForm.workTreeArr"
           show-checkbox
           node-key="code"
-          style="height: 300px;"
+          style="height: 280px;"
           default-expand-all
           :props="workTreeDefaultProps"
           @check="checkBoxClick"
@@ -336,8 +346,7 @@
       title="宸ュ簭鍏宠仈缂洪櫡"
       :visible.sync="defectDialogVisible"
       width="50%"
-      top="15vh"
-      :fullscreen="isFullscreen"
+      :top="isIpad?'5vh':'15vh'"
       :close-on-click-modal="false"
       class="defectDialogVisible"
       @closed="defectHandleClose"
@@ -358,7 +367,7 @@
           :data="defectTree"
           show-checkbox
           node-key="code"
-          style="height: 500px;"
+          style="height: 400px;"
           default-expand-all
           :props="workTreeDefaultProps"
         />
@@ -408,7 +417,7 @@
       }
     }
     return {
-      isFullscreen: false,
+      isIpad: false,
       mainHeight: 0,
       tableHeight: 0,
       form: {
@@ -601,11 +610,11 @@
     getHeight() {
       this.$nextTick(() => {
         this.mainHeight = window.innerHeight - 250
-        this.tableHeight = this.mainHeight - 100
-        // this.isFullscreen = window.innerHeight < 800
-        if (window.innerHeight < 800) {
+        this.tableHeight = this.mainHeight - 50
+        if (window.innerHeight < 769) {
           this.tableHeight = this.tableHeight - 50
         }
+        this.isIpad = window.innerHeight < 769
       })
     },
     /* 鍏宠仈宸ヤ綔绔欐ā鍧�*/

--
Gitblit v1.9.3