From 899e81654c9389785d58f9dbdf2ea7d2b2bc9082 Mon Sep 17 00:00:00 2001 From: zhangyongtian <1181606322@qq.com> Date: Fri, 13 Sep 2024 14:55:51 +0800 Subject: [PATCH] feat: 对接流程 --- gz-customerSystem/src/views/register/eventFlow/index.jsx | 37 +++++++++---------------------------- 1 files changed, 9 insertions(+), 28 deletions(-) diff --git a/gz-customerSystem/src/views/register/eventFlow/index.jsx b/gz-customerSystem/src/views/register/eventFlow/index.jsx index c6453a2..1e4ece1 100644 --- a/gz-customerSystem/src/views/register/eventFlow/index.jsx +++ b/gz-customerSystem/src/views/register/eventFlow/index.jsx @@ -1,23 +1,13 @@ -/* - * @Author: dminyi 1301963064@qq.com - * @Date: 2024-08-09 09:59:43 - * @LastEditors: dminyi 1301963064@qq.com - * @LastEditTime: 2024-08-31 17:13:53 - * @FilePath: \gzDyh\gz-customerSystem\src\views\basicInformation\organization\index.jsx - * @Description: 来访登记 - */ - -import React, { useState, useRef, Fragment, useEffect } from "react"; +import React, { useState, useEffect } from "react"; import NewPage from '@/components/NewPage'; import * as $$ from '@/utils/utility'; import "@arco-themes/react-gzzz/css/arco.css"; import '../index.less'; import { Steps, Tabs } from '@arco-design/web-react'; -import { examine, Matter, transfer, applyRecord } from '@/assets/images' +import { examine, Matter, applyRecord } from '@/assets/images' import EventFlow from './component/EventFlow'; import Examine from "./component/Examine"; import ApplyInfo from "../matterDetail/ApplyInfo"; -import { useParams } from 'react-router-dom'; const Step = Steps.Step; const TabPane = Tabs.TabPane; @@ -52,19 +42,10 @@ label: '上报审核', key: 'sbsh', }, - { - img: examine, - label: '结案审核', - key: 'jash', - }, - { - img: examine, - label: '联合处置申请审核', - key: 'lhczsh', - }, ] const Organization = () => { - const routeData = useParams(); + const caseTaskId = $$.getQueryString('caseTaskId') + const caseId = $$.getQueryString('caseId') const [authorData, setAuthorData] = useState({}); const [tabsList, setTabsList] = useState([]); const [tabsActive, setTabsActive] = useState(); @@ -77,7 +58,7 @@ //获取权限tab和按钮权限 const getAuthor = async () => { const res = await getTabButton({ - caseTaskId: routeData.caseTaskId + caseTaskId: caseTaskId }) if (res.type) { const { tabList } = res.data @@ -102,13 +83,13 @@ //根据id定义组件 const getTypeDom = (key) => { if (key === 'dslxq' || key === 'sxxq') { - return <EventFlow authorData={authorData} caseId={routeData.caseId} /> + return <EventFlow authorData={authorData} caseId={caseId} caseTaskId={caseTaskId}/> } if (key === 'sqjl') { return <ApplyInfo /> } - if (key === 'htsh' || key === 'sbsh' || key === 'jash' || key === 'lhczsh') { - return <Examine type={key} /> + if (key === 'htsh' || key === 'sbsh' || key === 'lhczsh') { + return <Examine type={key} caseTaskId={caseTaskId} caseId={caseId} /> } } @@ -137,7 +118,7 @@ {getTypeDom(item.key)} </TabPane> })} - </Tabs> : <EventFlow authorData={authorData} /> + </Tabs> : <EventFlow authorData={authorData} caseId={caseId} /> } </NewPage> </div> -- Gitblit v1.8.0