|
|
@ -87,7 +87,7 @@ const Rest = (props) => { |
|
|
|
<div style={{ display: 'flex', marginTop: 16, marginBottom: 17 }}> |
|
|
|
<div> |
|
|
|
<Select value={keywordTarget} onChange={setKeywordTarget} placeholder='请选择搜索类型' style={{ width: 200 }} > |
|
|
|
<Select.Option value='role'>职位</Select.Option> |
|
|
|
<Select.Option value='post'>岗位</Select.Option> |
|
|
|
<Select.Option value='dep'>部门</Select.Option> |
|
|
|
<Select.Option value='number'>编号</Select.Option> |
|
|
|
<Select.Option value='name'>姓名</Select.Option> |
|
|
@ -232,30 +232,7 @@ const Rest = (props) => { |
|
|
|
<img src="/assets/images/hrImg/post.png" alt="" style={{ width: '100%', height: '100%' }} /> |
|
|
|
</div> |
|
|
|
<div style={{ fontSize: 14, color: '#282828', marginLeft: 12, marginRight: 9, display: 'flex', }}> |
|
|
|
{ |
|
|
|
item.role.map((ite, idx) => { |
|
|
|
let roleArr = [] |
|
|
|
for (let i = 0; i < item.role.length; i++) { |
|
|
|
roleArr.push(item.role[i].name) |
|
|
|
} |
|
|
|
return ( |
|
|
|
<div key={idx} style={{ display: 'flex', alignItems: 'center' }}> |
|
|
|
{idx == 0 ? |
|
|
|
(ite.name.substring(0, 6)) : ('') |
|
|
|
} |
|
|
|
{ |
|
|
|
item.role.length > 1 && idx == 1 ? ( |
|
|
|
<Tooltip content={roleArr.join(',')} trigger="click" style={{ lineHeight: 2 }}> |
|
|
|
<div style={{ color: 'rgba(0,90,189,0.8)', fontSize: 12, marginRight: 4, cursor: "pointer", }}> |
|
|
|
+{item.role.length - 1} |
|
|
|
</div> |
|
|
|
</Tooltip> |
|
|
|
) : ('') |
|
|
|
} |
|
|
|
</div> |
|
|
|
) |
|
|
|
}) |
|
|
|
} |
|
|
|
{item.userPost || '暂无'} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style={{ color: 'rgba(0,0,0,0.65)', fontSize: 12 }}> |
|
|
|