forked from gzzfw/frontEnd/gzDyh

dminyi
2024-09-06 4daa76a09c298b2ca8d54231bca48ce521557e7e
gz-customerSystem/src/views/register/matterDetail/FileUpLoad.jsx
@@ -31,10 +31,16 @@
      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 (
    <>
@@ -97,7 +103,7 @@
            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
@@ -117,7 +123,6 @@
              showWordLimit
              rows={5}
              placeholder=''
              defaultValue={scanContent}
              wrapperStyle={{ width: '100%' }}
              onChange={(v) => console.log(v, 'vvvvvv')}
            />