Commit e5c437ec by zhaochengxiang

资产

parent bf3db587
...@@ -715,7 +715,14 @@ const AssetAction = (props) => { ...@@ -715,7 +715,14 @@ const AssetAction = (props) => {
item.name==='指标标准编码' && <IndexCode value={item.value||''} terms={terms} /> item.name==='指标标准编码' && <IndexCode value={item.value||''} terms={terms} />
} }
{ {
item.name!=='资产项' && item.name!=='指标标准编码' && <span className='text-color'>{highlightSearchContentByTerms(item.value||'', terms)}</span> (item.name==='数据关键用户' || item.name==='业务部门负责人' || item.name?.toLowerCase()==='it责任人') && <SelectUser
type='detail'
users={users}
value={item.value||''}
/>
}
{
item.name!=='资产项' && item.name!=='指标标准编码' && item.name!=='数据关键用户' && item.name!=='业务部门负责人' && item.name?.toLowerCase()!=='it责任人' && <span className='text-color'>{highlightSearchContentByTerms(item.value||'', terms)}</span>
} }
</Descriptions.Item> </Descriptions.Item>
); );
......
...@@ -52,7 +52,7 @@ const SelectUser:React.FC=(props)=>{ ...@@ -52,7 +52,7 @@ const SelectUser:React.FC=(props)=>{
}else if(type==='detail'){ }else if(type==='detail'){
try { try {
const user = users?.filter((item)=>(item.pernr===value)) const user = users?.filter((item)=>(item.pernr===value))
return `${user[0].nachn}(${user[0].pernr})` return user[0].nachn
} catch (error) { } catch (error) {
return value 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