From e92ddbcdc1cb990de02621bccfa62cc067afd3b9 Mon Sep 17 00:00:00 2001 From: liuwh <964324856@qq.com> Date: Mon, 09 Sep 2024 15:26:24 +0800 Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh into master --- gz-customerSystem/src/views/register/matterDetail/FileTable.jsx | 24 ++++++++++++++++++------ 1 files changed, 18 insertions(+), 6 deletions(-) diff --git a/gz-customerSystem/src/views/register/matterDetail/FileTable.jsx b/gz-customerSystem/src/views/register/matterDetail/FileTable.jsx index a5812c4..84e9d1e 100644 --- a/gz-customerSystem/src/views/register/matterDetail/FileTable.jsx +++ b/gz-customerSystem/src/views/register/matterDetail/FileTable.jsx @@ -1,8 +1,7 @@ import React, { Fragment, useEffect, useState, useRef } from 'react'; import * as $$ from '@/utils/utility'; import ArcoUpload from '@/components/ArcoUpload'; -import NewFileCheck from '../../filesCheck/newFileCheck'; -import { IconLink } from '@arco-design/web-react/icon'; +import NewFileCheck from './NewFileCheck'; import { Row, Col, Button } from 'antd'; import { Form, Modal } from '@arco-design/web-react'; import { @@ -114,6 +113,10 @@ { value: '22_00018-102', label: '证据材料' }, ] + useEffect(() => { + console.log(props.fileInfoList); + },[props.fileInfoList]) + const personIconType = (v) => { switch (v) { case '22_00018-101': @@ -134,7 +137,7 @@ const handleUpload = () => { const newList = tableData.map(item => { - if(item.ownerType == sourceType) { + if (item.ownerType == sourceType) { const data = fileMap[sourceType] return { ...item, @@ -164,7 +167,7 @@ label='' // editData={props.editData} handleDelFile={handleDelFile} - onFileListChange={(v) => { + onFileListChange={(v) => { setFileMap({ '22_00018-101': v }) @@ -188,7 +191,7 @@ label='' // editData={props.editData} handleDelFile={handleDelFile} - onFileListChange={(v) => { + onFileListChange={(v) => { setFileMap({ '22_00018-102': v }) @@ -257,7 +260,16 @@ </div> </Modal > - <Modal style={{ width: '1200px' }} visible={filesCheck} onCancel={() => setFilesCheck(false)} footer={null} title='查看事件材料' centered> + <Modal + style={{ width: '1200px' }} + visible={filesCheck} + onCancel={() => setFilesCheck(false)} + footer={null} + title='查看事件材料' + centered + unmountOnExit={true} + maskClosable={false} + > <div style={{ marginTop: '-16px' }}> <NewFileCheck /> </div> -- Gitblit v1.8.0