1、增加监管端进入二级列表页面列头展示企业名称
parent
462f6e7e3c
commit
61bff3d91d
|
|
@ -176,19 +176,8 @@ function List(props) {
|
||||||
onFinish={handleSearch}
|
onFinish={handleSearch}
|
||||||
/>
|
/>
|
||||||
<Table
|
<Table
|
||||||
title={isFromSupervision && query.corpName
|
headerTitle={isFromSupervision && query.corpName
|
||||||
? () => (
|
? <span style={{ color: "rgba(0,0,0,0.88)" }}>公司名称:{query.corpName}</span>
|
||||||
<span style={{
|
|
||||||
color: 'rgba(0,0,0,0.88)',
|
|
||||||
fontWeight: 600,
|
|
||||||
background: '#fafafa',
|
|
||||||
display: 'block',
|
|
||||||
margin: '-12px -8px',
|
|
||||||
padding: '12px 8px',
|
|
||||||
}}>
|
|
||||||
{query.corpName}
|
|
||||||
</span>
|
|
||||||
)
|
|
||||||
: undefined
|
: undefined
|
||||||
}
|
}
|
||||||
toolBarRender={() => (
|
toolBarRender={() => (
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,9 @@ function FireResourceStats(props) {
|
||||||
|
|
||||||
if (routeMap[type]) {
|
if (routeMap[type]) {
|
||||||
const corpId = record.corpId || record.companyId || "";
|
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()}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -157,19 +157,8 @@ function List(props) {
|
||||||
onFinish={handleSearch}
|
onFinish={handleSearch}
|
||||||
/>
|
/>
|
||||||
<Table
|
<Table
|
||||||
title={isFromSupervision && query.corpName
|
headerTitle={isFromSupervision && query.corpName
|
||||||
? () => (
|
? <span style={{ color: "rgba(0,0,0,0.88)" }}>公司名称:{query.corpName}</span>
|
||||||
<span style={{
|
|
||||||
color: 'rgba(0,0,0,0.88)',
|
|
||||||
fontWeight: 600,
|
|
||||||
background: '#fafafa',
|
|
||||||
display: 'block',
|
|
||||||
margin: '-12px -8px',
|
|
||||||
padding: '12px 8px',
|
|
||||||
}}>
|
|
||||||
{query.corpName}
|
|
||||||
</span>
|
|
||||||
)
|
|
||||||
: undefined
|
: undefined
|
||||||
}
|
}
|
||||||
toolBarRender={() => (
|
toolBarRender={() => (
|
||||||
|
|
|
||||||
|
|
@ -142,22 +142,12 @@ function List(props) {
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Table
|
<Table
|
||||||
title={isFromSupervision && query.corpName
|
headerTitle={isFromSupervision && query.corpName
|
||||||
? () => (
|
? <span style={{ color: 'rgba(0,0,0,0.88)'}}>公司名称:{query.corpName}</span>
|
||||||
<span style={{
|
|
||||||
color: 'rgba(0,0,0,0.88)',
|
|
||||||
fontWeight: 600,
|
|
||||||
background: '#fafafa',
|
|
||||||
display: 'block',
|
|
||||||
margin: '-12px -8px',
|
|
||||||
padding: '12px 8px',
|
|
||||||
}}>
|
|
||||||
{query.corpName}
|
|
||||||
</span>
|
|
||||||
)
|
|
||||||
: undefined
|
: undefined
|
||||||
}
|
}
|
||||||
toolBarRender={() => (
|
toolBarRender={() => (
|
||||||
|
|
||||||
<Space>
|
<Space>
|
||||||
{canAdd && (
|
{canAdd && (
|
||||||
<Button type="primary" onClick={() => props.history.push("./add")}>新增</Button>
|
<Button type="primary" onClick={() => props.history.push("./add")}>新增</Button>
|
||||||
|
|
|
||||||
|
|
@ -170,19 +170,8 @@ function List(props) {
|
||||||
onFinish={handleSearch}
|
onFinish={handleSearch}
|
||||||
/>
|
/>
|
||||||
<Table
|
<Table
|
||||||
title={isFromSupervision && query.corpName
|
headerTitle={isFromSupervision && query.corpName
|
||||||
? () => (
|
? <span style={{ color: "rgba(0,0,0,0.88)" }}>公司名称:{query.corpName}</span>
|
||||||
<span style={{
|
|
||||||
color: 'rgba(0,0,0,0.88)',
|
|
||||||
fontWeight: 600,
|
|
||||||
background: '#fafafa',
|
|
||||||
display: 'block',
|
|
||||||
margin: '-12px -8px',
|
|
||||||
padding: '12px 8px',
|
|
||||||
}}>
|
|
||||||
{query.corpName}
|
|
||||||
</span>
|
|
||||||
)
|
|
||||||
: undefined
|
: undefined
|
||||||
}
|
}
|
||||||
toolBarRender={() => (
|
toolBarRender={() => (
|
||||||
|
|
|
||||||
|
|
@ -27,10 +27,12 @@ function FireResourceStats(props) {
|
||||||
|
|
||||||
if (routeMap[type]) {
|
if (routeMap[type]) {
|
||||||
const corpId = record.corpId || record.companyId || "";
|
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 || ""}`;
|
const backPath = `${props.location?.pathname || window.location.pathname}${props.location?.search || window.location.search || ""}`;
|
||||||
window.sessionStorage.setItem("supervisionFireResourceStatsBackPath", backPath);
|
window.sessionStorage.setItem("supervisionFireResourceStatsBackPath", backPath);
|
||||||
const searchParams = new URLSearchParams({
|
const searchParams = new URLSearchParams({
|
||||||
eqCorpId: corpId,
|
eqCorpId: corpId,
|
||||||
|
corpName,
|
||||||
backPath,
|
backPath,
|
||||||
});
|
});
|
||||||
const permissionConfig = FIRE_RESOURCE_SUPERVISION_PERMISSION_MAP[type] || {};
|
const permissionConfig = FIRE_RESOURCE_SUPERVISION_PERMISSION_MAP[type] || {};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue