From 8617a79951c9c45d60ffdf84d1627062408c131c Mon Sep 17 00:00:00 2001 From: zhangyongtian <1181606322@qq.com> Date: Wed, 11 Sep 2024 12:43:33 +0800 Subject: [PATCH] feat: 办理结果无数据不显示、流转督办可滚动 --- gz-customerSystem/src/views/register/matterDetail/fileMessage.jsx | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/gz-customerSystem/src/views/register/matterDetail/fileMessage.jsx b/gz-customerSystem/src/views/register/matterDetail/fileMessage.jsx index 97153d1..33e6d42 100644 --- a/gz-customerSystem/src/views/register/matterDetail/fileMessage.jsx +++ b/gz-customerSystem/src/views/register/matterDetail/fileMessage.jsx @@ -13,6 +13,7 @@ import RateModule from './RateModule'; import RegisInfoModule from './RegisInfoModule'; import SupervisingView from "./Supervising"; +import { useNavigate } from 'react-router-dom'; const Step = Steps.Step; const TabPane = Tabs.TabPane; @@ -38,13 +39,14 @@ } const FileMessage = (props) => { + const navigate = useNavigate(); const caseTaskId = $$.getQueryString('caseTaskId') const caseId = $$.getQueryString('caseId') const [tabsActive, setTabsActive] = useState('1'); const [current, setCurrent] = useState(7); const [grade, setGrade] = useState(null); const [caseInfo, setCaseInfo] = useState({}) - const [TransactResult, setTransactResult] = useState({}) + const [TransactResult, setTransactResult] = useState(null) const [tabsList, setTabList] = useState([ { img: result, @@ -77,8 +79,14 @@ const getTransactResult = async (id) => { const res = await getTransactResultApi(id) + console.log(res); if (res.type) { - setTransactResult({ ...res.data, fileName: res.data.fileInfoBaseDTOList.map(item => item.trueName) }) + if(res.data) { + setTransactResult({ ...res.data, fileName: res.data.fileInfoBaseDTOList?.map(item => item.trueName) }) + } else { + setTransactResult(null) + } + } } @@ -177,7 +185,7 @@ <div className="dataSync-excel"> <Space size="large" style={{ margin: '4px 14px' }}> <Button type='primary' >导出</Button> - <Button type='secondary' >返回上级页面</Button> + <Button type='secondary' onClick={() => navigate(-1)}>返回上级页面</Button> </Space> </div> </> @@ -194,7 +202,9 @@ </span> } > - <ProgressStep progressData={progressData} hasTab={true} /> + <Scrollbars style={{ height: 'calc(100vh - 300px)' }} autoHide> + <ProgressStep progressData={progressData} hasTab={true} /> + </Scrollbars> </TabPane> <TabPane key='2' @@ -205,9 +215,9 @@ </span> } > - <div style={{ marginBottom: '20px' }}> + <Scrollbars style={{ height: 'calc(100vh - 300px)' }} autoHide> <SupervisingView id={''} /> - </div> + </Scrollbars> </TabPane> </Tabs> </div> -- Gitblit v1.8.0