@@ -2,8 +2,8 @@ | |||
"private": true, | |||
"author": "Soleilw <a617759082@126.com>", | |||
"scripts": { | |||
"build": "max build --mode production", | |||
"build:env": "max build --mode development", | |||
"build": "NODE_ENV=production max build", | |||
"build:env": "NODE_ENV=development max build", | |||
"dev": "max dev", | |||
"format": "prettier --cache --write .", | |||
"postinstall": "max setup", |
@@ -8,7 +8,7 @@ import { Button, Image, ConfigProvider, Select, Modal, message } from 'antd'; | |||
import { GetCompanyRecruiters, GetCompanyInfo, updateCompany, PostCompanyExport, PostCompanyTurnJobseeker } from '@/apis/api'; | |||
import { Imageprefix } from '@/constants'; | |||
const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, id }: any) => { | |||
const PagesMainCompanyListHr: React.FC = ({ dispatch, openModel, id }: any) => { | |||
const actionRef = useRef<ActionType>(); | |||
const [openPreview, setOpenPreview] = useState(false); | |||
@@ -21,30 +21,32 @@ const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, id }: any) = | |||
useEffect(() => { | |||
setOpenPreview(openModel.openBindModal) | |||
}, [openModel.openBindModal]) | |||
return ( | |||
<> | |||
<Modal | |||
open={openPreview} | |||
title="" | |||
centered | |||
maskClosable={false} | |||
footer={null} | |||
destroyOnClose | |||
width={1000} | |||
onCancel={() => { | |||
dispatch({ type: 'openModel/getOpenBindModal', payload: false }) | |||
<ConfigProvider | |||
theme={{ | |||
token: { | |||
colorPrimary: '#4FBE70', | |||
colorLink: '#4FBE70', | |||
} | |||
}} | |||
> | |||
<ConfigProvider | |||
theme={{ | |||
token: { | |||
colorPrimary: '#4FBE70', | |||
colorLink: '#4FBE70', | |||
} | |||
<Modal | |||
open={openPreview} | |||
title="" | |||
centered | |||
maskClosable={false} | |||
footer={null} | |||
destroyOnClose | |||
width={1000} | |||
onCancel={() => { | |||
dispatch({ type: 'openModel/getOpenBindModal', payload: false }) | |||
}} | |||
> | |||
<ProTable | |||
search={false} | |||
size='small' | |||
bordered={true} | |||
scroll={{ x: 1300 }} | |||
@@ -53,13 +55,16 @@ const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, id }: any) = | |||
columns={[ | |||
{ | |||
title: '账号', | |||
dataIndex: 'username' | |||
dataIndex: 'username', | |||
search: false | |||
}, { | |||
title: '手机号', | |||
dataIndex: 'mobile' | |||
dataIndex: 'mobile', | |||
search: false | |||
}, { | |||
title: '绑定时间', | |||
dataIndex: 'updated_at', | |||
search: false | |||
}, | |||
{ | |||
title: '操作', | |||
@@ -108,9 +113,9 @@ const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, id }: any) = | |||
} | |||
headerTitle="管理已经授权的账号" | |||
/> | |||
</ConfigProvider> | |||
</Modal> | |||
</Modal> | |||
</ConfigProvider> | |||
</> | |||
); | |||
@@ -119,4 +124,4 @@ const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, id }: any) = | |||
export default connect(({ openModel }: any) => ({ | |||
openModel | |||
}))(PagesMainCompanyListTable); | |||
}))(PagesMainCompanyListHr); |
@@ -79,7 +79,6 @@ export default { | |||
} | |||
}, | |||
setEditRegister(state: any, { payload }: any) { | |||
if (state.editRegisterKey && state.editRegisterKey !== payload.key) { | |||
return { | |||
@@ -219,7 +218,7 @@ export default { | |||
console.log(error) | |||
} | |||
}, | |||
*getOpenBindModal({ payload }: any, { put }: any) { | |||
*getOpenBindModal({ payload }: any, { put }: any): any { | |||
try { | |||
yield put({ | |||
type: 'setOpenBindModal', |
@@ -3,6 +3,7 @@ import { connect } from '@umijs/max'; | |||
import { ConfigProvider } from 'antd'; | |||
import PagesMainCompanyListTable from '@/components/Render/Main/Company/List/table' | |||
import PagesMainCompanyListCreate from '@/components/Render/Main/Company/List/create' | |||
import PagesMainCompanyListHr from '@/components/Render/Main/Company/List/hr' | |||
const CompanyListPage: React.FC = ({ dispatch, openModel }: any) => { | |||
const [id, setId] = useState<number>(0); | |||
@@ -28,6 +29,8 @@ const CompanyListPage: React.FC = ({ dispatch, openModel }: any) => { | |||
> | |||
<PagesMainCompanyListTable getId={getId}></PagesMainCompanyListTable> | |||
<PagesMainCompanyListCreate id={id}></PagesMainCompanyListCreate> | |||
<PagesMainCompanyListHr id={id}></PagesMainCompanyListHr> | |||
</ConfigProvider> | |||
</> | |||
); |
@@ -3,7 +3,7 @@ import { connect } from '@umijs/max'; | |||
import { ConfigProvider } from 'antd'; | |||
import PagesMainCompanyListTable from '@/components/Render/Main/Company/List/table' | |||
import PagesMainCompanyListCreate from '@/components/Render/Main/Company/List/create' | |||
import PagesMainCompanyListBind from '@/components/Render/Main/Company/List/bind' | |||
import PagesMainCompanyListHr from '@/components/Render/Main/Company/List/hr' | |||
const CompanyListPage: React.FC = ({ dispatch, openModel }: any) => { | |||
@@ -30,7 +30,8 @@ const CompanyListPage: React.FC = ({ dispatch, openModel }: any) => { | |||
> | |||
<PagesMainCompanyListTable getId={getId}></PagesMainCompanyListTable> | |||
<PagesMainCompanyListCreate id={id}></PagesMainCompanyListCreate> | |||
<PagesMainCompanyListBind id={id}></PagesMainCompanyListBind> | |||
DD | |||
<PagesMainCompanyListHr id={id}></PagesMainCompanyListHr> | |||
</ConfigProvider> | |||
</> | |||
); |