diff --git a/src/pages/smartinspection/components/Inspectiontaskplan/SmartInspectionPlan.js b/src/pages/smartinspection/components/Inspectiontaskplan/SmartInspectionPlan.js index 86cd061..d0f1015 100644 --- a/src/pages/smartinspection/components/Inspectiontaskplan/SmartInspectionPlan.js +++ b/src/pages/smartinspection/components/Inspectiontaskplan/SmartInspectionPlan.js @@ -21,6 +21,95 @@ import taskPlanBg from '@/assets/img/image 674 1.svg' import { DeleteOutlined, DownOutlined, EditOutlined, ExportOutlined, EyeOutlined, PlusOutlined, RedoOutlined, ReloadOutlined as IconRefresh, SearchOutlined as IconSearch } from "@ant-design/icons"; import TemperatureHumidityGauges from '../ReusableGauges/ReusableGauges'; const { Search } = Input + +// TaskCard 组件 - 用于显示巡检任务卡片 +const TaskCard = ({ task }) => { + return ( +
+ {/* 时间节点 */} +
+ + {/* 日期标签 */} +
+ {task.date} +
+ + {/* 任务卡片 */} +
+

任务基本信息

+

+ {task.title} +

+

+ 开始时间:{task.startTime} +

+

+ 完成进度:{task.progress}% +

+
+ 👁️ + + 异常数:{task.abnormalCount} + +
+
+ + +
+
+
+ ); +}; export const MenuBg = (props) => { return (
@@ -2561,16 +2650,214 @@ const InspectionManagement = () => { )} {activeTab === '巡检任务' && ( -
-

巡检任务管理

-

此处将显示巡检任务相关内容

+
+ {/* 巡检任务标题栏 */} +
+

巡检任务管理

+
+ + +
+
+ + {/* 横向时间轴布局 */} +
+ {/* 时间轴线 - 横向 */} +
+ + {/* 任务卡片组 - 上面3个 */} +
+ {[ + { + date: '2025/09/12', + title: '罐区A-2小时巡检任务', + startTime: '2025-10-17 09:00', + progress: 75, + abnormalCount: 3 + }, + { + date: '2025/09/28', + title: '泵房设备安全检查', + startTime: '2025-10-18 14:30', + progress: 100, + abnormalCount: 0 + }, + { + date: '2025/10/15', + title: '管线压力监测任务', + startTime: '2025-10-19 08:00', + progress: 45, + abnormalCount: 2 + } + ].map((task, index) => ( + + ))} +
+ + {/* 任务卡片组 - 下面2个 */} +
+ {[ + { + date: '2025/10/19', + title: '环境参数采集任务', + startTime: '2025-10-20 10:00', + progress: 0, + abnormalCount: 0 + }, + { + date: '2025/10/20', + title: '安全阀定期检查', + startTime: '2025-10-21 15:00', + progress: 0, + abnormalCount: 0 + } + ].map((task, index) => ( +
+ {/* 时间节点 */} +
+ + {/* 日期标签 */} +
+ {task.date} +
+ + {/* 任务卡片 */} +
+

任务基本信息

+

+ {task.title} +

+

+ 开始时间:{task.startTime} +

+

+ 完成进度:{task.progress}% +

+
+ 👁️ + + 异常数:{task.abnormalCount} + +
+
+ + +
+
+
+ ))} +
+
)} {activeTab === '报告管理' && ( -
-

巡检报告管理

-

此处将显示巡检报告相关内容

+
+

| 历史报告

+ + ( + + 查看详情 + 下载PDF + + ), + }, + ]} + dataSource={[ + { id: 1, name: 'XL001', time: '2025-10-18 00:28', area: '红色区域', abnormal: '电气专业' }, + { id: 2, name: 'XL002', time: '2025-10-14 03:26', area: '橙色区域', abnormal: '水处理' }, + ]} + pagination={{ + total: 85, + showSizeChanger: true, + showTotal: (total) => `共${total}条`, + pageSizeOptions: ['10', '20', '50'], + defaultPageSize: 10, + }} + bordered + /> )}