소스 검색

deploy

master
Soleilw 8 달 전
부모
커밋
9840c99e14
5개의 변경된 파일37개의 추가작업 그리고 29개의 파일을 삭제
  1. 2
    2
      package.json
  2. 28
    23
      src/components/Render/Main/Company/List/hr/index.tsx
  3. 1
    2
      src/models/openModel.ts
  4. 3
    0
      src/pages/Company/List/index.tsx
  5. 3
    2
      src/pages/Main/Company/List/index.tsx

+ 2
- 2
package.json 파일 보기

"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",

src/components/Render/Main/Company/List/bind/index.tsx → src/components/Render/Main/Company/List/hr/index.tsx 파일 보기

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);

+ 1
- 2
src/models/openModel.ts 파일 보기

} }
}, },
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',

+ 3
- 0
src/pages/Company/List/index.tsx 파일 보기

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>
</> </>
); );

+ 3
- 2
src/pages/Main/Company/List/index.tsx 파일 보기

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>
</> </>
); );

Loading…
취소
저장