From 5808f76456ca0d40de5074f132b73a5a488e3e13 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 09 Dec 2025 09:12:03 +0800
Subject: [PATCH] Merge branch 'refs/heads/feature/v9.0/9.0.1' into test

---
 src/views/wel/components/taskOutcome.vue |   54 ++++++++++++++++++++++++++++--------------------------
 1 files changed, 28 insertions(+), 26 deletions(-)

diff --git a/src/views/wel/components/taskOutcome.vue b/src/views/wel/components/taskOutcome.vue
index 7be3206..e1ea1ad 100644
--- a/src/views/wel/components/taskOutcome.vue
+++ b/src/views/wel/components/taskOutcome.vue
@@ -40,9 +40,7 @@
 const totalNum = ref(0)
 const dateSelect = ref('CURRENT_YEAR');
 const refresh = () => {
-  params.value.dateEnum = 'CURRENT_YEAR';
-  checked.value = 'CURRENT_YEAR';
-  dateSelect.value = 'CURRENT_YEAR';
+
   getBarChartData(params.value);
 };
 let timeClick = (item, index) => {
@@ -51,7 +49,18 @@
   dateSelect.value = item;
  getBarChartData(params.value);
 };
+const seriesObj = {};
 const echartsOption = {
+    title: {
+      text: seriesObj ? '' :'暂无数据',
+      left: 'center',
+      top: 'center',
+      textStyle: {
+        color: '#999',
+        fontSize: '1.6rem',
+        fontWeight: 'normal'
+      }
+    },
   tooltip: {
     trigger: 'axis',
     axisPointer: {
@@ -61,7 +70,7 @@
   legend: {
     itemWidth: 14,
     itemHeight: 8,
-    data: ['照片总数', '视频总数', 'AI识别', '全景', '三维', '正射'], // 确保包含所有系列名称
+    data: ['照片总数', '视频总数', 'AI识别', '全景', '三维', '正射'], 
     top: '-1%',
     textStyle: {
       color: '#383838',
@@ -69,7 +78,7 @@
     },
   },
   grid: {
-    // top: '5%',
+    top: '9%', 
     left: 0,
     right: 0,
     bottom: 0,
@@ -130,7 +139,7 @@
   {  name: '三维', value: 0, type: '3', color: '#04C598' },
   {  name: '正射', value: 0, type: '4', color: '#3673E8' },
 ]);
-const seriesObj = {};
+
 eventTypeList.value.forEach(item => {
   seriesObj[item.name] = {
     type: 'bar',
@@ -151,43 +160,33 @@
   gettaskOutcomApi(value).then(res => {
     const list = res?.data?.data || [];
 
+    
     eventTypeList.value.forEach(item => {
       item.value = 0;
     });
-    
-
     const typeMap = new Map();
     eventTypeList.value.forEach(item => {
       typeMap.set(item.type, item);
     });
-    
-
     echartsOption.xAxis.data = list.map(item => item.name);
 
     Object.keys(seriesObj).forEach(key => {
       seriesObj[key].data = [];
-    });
-    
+    });   
     // 遍历所有月份
     list.forEach(month => {
     totalNum.value = month.total
-
       const monthData = new Map();
       month.data.forEach(item => {
         monthData.set(item.name, item.value);
-      });
-      
+      });   
       eventTypeList.value.forEach(typeItem => {
         const value = monthData.get(typeItem.type) || 0;
-        
-
         if (seriesObj[typeItem.name]) {
           seriesObj[typeItem.name].data.push(value);
         }
       });
     });
-    
-
     if (list.length > 0) {
       const lastMonth = list[list.length - 1];
       const lastMonthData = new Map();
@@ -220,10 +219,10 @@
   background: #ffffff !important;
   margin-top: 10px;
   margin-left: 10px;
-  height: pxToVh(400);
+  height: pxToVh(473);
   .card-title {
     display: flex;
-    margin-bottom: 10px;
+    // margin-bottom: 10px;
     align-items: center;
     justify-content: space-between;
     .cardtotal {
@@ -279,15 +278,19 @@
   margin-left: 15px;
   border-radius: 4px;
 
-  .card-item {
+.card-item {
     width: 94px;
     height: 100%;
-    line-height: 28px;
+    // line-height: 28px;
     cursor: pointer;
     font-family: 'Source Han Sans CN';
     font-weight: 400;
     font-size: 14px;
     color: #7c8091;
+      border: 1px solid transparent;
+      display: flex;
+      align-items: center;
+      justify-content: center;
   }
 
   .card-item:first-child {
@@ -305,9 +308,8 @@
 }
 .chart {
   width: 98%;
-  // height: 265px;
-  height: pxToVh(285);
+  height: pxToVh(380);
   padding-left: 10px;
-  margin-top: 27px;
+  margin-top: 10px;
 }
 </style>

--
Gitblit v1.9.3