Browse Source

deploy

master
Soleilw 7 months ago
parent
commit
dd9c3b375c

+ 1
- 1
dist/index.html View File

</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script src="/umi.deb0f7f8.js"></script>
<script src="/umi.386a1fde.js"></script>
</body> </body>
</html> </html>

+ 0
- 1
dist/p__Company__List__index.776d3fbf.async.js
File diff suppressed because it is too large
View File


+ 1
- 0
dist/p__Company__List__index.c970a9f2.async.js
File diff suppressed because it is too large
View File


dist/umi.386a1fde.js
File diff suppressed because it is too large
View File


+ 0
- 13
p View File

msg=$1
ciskip="[CI SKIP]"

if [[ $msg =~ deploy ]]; then
echo "此次提交将会部署,请查看drone日志。"
else
echo "此次提交不部署"
$msg="$msg$ciskip"
fi

git add .
git commit -a -m "$msg"
git push

+ 0
- 1
p.sh View File

fi fi


git add . git add .

git commit --no-verify -m "$msg" git commit --no-verify -m "$msg"
git push git push

+ 32
- 19
src/components/Render/Main/Company/List/bind/index.tsx View File

import { import {
ProTable, TableDropdown, PageContainer ProTable, TableDropdown, PageContainer
} from '@ant-design/pro-components'; } from '@ant-design/pro-components';
import { Button, Image, ConfigProvider, Select, message } from 'antd';
import { GetCompanyRecruiters, GetCompanyInfo, updateCompany, PostCompanyExport , PostCompanyTurnJobseeker} from '@/apis/api';
import { Button, Image, ConfigProvider, Select, Modal, message } from 'antd';
import { GetCompanyRecruiters, GetCompanyInfo, updateCompany, PostCompanyExport, PostCompanyTurnJobseeker } from '@/apis/api';
import { Imageprefix } from '@/constants'; import { Imageprefix } from '@/constants';


const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, getId }: any) => {
const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, id }: any) => {
const actionRef = useRef<ActionType>(); const actionRef = useRef<ActionType>();
const [openPreview, setOpenPreview] = useState(false);

const [list, setList] = useState<object[]>([]) const [list, setList] = useState<object[]>([])
const [total, setTotal] = useState<number>(0) const [total, setTotal] = useState<number>(0)
const [page, setPage] = useState<number>(1) const [page, setPage] = useState<number>(1)
const [pageSize, setPageSize] = useState<number>(10) const [pageSize, setPageSize] = useState<number>(10)


const setId = (id: number) => {
getId(id)
}


useEffect(() => { useEffect(() => {
if (!openModel.openBindModal) {
actionRef.current.reload();
}
setOpenPreview(openModel.openBindModal)
}, [openModel.openBindModal]) }, [openModel.openBindModal])
return ( return (
<> <>
<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 })
}} }}
> >
<ConfigProvider
theme={{
token: {
colorPrimary: '#4FBE70',
colorLink: '#4FBE70',
}
}}
>
<ProTable <ProTable
size='small' size='small'
bordered={true} bordered={true}
fixed: 'right', fixed: 'right',
render: (_, record, action) => [ render: (_, record, action) => [
<Button key='1' type='link' onClick={() => { <Button key='1' type='link' onClick={() => {
PostCompanyTurnJobseeker({company_id:record.company_id, customer_id: record.id, role: 1}).then(res => {
PostCompanyTurnJobseeker({ company_id: record.company_id, customer_id: record.id, role: 1 }).then(res => {
message.success('解除授权成功'); message.success('解除授权成功');
actionRef.current.reload(); actionRef.current.reload();
}) })
}}>解除授权</Button> }}>解除授权</Button>
], ],
}, },
]} ]}
pagesize: pageSize, pagesize: pageSize,
sort: 'id', sort: 'id',
sortby: 'desc', sortby: 'desc',
id: id
}).then(res => { }).then(res => {
setList(res.data.customers) setList(res.data.customers)
setTotal(res.data.total) setTotal(res.data.total)
} }
headerTitle="管理已经授权的账号" headerTitle="管理已经授权的账号"
/> />
</ConfigProvider>
</ConfigProvider>

</Modal>

</> </>
); );
}; };

+ 3
- 3
src/components/Render/Main/Company/List/table/index.tsx View File

record.member_type_text && <Button type="primary" size='small' onClick={() => { record.member_type_text && <Button type="primary" size='small' onClick={() => {
sessionStorage.setItem('vip_company_info', JSON.stringify(record)) sessionStorage.setItem('vip_company_info', JSON.stringify(record))
history.push({ history.push({
pathname: '/main/company/vip'
pathname: '/company/vip'
}) })
}}> }}>
{record.member_type_text} {record.member_type_text}
GetCompanyInfo({ id: record.id }).then(res => { GetCompanyInfo({ id: record.id }).then(res => {
sessionStorage.setItem('company_info', JSON.stringify(res.data)) sessionStorage.setItem('company_info', JSON.stringify(res.data))
history.push({ history.push({
pathname: '/main/company/department'
pathname: '/company/department'
}) })
}) })
}}>查看部门</Button>, }}>查看部门</Button>,
GetCompanyInfo({ id: record.id }).then(res => { GetCompanyInfo({ id: record.id }).then(res => {
sessionStorage.setItem('post_company_info', JSON.stringify(res.data)) sessionStorage.setItem('post_company_info', JSON.stringify(res.data))
history.push({ history.push({
pathname: '/main/company/post'
pathname: '/company/post'
}) })
}) })
}, },

+ 1
- 0
src/constants/index.ts View File

export const web: string = '/web'; export const web: string = '/web';
export const common: string = '/common'; export const common: string = '/common';
export type StringOptional = string | undefined; export type StringOptional = string | undefined;
console.log(process.env.NODE_ENV)
export const Imageprefix: string = process.env.NODE_ENV == 'production' ? 'https://admin1.jcjob.cn/img/' : 'https://rcsc-test.jcjob.cn/img/' export const Imageprefix: string = process.env.NODE_ENV == 'production' ? 'https://admin1.jcjob.cn/img/' : 'https://rcsc-test.jcjob.cn/img/'
export const baseUrl: string = process.env.NODE_ENV == 'production' ? 'https://admin1.jcjob.cn/api' : 'https://rcsc-test.jcjob.cn/api' export const baseUrl: string = process.env.NODE_ENV == 'production' ? 'https://admin1.jcjob.cn/api' : 'https://rcsc-test.jcjob.cn/api'



Loading…
Cancel
Save