From 2ca94de8ede18ac07ccfd8dec7b6f6a707adde9b Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Mon, 01 Sep 2025 11:20:24 +0800
Subject: [PATCH] Merge branch 'refs/heads/feature/v5.0/5.0.5' into patch_management
---
src/views/job/components/TaskTop/TaskIndustry.vue | 24 +++++++++++-------------
1 files changed, 11 insertions(+), 13 deletions(-)
diff --git a/src/views/job/components/TaskTop/TaskIndustry.vue b/src/views/job/components/TaskTop/TaskIndustry.vue
index 3d36176..9d06862 100644
--- a/src/views/job/components/TaskTop/TaskIndustry.vue
+++ b/src/views/job/components/TaskTop/TaskIndustry.vue
@@ -39,24 +39,24 @@
name: '机巢事件统计',
type: 'pie',
// roseType: 'radius',
- radius: ['40%', '70%'],
+ radius: ['36%', '60%'],
// center: ['50%', '45%'],
// radius: '70%', // 设置饼图的半径
- center: ['50%', '50%'], // 调整饼图位置
+ center: ['50%', '36%'], // 调整饼图位置
data: [],
label: {
show: true,
position: 'outside',
formatter: '{c}',
fontSize: 12,
- color: '#fff',
+ color: '#000',
},
labelLine: {
show: true,
- length: 5,
- length2: 8,
+ length: 10,
+ length2: 10,
lineStyle: {
- color: '#fff',
+ color: '#000',
},
},
},
@@ -78,17 +78,15 @@
})
}
+const changeKey = inject('changeKey')
// 添加监听
watch(
- () => store.state.task.taskSearchParams,
- newVal => {
- if (newVal) {
- getIndustryJobNumPieChart(newVal)
- }
- },
- { deep: true }
+ () => [store.state.task.taskSearchParams,changeKey.value],
+ () => getIndustryJobNumPieChart(store.state.task.taskSearchParams),
+ { deep: true }
)
+
onMounted(() => {
getIndustryJobNumPieChart({ date_enum: 'TODAY' })
})
--
Gitblit v1.9.3