From 31181a5ed1e8cb393ad90fd19f6baea72b3cc423 Mon Sep 17 00:00:00 2001
From: zhangxiaoxu123456 <zxx19900626>
Date: 星期日, 24 四月 2022 11:43:06 +0800
Subject: [PATCH] 就业创业细节

---
 src/pages/show/jiuyeAndChuangye/jiuyeChildren/workStatistics.vue |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/workStatistics.vue b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/workStatistics.vue
index fb0decd..30f0486 100644
--- a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/workStatistics.vue
+++ b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/workStatistics.vue
@@ -4,7 +4,7 @@
         <h1>鍔冲姩灏变笟缁熻琛�</h1>
         <div class="danwei-box">鍗曚綅:浜�</div>
         <el-table
-          :max-height="640"
+          :max-height="tableHeight"
           :data="tableData"
           :header-cell-style="handleheader"
           stripe
@@ -110,6 +110,7 @@
                 loseReEmployment:[], //澶变笟浜哄憳鍐嶅氨涓�
                 diffReEmployment: [],  //灏变笟鍥伴毦浜哄憳鍐嶅氨涓�
                 xdata:[],
+                tableHeight: window.innerHeight - nowSize(1000)
             }
         },
         mounted() {
@@ -198,7 +199,8 @@
                             show: true,
                             textStyle: {
                                 color: "#fff",
-                                fontSize:nowSize(24)
+                                fontSize:nowSize(24),
+                                lineHeight: nowSize(56)
                             }
                         },
                         axisLine: {
@@ -260,6 +262,15 @@
                 return {
                     lineHeight: '0',
                 }
+            },
+            getHeight() {
+                this.tableHeight = window.innerHeight - nowSize(1000)
+            },
+            created() {
+                window.addEventListener('resize', this.getHeight)
+            },
+            destroy() {
+                window.addEventListener('resize', this.getHeight)
             }
         }
     }
@@ -328,7 +339,7 @@
        }
      }
     .laogongJiuyeEcharts{
-      height: calc(100% - 640px - 0.33203125rem  /* 85/256 */);
+      height: calc(100% - 2.34375rem  /* 600/256 */ - 0.33203125rem  /* 85/256 */);
     }
   }
 </style>

--
Gitblit v1.9.1