|
|
|
|
|
|
|
|
label: item.name, |
|
|
label: item.name, |
|
|
children: (<> |
|
|
children: (<> |
|
|
<Space direction='vertical' style={{ height: '600px', overflow: 'auto' }}> |
|
|
<Space direction='vertical' style={{ height: '600px', overflow: 'auto' }}> |
|
|
{ |
|
|
|
|
|
item.children.map((childrenItem, childrenIndex) => ( |
|
|
|
|
|
<> |
|
|
|
|
|
|
|
|
|
|
|
<Tag.CheckableTag |
|
|
|
|
|
key={childrenItem.id} |
|
|
|
|
|
checked={industryTags.includes(childrenItem.name)} |
|
|
|
|
|
onChange={(checked) => { |
|
|
|
|
|
childrenItem.industry = item.id; |
|
|
|
|
|
childrenItem.industry2 = childrenItem.id; |
|
|
|
|
|
setIndustryItem(childrenItem) |
|
|
|
|
|
industryChange(childrenItem, checked) |
|
|
|
|
|
}} |
|
|
|
|
|
style={{ |
|
|
|
|
|
display: 'flex', |
|
|
|
|
|
alignItems: 'center', |
|
|
|
|
|
justifyContent: 'center', |
|
|
|
|
|
width: 300, |
|
|
|
|
|
padding: '8px 0', |
|
|
|
|
|
background: industryTags.includes(childrenItem.name) ? '#19be6e' : '#edfff3', |
|
|
|
|
|
color: industryTags.includes(childrenItem.name) ? '#f0f0f0' : '#000000', |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
<Space> |
|
|
|
|
|
{childrenItem.name} |
|
|
|
|
|
</Space> |
|
|
|
|
|
</Tag.CheckableTag> |
|
|
|
|
|
</> |
|
|
|
|
|
)) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
item.children.map((childrenItem, childrenIndex) => ( |
|
|
|
|
|
<> |
|
|
|
|
|
<Tag.CheckableTag |
|
|
|
|
|
key={childrenItem.id} |
|
|
|
|
|
checked={industryTags.includes(childrenItem.name)} |
|
|
|
|
|
onChange={(checked) => { |
|
|
|
|
|
childrenItem.industry = item.id; |
|
|
|
|
|
childrenItem.industry2 = childrenItem.id; |
|
|
|
|
|
setIndustryItem(childrenItem) |
|
|
|
|
|
industryChange(childrenItem, checked) |
|
|
|
|
|
}} |
|
|
|
|
|
style={{ |
|
|
|
|
|
display: 'flex', |
|
|
|
|
|
alignItems: 'center', |
|
|
|
|
|
justifyContent: 'center', |
|
|
|
|
|
width: 100, |
|
|
|
|
|
padding: '8px 0', |
|
|
|
|
|
background: industryTags.includes(childrenItem.name) ? '#19be6e' : '#edfff3', |
|
|
|
|
|
color: industryTags.includes(childrenItem.name) ? '#f0f0f0' : '#000000', |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
<Space> |
|
|
|
|
|
{childrenItem.name} |
|
|
|
|
|
</Space> |
|
|
|
|
|
</Tag.CheckableTag> |
|
|
|
|
|
</> |
|
|
|
|
|
)) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
</Space> |
|
|
</Space> |
|
|
</>) |
|
|
</>) |
|
|
} |
|
|
} |