From 656fcfd2d3d35aff12cbbec41f48cec99fdef1cb Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Fri, 19 Sep 2025 18:50:01 +0800
Subject: [PATCH] Merge branch 'feature/v6.0/6.0.2' into prod
---
src/views/job/components/TaskTop/TaskIndustry.vue | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/src/views/job/components/TaskTop/TaskIndustry.vue b/src/views/job/components/TaskTop/TaskIndustry.vue
index 63d496d..c4ac73f 100644
--- a/src/views/job/components/TaskTop/TaskIndustry.vue
+++ b/src/views/job/components/TaskTop/TaskIndustry.vue
@@ -22,15 +22,15 @@
formatter: '{b}: {c} ({d}%)',
},
legend: {
- orient: 'horizontal',
- left: 'center',
- bottom: '2%',
+ orient: 'vertical',
+ top: 'center',
+ right: '20',
textStyle: {
color: '#363636',
fontSize: 12,
},
itemWidth: 2, // 减小图例标记的宽度
- itemHeight: 3, // 减小图例标记的高度
+ itemHeight: 6, // 减小图例标记的高度
itemGap: 8, // 减小图例项之间的间距
formatter: '{name}', // 简化图例文本
},
@@ -39,10 +39,8 @@
name: '机巢事件统计',
type: 'pie',
// roseType: 'radius',
- radius: ['36%', '60%'],
- // center: ['50%', '45%'],
- // radius: '70%', // 设置饼图的半径
- center: ['50%', '36%'], // 调整饼图位置
+ radius: ['20%', '70%'],
+ center: ['30%', '50%'],
data: [],
label: {
show: true,
@@ -94,7 +92,7 @@
<style lang="scss" scoped>
.task-industry {
- width: 276px;
+ width: 300px;
height: 100%;
background: #FFFFFF;
border-radius: 8px 8px 8px 8px;
--
Gitblit v1.9.3