|
|
@@ -13,8 +13,8 @@ import ManageCompanyResumeRecomment from '@/components/Manage/Company/Resume/Rec |
|
|
|
|
|
|
|
|
|
|
|
const HomePage: React.FC = ({ dispatch, dictModel }: any) => { |
|
|
|
const [detail, setDetail] = useState({}) |
|
|
|
const [detail1, setDetail1] = useState({}) |
|
|
|
const [detail, setDetail] = useState<object | null>(null) |
|
|
|
const [detail1, setDetail1] = useState<object | null>(null) |
|
|
|
const [companyJobTotal, setCompanyJobTotal] = useState<number>(0); |
|
|
|
const [resumeTotal, setResumeTotal] = useState<number>(0); |
|
|
|
const [interviewTotal, setInterviewTotal] = useState<number>(0); |
|
|
@@ -56,11 +56,11 @@ const HomePage: React.FC = ({ dispatch, dictModel }: any) => { |
|
|
|
if (dictModel.industryPostList.length > 0 && detail) { |
|
|
|
if (detail) { |
|
|
|
let allFound = true; // 假设所有 id 都找到了 |
|
|
|
let result; |
|
|
|
if(detail.industry) { |
|
|
|
let result = false; |
|
|
|
if (detail.industry) { |
|
|
|
result = findItemById(dictModel.industryPostList, detail.industry); |
|
|
|
} |
|
|
|
if(result && detail.industry2) { |
|
|
|
if (result && detail.industry2) { |
|
|
|
result = findItemById(dictModel.industryPostList, detail.industry2); |
|
|
|
} |
|
|
|
if (!result) { |
|
|
@@ -106,87 +106,89 @@ const HomePage: React.FC = ({ dispatch, dictModel }: any) => { |
|
|
|
header={{ title: '', }} |
|
|
|
style={{ minHeight: 800 }} |
|
|
|
> |
|
|
|
<Row gutter={[20, 20]}> |
|
|
|
<Col span={8}> |
|
|
|
<Space direction='vertical' size={30} style={{ width: '100%' }}> |
|
|
|
<Card |
|
|
|
bordered={false} |
|
|
|
title={<Link to={{ pathname: `/talent/company/detail?id=${localStorage.getItem('companyid')}` }} target="_blank" style={{ color: '#000000', fontSize: 16, marginRight: 10 }}> |
|
|
|
{detail.full_name} |
|
|
|
</Link>} |
|
|
|
extra={<Link to={{ pathname: `/manage/company/info` }} style={{ color: '#19be6e', fontSize: 14, marginRight: 10 }}> |
|
|
|
<Button >编辑资料</Button> |
|
|
|
</Link>} |
|
|
|
style={{ boxShadow: '0 8px 20px #f0f0f0' }}> |
|
|
|
<Space direction='vertical' style={{ borderRadius: 10, width: '100%' }}> |
|
|
|
<Descriptions> |
|
|
|
<Descriptions.Item label="企业编号" span={24}>{detail.id}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="登录账号" span={24}>{detail.mobile}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="访问次数" span={24}>{detail1.click_count}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="月浏览简历联系方式次数" span={24}>{detail1.month_look_resume_qty}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="剩余可查看简历联系方式" span={24}>{detail1.limit_resume_qty}</Descriptions.Item> |
|
|
|
<Descriptions.Item span={24}><Divider></Divider></Descriptions.Item> |
|
|
|
<Descriptions.Item label="注册日期" span={24}>{detail.establishment_date}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="所属行业" span={24}>{detail.industry_text}{detail.industry2_text}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="企业性质" span={24}>{detail.nature_text}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="企业规模" span={24}>{detail.scale_text}</Descriptions.Item> |
|
|
|
</Descriptions> |
|
|
|
</Space> |
|
|
|
</Card> |
|
|
|
<Card |
|
|
|
bordered={false} |
|
|
|
style={{ boxShadow: '0 8px 20px #f0f0f0', backgroundColor: '#fafafa' }}> |
|
|
|
<Space direction='vertical' style={{ borderRadius: 10, width: '100%' }}> |
|
|
|
<Descriptions> |
|
|
|
<Descriptions.Item label="社会统一信用代码" span={24}>{detail.registration_number}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="联系手机" span={24}>{detail.mobile}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="联系固话" span={24}>{detail.phone}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="企业邮箱" span={24}>{detail.email}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="企业官网" span={24}>{detail.website}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="企业传真" span={24}>{detail.fax}</Descriptions.Item> |
|
|
|
|
|
|
|
</Descriptions> |
|
|
|
{ |
|
|
|
(detail && detail1) && <> |
|
|
|
<Row gutter={[20, 20]}> |
|
|
|
<Col span={8}> |
|
|
|
<Space direction='vertical' size={30} style={{ width: '100%' }}> |
|
|
|
<Card |
|
|
|
bordered={false} |
|
|
|
title={<Link to={{ pathname: `/talent/company/detail?id=${localStorage.getItem('companyid')}` }} target="_blank" style={{ color: '#000000', fontSize: 16, marginRight: 10 }}> |
|
|
|
{detail.full_name} |
|
|
|
</Link>} |
|
|
|
extra={<Link to={{ pathname: `/manage/company/info` }} style={{ color: '#19be6e', fontSize: 14, marginRight: 10 }}> |
|
|
|
<Button >编辑资料</Button> |
|
|
|
</Link>} |
|
|
|
style={{ boxShadow: '0 8px 20px #f0f0f0' }}> |
|
|
|
<Space direction='vertical' style={{ borderRadius: 10, width: '100%' }}> |
|
|
|
<Descriptions> |
|
|
|
<Descriptions.Item label="企业编号" span={24}>{detail.id}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="登录账号" span={24}>{detail.mobile}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="访问次数" span={24}>{detail1.click_count}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="月浏览简历联系方式次数" span={24}>{detail1.month_look_resume_qty}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="剩余可查看简历联系方式" span={24}>{detail1.limit_resume_qty}</Descriptions.Item> |
|
|
|
<Descriptions.Item span={24}><Divider></Divider></Descriptions.Item> |
|
|
|
<Descriptions.Item label="注册日期" span={24}>{detail.establishment_date}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="所属行业" span={24}>{detail.industry_text}{detail.industry2_text}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="企业性质" span={24}>{detail.nature_text}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="企业规模" span={24}>{detail.scale_text}</Descriptions.Item> |
|
|
|
</Descriptions> |
|
|
|
</Space> |
|
|
|
</Card> |
|
|
|
<Card |
|
|
|
bordered={false} |
|
|
|
style={{ boxShadow: '0 8px 20px #f0f0f0', backgroundColor: '#fafafa' }}> |
|
|
|
<Space direction='vertical' style={{ borderRadius: 10, width: '100%' }}> |
|
|
|
<Descriptions> |
|
|
|
<Descriptions.Item label="社会统一信用代码" span={24}>{detail.registration_number}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="联系手机" span={24}>{detail.mobile}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="联系固话" span={24}>{detail.phone}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="企业邮箱" span={24}>{detail.email}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="企业官网" span={24}>{detail.website}</Descriptions.Item> |
|
|
|
<Descriptions.Item label="企业传真" span={24}>{detail.fax}</Descriptions.Item> |
|
|
|
|
|
|
|
</Descriptions> |
|
|
|
</Space> |
|
|
|
</Card> |
|
|
|
</Space> |
|
|
|
</Card> |
|
|
|
</Space> |
|
|
|
|
|
|
|
</Col> |
|
|
|
<Col span={16}> |
|
|
|
<Space direction='vertical' size={20} style={{ width: '100%' }}> |
|
|
|
<Row gutter={16}> |
|
|
|
<Col span={6}> |
|
|
|
<Link to={{ pathname: `/manage/company/post` }}> |
|
|
|
<Card bordered={false} size='small' style={{ boxShadow: '0 2px 4px #ccc' }}> |
|
|
|
<Statistic title="职位数" value={companyJobTotal} valueStyle={{ color: '#19be6e' }} /> |
|
|
|
</Card> |
|
|
|
</Link> |
|
|
|
</Col> |
|
|
|
<Col span={6}> |
|
|
|
<Link to={{ pathname: `/manage/company/resume` }}> |
|
|
|
<Card bordered={false} size='small' style={{ boxShadow: '0 2px 4px #ccc' }}> |
|
|
|
<Statistic title="待看简历" value={resumeTotal} /> |
|
|
|
</Card> |
|
|
|
</Link> |
|
|
|
</Col> |
|
|
|
<Col span={6}> |
|
|
|
<Link to={{ pathname: `/manage/company/resume` }}> |
|
|
|
<Card bordered={false} size='small' style={{ boxShadow: '0 2px 4px #ccc' }}> |
|
|
|
<Statistic title="面试邀请" value={interviewTotal} valueStyle={{ color: '#19be6e' }} /> |
|
|
|
</Card> |
|
|
|
</Link> |
|
|
|
</Col> |
|
|
|
<Col span={6}> |
|
|
|
<Link to={{ pathname: `/manage/company/resume` }}> |
|
|
|
<Card bordered={false} size='small' style={{ boxShadow: '0 2px 4px #ccc' }}> |
|
|
|
<Statistic title="人才库" value={talentPoolTotal} /> |
|
|
|
</Card> |
|
|
|
</Link> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
{/* <Card title="面试日历,共5个面试" bordered={false}> |
|
|
|
|
|
|
|
</Col> |
|
|
|
<Col span={16}> |
|
|
|
<Space direction='vertical' size={20} style={{ width: '100%' }}> |
|
|
|
<Row gutter={16}> |
|
|
|
<Col span={6}> |
|
|
|
<Link to={{ pathname: `/manage/company/post` }}> |
|
|
|
<Card bordered={false} size='small' style={{ boxShadow: '0 2px 4px #ccc' }}> |
|
|
|
<Statistic title="职位数" value={companyJobTotal} valueStyle={{ color: '#19be6e' }} /> |
|
|
|
</Card> |
|
|
|
</Link> |
|
|
|
</Col> |
|
|
|
<Col span={6}> |
|
|
|
<Link to={{ pathname: `/manage/company/resume` }}> |
|
|
|
<Card bordered={false} size='small' style={{ boxShadow: '0 2px 4px #ccc' }}> |
|
|
|
<Statistic title="待看简历" value={resumeTotal} /> |
|
|
|
</Card> |
|
|
|
</Link> |
|
|
|
</Col> |
|
|
|
<Col span={6}> |
|
|
|
<Link to={{ pathname: `/manage/company/resume` }}> |
|
|
|
<Card bordered={false} size='small' style={{ boxShadow: '0 2px 4px #ccc' }}> |
|
|
|
<Statistic title="面试邀请" value={interviewTotal} valueStyle={{ color: '#19be6e' }} /> |
|
|
|
</Card> |
|
|
|
</Link> |
|
|
|
</Col> |
|
|
|
<Col span={6}> |
|
|
|
<Link to={{ pathname: `/manage/company/resume` }}> |
|
|
|
<Card bordered={false} size='small' style={{ boxShadow: '0 2px 4px #ccc' }}> |
|
|
|
<Statistic title="人才库" value={talentPoolTotal} /> |
|
|
|
</Card> |
|
|
|
</Link> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
{/* <Card title="面试日历,共5个面试" bordered={false}> |
|
|
|
<CompanyHomeCalendar ></CompanyHomeCalendar> |
|
|
|
</Card> */} |
|
|
|
{/* <Row gutter={[12, 12]}> |
|
|
|
{/* <Row gutter={[12, 12]}> |
|
|
|
<Col span={12}> |
|
|
|
<Card title="今日沟通数: 5个" bordered={false} style={{ backgroundColor: '#edfff3' }}> |
|
|
|
<Statistic |
|
|
@@ -213,10 +215,13 @@ const HomePage: React.FC = ({ dispatch, dictModel }: any) => { |
|
|
|
</Col> |
|
|
|
</Row> */} |
|
|
|
|
|
|
|
<ManageCompanyResumeRecomment></ManageCompanyResumeRecomment> |
|
|
|
</Space> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
<ManageCompanyResumeRecomment></ManageCompanyResumeRecomment> |
|
|
|
</Space> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
|
|
|
|
</>} |
|
|
|
|
|
|
|
</PageContainer > |
|
|
|
|
|
|
|
</ConfigProvider > |