| | |
| | | url: URL.createObjectURL(currentFile.originFile), |
| | | }); |
| | | |
| | | setScanContent(fileView.response.data.ocrResult.wordsResult[0]) |
| | | }; |
| | | |
| | | const handleScaned = () => { |
| | | setScaned(true) |
| | | setScanContent(fileView.response.data.ocrResult.wordsResult[0]) |
| | | } |
| | | |
| | | |
| | | console.log(fileView, 'fileView') |
| | | console.log(scanContent,'scanContent') |
| | | |
| | | return ( |
| | | <> |
| | |
| | | objectFit: 'contain', |
| | | }} |
| | | /> |
| | | <div><Button type="primary" onClick={() => setScaned(true)} style={{ marginTop: '20px' }}>开始识别</Button></div> |
| | | <div><Button type="primary" onClick={() => handleScaned()} style={{ marginTop: '20px' }}>开始识别</Button></div> |
| | | </Modal> |
| | | <Modal style={{ width: '1200px' }} visible={scaned} onCancel={() => setScaned(false)} footer={null} title='识别上传材料' centered> |
| | | <Form |
| | |
| | | showWordLimit |
| | | rows={5} |
| | | placeholder='' |
| | | defaultValue={scanContent} |
| | | wrapperStyle={{ width: '100%' }} |
| | | onChange={(v) => console.log(v, 'vvvvvv')} |
| | | /> |