From 02409bfbe15f22fc3b5dccadabfd860a660a49d9 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Sat, 11 Oct 2025 10:37:14 +0800
Subject: [PATCH] feat: 名称修改

---
 src/views/wel/components/flyratio.vue |   33 ++++++++++++++++++++-------------
 1 files changed, 20 insertions(+), 13 deletions(-)

diff --git a/src/views/wel/components/flyratio.vue b/src/views/wel/components/flyratio.vue
index 1d397e4..1488c6a 100644
--- a/src/views/wel/components/flyratio.vue
+++ b/src/views/wel/components/flyratio.vue
@@ -5,7 +5,7 @@
        
         <div class="cardtotal">
           <p>机巢工单数量排名</p>
-           <img @click="refresh" src="/src/assets/images/workbench/st1.png" alt="" />
+           <img @click="refresh" src="/src/assets/images/workbench/st1.svg" alt="" />
         </div>
          <div class="time-card">
         <div
@@ -52,9 +52,9 @@
   },
 });
 const refresh = () => {
-  params.value.date_enum = 'CURRENT_YEAR';
-  checked.value = 'CURRENT_YEAR';
-  dateSelect.value = 'CURRENT_YEAR';
+  // params.value.date_enum = 'CURRENT_YEAR';
+  // checked.value = 'CURRENT_YEAR';
+  // dateSelect.value = 'CURRENT_YEAR';
 getIndustryJobNumPieChart();
 };
 let timeClick = (item, index) => {
@@ -130,21 +130,22 @@
     },
     grid: {
       left: '3%',
-      right: '4%',
+      right: '3%',
       bottom: '3%',
+         top: '-3%', // 添加顶部间距
       containLabel: true,
     },
     xAxis: {
       type: 'value',
-      splitLine: { lineStyle: { color: '#E5E5E5' } },
-      axisLabel: { color: '#7C8091',fontSize:'1.2rem' },
+      splitLine: { lineStyle: { color: '#E5E5E5' },show:false },
+      axisLabel: { color: '#7C8091',fontSize:'1.2rem',show:false },
       boundaryGap: [0, 0.01],
     },
     yAxis: {
       type: 'category',
       data: optionData.yAxisData,
-      axisLabel: { color: '#7C8091' ,fontSize:'1.2rem'},
-      axisLine: { lineStyle: { color: '#D1D1D1' } },
+      axisLabel: { color: '#7C8091' ,fontSize:'1.2rem',},
+      axisLine: { lineStyle: { color: '#D1D1D1' } ,show:false},
       axisTick: { show: false },
       // 确保排序后的数据从上到下显示(最大值在顶部)
       inverse: true,
@@ -155,6 +156,7 @@
         type: 'bar',
         data: optionData.seriesData,
         itemStyle: {
+        barBorderRadius: [0, 20, 20, 0],
           color: params => {
             // 前6项使用固定颜色循环,之后使用渐变
             return params.dataIndex < colors.length
@@ -170,6 +172,11 @@
           show: true,
           position: 'right',
           formatter: '{c}',
+          itemStyle:{
+             fontSize: '1.4rem',
+             color: '#414243',
+             
+          }
         },
       },
     ],
@@ -193,7 +200,7 @@
 .machineNest {
   width: 93%;
   margin-left: 10px;
-  height: pxToVh(355);
+  height: pxToVh(282);
     border-radius: 8px 8px 8px 8px;
   padding: 4px 14px 0 15px;
   background: #ffffff !important;
@@ -210,7 +217,7 @@
     .cardtotal {
       display: flex;
       align-items: center;
-      margin-left: 9px;
+   
       img {
         width: 17px;
         height: 17px;
@@ -296,8 +303,8 @@
   }
   .nestCenter {
     width: 100%;
-    // height: 600px;
-    height: pxToVh(266);
+ 
+    height: pxToVh(226);
     .chart {
       width: 100%;
       height: 100%;

--
Gitblit v1.9.3