diff --git a/src/forge/Information/Component/memberList.jsx b/src/forge/Information/Component/memberList.jsx index 67faf6af4..52fbb50b6 100644 --- a/src/forge/Information/Component/memberList.jsx +++ b/src/forge/Information/Component/memberList.jsx @@ -1,17 +1,39 @@ -import React from 'react'; +import React,{useCallback, useEffect,useState} from 'react'; import { Link } from 'react-router-dom'; import { tempEnum } from '../tempInfo'; import Crown from '../img/crown.png'; import Nodata from '../../Nodata'; import nodata from '../img/nodata.png'; +import { Input } from 'antd'; +const { Search } = Input; function Member(props) { - const { vipLists, temp } = props; + const { vipLists, temp , deptId } = props; + const isUOS = deptId === "uos";//id===91:泛在的开发社区成员,定制 + const [ list , setList ] = useState(vipLists); + + useEffect(()=>{ + if(vipLists && vipLists.length > 0 ){ + const ele = vipLists.map((i=>{ + return isUOS && i.id===91 ? {...i,isSearch:i.zoneMemberList.length>0}:{...i} + })) + setList(ele); + } + },[vipLists]) + + function searchFunc(e,index){ + let zonelist = vipLists[index].zoneMemberList; + let member = e ? zonelist.filter(i=>i.name.indexOf(e)>-1) : zonelist; + const ele = list.map((i,k)=>{ + return k === index ? {...i,zoneMemberList:member} :{...i} + }) + setList(ele); + } return(
{i.typeIntroduction}
+{i.typeIntroduction}
+{j.introduction}
diff --git a/src/forge/Information/Component/publicBanner.jsx b/src/forge/Information/Component/publicBanner.jsx index 21e24df4a..3d5484395 100644 --- a/src/forge/Information/Component/publicBanner.jsx +++ b/src/forge/Information/Component/publicBanner.jsx @@ -115,7 +115,7 @@ function PublicBanner(props) { } - + {isNSCC && } diff --git a/src/forge/Information/Pages/zoneVIP.jsx b/src/forge/Information/Pages/zoneVIP.jsx index bb20c6cc8..ff3c968ab 100644 --- a/src/forge/Information/Pages/zoneVIP.jsx +++ b/src/forge/Information/Pages/zoneVIP.jsx @@ -96,7 +96,7 @@ function ZoneVIP(props){