Commit 63d29fdc by zhangleyuan

feat:处理岗位的展示

parent 20913744
......@@ -71,8 +71,20 @@ function DepartMentTabCon(props) {
},
{
title: "岗位",
dataIndex: "depPostNameList",
dataIndex: "depNameList",
render: (val, record) => {
if(props.currentTab === "departMentTab"){
if(!record.depNameList){
return <span>-</span>
}else{
if(record.depNameList.length === 0){
return <span>-</span>
}
return record.depNameList.map((item, index) => {
return <span><WWOpenDataCom type="departmentName" openid={item}/>{index!==record.depNameList.length-1 && <span></span>}</span>;
})
}
}else{
if(!record.depPostNameList){
return <span>-</span>
}else{
......@@ -84,6 +96,7 @@ function DepartMentTabCon(props) {
})
}
}
}
},
{
title: "手机号",
......
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