修改细节

qzc-dev
秦子超 2025-07-03 10:11:38 +08:00
parent 88482842f1
commit 736e8331f8
6 changed files with 38 additions and 20 deletions

View File

@ -9,6 +9,7 @@ const isShYjDebug = false;
const config = {
address,
title: '麻城市智慧水利一张图',
title2: '麻城市防汛一张图',
ADCD,
ADCD6,
ADCD12,

View File

@ -232,7 +232,7 @@ export default function calcLayout(view, rightStack, hidePanels) {
} else {
if (view === 0) {
right = [
{ key: '警报' },
// { key: '警报' },
{ key: '防汛基本情况右侧', style: { height: '50rem',flexGrow: 1 } },
];
rightFullHeight = true;

View File

@ -32,16 +32,16 @@ const VIEWS = [
]
},
// { id: 200, title: '水库', img: process.env.PUBLIC_URL+'/assets/menu/水库专题.png'},
{
id: 300, title: '水厂', img: process.env.PUBLIC_URL + '/assets/menu/水利设施.png', children: [
{ id: 301, title: '供水态势', img: process.env.PUBLIC_URL + '/assets/menu/降雨中心.png' },
{ id: 302, title: '水质安全', img: process.env.PUBLIC_URL + '/assets/menu/水情监测.png' },
{ id: 303, title: '水厂运行', img: process.env.PUBLIC_URL + '/assets/menu/水库管理.png' },
{ id: 306, title: '管网健康诊断', img: process.env.PUBLIC_URL + '/assets/menu/水利设施.png' },
{ id: 307, title: '应急指挥调度', img: process.env.PUBLIC_URL + '/assets/menu/病险水库.png' },
// { id: 305, title: '决策支持与报表', img: process.env.PUBLIC_URL+'/assets/menu/辅助决策.png' },
]
},
// {
// id: 300, title: '水厂', img: process.env.PUBLIC_URL + '/assets/menu/水利设施.png', children: [
// { id: 301, title: '供水态势', img: process.env.PUBLIC_URL + '/assets/menu/降雨中心.png' },
// { id: 302, title: '水质安全', img: process.env.PUBLIC_URL + '/assets/menu/水情监测.png' },
// { id: 303, title: '水厂运行', img: process.env.PUBLIC_URL + '/assets/menu/水库管理.png' },
// { id: 306, title: '管网健康诊断', img: process.env.PUBLIC_URL + '/assets/menu/水利设施.png' },
// { id: 307, title: '应急指挥调度', img: process.env.PUBLIC_URL + '/assets/menu/病险水库.png' },
// // { id: 305, title: '决策支持与报表', img: process.env.PUBLIC_URL+'/assets/menu/辅助决策.png' },
// ]
// },
{
id: 400, title: '灌区', img: process.env.PUBLIC_URL + '/assets/menu/预警分析.png', children: [
{ id: 501, title: '灌区监测', img: process.env.PUBLIC_URL + '/assets/menu/防洪形势.png' },
@ -125,6 +125,10 @@ export default function ActionDock({ }) {
<BootstrapTooltip key={o.id} title={<Typography variant="h6"><span style={{ color: '#fff' }}>{o.title}</span></Typography>}>
<div className="dock-item" onClick={() => {
if (o.children) {
if(o.id===400){
window.open("https://axhub.im/ax9/eec435b86544bac8/#id=arlcql&p=%E7%81%8C%E5%8C%BA%E6%80%BB%E8%A7%88&sc=1&c=1")
return
}
//一级菜单
dispatch.map.setView(o.children[0].id)
setViewKey(o.id)

View File

@ -77,6 +77,14 @@ export default function Title() {
dispatch.runtime.setHome();
}
const getTitle = (view)=>{
if(view===1||view===3||view===4||view===5||view===6||view===8){
return `${ config.title2 }`
}else{
return `${ config.title }`
}
}
return (
<div className="dp-title">
<div className="action">
@ -97,7 +105,7 @@ export default function Title() {
</IconButton>
</div>
</div>
<div className="title">{`${config.title}`}</div>
<div className="title">{getTitle(view)}</div>
<div className="action">
<div className="menu-bar">
<Link style={{ color: '#00deff' }} to={mgrHomePage()}>管理平台</Link>

View File

@ -25,6 +25,7 @@ export default function Demo1() {
const showGw = useSelector(s => s.runtime.showGw)
const yuananType = useSelector(s => s.runtime.yuananType);
const xiayou = useSelector(s => s.runtime.xiayouxh);
const jbqkKey = useSelector(s=>s.runtime.jbqkKey)
console.log('wg', wg);
@ -98,6 +99,9 @@ export default function Demo1() {
<TransitionGroup className={clsx('right', 'dp-panel-container', layout.rightFullHeight && 'fullheight')}>
{
layout.right.map(({ key, ...params }) => {
if(key==='防汛基本情况右侧'&&jbqkKey===''){
return
}
if (key != '网格' && key != '单个预案') {
return (
<CSSTransition key={key} unmountOnExit exit={false} timeout={500} classNames="dp-panelgroup">

View File

@ -43,14 +43,15 @@ function DrpReal({ style }) {
useEffect(()=>{
getSkData()
// return ()=>{
// const map = window.__mapref;
// const layer = map.getLayer('临时水库tz')
// if(layer){
// map.removeLayer('临时水库tz');
// map.removeSource('临时水库tz');
// }
// }
return ()=>{
dispatch.runtime.setJbqkKey('')
// const map = window.__mapref;
// const layer = map.getLayer('临时水库tz')
// if(layer){
// map.removeLayer('临时水库tz');
// map.removeSource('临时水库tz');
// }
}
},[])
const getSkData = async()=>{