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/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