| @@ -8,6 +8,6 @@ | |||
| </head> | |||
| <body> | |||
| <div id="root"></div> | |||
| <script src="/umi.847c9816.js"></script> | |||
| <script src="/umi.7fa1ca41.js"></script> | |||
| </body> | |||
| </html> | |||
| @@ -98,7 +98,7 @@ const PagesMainCompanyDepartmentCreate: React.FC = ({ dispatch, dictModel, openM | |||
| }} | |||
| onChange={(value) => { | |||
| GetCompanyInfo({ id: value }).then(res => { | |||
| formRef.current.setFieldsValue({ | |||
| formRef.current?.setFieldsValue({ | |||
| contact: sessionStorage.getItem('company_info') ? JSON.parse(sessionStorage.getItem('company_info')).contact : res.data.contact, | |||
| phone: sessionStorage.getItem('company_info') ? JSON.parse(sessionStorage.getItem('company_info')).phone : res.data.phone, | |||
| mobile: sessionStorage.getItem('company_info') ? JSON.parse(sessionStorage.getItem('company_info')).mobile : res.data.mobile, | |||
| @@ -203,7 +203,7 @@ const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, getId }: any | |||
| bordered={true} | |||
| actionRef={actionRef} | |||
| dataSource={list} | |||
| search={{ span: 8, labelWidth: 'auto' }} | |||
| search={{ span: 6, labelWidth: 'auto' }} | |||
| rowSelection={{ | |||
| type: 'checkbox' | |||
| }} | |||
| @@ -217,6 +217,14 @@ const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, getId }: any | |||
| dataIndex: 'date_range', | |||
| hidden: true, | |||
| valueType: 'dateRange', | |||
| search: { | |||
| transform: (value) => { | |||
| return { | |||
| start_date: value[0], | |||
| end_date: value[1], | |||
| }; | |||
| }, | |||
| }, | |||
| width: 200 | |||
| }, | |||
| { | |||
| @@ -368,8 +376,8 @@ const PagesMainCompanyListTable: React.FC = ({ dispatch, openModel, getId }: any | |||
| member_type: params.member_type, | |||
| member_status: params.member_status, | |||
| status: params.status, | |||
| start_date: params.date_range ? params.date_range[0] : '', | |||
| end_date: params.date_range ? params.date_range[1] : '', | |||
| start_date: params.start_date, | |||
| end_date: params.end_date, | |||
| }).then(res => { | |||
| setList(res.data.list) | |||
| setTotal(res.data.total) | |||
| @@ -317,7 +317,7 @@ const PagesMainCompanyListCreate: React.FC = ({ dispatch, dictModel, openModel, | |||
| <Col span={8}> | |||
| <ProFormDatePicker | |||
| width='xl' | |||
| name="disabled_date" | |||
| name="disabled_date" | |||
| label="到期日期" | |||
| placeholder='请选择到期日期' | |||
| fieldProps={{ | |||
| @@ -214,6 +214,8 @@ const PagesMainCompanyPostTable: React.FC = ({ dispatch, getId, openModel }: any | |||
| Modal.confirm({ | |||
| title: '批量发布', | |||
| content: (<> | |||
| <div>参数: id, status,useful_life ,disabled_date </div> | |||
| <h4 style={{ fontWeight: 'bold' }}>有效期:</h4> | |||
| <Radio.Group size='small' onChange={async (e) => { | |||
| actionRef.current?.reload(); | |||
| @@ -255,6 +257,8 @@ const PagesMainCompanyPostTable: React.FC = ({ dispatch, getId, openModel }: any | |||
| Modal.confirm({ | |||
| title: '批量更改状态', | |||
| content: (<> | |||
| <div>参数: id, status</div> | |||
| <Radio.Group size='small' onChange={async (e) => { | |||
| actionRef.current?.reload(); | |||
| }}> | |||
| @@ -208,6 +208,7 @@ const MainFairListPage: React.FC = ({ dispatch, getId, openModel }: any) => { | |||
| Modal.confirm({ | |||
| title: '请选择对批量数据进行何种操作', | |||
| content: (<> | |||
| <div>参数:id, status, open_date, close_date</div> | |||
| <h4 style={{ fontWeight: 'bold' }}>状态:</h4> | |||
| <Radio.Group size='small' onChange={async (e) => { | |||
| @@ -4,7 +4,7 @@ import type { ActionType, ProFormInstance } from '@ant-design/pro-components'; | |||
| import { | |||
| ProTable, ProForm | |||
| } from '@ant-design/pro-components'; | |||
| import { Button, Image, ConfigProvider, Popconfirm, message, Modal } from 'antd'; | |||
| import { Button, Image, ConfigProvider, Popconfirm, message, Modal,Radio, Row, Col} from 'antd'; | |||
| import { listSection, delSection } from '@/apis/api'; | |||
| import { Imageprefix } from '@/constants'; | |||
| import UploadModel from '@/components/Common/upload'; | |||
| @@ -197,41 +197,14 @@ const PagesMainInformationSectionTable: React.FC = ({ dispatch, openModel, getId | |||
| Modal.confirm({ | |||
| title: '请选择对批量数据进行何种操作', | |||
| content: (<> | |||
| <h4 style={{ fontWeight: 'bold' }}>状态:</h4> | |||
| <Radio.Group size='small' onChange={async (e) => { | |||
| <div>参数:id, display</div> | |||
| actionRef.current?.reload(); | |||
| }}> | |||
| <Row gutter={[20, 20]} style={{ padding: 20 }}> | |||
| <Col span={12}> | |||
| <Radio value={1}>开启</Radio> | |||
| </Col> | |||
| <Col span={12}> | |||
| <Radio value={1}>关闭</Radio> | |||
| </Col> | |||
| </Row> | |||
| </Radio.Group> | |||
| <h4 style={{ fontWeight: 'bold' }}>时长:</h4> | |||
| <Radio.Group size='small' onChange={async (e) => { | |||
| actionRef.current?.reload(); | |||
| }}> | |||
| <Row gutter={[20, 20]} style={{ padding: 20 }}> | |||
| <Col span={12}> | |||
| <Radio value={1}>1天</Radio> | |||
| </Col> | |||
| <Col span={12}> | |||
| <Radio value={1}>3天</Radio> | |||
| </Col> | |||
| <Col span={12}> | |||
| <Radio value={1}>7天</Radio> | |||
| </Col> | |||
| <Col span={12}> | |||
| <Radio value={1}>15天</Radio> | |||
| </Col> | |||
| <Col span={12}> | |||
| <Radio value={1}>30天</Radio> | |||
| </Col> | |||
| </Row> | |||
| <Radio value={1}>可见</Radio> | |||
| <Radio value={1}>不可见</Radio> | |||
| </Radio.Group> | |||
| </>), | |||
| onOk() { | |||
| @@ -159,6 +159,8 @@ const PagesMainJobseekerAccountTable: React.FC = ({ dispatch, getId, dictModel, | |||
| Modal.confirm({ | |||
| title: '请选择对批量数据进行何种操作', | |||
| content: (<> | |||
| <div>参数:id, status</div> | |||
| <Radio.Group size='small' onChange={async (e) => { | |||
| actionRef.current?.reload(); | |||
| }}> | |||
| @@ -323,6 +323,8 @@ const PagesMainJobseekerListTable: React.FC = ({ dispatch, getId, dictModel, ope | |||
| title: '请选择对批量数据审核', | |||
| content: (<> | |||
| <Space direction='vertical' style={{ width: '100%', padding: 20 }}> | |||
| <div>参数:id, customer_id, status, audit_memo</div> | |||
| <Radio.Group size='small' onChange={async (e) => { | |||
| actionRef.current?.reload(); | |||
| }}> | |||