From 27fb65ba5c31fbbad4c17166a72901d8db80ae03 Mon Sep 17 00:00:00 2001
From: dminyi <1301963064@qq.com>
Date: Wed, 04 Sep 2024 19:18:56 +0800
Subject: [PATCH] 联调办理反馈接口

---
 gz-customerSystem/src/views/register/visit/component/agentDialog.jsx |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 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..3419f2f 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' }}>
@@ -108,7 +120,7 @@
               scrollToFirstError
             >
               <Row gutter={[32, 0]} style={{ margin: '0 -10px' }}>
-                <Col span={24}>
+                <Col span={24} className="doubleFile">
                   <ArcoUpload
                     params={{
                       action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${props.mainId}&ownerId=${id}&ownerType=22_00018-202`,
@@ -117,9 +129,10 @@
                     handleChangeFile={handleChangeFile}
                     label='身份证明材料'
                     editData={props.editData}
+                    handleDelFile={handleDelFile}
                   />
                 </Col>
-                <Col span={24}>
+                <Col span={24} className="doubleFile">
                   <ArcoUpload
                     params={{
                       action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${props.mainId}&ownerId=${id}&ownerType=22_00018-202`,

--
Gitblit v1.8.0