outaozhen 5 gadi atpakaļ
vecāks
revīzija
8ead5d8cf7
1 mainītis faili ar 6 papildinājumiem un 6 dzēšanām
  1. 6 6
      src/pages/Customer/Company/index.jsx

+ 6 - 6
src/pages/Customer/Company/index.jsx

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