From b3ff80e45d24a821ca0731983b1546b48570cdf1 Mon Sep 17 00:00:00 2001
From: xby-y <2251528873@qq.com>
Date: 星期四, 09 四月 2026 14:28:51 +0800
Subject: [PATCH] 添加日志信息

---
 项目代码/大屏/src/views/indexs/sc01-location-status.vue |   32 ++++++++++++++++++++++----------
 1 files changed, 22 insertions(+), 10 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/\345\244\247\345\261\217/src/views/indexs/sc01-location-status.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/\345\244\247\345\261\217/src/views/indexs/sc01-location-status.vue"
index 257a0c4..4664204 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/\345\244\247\345\261\217/src/views/indexs/sc01-location-status.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/\345\244\247\345\261\217/src/views/indexs/sc01-location-status.vue"
@@ -25,7 +25,7 @@
     // 姣�10绉掑埛鏂颁竴娆℃暟鎹�
     this.refreshInterval = setInterval(() => {
       this.getData();
-    }, 10000);
+    }, 30000);
   },
   beforeDestroy() {
     if (this.chart) {
@@ -61,21 +61,33 @@
           }
         },
         legend: {
-          orient: 'vertical',
-          right: '10%',
-          top: 'center',
+          orient: 'horizontal',
+          bottom: '10%',
+          left: 'center',
           textStyle: {
             color: '#fff',
-            fontSize: 14
+            fontSize: 20
           },
-          data: ['绌洪棽', '鏈夎揣', '鏈夎揣閿佸畾']
+          data: ['绌洪棽', '鏈夎揣', '鏈夎揣閿佸畾'],
+          width: '80%',
+          itemWidth: 20,
+          itemHeight: 14,
+          itemGap: 30,
+          formatter: function(name) {
+            let value = 0;
+            if (name === '绌洪棽') value = this.locationData.free;
+            if (name === '鏈夎揣') value = this.locationData.occupied;
+            if (name === '鏈夎揣閿佸畾') value = this.locationData.locked;
+            return `${name}\n${value}`;
+          }.bind(this),
+          selectedMode: 'multiple'
         },
         series: [
           {
             name: 'SC01璐т綅鐘舵��',
             type: 'pie',
-            radius: ['50%', '70%'],
-            center: ['40%', '50%'],
+            radius: ['40%', '75%'],
+            center: ['50%', '45%'],
             avoidLabelOverlap: true,
             itemStyle: {
               borderRadius: 4,
@@ -86,7 +98,7 @@
               show: true,
               formatter: '{b}: {c}',
               color: '#fff',
-              fontSize: 14
+              fontSize: 16
             },
             emphasis: {
               label: {
@@ -118,7 +130,7 @@
               },
               {
                 value: this.locationData.locked,
-                name: '鏈夎揣閿佸畾',
+                name: '閿佸畾',
                 itemStyle: { color: '#ffdb5c' }
               }
             ],

--
Gitblit v1.9.3