forked from gzzfw/frontEnd/gzDyh

zhangyongtian
2024-09-03 6276d75443ec3cacf34d11632ed99c90fd35d3d3
gz-customerSystem/src/views/register/visit/component/agentDialog.jsx
@@ -16,6 +16,10 @@
  return $$.ax.request({ url: `caseUtils/getNewTimeId`, type: 'get', service: 'utils' });
}
function delFile(id) {
  return $$.ax.request({ url: `fileInfo/deleteFileById`, type: 'get', service: 'sys', data: { id } });
}
export default function AgentDialog(props) {
  const formRef = useRef();
  const [visitList, setVisitList] = useState([])
@@ -94,6 +98,14 @@
    }
  }
  //删除文件
  const handleDelFile = async (id) => {
    const res = await delFile(id)
    if (res.type) {
      $$.infoSuccess({ content: '删除成功!' });
    }
  }
  return (
    <div className="applyDialog">
      <div style={{ height: '590px', overflowY: 'scroll' }}>
@@ -117,6 +129,7 @@
                    handleChangeFile={handleChangeFile}
                    label='身份证明材料'
                    editData={props.editData}
                    handleDelFile={handleDelFile}
                  />
                </Col>
                <Col span={24}>