|
|
@ -245,17 +245,27 @@ const EmPush = (props) => { |
|
|
|
dataIndex: "projectName", |
|
|
|
key: "projectName", |
|
|
|
render: (_, row) => { |
|
|
|
let projectData = [] |
|
|
|
row.pomsProject?.map(v => { |
|
|
|
projectData.push({ |
|
|
|
projectName: v.pepProject?.projectName, |
|
|
|
name: v.name, |
|
|
|
anxinerror: v.del, |
|
|
|
constructionStatus: v.pepProject?.constructionStatus, |
|
|
|
}) |
|
|
|
}) |
|
|
|
let anxinerror = false |
|
|
|
let anxinerrorArr = '' |
|
|
|
if (row.pomsProject.del == true) { |
|
|
|
anxinerror = true |
|
|
|
anxinerrorArr = row.pomsProject.pepProject?.projectName || row.pomsProject.name |
|
|
|
} |
|
|
|
|
|
|
|
return ( |
|
|
|
<div style={{ display: 'flex', alignItems: 'center' }}> |
|
|
|
projectData.map((u, index) => <div style={{ display: 'flex', alignItems: 'center' }}> |
|
|
|
{ |
|
|
|
anxinerror ? ( |
|
|
|
<Tooltip content={anxinerrorArr + ',项目已在【项企PEP】或【映射关系】中被删除,请重选项目!'}> |
|
|
|
u.anxinerror ? ( |
|
|
|
<Tooltip content={(u.projectName || u.name) + ',项目已在【项企PEP】或【映射关系】中被删除,请重选项目!'}> |
|
|
|
<div style={{ marginRight: 5 }}> |
|
|
|
<img src="/assets/images/install/risk.png" alt="" style={{ height: 24, width: 24, }} /> |
|
|
|
</div> |
|
|
@ -263,17 +273,17 @@ const EmPush = (props) => { |
|
|
|
} |
|
|
|
{ |
|
|
|
<div className='myseparator' style={{ display: 'flex', alignItems: 'center' }}> |
|
|
|
<Tooltip content={row.pomsProject.pepProject?.projectName || row.pomsProject.name}> |
|
|
|
<div style={{ width: row.pomsProject?.pepProject?.projectName?.length > 7 || row.pomsProject?.name?.length > 7 ? '112px' : '', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', color: row.pomsProject.del ? '#F93920' : '' }}> |
|
|
|
{row.pomsProject.pepProject?.projectName || row.pomsProject.name} |
|
|
|
<Tooltip content={(u.projectName || u.name)}> |
|
|
|
<div style={{ width: u.projectName?.length > 7 || u.name?.length > 7 ? '112px' : '', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', color: row.pomsProject.del ? '#F93920' : '' }}> |
|
|
|
{u.projectName || u.name} |
|
|
|
</div> |
|
|
|
</Tooltip> |
|
|
|
</div> |
|
|
|
} |
|
|
|
{ |
|
|
|
row.pomsProject?.pepProject?.projectName ? ( |
|
|
|
u.projectName ? ( |
|
|
|
<div style={{ |
|
|
|
height: 18, marginLeft: 4, |
|
|
|
height: 18, marginLeft: 4, width: 76, |
|
|
|
background: 'linear-gradient(180deg, #EBF5FF 0%, #EBF5FF 0%, #D3E8FF 100%)', |
|
|
|
borderRadius: 2, display: 'flex', alignItems: 'center' |
|
|
|
}}> |
|
|
@ -281,15 +291,7 @@ const EmPush = (props) => { |
|
|
|
<img src="/assets/images/install/icon_zhengque.png" alt="" style={{ height: 10, width: 10, marginLeft: 4, marginRight: 9 }} /> |
|
|
|
</div> |
|
|
|
<div style={{ color: '#0F7EFB', fontSize: 11, marginRight: 12 }}> |
|
|
|
{ |
|
|
|
val.map((ite, idx) => { |
|
|
|
return ( |
|
|
|
<div key={idx}> |
|
|
|
{ite.id == row.pomsProject?.pepProject.constructionStatusId ? ite.construction_status : ''} |
|
|
|
</div> |
|
|
|
) |
|
|
|
}) |
|
|
|
} |
|
|
|
{u.constructionStatus} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) : ( |
|
|
@ -307,7 +309,7 @@ const EmPush = (props) => { |
|
|
|
</div> |
|
|
|
) |
|
|
|
} |
|
|
|
</div> |
|
|
|
</div>) |
|
|
|
) |
|
|
|
} |
|
|
|
}, |
|
|
|