From 9a2277d39b55461967a7fc67201e524b89daa03e Mon Sep 17 00:00:00 2001
From: dminyi <1301963064@qq.com>
Date: Tue, 03 Sep 2024 09:59:47 +0800
Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh into master

---
 gz-customerSystem/src/views/register/visit/component/agentDialog.jsx |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/gz-customerSystem/src/views/register/visit/component/agentDialog.jsx b/gz-customerSystem/src/views/register/visit/component/agentDialog.jsx
index ddc860f..32433b2 100644
--- a/gz-customerSystem/src/views/register/visit/component/agentDialog.jsx
+++ b/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}>

--
Gitblit v1.8.0