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/push/views/vehiclegps.vue |   26 +++++++++++++++++++++++++-
 1 files changed, 25 insertions(+), 1 deletions(-)

diff --git a/src/modules/push/views/vehiclegps.vue b/src/modules/push/views/vehiclegps.vue
index eee4a55..c2ec412 100644
--- a/src/modules/push/views/vehiclegps.vue
+++ b/src/modules/push/views/vehiclegps.vue
@@ -201,8 +201,32 @@
     ]
 });
 
+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" },
+		},
+	});
+}
+
 // cl-search
-const Search = useSearch();
+const Search = useSearch({
+	plugins: [deptSearch],
+});
 
 // cl-crud
 const Crud = useCrud(

--
Gitblit v1.9.1