登录与品类
This commit is contained in:
@ -142,13 +142,29 @@ const mySupplierInquiry: React.FC<mySupplierInquiryProps> = ({ dispatch }) => {
|
||||
width: 120,
|
||||
render: (code: string) => enterpriseTypeMap[code] || code
|
||||
},
|
||||
|
||||
{
|
||||
title: '准入品类',
|
||||
dataIndex: 'categoryName',
|
||||
key: 'categoryName',
|
||||
dataIndex: 'categoryNameList',
|
||||
align: 'center',
|
||||
width: 120,
|
||||
ellipsis: true,
|
||||
render: (value: { categoryName: string; categoryPathName: string }[] = []) => {
|
||||
if (!value || value.length === 0) return '-';
|
||||
|
||||
// 多于1条
|
||||
const allNames = value.map(item => item.categoryPathName).join('\n');
|
||||
return (
|
||||
<Tooltip title={<pre style={{ margin: 0, fontSize: 12, fontFamily: '微软雅黑', whiteSpace: 'pre-wrap' }}>{allNames}</pre>} overlayStyle={{ zIndex: 1200 }}>
|
||||
<span>
|
||||
{value[0].categoryName}
|
||||
{value.length !== 1 && (
|
||||
<span>等</span>
|
||||
)}
|
||||
</span>
|
||||
</Tooltip>
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '准入时间',
|
||||
|
Reference in New Issue
Block a user