|
|
@ -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) => { |
|
|
|
</div> |
|
|
|
<div style={{ marginRight: 200 }}> |
|
|
|
{' '} |
|
|
|
<span>项目名称</span> |
|
|
|
<span style={{ marginRight: 10 }}>项目名称</span> |
|
|
|
<Select |
|
|
|
showClear |
|
|
|
onChange={(e)=>{setProjectId(e)}} |
|
|
|