Commit 50b0360c by zhaochengxiang

服务用户

parent 5f4c5da7
......@@ -480,23 +480,25 @@ const ModelTable = (props) => {
return record.basicInfo ? record.basicInfo[item.key] : '';
}
};
newCols.push(col);
if (item.key === 'name') {
col.render = (text, record, index) => {
return (<ModelNameColumn text={record.basicInfo?record.basicInfo[item.key]:''} record={record} detailItem={detailItem} />);
}
};
}
if (item.key === 'itStaff' || item.key === 'keyUsers' || item.key === 'owner') {
col.render = (_, record) => {
const user = users?.filter((user)=>(user.pernr===record.basicInfo[item.key]));
const user = users?.filter((user)=>(user.pernr===record.basicInfo?.[item.key]));
if (user && user.length > 0) {
return user[0].nachn?`${user[0].nachn}(${user[0].pernr})`:user[0].pernr;
}
return '';
}
};
}
newCols.push(col);
});
if (!modelId) {
......
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