From 61bff3d91d67b3f91db81b7d11c256e5beaf6f9d Mon Sep 17 00:00:00 2001 From: shenzhidan Date: Wed, 4 Mar 2026 16:54:58 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=A2=9E=E5=8A=A0=E7=9B=91=E7=AE=A1?= =?UTF-8?q?=E7=AB=AF=E8=BF=9B=E5=85=A5=E4=BA=8C=E7=BA=A7=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=88=97=E5=A4=B4=E5=B1=95=E7=A4=BA=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BranchCompany/ControlRoom/List/index.js | 15 ++------------- .../BranchCompany/FireResourceStats/index.js | 4 +++- .../BranchCompany/PumpRoom/List/index.js | 15 ++------------- .../BranchCompany/RescueTeam/List/index.js | 16 +++------------- .../BranchCompany/WaterSource/List/index.js | 15 ++------------- .../Container/Filiale/FireResourceStats/index.js | 2 ++ 6 files changed, 14 insertions(+), 53 deletions(-) diff --git a/src/pages/Container/BranchCompany/ControlRoom/List/index.js b/src/pages/Container/BranchCompany/ControlRoom/List/index.js index cf4a46a..6e78ea3 100644 --- a/src/pages/Container/BranchCompany/ControlRoom/List/index.js +++ b/src/pages/Container/BranchCompany/ControlRoom/List/index.js @@ -176,19 +176,8 @@ function List(props) { onFinish={handleSearch} /> ( - - {query.corpName} - - ) + headerTitle={isFromSupervision && query.corpName + ? 公司名称:{query.corpName} : undefined } toolBarRender={() => ( diff --git a/src/pages/Container/BranchCompany/FireResourceStats/index.js b/src/pages/Container/BranchCompany/FireResourceStats/index.js index aaec59d..dda90c7 100644 --- a/src/pages/Container/BranchCompany/FireResourceStats/index.js +++ b/src/pages/Container/BranchCompany/FireResourceStats/index.js @@ -22,7 +22,9 @@ function FireResourceStats(props) { if (routeMap[type]) { const corpId = record.corpId || record.companyId || ""; - props.history.push(`${routeMap[type]}?eqCorpId=${corpId}`); + const corpName = record.corpName || record.companyName || ""; + const searchParams = new URLSearchParams({ eqCorpId: corpId, corpName }); + props.history.push(`${routeMap[type]}?${searchParams.toString()}`); } }; diff --git a/src/pages/Container/BranchCompany/PumpRoom/List/index.js b/src/pages/Container/BranchCompany/PumpRoom/List/index.js index 2d862a7..eb4b332 100644 --- a/src/pages/Container/BranchCompany/PumpRoom/List/index.js +++ b/src/pages/Container/BranchCompany/PumpRoom/List/index.js @@ -157,19 +157,8 @@ function List(props) { onFinish={handleSearch} />
( - - {query.corpName} - - ) + headerTitle={isFromSupervision && query.corpName + ? 公司名称:{query.corpName} : undefined } toolBarRender={() => ( diff --git a/src/pages/Container/BranchCompany/RescueTeam/List/index.js b/src/pages/Container/BranchCompany/RescueTeam/List/index.js index 5e97cf4..db9ab86 100644 --- a/src/pages/Container/BranchCompany/RescueTeam/List/index.js +++ b/src/pages/Container/BranchCompany/RescueTeam/List/index.js @@ -142,22 +142,12 @@ function List(props) { />
( - - {query.corpName} - - ) + headerTitle={isFromSupervision && query.corpName + ? 公司名称:{query.corpName} : undefined } toolBarRender={() => ( + {canAdd && ( diff --git a/src/pages/Container/BranchCompany/WaterSource/List/index.js b/src/pages/Container/BranchCompany/WaterSource/List/index.js index bbbb1b9..2779a64 100644 --- a/src/pages/Container/BranchCompany/WaterSource/List/index.js +++ b/src/pages/Container/BranchCompany/WaterSource/List/index.js @@ -170,19 +170,8 @@ function List(props) { onFinish={handleSearch} />
( - - {query.corpName} - - ) + headerTitle={isFromSupervision && query.corpName + ? 公司名称:{query.corpName} : undefined } toolBarRender={() => ( diff --git a/src/pages/Container/Filiale/FireResourceStats/index.js b/src/pages/Container/Filiale/FireResourceStats/index.js index bf8e3da..0dfca1e 100644 --- a/src/pages/Container/Filiale/FireResourceStats/index.js +++ b/src/pages/Container/Filiale/FireResourceStats/index.js @@ -27,10 +27,12 @@ function FireResourceStats(props) { if (routeMap[type]) { const corpId = record.corpId || record.companyId || ""; + const corpName = record.corpName || record.companyName || ""; const backPath = `${props.location?.pathname || window.location.pathname}${props.location?.search || window.location.search || ""}`; window.sessionStorage.setItem("supervisionFireResourceStatsBackPath", backPath); const searchParams = new URLSearchParams({ eqCorpId: corpId, + corpName, backPath, }); const permissionConfig = FIRE_RESOURCE_SUPERVISION_PERMISSION_MAP[type] || {};