From 593c3dc1800cb03ad895856fdddecb29c0b44249 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Fri, 30 May 2025 18:31:31 +0800
Subject: [PATCH] feat: 优化或者修复任务管理

---
 src/views/job/components/SearchBox.vue |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/views/job/components/SearchBox.vue b/src/views/job/components/SearchBox.vue
index 10e8aa8..bfbd5fc 100644
--- a/src/views/job/components/SearchBox.vue
+++ b/src/views/job/components/SearchBox.vue
@@ -57,7 +57,7 @@
 					</div>
 				</el-form-item>
 				<el-form-item label="任务算法:" v-if="isExpand" class="taskAlgorithm">
-					<TaskAlgorithmBusiness :setWidth="186" :showAlgorithm="true" @algorithmChange="algorithmChange" />
+					<TaskAlgorithmBusiness :setWidth="162" :showAlgorithm="true" @algorithmChange="algorithmChange" />
 				</el-form-item>
 				<el-form-item label="所属部门:" v-if="isExpand">
 					<el-select
@@ -105,7 +105,7 @@
 	</div>
 </template>
 <script setup>
-// import { pxToRem } from '@/utils/rem'
+import { pxToRem } from '@/utils/rem'
 import { ElMessage } from 'element-plus'
 import { deptsByAreaCode } from '@/api/job/task'
 import TaskAlgorithmBusiness from './TaskAlgorithmBusiness.vue'
@@ -247,8 +247,8 @@
 		const end = dayjs(val[1])
 		const diff = end.diff(start, 'day')
 
-		if (diff > 30) {
-			ElMessage.warning('日期范围不能超过30天')
+		if (diff > 31) {
+			ElMessage.warning('日期范围不能超过31天')
 			dateRange.value = []
 			return
 		}
@@ -319,13 +319,13 @@
 <style lang="scss">
 </style>
 <style lang="scss" scoped>
-.taskAlgorithm {
-	:deep() {
-		.task-algorithm > div {
-			width: 233px !important;
-		}
-	}
-}
+// .taskAlgorithm {
+// 	:deep() {
+// 		.task-algorithm > div {
+// 			width: 233px !important;
+// 		}
+// 	}
+// }
 .search-box-test {
 	transition: all 0.3s;
 

--
Gitblit v1.9.3