Commit e5c437ec by zhaochengxiang

资产

parent bf3db587
......@@ -714,8 +714,15 @@ const AssetAction = (props) => {
{
item.name==='指标标准编码' && <IndexCode value={item.value||''} terms={terms} />
}
{
(item.name==='数据关键用户' || item.name==='业务部门负责人' || item.name?.toLowerCase()==='it责任人') && <SelectUser
type='detail'
users={users}
value={item.value||''}
/>
}
{
item.name!=='资产项' && item.name!=='指标标准编码' && <span className='text-color'>{highlightSearchContentByTerms(item.value||'', terms)}</span>
item.name!=='资产项' && item.name!=='指标标准编码' && item.name!=='数据关键用户' && item.name!=='业务部门负责人' && item.name?.toLowerCase()!=='it责任人' && <span className='text-color'>{highlightSearchContentByTerms(item.value||'', terms)}</span>
}
</Descriptions.Item>
);
......
......@@ -52,7 +52,7 @@ const SelectUser:React.FC=(props)=>{
}else if(type==='detail'){
try {
const user = users?.filter((item)=>(item.pernr===value))
return `${user[0].nachn}(${user[0].pernr})`
return user[0].nachn
} catch (error) {
return value
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment