| "private": true, | "private": true, | ||||
| "author": "Soleilw <a617759082@126.com>", | "author": "Soleilw <a617759082@126.com>", | ||||
| "scripts": { | "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", | "dev": "max dev", | ||||
| "format": "prettier --cache --write .", | "format": "prettier --cache --write .", | ||||
| "postinstall": "max setup", | "postinstall": "max setup", |
| import { GetCompanyRecruiters, GetCompanyInfo, updateCompany, PostCompanyExport, PostCompanyTurnJobseeker } from '@/apis/api'; | import { GetCompanyRecruiters, GetCompanyInfo, updateCompany, PostCompanyExport, PostCompanyTurnJobseeker } from '@/apis/api'; | ||||
| import { Imageprefix } from '@/constants'; | 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 actionRef = useRef<ActionType>(); | ||||
| const [openPreview, setOpenPreview] = useState(false); | const [openPreview, setOpenPreview] = useState(false); | ||||
| useEffect(() => { | useEffect(() => { | ||||
| setOpenPreview(openModel.openBindModal) | setOpenPreview(openModel.openBindModal) | ||||
| }, [openModel.openBindModal]) | }, [openModel.openBindModal]) | ||||
| return ( | 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 | <ProTable | ||||
| search={false} | |||||
| size='small' | size='small' | ||||
| bordered={true} | bordered={true} | ||||
| scroll={{ x: 1300 }} | scroll={{ x: 1300 }} | ||||
| columns={[ | columns={[ | ||||
| { | { | ||||
| title: '账号', | title: '账号', | ||||
| dataIndex: 'username' | |||||
| dataIndex: 'username', | |||||
| search: false | |||||
| }, { | }, { | ||||
| title: '手机号', | title: '手机号', | ||||
| dataIndex: 'mobile' | |||||
| dataIndex: 'mobile', | |||||
| search: false | |||||
| }, { | }, { | ||||
| title: '绑定时间', | title: '绑定时间', | ||||
| dataIndex: 'updated_at', | dataIndex: 'updated_at', | ||||
| search: false | |||||
| }, | }, | ||||
| { | { | ||||
| title: '操作', | title: '操作', | ||||
| } | } | ||||
| headerTitle="管理已经授权的账号" | headerTitle="管理已经授权的账号" | ||||
| /> | /> | ||||
| </ConfigProvider> | |||||
| </Modal> | |||||
| </Modal> | |||||
| </ConfigProvider> | |||||
| </> | </> | ||||
| ); | ); | ||||
| export default connect(({ openModel }: any) => ({ | export default connect(({ openModel }: any) => ({ | ||||
| openModel | openModel | ||||
| }))(PagesMainCompanyListTable); | |||||
| }))(PagesMainCompanyListHr); |
| } | } | ||||
| }, | }, | ||||
| setEditRegister(state: any, { payload }: any) { | setEditRegister(state: any, { payload }: any) { | ||||
| if (state.editRegisterKey && state.editRegisterKey !== payload.key) { | if (state.editRegisterKey && state.editRegisterKey !== payload.key) { | ||||
| return { | return { | ||||
| console.log(error) | console.log(error) | ||||
| } | } | ||||
| }, | }, | ||||
| *getOpenBindModal({ payload }: any, { put }: any) { | |||||
| *getOpenBindModal({ payload }: any, { put }: any): any { | |||||
| try { | try { | ||||
| yield put({ | yield put({ | ||||
| type: 'setOpenBindModal', | type: 'setOpenBindModal', |
| import { ConfigProvider } from 'antd'; | import { ConfigProvider } from 'antd'; | ||||
| import PagesMainCompanyListTable from '@/components/Render/Main/Company/List/table' | import PagesMainCompanyListTable from '@/components/Render/Main/Company/List/table' | ||||
| import PagesMainCompanyListCreate from '@/components/Render/Main/Company/List/create' | 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 CompanyListPage: React.FC = ({ dispatch, openModel }: any) => { | ||||
| const [id, setId] = useState<number>(0); | const [id, setId] = useState<number>(0); | ||||
| > | > | ||||
| <PagesMainCompanyListTable getId={getId}></PagesMainCompanyListTable> | <PagesMainCompanyListTable getId={getId}></PagesMainCompanyListTable> | ||||
| <PagesMainCompanyListCreate id={id}></PagesMainCompanyListCreate> | <PagesMainCompanyListCreate id={id}></PagesMainCompanyListCreate> | ||||
| <PagesMainCompanyListHr id={id}></PagesMainCompanyListHr> | |||||
| </ConfigProvider> | </ConfigProvider> | ||||
| </> | </> | ||||
| ); | ); |
| import { ConfigProvider } from 'antd'; | import { ConfigProvider } from 'antd'; | ||||
| import PagesMainCompanyListTable from '@/components/Render/Main/Company/List/table' | import PagesMainCompanyListTable from '@/components/Render/Main/Company/List/table' | ||||
| import PagesMainCompanyListCreate from '@/components/Render/Main/Company/List/create' | 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) => { | const CompanyListPage: React.FC = ({ dispatch, openModel }: any) => { | ||||
| > | > | ||||
| <PagesMainCompanyListTable getId={getId}></PagesMainCompanyListTable> | <PagesMainCompanyListTable getId={getId}></PagesMainCompanyListTable> | ||||
| <PagesMainCompanyListCreate id={id}></PagesMainCompanyListCreate> | <PagesMainCompanyListCreate id={id}></PagesMainCompanyListCreate> | ||||
| <PagesMainCompanyListBind id={id}></PagesMainCompanyListBind> | |||||
| DD | |||||
| <PagesMainCompanyListHr id={id}></PagesMainCompanyListHr> | |||||
| </ConfigProvider> | </ConfigProvider> | ||||
| </> | </> | ||||
| ); | ); |