From 2800fa4f32f3900509cb4d6eefaf2bfaf54efdd7 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 21 Apr 2025 18:29:09 +0800
Subject: [PATCH] fix: 天气显示

---
 src/views/TaskManage/TaskTop/TaskEvent.vue |   41 +++++++++++++++++++----------------------
 1 files changed, 19 insertions(+), 22 deletions(-)

diff --git a/src/views/TaskManage/TaskTop/TaskEvent.vue b/src/views/TaskManage/TaskTop/TaskEvent.vue
index 8f64a96..1bf02d5 100644
--- a/src/views/TaskManage/TaskTop/TaskEvent.vue
+++ b/src/views/TaskManage/TaskTop/TaskEvent.vue
@@ -27,12 +27,11 @@
 
 const option = {
   tooltip: {
-    trigger: 'axis',
-    axisPointer: {
-      type: 'shadow'
-    },
-    formatter: '{b}: {c} 件'
-  },
+		trigger: 'axis',
+		axisPointer: {
+			type: 'shadow',
+		},
+	},
   legend: {
     data: ['任务', '事件'],
     top: '2%',
@@ -49,18 +48,17 @@
     containLabel: true
   },
   xAxis: {
-    type: 'category',
-    axisLine: {
-      lineStyle: {
-        color: '#fff'
-      }
-    },
-    axisLabel: {
-      color: '#fff',
-      interval: 0,
-      rotate: 30
-    }
-  },
+		type: 'category',
+		// data: ['1月', '2月', '3月', '4月', '5月', '6月'],
+		axisLine: {
+			lineStyle: {
+				color: '#fff',
+			},
+		},
+		axisLabel: {
+			color: '#fff',
+		},
+	},
   yAxis: {
     type: 'value',
     name: '单位:件',
@@ -81,8 +79,8 @@
   series: [
     {
       name: '任务',
-      type: 'bar',
-      barWidth: '6px',
+			type: 'bar',
+			barWidth: '20%',
       itemStyle: {
         color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
           { offset: 0, color: '#1EE7C5' },
@@ -93,7 +91,7 @@
     {
       name: '事件',
       type: 'bar',
-      barWidth: '6px',
+      barWidth: '20%',
       itemStyle: {
         color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
           { offset: 0, color: '#69BCFF' },
@@ -117,7 +115,6 @@
 
 // 添加监听
 watch(() => store.state.task.taskSearchParams, (newVal) => {
-  console.log(newVal, '1111');
   if (newVal) {
     getJobEventBar(newVal);
   }

--
Gitblit v1.9.3