Commit af1211bb authored by cellee's avatar cellee

Signed-off-by: cellee <893264950@qq.com>

parent a0ec19bb
...@@ -14,7 +14,10 @@ const module = 'VisitorRecord'; ...@@ -14,7 +14,10 @@ const module = 'VisitorRecord';
const VisitorRecord = (props: any) => { const VisitorRecord = (props: any) => {
const { dispatch, Data, DataSave, loading, CommunityList } = props; const { dispatch, Data, DataSave, loading, CommunityList } = props;
const [term, setTerm] = useState({ communityNames: CommunityList, pageNum: 1 }); // 搜索条件 const [term, setTerm] = useState({
communityNames: CommunityList && CommunityList.length > 0 ? CommunityList : null,
pageNum: 1,
}); // 搜索条件
// 新增搜索的时间 原来时间是时间戳格式 // 新增搜索的时间 原来时间是时间戳格式
useEffect(() => { useEffect(() => {
......
...@@ -14,7 +14,10 @@ const module = 'VisitorRecord'; ...@@ -14,7 +14,10 @@ const module = 'VisitorRecord';
const VisitorRecord = (props: any) => { const VisitorRecord = (props: any) => {
const { dispatch, Data, DataSave, loading, CommunityList } = props; const { dispatch, Data, DataSave, loading, CommunityList } = props;
const [term, setTerm] = useState({ communityNames: CommunityList, pageNum: 1 }); // 搜索条件 const [term, setTerm] = useState({
communityNames: CommunityList && CommunityList.length > 0 ? CommunityList : null,
pageNum: 1,
}); // 搜索条件
// 新增搜索的时间 原来时间是时间戳格式 // 新增搜索的时间 原来时间是时间戳格式
useEffect(() => { useEffect(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment