forked from gzzfw/frontEnd/gzDyh

liuwh
2024-09-09 e92ddbcdc1cb990de02621bccfa62cc067afd3b9
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>