</head> | </head> | ||||
<body> | <body> | ||||
<div id="root"></div> | <div id="root"></div> | ||||
<script src="/umi.847c9816.js"></script> | |||||
<script src="/umi.7fa1ca41.js"></script> | |||||
</body> | </body> | ||||
</html> | </html> |
}} | }} | ||||
onChange={(value) => { | onChange={(value) => { | ||||
GetCompanyInfo({ id: value }).then(res => { | 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, | 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, | 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, | mobile: sessionStorage.getItem('company_info') ? JSON.parse(sessionStorage.getItem('company_info')).mobile : res.data.mobile, |
bordered={true} | bordered={true} | ||||
actionRef={actionRef} | actionRef={actionRef} | ||||
dataSource={list} | dataSource={list} | ||||
search={{ span: 8, labelWidth: 'auto' }} | |||||
search={{ span: 6, labelWidth: 'auto' }} | |||||
rowSelection={{ | rowSelection={{ | ||||
type: 'checkbox' | type: 'checkbox' | ||||
}} | }} | ||||
dataIndex: 'date_range', | dataIndex: 'date_range', | ||||
hidden: true, | hidden: true, | ||||
valueType: 'dateRange', | valueType: 'dateRange', | ||||
search: { | |||||
transform: (value) => { | |||||
return { | |||||
start_date: value[0], | |||||
end_date: value[1], | |||||
}; | |||||
}, | |||||
}, | |||||
width: 200 | width: 200 | ||||
}, | }, | ||||
{ | { | ||||
member_type: params.member_type, | member_type: params.member_type, | ||||
member_status: params.member_status, | member_status: params.member_status, | ||||
status: params.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 => { | }).then(res => { | ||||
setList(res.data.list) | setList(res.data.list) | ||||
setTotal(res.data.total) | setTotal(res.data.total) |
<Col span={8}> | <Col span={8}> | ||||
<ProFormDatePicker | <ProFormDatePicker | ||||
width='xl' | width='xl' | ||||
name="disabled_date" | |||||
name="disabled_date" | |||||
label="到期日期" | label="到期日期" | ||||
placeholder='请选择到期日期' | placeholder='请选择到期日期' | ||||
fieldProps={{ | fieldProps={{ |
Modal.confirm({ | Modal.confirm({ | ||||
title: '批量发布', | title: '批量发布', | ||||
content: (<> | content: (<> | ||||
<div>参数: id, status,useful_life ,disabled_date </div> | |||||
<h4 style={{ fontWeight: 'bold' }}>有效期:</h4> | <h4 style={{ fontWeight: 'bold' }}>有效期:</h4> | ||||
<Radio.Group size='small' onChange={async (e) => { | <Radio.Group size='small' onChange={async (e) => { | ||||
actionRef.current?.reload(); | actionRef.current?.reload(); | ||||
Modal.confirm({ | Modal.confirm({ | ||||
title: '批量更改状态', | title: '批量更改状态', | ||||
content: (<> | content: (<> | ||||
<div>参数: id, status</div> | |||||
<Radio.Group size='small' onChange={async (e) => { | <Radio.Group size='small' onChange={async (e) => { | ||||
actionRef.current?.reload(); | actionRef.current?.reload(); | ||||
}}> | }}> |
Modal.confirm({ | Modal.confirm({ | ||||
title: '请选择对批量数据进行何种操作', | title: '请选择对批量数据进行何种操作', | ||||
content: (<> | content: (<> | ||||
<div>参数:id, status, open_date, close_date</div> | |||||
<h4 style={{ fontWeight: 'bold' }}>状态:</h4> | <h4 style={{ fontWeight: 'bold' }}>状态:</h4> | ||||
<Radio.Group size='small' onChange={async (e) => { | <Radio.Group size='small' onChange={async (e) => { | ||||
import { | import { | ||||
ProTable, ProForm | ProTable, ProForm | ||||
} from '@ant-design/pro-components'; | } 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 { listSection, delSection } from '@/apis/api'; | ||||
import { Imageprefix } from '@/constants'; | import { Imageprefix } from '@/constants'; | ||||
import UploadModel from '@/components/Common/upload'; | import UploadModel from '@/components/Common/upload'; | ||||
Modal.confirm({ | Modal.confirm({ | ||||
title: '请选择对批量数据进行何种操作', | title: '请选择对批量数据进行何种操作', | ||||
content: (<> | 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) => { | <Radio.Group size='small' onChange={async (e) => { | ||||
actionRef.current?.reload(); | 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> | </Radio.Group> | ||||
</>), | </>), | ||||
onOk() { | onOk() { |
Modal.confirm({ | Modal.confirm({ | ||||
title: '请选择对批量数据进行何种操作', | title: '请选择对批量数据进行何种操作', | ||||
content: (<> | content: (<> | ||||
<div>参数:id, status</div> | |||||
<Radio.Group size='small' onChange={async (e) => { | <Radio.Group size='small' onChange={async (e) => { | ||||
actionRef.current?.reload(); | actionRef.current?.reload(); | ||||
}}> | }}> |
title: '请选择对批量数据审核', | title: '请选择对批量数据审核', | ||||
content: (<> | content: (<> | ||||
<Space direction='vertical' style={{ width: '100%', padding: 20 }}> | <Space direction='vertical' style={{ width: '100%', padding: 20 }}> | ||||
<div>参数:id, customer_id, status, audit_memo</div> | |||||
<Radio.Group size='small' onChange={async (e) => { | <Radio.Group size='small' onChange={async (e) => { | ||||
actionRef.current?.reload(); | actionRef.current?.reload(); | ||||
}}> | }}> |