From 31e3901ef4c11bbb10d3dfe306533617b5ccdb61 Mon Sep 17 00:00:00 2001
From: hejianhao <15708179461@qq.com>
Date: 星期一, 24 三月 2025 17:15:44 +0800
Subject: [PATCH] 天气、各季度应补偿总额

---
 src/views/DataScreen.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/DataScreen.vue b/src/views/DataScreen.vue
index d52a203..69db21b 100644
--- a/src/views/DataScreen.vue
+++ b/src/views/DataScreen.vue
@@ -3,7 +3,7 @@
     <header-panel />
     <left-panel />
     <center-panel v-if="!loading" :data="data" />
-    <right-panel />
+    <right-panel v-if="!loading" :data="data" />
   </div>
 </template>
 
@@ -35,6 +35,7 @@
     };
   },
   created() {
+    this.handleResize();
     getData().then(res => {
       this.data = res.data;
       this.loading = false;
@@ -48,7 +49,10 @@
   },
   methods: {
     handleResize() {
-      this.screenStyle.transform = `scale(${window.innerWidth / 1920})`;
+      const widthScale = window.innerWidth / 1920;
+      const heightScale = window.innerHeight / 1080;
+      const scale = Math.min(widthScale, heightScale);
+      this.screenStyle.transform = `scale(${scale})`;
     }
   }
 };

--
Gitblit v1.7.1