|
@@ -26,8 +26,8 @@ function FilesModal(props) {
|
|
|
} = props;
|
|
|
const [value, setValue] = useState();
|
|
|
const [showData, setShowData] = useState();
|
|
|
- const [exportUrl, setExportUrl] = useState();
|
|
|
- const [fileVisible, setFileVisible] = useState(false);
|
|
|
+ // const [exportUrl, setExportUrl] = useState();
|
|
|
+ // const [fileVisible, setFileVisible] = useState(false);
|
|
|
|
|
|
useEffect(() => {
|
|
|
if (!value) {
|
|
@@ -107,7 +107,7 @@ function FilesModal(props) {
|
|
|
>
|
|
|
下载
|
|
|
</a>
|
|
|
- <a
|
|
|
+ {/* <a
|
|
|
style={{ marginLeft: 10 }}
|
|
|
onClick={() => {
|
|
|
setExportUrl(record.url);
|
|
@@ -115,7 +115,7 @@ function FilesModal(props) {
|
|
|
}}
|
|
|
>
|
|
|
预览
|
|
|
- </a>
|
|
|
+ </a> */}
|
|
|
<a
|
|
|
onClick={() => {
|
|
|
confirm({
|
|
@@ -157,13 +157,13 @@ function FilesModal(props) {
|
|
|
<Table rowKey="id" columns={columns} dataSource={showData} loading={loading} />
|
|
|
</Modal>
|
|
|
|
|
|
- <FileViewerModal
|
|
|
+ {/* <FileViewerModal
|
|
|
url={exportUrl}
|
|
|
visible={fileVisible}
|
|
|
onCancel={() => {
|
|
|
setFileVisible(false);
|
|
|
}}
|
|
|
- />
|
|
|
+ /> */}
|
|
|
</>
|
|
|
);
|
|
|
}
|