From 9694e985664ddb4a7b6e3b09efd795f5fecc6460 Mon Sep 17 00:00:00 2001 From: dminyi <1301963064@qq.com> Date: Sun, 08 Sep 2024 15:34:58 +0800 Subject: [PATCH] 工作台 --- gz-customerSystem/src/views/register/visit/component/agentDialog.jsx | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gz-customerSystem/src/views/register/visit/component/agentDialog.jsx b/gz-customerSystem/src/views/register/visit/component/agentDialog.jsx index 32433b2..5329deb 100644 --- a/gz-customerSystem/src/views/register/visit/component/agentDialog.jsx +++ b/gz-customerSystem/src/views/register/visit/component/agentDialog.jsx @@ -4,6 +4,7 @@ import KeyVisits from "@/components/personCard/KeyVisits"; import * as $$ from '@/utils/utility'; import ArcoUpload from '@/components/ArcoUpload'; +import { Scrollbars } from "react-custom-scrollbars"; const FormItem = Form.Item; const Option = Select.Option; @@ -17,7 +18,7 @@ } function delFile(id) { - return $$.ax.request({ url: `fileInfo/deleteFileById`, type: 'get', service: 'sys', data: { id } }); + return $$.ax.request({ url: `fileInfo/deleteFileById`, type: 'delete', service: 'sys', data: { id } }); } export default function AgentDialog(props) { @@ -108,7 +109,7 @@ return ( <div className="applyDialog"> - <div style={{ height: '590px', overflowY: 'scroll' }}> + <Scrollbars style={{ height: '590px' }} autoHide> <Row gutter={[16, 16]} style={{ margin: '0 2px 0 0' }}> <Col span={24}> <Form @@ -120,7 +121,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`, @@ -132,7 +133,7 @@ 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`, @@ -320,7 +321,7 @@ <div style={{ width: 'calc(100% - 9px)', background: '#f2f3f5', marginBottom: '20px', padding: '12px' }}> <KeyVisits /> </div> - </div> + </Scrollbars> <div className='dialogFooter'> <Button type="primary" -- Gitblit v1.8.0