@@ -33,12 +33,13 @@ const CompanyTabList = ({ initData, customerId, client, software }) => {
title: '所有部门',
dataIndex: 'department',
onFilter: true,
- filters: true,
- valueEnum: client.client
- ?.map(item => item.department)
- ?.reduce((prev, curr) => {
- return { ...prev, [curr]: { text: curr } }
- }, {})
+ width: '20%',
+ filters: Array.from(
+ new Set(client.client?.map(item => item.department)).map(item => ({
+ text: item,
+ value: item
+ }))
+ )
},
{
title: '姓名',