[Optimize] 健康检查项时间和结果显示(didi#930)

This commit is contained in:
erge
2023-02-20 16:24:45 +08:00
committed by lucasun
parent ae8cc3092b
commit 18e3fbf41d
2 changed files with 31 additions and 23 deletions

View File

@@ -165,17 +165,21 @@ const CardBar = (props: CardBarProps) => {
dataIndex: 'passed',
width: '30%',
render(value: boolean, record: any) {
const icon = value ? <IconFont type="icon-zhengchang"></IconFont> : <IconFont type="icon-yichang"></IconFont>;
const txt = value ? '已通过' : '未通过';
const notPassedResNameList = record.notPassedResNameList || [];
return (
<div style={{ display: 'flex', width: 240 }}>
<div style={{ marginRight: 6 }}>
{icon} {txt}
if (record?.updateTime) {
const icon = value ? <IconFont type="icon-zhengchang"></IconFont> : <IconFont type="icon-yichang"></IconFont>;
const txt = value ? '已通过' : '未通过';
const notPassedResNameList = record.notPassedResNameList || [];
return (
<div style={{ display: 'flex', width: 240 }}>
<div style={{ marginRight: 6 }}>
{icon} {txt}
</div>
{<TagsWithHide list={notPassedResNameList} expandTagContent="更多" />}
</div>
{<TagsWithHide list={notPassedResNameList} expandTagContent="更多" />}
</div>
);
);
} else {
return '-';
}
},
},
];