|
@@ -69,9 +69,6 @@ const FormAndFilesNode = ({ title, formData, excelFileData, loading, downloadFil
|
|
|
),
|
|
|
},
|
|
|
];
|
|
|
- const type = useMemo(() => {
|
|
|
- return exportData?.url?.split('.')[exportData?.url?.split('.').length - 1];
|
|
|
- }, [exportData]);
|
|
|
return (
|
|
|
<>
|
|
|
{excelFileData && formData && (
|
|
@@ -84,15 +81,6 @@ const FormAndFilesNode = ({ title, formData, excelFileData, loading, downloadFil
|
|
|
</Row>
|
|
|
</Card>
|
|
|
)}
|
|
|
- {/* <FileViewer
|
|
|
- key={exportData?.name}
|
|
|
- fileType={type}
|
|
|
- filePath={exportData?.url}
|
|
|
- // onError={() => downloadFile(data)}
|
|
|
- onError={e => console.error(e)}
|
|
|
- // errorComponent={<div>文件加载错误</div>}
|
|
|
- unsupportedComponent={() => <div>不支持的文件格式</div>}
|
|
|
- /> */}
|
|
|
<FileViewerModal
|
|
|
data={exportData}
|
|
|
visible={excelFileVisible}
|