Soleilw vor 7 Monaten
Ursprung
Commit
dd9c3b375c

+ 1
- 1
dist/index.html Datei anzeigen

@@ -8,6 +8,6 @@
</head>
<body>
<div id="root"></div>
<script src="/umi.deb0f7f8.js"></script>
<script src="/umi.386a1fde.js"></script>
</body>
</html>

+ 0
- 1
dist/p__Company__List__index.776d3fbf.async.js
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 1
- 0
dist/p__Company__List__index.c970a9f2.async.js
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


dist/umi.386a1fde.js
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 0
- 13
p Datei anzeigen

@@ -1,13 +0,0 @@
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 Datei anzeigen

@@ -10,6 +10,5 @@ else
fi

git add .

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

+ 32
- 19
src/components/Render/Main/Company/List/bind/index.tsx Datei anzeigen

@@ -4,37 +4,46 @@ import type { ActionType, ProFormInstance } from '@ant-design/pro-components';
import {
ProTable, TableDropdown, PageContainer
} 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';

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

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

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

useEffect(() => {
if (!openModel.openBindModal) {
actionRef.current.reload();
}
setOpenPreview(openModel.openBindModal)
}, [openModel.openBindModal])
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
size='small'
bordered={true}
@@ -60,12 +69,12 @@ const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, getId }: any
fixed: 'right',
render: (_, record, action) => [
<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('解除授权成功');
actionRef.current.reload();
})
}}>解除授权</Button>
],
},
]}
@@ -91,6 +100,7 @@ const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, getId }: any
pagesize: pageSize,
sort: 'id',
sortby: 'desc',
id: id
}).then(res => {
setList(res.data.customers)
setTotal(res.data.total)
@@ -98,7 +108,10 @@ const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, getId }: any
}
headerTitle="管理已经授权的账号"
/>
</ConfigProvider>
</ConfigProvider>

</Modal>

</>
);
};

+ 3
- 3
src/components/Render/Main/Company/List/table/index.tsx Datei anzeigen

@@ -109,7 +109,7 @@ const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, getId }: any
record.member_type_text && <Button type="primary" size='small' onClick={() => {
sessionStorage.setItem('vip_company_info', JSON.stringify(record))
history.push({
pathname: '/main/company/vip'
pathname: '/company/vip'
})
}}>
{record.member_type_text}
@@ -319,7 +319,7 @@ const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, getId }: any
GetCompanyInfo({ id: record.id }).then(res => {
sessionStorage.setItem('company_info', JSON.stringify(res.data))
history.push({
pathname: '/main/company/department'
pathname: '/company/department'
})
})
}}>查看部门</Button>,
@@ -333,7 +333,7 @@ const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, getId }: any
GetCompanyInfo({ id: record.id }).then(res => {
sessionStorage.setItem('post_company_info', JSON.stringify(res.data))
history.push({
pathname: '/main/company/post'
pathname: '/company/post'
})
})
},

+ 1
- 0
src/constants/index.ts Datei anzeigen

@@ -2,6 +2,7 @@ export const DEFAULT_NAME = 'Umi Max';
export const web: string = '/web';
export const common: string = '/common';
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 baseUrl: string = process.env.NODE_ENV == 'production' ? 'https://admin1.jcjob.cn/api' : 'https://rcsc-test.jcjob.cn/api'


Laden…
Abbrechen
Speichern