This commit is contained in:
chenlin
2025-12-16 15:03:04 +08:00
6 changed files with 31 additions and 29 deletions

View File

@@ -597,11 +597,11 @@ const handleRiskTabChange = async (tab: TabType) => {
// 同时获取维保任务和巡检任务的数据
const [maintenanceResponse, inspectionResponse] = await Promise.all([
getWorkOrderStatistics({workOrderType, taskType: '维保任务'}).catch(error => {
getWorkOrderStatistics({workOrderType, taskType: '维保任务',campus_id: query.campus_id}).catch(error => {
console.error('获取维保任务数据失败:', error)
return { records: [] }
}),
getWorkOrderStatistics({workOrderType, taskType: '巡检任务'}).catch(error => {
getWorkOrderStatistics({workOrderType, taskType: '巡检任务',campus_id: query.campus_id}).catch(error => {
console.error('获取巡检任务数据失败:', error)
return { records: [] }
})