fix: 修复车牌搜索失效,确保所有筛选条件正常

- 后端新增 plate 查询参数支持
- 前端将 filterPlate 传给 API 并加入依赖数组
- 所有筛选条件(部门/项目/主体/车牌/搜索/里程范围)
  均正确传递到后端并触发数据刷新

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
kkfluous
2026-04-01 23:22:12 +08:00
parent cb620e5101
commit 8fffa141f4
3 changed files with 8 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ export async function fetchMonitoring(params?: {
customer?: string;
project?: string;
entity?: string;
plate?: string;
mileageMin?: string;
mileageMax?: string;
}): Promise<MonitoringData> {
@@ -31,6 +32,7 @@ export async function fetchMonitoring(params?: {
if (params?.customer) query.set('customer', params.customer);
if (params?.project) query.set('project', params.project);
if (params?.entity) query.set('entity', params.entity);
if (params?.plate) query.set('plate', params.plate);
if (params?.mileageMin) query.set('mileageMin', params.mileageMin);
if (params?.mileageMax) query.set('mileageMax', params.mileageMax);
const qs = query.toString();