|
@@ -45,7 +45,7 @@ const Company = props => {
|
|
|
const tag = useMemo(() => {
|
|
const tag = useMemo(() => {
|
|
|
const personTagMap = {}
|
|
const personTagMap = {}
|
|
|
const teamTagMap = {}
|
|
const teamTagMap = {}
|
|
|
- const narnatureMap = {}
|
|
|
|
|
|
|
+ const natureMap = {}
|
|
|
const personOptions = []
|
|
const personOptions = []
|
|
|
const teamOptions = []
|
|
const teamOptions = []
|
|
|
personTags.forEach(item => {
|
|
personTags.forEach(item => {
|
|
@@ -77,7 +77,7 @@ const Company = props => {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
natures.forEach(item => {
|
|
natures.forEach(item => {
|
|
|
- narnatureMap[item.value] = {
|
|
|
|
|
|
|
+ natureMap[item.value] = {
|
|
|
text: (
|
|
text: (
|
|
|
<>
|
|
<>
|
|
|
<span>{item.label}</span>
|
|
<span>{item.label}</span>
|
|
@@ -86,7 +86,7 @@ const Company = props => {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- return { personTagMap, teamTagMap, narnatureMap, personOptions, teamOptions }
|
|
|
|
|
|
|
+ return { personTagMap, teamTagMap, natureMap, personOptions, teamOptions }
|
|
|
}, [loading])
|
|
}, [loading])
|
|
|
|
|
|
|
|
const [state, setState] = useState({
|
|
const [state, setState] = useState({
|
|
@@ -259,12 +259,12 @@ const Company = props => {
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '单位性质',
|
|
title: '单位性质',
|
|
|
- dataIndex: 'nature',
|
|
|
|
|
- key: 'nature',
|
|
|
|
|
|
|
+ dataIndex: 'natureIds',
|
|
|
|
|
+ key: 'natureIds',
|
|
|
search: false,
|
|
search: false,
|
|
|
width: 80,
|
|
width: 80,
|
|
|
filters: true,
|
|
filters: true,
|
|
|
- valueEnum: tag.narnatureMap
|
|
|
|
|
|
|
+ valueEnum: tag.natureMap
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '单位地址',
|
|
title: '单位地址',
|