|
|
@ -87,6 +87,48 @@ const Example = (props) => { |
|
|
|
return index + 1; |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: 'PEP项企项目名称', |
|
|
|
dataIndex: "pepProjectName", |
|
|
|
key: 'pepProjectName', |
|
|
|
render: (_, row) => { |
|
|
|
return ( |
|
|
|
<div style={{ display: 'flex', alignItems: 'center' }}> |
|
|
|
{ |
|
|
|
row.pepProjectIsDelete == 1 ? ( |
|
|
|
<Tooltip content={'失效,项目已在【项企PEP】中被删除!'}> |
|
|
|
<div style={{ marginRight: 5 }}> |
|
|
|
<img src="/assets/images/install/risk.png" alt="" style={{ height: 24, width: 24, }} /> |
|
|
|
</div> |
|
|
|
</Tooltip>) : ('') |
|
|
|
} |
|
|
|
<Tooltip content={row.pepProjectName || row.name}> |
|
|
|
<div style={{ color: row.pepProjectIsDelete == 1 ? 'rgb(249, 57, 32)' : '', width: row?.pepProjectName?.length > 7 || row?.name?.length > 7 ? '112px' : '', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}> |
|
|
|
{row.pepProjectName || row.name} |
|
|
|
</div> |
|
|
|
</Tooltip> |
|
|
|
{ |
|
|
|
row.pepProjectName ? ( |
|
|
|
<div style={{ |
|
|
|
height: 18, marginLeft: 4, |
|
|
|
background: 'linear-gradient(180deg, #EBF5FF 0%, #EBF5FF 0%, #D3E8FF 100%)', |
|
|
|
borderRadius: 2, display: 'flex', alignItems: 'center' |
|
|
|
}}> |
|
|
|
<div> |
|
|
|
<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 }}> |
|
|
|
{row.constructionStatus} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) : ( |
|
|
|
'' |
|
|
|
) |
|
|
|
} |
|
|
|
</div> |
|
|
|
) |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '安心云项目名称', |
|
|
|
dataIndex: "anxinProject", |
|
|
@ -148,7 +190,7 @@ const Example = (props) => { |
|
|
|
{ |
|
|
|
row.anxinProject.map((item, index) => { |
|
|
|
return ( |
|
|
|
<div key={index} style={{ whiteSpace: 'nowrap', color: item.projectState == -1 ? '#F93920' : '' }}> |
|
|
|
<div key={index} style={{ color: item.projectState == -1 ? '#F93920' : '' }}> |
|
|
|
{item.name}<span style={{ color: '#FFFFFF' }}>,</span> |
|
|
|
</div> |
|
|
|
) |
|
|
@ -166,48 +208,6 @@ const Example = (props) => { |
|
|
|
) |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: 'PEP项企项目名称', |
|
|
|
dataIndex: "pepProjectName", |
|
|
|
key: 'pepProjectName', |
|
|
|
render: (_, row) => { |
|
|
|
return ( |
|
|
|
<div style={{ display: 'flex', alignItems: 'center' }}> |
|
|
|
{ |
|
|
|
row.pepProjectIsDelete == 1 ? ( |
|
|
|
<Tooltip content={'失效,项目已在【项企PEP】中被删除!'}> |
|
|
|
<div style={{ marginRight: 5 }}> |
|
|
|
<img src="/assets/images/install/risk.png" alt="" style={{ height: 24, width: 24, }} /> |
|
|
|
</div> |
|
|
|
</Tooltip>) : ('') |
|
|
|
} |
|
|
|
<Tooltip content={row.pepProjectName || row.name}> |
|
|
|
<div style={{ color: row.pepProjectIsDelete == 1 ? 'rgb(249, 57, 32)' : '', width: row?.pepProjectName?.length > 7 || row?.name?.length > 7 ? '112px' : '', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}> |
|
|
|
{row.pepProjectName || row.name} |
|
|
|
</div> |
|
|
|
</Tooltip> |
|
|
|
{ |
|
|
|
row.pepProjectName ? ( |
|
|
|
<div style={{ |
|
|
|
height: 18, marginLeft: 4, |
|
|
|
background: 'linear-gradient(180deg, #EBF5FF 0%, #EBF5FF 0%, #D3E8FF 100%)', |
|
|
|
borderRadius: 2, display: 'flex', alignItems: 'center' |
|
|
|
}}> |
|
|
|
<div> |
|
|
|
<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 }}> |
|
|
|
{row.constructionStatus} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) : ( |
|
|
|
'' |
|
|
|
) |
|
|
|
} |
|
|
|
</div> |
|
|
|
) |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '关联时间', |
|
|
|
dataIndex: "createTime", |
|
|
@ -329,9 +329,12 @@ const Example = (props) => { |
|
|
|
</Button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 20, marginTop: 5 }}> |
|
|
|
<div style={{ fontSize: 12, color: '#8B8B8B' }}>平台通过映射能力将多个系统的结构化、非结构化、半结构化数据按照平台算法进行分类关联,形成整体项目信息结构,以项企PEP的项目名称进行规范。</div> |
|
|
|
</div> |
|
|
|
<div style={{ marginTop: 20 }}> |
|
|
|
<Skeleton |
|
|
|
loading={false} |
|
|
|
loading={loading} |
|
|
|
active={true} |
|
|
|
placeholder={SkeletonScreen()} |
|
|
|
> |
|
|
@ -340,7 +343,6 @@ const Example = (props) => { |
|
|
|
dataSource={tableData} |
|
|
|
bordered={false} |
|
|
|
empty="暂无数据" |
|
|
|
style={{ padding: "0px 20px", }} |
|
|
|
pagination={false} |
|
|
|
onRow={handleRow} |
|
|
|
rowSelection={rowSelection} |
|
|
@ -429,9 +431,9 @@ const Example = (props) => { |
|
|
|
} |
|
|
|
|
|
|
|
function mapStateToProps (state) { |
|
|
|
const { auth, global, members } = state; |
|
|
|
const { auth, global, ProjectPoms } = state; |
|
|
|
return { |
|
|
|
// loading: members.isRequesting, |
|
|
|
loading: ProjectPoms.isRequesting, |
|
|
|
user: auth.user, |
|
|
|
actions: global.actions, |
|
|
|
// members: members.data, |
|
|
|