diff --git a/web/client/src/sections/service/containers/maintenanceRecords.jsx b/web/client/src/sections/service/containers/maintenanceRecords.jsx index 7cdd4b6..dfaa729 100644 --- a/web/client/src/sections/service/containers/maintenanceRecords.jsx +++ b/web/client/src/sections/service/containers/maintenanceRecords.jsx @@ -61,9 +61,10 @@ const MaintenanceRecords = (props) => { { title: '项目名称', render: (record) => { - const currentId = record.equipmentMaintenanceRecordProjects.map((item1) => { + const currentId = record.equipmentMaintenanceRecordProjects?.map((item1) => { return item1.projectId; })[0]; + //const currnetObj = projectList?.find((item) => item.id === record?.equipmentMaintenanceRecordProjects?.projectId)||{}; const currnetObj = projectList?.find((item) => item.id === currentId)||{}; const projectName = currnetObj.name ? currnetObj.name : currnetObj.pepProjectName; return projectName?.length > 15 ? ( @@ -167,7 +168,7 @@ const MaintenanceRecords = (props) => {