From 4f7ea178a56ad2b88cbb8a742915804fc94bc65f Mon Sep 17 00:00:00 2001 From: dminyi <1301963064@qq.com> Date: Sun, 08 Sep 2024 17:53:34 +0800 Subject: [PATCH] 提交 --- gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx b/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx index 0340129..332190d 100644 --- a/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx +++ b/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx @@ -1,4 +1,5 @@ import React, { useState, useRef, useEffect } from 'react'; +import { useParams } from 'react-router-dom'; import { Col, Space, Row, Tooltip } from 'antd'; import { register, aiPerson } from '@/assets/images'; import { Form, Input, Tabs, Typography, Button, Modal, Select } from '@arco-design/web-react'; @@ -81,7 +82,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 } }); } function getNewTimeIdApi(id) { @@ -112,6 +113,7 @@ const Handle = () => { const formRef = useRef(); + const routeData = useParams(); const [selectedTab, setSelectedTab] = useState('1'); // 默认选中第一个 tab const [selectedTab1, setSelectedTab1] = useState('1'); // 默认选中第一个 tab const [wantUser, setWantUser] = useState({}); @@ -128,6 +130,8 @@ const [isModalVisible, setIsModalVisible] = useState(false); const [id, setId] = useState(''); const [uniteHandleId, setUniteHandleId] = useState(''); + const [caseResultId, setCaseResultId] = useState(''); + const tabs = [ @@ -251,6 +255,9 @@ } if (type === 'addMark') setId(res.data) + if (type === 'caseResult') { + setCaseResultId(res.data) + } } } @@ -301,6 +308,11 @@ const handlePersonView = () => { setPersonView(!personView) + } + + const handleCaseResultApply = () => { + SetCaseResult(!caseResult) + getNewTimeId('caseResult') } @@ -447,7 +459,7 @@ <Space style={{ marginTop: '38px', bottom: '4px' }}> <Button type="primary" style={{ backgroundColor: '#1A6FB8' }} onClick={() => addMark()}>添加办理记录</Button> <Button type='outline' style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} onClick={() => uniteHandle()}>联合处置申请</Button> - <Button type='outline' style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} onClick={() => SetCaseResult(!caseResult)}>结案申请</Button> + <Button type='outline' style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} onClick={() => handleCaseResultApply()} >结案申请</Button> <Button type='outline' style={{ color: '#EF6C24', border: '1px solid #EF6C24' }} onClick={() => Supervising()}>督办</Button> <Button type='secondary'>返回上级页面</Button> </Space> @@ -629,7 +641,7 @@ </Form> </Modal> <UniteHandle id={uniteHandleId} visible={uniteHandleView} handleOnCancel={() => setUniteHandleView(false)} /> - <CaseResult visible={caseResult} handleOnCancel={() => SetCaseResult(false)} /> + <CaseResult visible={caseResult} handleOnCancel={() => SetCaseResult(false)} caseResultId={caseResultId} caseId={routeData.caseId} /> </div> </> -- Gitblit v1.8.0