From 72ceaa81f556c6519c97b2391871ba84729a9a6c Mon Sep 17 00:00:00 2001
From: wangrong <wangrong@shsening.com>
Date: 星期六, 10 十月 2026 10:10:53 +0800
Subject: [PATCH] 大部分页面增加按单位部门筛选的功能

---
 src/modules/report/views/dailyvehicle.vue |   28 +++++++++++++++++++++++++---
 1 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/src/modules/report/views/dailyvehicle.vue b/src/modules/report/views/dailyvehicle.vue
index fe6c49e..23fa3c9 100644
--- a/src/modules/report/views/dailyvehicle.vue
+++ b/src/modules/report/views/dailyvehicle.vue
@@ -208,7 +208,7 @@
 			sortable: "custom"
 		},
 		{ label: t('骞冲潎琛岄┒杞﹂��'), prop: "avgSpeed", minWidth: 140, sortable: "custom" },
-		{
+		/*{
 			label: t('瓒呴�熷憡璀︽鏁�'),
 			prop: "overspeedCount",
 			minWidth: 140,
@@ -243,7 +243,7 @@
 			prop: "offHoursMoveCount",
 			minWidth: 140,
 			sortable: "custom"
-		},
+		},*/
 		{
 			label: t('鍒涘缓鏃堕棿'),
 			prop: "createTime",
@@ -271,8 +271,30 @@
 	if (index >= 0) items?.splice(index, 1);
 }
 
+function deptSearch({ exposed }: { exposed: any }) {
+	const items = exposed.config?.items as { prop?: string }[] | undefined;
+	if (!items) return;
+	for (let i = items.length - 1; i >= 0; i--) {
+		if (items[i].prop === "departmentId") items.splice(i, 1);
+	}
+	items.unshift({
+		label: t("鎸夊崟浣嶇瓫閫�"),
+		prop: "departmentId",
+		component: {
+			name: "cl-dept-select",
+			props: {
+				placeholder: t("璇烽�夋嫨鍗曚綅"),
+				checkStrictly: true,
+				immediate: true,
+				clearable: true,
+			},
+			style: { width: "180px" },
+		},
+	});
+}
+
 const Search = useSearch({
-	plugins: [hideDateSearch]
+	plugins: [hideDateSearch, deptSearch]
 });
 
 // cl-crud

--
Gitblit v1.9.1