lanxin hai 1 semana
pai
achega
7a2cc9b581

+ 2 - 4
front/src/pages/A1home/index.tsx

@@ -242,15 +242,13 @@ function A1home() {
           martyrListByCity[item][0].cityId &&
             addTooltip(
               `${martyrListByCity[item][0].cityId}`,
-              `烈士 ${martyrListByCity[item].length} | 亲属 ${
-                relativeList[item]?.length || 0
-              } | 线索 ${clueList[item]?.length || 0}`,
+              `烈士 ${martyrListByCity[item].length}`,
               martyrListByCity[item].length
             )
         })
       }
     },
-    [addTooltip, clueList, relativeList]
+    [addTooltip]
   )
 
   // 鼠标移入移出点击城市版块

+ 2 - 2
front/src/pages/components/Left/index.tsx

@@ -20,7 +20,7 @@ function Left(props: LeftProps) {
     current: 1,
     pageSize: 20
   })
-  const [isFound, setIsFound] = useState<boolean>(true)
+  const [isFound, setIsFound] = useState<boolean>(false)
   const getListFu = useCallback(
     (pageNum: number, pageSize: number) => {
       dispatch(
@@ -132,7 +132,7 @@ function Left(props: LeftProps) {
                     </div>
                     <div className='name'>烈士:{item.martyrName}</div>
                     <div className='address'>
-                      {item.province + item.city + item.region + item.address}
+                      {item.city + item.region + item.address}
                     </div>
                     {item.remark && <div className='content'>{item.remark}</div>}
                     {item.result && <div className='content'>{item.result}</div>}

+ 30 - 30
front/src/pages/components/MapTab/index.tsx

@@ -29,37 +29,37 @@ function MapTab(props: MapTabProps) {
           {item.name}
         </div>
       ))
-    },
-    {
-      key: '2',
-      label: '亲属',
-      children: props.relativeList[cityName]?.map((item, index) => (
-        <div
-          className='text'
-          onClick={() =>
-            props.handleItemClick(props.cityId, item.martyrName, item.martyrId)
-          }
-          key={index}
-        >
-          {item.name}
-        </div>
-      )) || <div>暂无</div>
-    },
-    {
-      key: '3',
-      label: '线索',
-      children: props.clueList[cityName]?.map((item, index) => (
-        <div
-          className='text'
-          onClick={() =>
-            props.handleItemClick(props.cityId, item.martyrName, item.martyrId)
-          }
-          key={index}
-        >
-          {item.remark}
-        </div>
-      )) || <div>暂无</div>
     }
+    // {
+    //   key: '2',
+    //   label: '亲属',
+    //   children: props.relativeList[cityName]?.map((item, index) => (
+    //     <div
+    //       className='text'
+    //       onClick={() =>
+    //         props.handleItemClick(props.cityId, item.martyrName, item.martyrId)
+    //       }
+    //       key={index}
+    //     >
+    //       {item.name}
+    //     </div>
+    //   )) || <div>暂无</div>
+    // },
+    // {
+    //   key: '3',
+    //   label: '线索',
+    //   children: props.clueList[cityName]?.map((item, index) => (
+    //     <div
+    //       className='text'
+    //       onClick={() =>
+    //         props.handleItemClick(props.cityId, item.martyrName, item.martyrId)
+    //       }
+    //       key={index}
+    //     >
+    //       {item.remark}
+    //     </div>
+    //   )) || <div>暂无</div>
+    // }
   ]
 
   const operations = (