From 221546808c11df777199def992e4abbf1fc31b5a Mon Sep 17 00:00:00 2001 From: liuwh <964324856@qq.com> Date: Sat, 14 Sep 2024 10:03:47 +0800 Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh into master --- gz-customerSystem/src/views/register/closingReview/index.jsx | 26 +++++++++++++++----------- 1 files changed, 15 insertions(+), 11 deletions(-) diff --git a/gz-customerSystem/src/views/register/closingReview/index.jsx b/gz-customerSystem/src/views/register/closingReview/index.jsx index 78da404..3664b7e 100644 --- a/gz-customerSystem/src/views/register/closingReview/index.jsx +++ b/gz-customerSystem/src/views/register/closingReview/index.jsx @@ -4,19 +4,23 @@ import "@arco-themes/react-gzzz/css/arco.css"; import '../index.less'; import { Tabs } from '@arco-design/web-react'; -import { examine, Matter, transfer, applyRecord } from '@/assets/images' +import { examine, Matter, applyRecord } from '@/assets/images' import EventFlow from '../eventFlow/component/EventFlow'; import ApplyInfo from "../matterDetail/ApplyInfo"; -import { useParams } from 'react-router-dom'; import ReviewExamine from './component/ReviewExamine'; const TabPane = Tabs.TabPane; -function getTabButton(data) { - return $$.ax.request({ url: `caseTask/getTabButton`, type: 'get', service: 'mediate', data }); +function getTabButton(caseTaskId) { + return $$.ax.request({ url: `caseTask/getTabButton?caseTaskId=${caseTaskId}`, type: 'get', service: 'mediate' }); } const myTab = [ + { + img: Matter, + label: '详情', + key: 'dslxq', + }, { img: Matter, label: '事项详情', @@ -34,20 +38,20 @@ }, ] const ClosingReview = () => { - const routeData = useParams(); + const caseId = $$.getQueryString('caseId') + const caseTaskId = $$.getQueryString('caseTaskId') + const [authorData, setAuthorData] = useState({}); const [tabsList, setTabsList] = useState([]); const [tabsActive, setTabsActive] = useState(); useEffect(() => { - getAuthor() + getAuthor(); }, []) //获取权限tab和按钮权限 const getAuthor = async () => { - const res = await getTabButton({ - caseTaskId: routeData.caseTaskId - }) + const res = await getTabButton(caseTaskId) if (res.type) { const { tabList } = res.data setAuthorData(res.data) @@ -70,13 +74,13 @@ //根据id定义组件 const getTypeDom = (key) => { if (key === 'dslxq' || key === 'sxxq') { - return <EventFlow authorData={authorData} caseId={routeData.caseId} /> + return <EventFlow authorData={authorData} caseId={caseId} /> } if (key === 'sqjl') { return <ApplyInfo /> } if (key === 'jash') { - return <ReviewExamine type={key} /> + return <ReviewExamine caseTaskId={caseTaskId} caseId={caseId} /> } } -- Gitblit v1.8.0