import { useState, useEffect, useRef } from 'react'; import { ProList, PageContainer } from '@ant-design/pro-components'; import { ConfigProvider, Button, Flex, Input, Space, Image, Select, Row, Col, Divider, Tag, Card, Avatar, Typography } from 'antd'; import { SearchOutlined, FireOutlined, MessageOutlined, RightOutlined } from '@ant-design/icons'; import { useModel, connect, history, Link } from 'umi'; import { PostCompanySearch } from '@/services/apis/company'; import { Imageprefix } from '@/constants'; const HomeProbation: React.FC = () => { const [list, setList] = useState([]) const [total, setTotal] = useState(0) const [page, setPage] = useState(1) const [pageSize, setPageSize] = useState(8) useEffect(() => { PostCompanySearch({ page: 1, pagesize: 8, sort: 'updated_at', sortby: 'desc', probation: 1 }).then(res => { setList(res.data.list) }) }, []); return ( <> {/* 见习基地 */} 见习基地 { list.length > 0 && list.map((item: any, index: number) => ( <> {item.full_name} {/* {item.nature_text ? item.nature_text : '性质不限'} {item.industry_text ? <>{item.industry_text} : <>行业不限} {item.scale_text ? <>{item.scale_text} : <>规模不限} */} )) } ); }; export default HomeProbation;