From 6276d75443ec3cacf34d11632ed99c90fd35d3d3 Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Tue, 03 Sep 2024 09:44:03 +0800
Subject: [PATCH] feat: 当事人文件删除
---
gz-customerSystem/src/views/register/visit/component/applyDialog.jsx | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/gz-customerSystem/src/views/register/visit/component/applyDialog.jsx b/gz-customerSystem/src/views/register/visit/component/applyDialog.jsx
index 4e4be9f..c16b16e 100644
--- a/gz-customerSystem/src/views/register/visit/component/applyDialog.jsx
+++ b/gz-customerSystem/src/views/register/visit/component/applyDialog.jsx
@@ -28,6 +28,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 ApplyDialog(props) {
const formRef = useRef();
const [perClass, setPerClass] = useState('09_01001-1');
@@ -79,6 +83,14 @@
}
}
+ //删除文件
+ const handleDelFile = async (id) => {
+ const res = await delFile(id)
+ if (res.type) {
+ $$.infoSuccess({ content: '删除成功!' });
+ }
+ }
+
//页面返回
const formType = (type) => {
if (type === '09_01001-1') {
@@ -94,6 +106,7 @@
handleChangeFile={handleChangeFile}
label='身份证明材料'
editData={props.editData}
+ handleDelFile={handleDelFile}
/>
</Col>
<Col span={12}>
@@ -229,6 +242,7 @@
field='file'
label={isLegal ? '企业登记材料' : '机构登记材料'}
editData={props.editData}
+ handleDelFile={handleDelFile}
/>
</Col>
<Col span={24}>
@@ -239,6 +253,7 @@
field='file1'
label={isLegal ? '法定代表人身份证明材料' : '机构代表人身份证明材料'}
editData={props.editData}
+ handleDelFile={handleDelFile}
/>
</Col>
<Col span={12}>
--
Gitblit v1.8.0