Ver código fonte

deploy

master
Soleilw 6 meses atrás
pai
commit
4db7287ff2

+ 1
- 1
dist/index.html Ver arquivo

@@ -8,6 +8,6 @@
</head>
<body>
<div id="root"></div>
<script src="/umi.11ccb2a8.js"></script>
<script src="/umi.7dbc89ad.js"></script>
</body>
</html>

+ 0
- 1
dist/p__Jobseeker__List__index.032480ef.async.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 1
- 0
dist/p__Jobseeker__List__index.1a7d0540.async.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


dist/umi.7dbc89ad.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 52
- 9
src/components/Render/Main/Jobseeker/List/table/index.tsx Ver arquivo

@@ -1,17 +1,23 @@
import { useRef, useState, useEffect } from 'react';
import { connect } from '@umijs/max';
import type { ActionType } from '@ant-design/pro-components';
import type { ActionType, ProFormInstance } from '@ant-design/pro-components';
import {
ProTable
ProTable, ProForm, ProFormSelect, ProFormText, ProFormDependency
} from '@ant-design/pro-components';
import { Button, ConfigProvider, Image, message } from 'antd';
import { PostJobseekerList, PostJobseekerExport } from '@/apis/api';
import { Button, ConfigProvider, Image, message, Select, Input, Row, Col, Space, Flex } from 'antd';
import { PostJobseekerList, PostJobseekerExport, PostJobapplicantUpdate } from '@/apis/api';
import { Imageprefix } from '@/constants';

const selectfieldNames = { label: 'name', value: 'id' };


const PagesMainJobseekerListTable: React.FC = ({ dispatch, getId, dictModel, openModel }: any) => {
const [form, setForm] = useState<{ status: number, customer_id: number, id: number, audit_memo: string }>({
status: 1,
customer_id: 0,
id: 0,
audit_memo: ''
});
const actionRef = useRef<ActionType>();
const [list, setList] = useState<object[]>([])
const [total, setTotal] = useState<number>(0)
@@ -56,6 +62,8 @@ const PagesMainJobseekerListTable: React.FC = ({ dispatch, getId, dictModel, ope
>

<ProTable
size='small'
bordered={true}
scroll={{ x: 1300 }}
actionRef={actionRef}
dataSource={list}
@@ -189,8 +197,44 @@ const PagesMainJobseekerListTable: React.FC = ({ dispatch, getId, dictModel, ope
title: '审核状态',
dataIndex: 'status_txt',
width: 120,
search: false
search: false,
render: (_, record) => (<>
<Select style={{ width: 100 }} size='small' defaultValue={record.status_txt} options={[
{
label: '待审',
value: 1,
},
{
label: '通过',
value: 2,
},
{
label: '不通过',
value: 3,
},
]} onChange={async (value) => {
let res = await PostJobapplicantUpdate({ customer_id: record.customer_id, id: record.id, status: value });
actionRef.current.reload();
}} />
</>)
},
{
title: '审核原因',
dataIndex: 'audit_memo',
width: 200,
search: false,
render: (_, record) => (
<>
{
record.status == 3 ? <>
<Input size='small' placeholder='输入原因,按回车键保存' onPressEnter={async (e) => {
let res = await PostJobapplicantUpdate({ customer_id: record.customer_id, id: record.id, status: 3, audit_memo: e.target.value });
actionRef.current.reload();
}}></Input></> : record.status_txt
}
</>

)
},
// {
// title: '审核状态',
@@ -242,14 +286,13 @@ const PagesMainJobseekerListTable: React.FC = ({ dispatch, getId, dictModel, ope
render: (_, record, action) => [
<Button key='1' type='link' onClick={() => {
setId(record)

dispatch({ type: 'openModel/getOpenModal', payload: true })
}}>编辑</Button>,
<Button key='2' type='link' onClick={() => {
setId(record)
dispatch({ type: 'openModel/getOpenResumeHelpModal', payload: true })
}}>工作帮扶情况</Button>,
<Button key='2' type='link' onClick={() => {
<Button key='3' type='link' onClick={() => {
setId(record)
dispatch({ type: 'openModel/getOpenResumeDetailModal', payload: true })
}}>预览简历</Button>,
@@ -282,7 +325,7 @@ const PagesMainJobseekerListTable: React.FC = ({ dispatch, getId, dictModel, ope
pagesize: pageSize,
sort: 'id',
sortby: 'desc',
keyword: params.name,
keyword: params.seekername,
gender: params.gender,
education: params.education,
english: params.english,
@@ -291,7 +334,7 @@ const PagesMainJobseekerListTable: React.FC = ({ dispatch, getId, dictModel, ope
title: params.title,
political_status: params.political_status,
salary_range_desire: params.salary_range_desire,
status: params.status
status: params.status ? Number(params.status) : 0
}).then(res => {
setList(res.data.seekers)
setTotal(res.data.total)

Carregando…
Cancelar
Salvar