From a54284270f39f155960e7bd9d0921e7b204ccdae Mon Sep 17 00:00:00 2001 From: zhangyongtian <1181606322@qq.com> Date: Tue, 03 Sep 2024 11:31:31 +0800 Subject: [PATCH] feat: 事件流转回退弹窗、文件样式调整 --- 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