From eb65923fafe836f8fcd56d3efee4d0fd3a33ac5f Mon Sep 17 00:00:00 2001 From: dminyi <1301963064@qq.com> Date: Tue, 10 Sep 2024 09:15:05 +0800 Subject: [PATCH] 工作台 --- gz-customerSystem/src/views/register/eventFlow/index.jsx | 32 +++++++++----------------------- 1 files changed, 9 insertions(+), 23 deletions(-) diff --git a/gz-customerSystem/src/views/register/eventFlow/index.jsx b/gz-customerSystem/src/views/register/eventFlow/index.jsx index c6453a2..b96e734 100644 --- a/gz-customerSystem/src/views/register/eventFlow/index.jsx +++ b/gz-customerSystem/src/views/register/eventFlow/index.jsx @@ -1,12 +1,3 @@ -/* - * @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 NewPage from '@/components/NewPage'; import * as $$ from '@/utils/utility'; @@ -52,19 +43,11 @@ 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(); @@ -76,8 +59,9 @@ //获取权限tab和按钮权限 const getAuthor = async () => { + console.log(routeData, 'routeData') const res = await getTabButton({ - caseTaskId: routeData.caseTaskId + caseTaskId: caseTaskId }) if (res.type) { const { tabList } = res.data @@ -102,16 +86,18 @@ //根据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={routeData.caseTaskId} caseId={routeData.caseId} /> } } + console.log(caseId, 'caseId') + return ( <div style={{ position: 'relative' }}> <NewPage -- Gitblit v1.8.0