From 7938180736be7e610ef1f27e03b2d3e1b753fe2e Mon Sep 17 00:00:00 2001 From: zhangyongtian <1181606322@qq.com> Date: Wed, 11 Sep 2024 10:01:02 +0800 Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh --- gz-customerSystem/src/views/register/closingReview/index.jsx | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/gz-customerSystem/src/views/register/closingReview/index.jsx b/gz-customerSystem/src/views/register/closingReview/index.jsx index a9dfa4f..a4c2a37 100644 --- a/gz-customerSystem/src/views/register/closingReview/index.jsx +++ b/gz-customerSystem/src/views/register/closingReview/index.jsx @@ -16,6 +16,10 @@ return $$.ax.request({ url: `caseTask/getTabButton?caseTaskId=${caseTaskId}`, type: 'get', service: 'mediate' }); } +function getCaseInfoApi(id) { + return $$.ax.request({ url: '/caseInfo/getCaseInfo?id=' + id, type: 'get', service: 'mediate' }); +} + const myTab = [ { img: Matter, @@ -36,13 +40,17 @@ const ClosingReview = () => { const caseId = $$.getQueryString('caseId') const caseTaskId = $$.getQueryString('caseTaskId') + const windupId = $$.getQueryString('windupId') + const routeData = useParams(); const [authorData, setAuthorData] = useState({}); const [tabsList, setTabsList] = useState([]); const [tabsActive, setTabsActive] = useState(); + const [newId, setNewId] = useState(caseId) useEffect(() => { - getAuthor() + getAuthor(); + getCaseInfo() console.log(caseId,caseTaskId,'caseId','caseTaskId') }, []) @@ -68,6 +76,14 @@ } } + const getCaseInfo = async (id) => { + const res = await getCaseInfoApi(caseId) + if(res.type){ + console.log(res.data?.id,'res.data?.idres.data?.id') + setNewId(res.data?.id) + } + } + //根据id定义组件 const getTypeDom = (key) => { if (key === 'dslxq' || key === 'sxxq') { @@ -77,7 +93,7 @@ return <ApplyInfo /> } if (key === 'jash') { - return <ReviewExamine caseTaskId={caseTaskId} caseId={caseId} /> + return <ReviewExamine caseTaskId={caseTaskId} caseId={caseId} id={windupId} /> } } -- Gitblit v1.8.0