修改
This commit is contained in:
parent
fe72f02095
commit
9ffeb62911
@ -621,20 +621,25 @@ export default function Payment(props: IPaymentProps) {
|
||||
}}
|
||||
rules={[{ required: true, message: '请上传打款凭证' }]}
|
||||
>
|
||||
<Upload name="image"
|
||||
maxCount={2}
|
||||
action={uploadImageUrl()}
|
||||
headers={{ 'X-USER-ID': DevUserId }}
|
||||
beforeUpload={(file: FileType) => {
|
||||
const isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png';
|
||||
if (!isJpgOrPng) {
|
||||
message.error('只能上传 JPG/PNG 格式文件!');
|
||||
}
|
||||
return isJpgOrPng;
|
||||
}}
|
||||
>
|
||||
<Button icon={<UploadOutlined />}>上传凭证图片</Button>
|
||||
</Upload>
|
||||
<div style={{
|
||||
width: '200px',
|
||||
overflow: 'hidden',
|
||||
}}>
|
||||
<Upload name="image"
|
||||
maxCount={2}
|
||||
action={uploadImageUrl()}
|
||||
headers={{ 'X-USER-ID': DevUserId }}
|
||||
beforeUpload={(file: FileType) => {
|
||||
const isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png';
|
||||
if (!isJpgOrPng) {
|
||||
message.error('只能上传 JPG/PNG 格式文件!');
|
||||
}
|
||||
return isJpgOrPng;
|
||||
}}
|
||||
>
|
||||
<Button icon={<UploadOutlined />}>上传凭证图片</Button>
|
||||
</Upload>
|
||||
</div>
|
||||
</Form.Item>
|
||||
</td>
|
||||
</tr>
|
||||
|
Loading…
Reference in New Issue
Block a user