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/job/components/TaskTop/TaskTime.vue |   22 +++++++++-------------
 1 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/src/views/job/components/TaskTop/TaskTime.vue b/src/views/job/components/TaskTop/TaskTime.vue
index 4b26167..b90fc81 100644
--- a/src/views/job/components/TaskTop/TaskTime.vue
+++ b/src/views/job/components/TaskTop/TaskTime.vue
@@ -31,6 +31,8 @@
 		formatter: '{b}: {c} 件',
 	},
 	legend: {
+		itemWidth: 8,
+		itemHeight: 12,
 		top: '2%',
 		textStyle: {
 			color: '#6B90B5',
@@ -121,30 +123,23 @@
 	})
 }
 
+const changeKey = inject('changeKey')
 // 添加监听
 watch(
-	() => store.state.task.taskSearchParams,
-	newVal => {
-		if (newVal) {
-			getJobNumBar(newVal)
-			newVal
-		}
-	},
-	{ deep: true }
+  () => [store.state.task.taskSearchParams,changeKey.value],
+  () => getJobNumBar(store.state.task.taskSearchParams),
+  { deep: true }
 )
-
-onMounted(() => {
-	getJobNumBar({ date_enum: 'TODAY' })
-})
 </script>
 
 <style lang="scss" scoped>
 .task-time {
 	width: 529px;
 	height: 100%;
-	margin-left: 9px;
+	margin-left: 10px;
 	background: #FFFFFF;
 	border-radius: 8px 8px 8px 8px;
+
 	.title {
 		padding: 10px 0 10px 16px;
 		width: 96px;
@@ -155,6 +150,7 @@
 		color: #363636;
 		line-height: 18px;
 	}
+
 	.chart {
 		padding: 6px 0px;
 		width: 100%;

--
Gitblit v1.9.3