feat(): 监测数据开发
parent
fa9121b76e
commit
afcb324911
|
|
@ -85,7 +85,14 @@ export default function ActionDock({ }) {
|
||||||
const viewItem = useMemo(() => viewKey ? VIEWS.filter(o => o.id === viewKey)[0].children : VIEWS, [viewKey, VIEWS])
|
const viewItem = useMemo(() => viewKey ? VIEWS.filter(o => o.id === viewKey)[0].children : VIEWS, [viewKey, VIEWS])
|
||||||
|
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
|
const removePoint = () => {
|
||||||
|
const map = window.__mapref;
|
||||||
|
const layer = map.getLayer('关联站点')
|
||||||
|
if (layer) {
|
||||||
|
map.removeLayer('关联站点');
|
||||||
|
map.removeSource('关联站点');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="dp-actiondock">
|
<div className="dp-actiondock">
|
||||||
|
|
@ -97,6 +104,7 @@ export default function ActionDock({ }) {
|
||||||
setViewKey(null)
|
setViewKey(null)
|
||||||
dispatch.runtime.setScya(false)
|
dispatch.runtime.setScya(false)
|
||||||
dispatch.runtime.setGwtc(false)
|
dispatch.runtime.setGwtc(false)
|
||||||
|
removePoint()
|
||||||
}}>
|
}}>
|
||||||
<div className={clsx('button', { active: false })}>
|
<div className={clsx('button', { active: false })}>
|
||||||
<img width={40} style={{ marginLeft: '5px' }} src={'/assets/pump/退出.png'} />
|
<img width={40} style={{ marginLeft: '5px' }} src={'/assets/pump/退出.png'} />
|
||||||
|
|
@ -136,6 +144,7 @@ export default function ActionDock({ }) {
|
||||||
} else {
|
} else {
|
||||||
sessionStorage.setItem('point','')
|
sessionStorage.setItem('point','')
|
||||||
}
|
}
|
||||||
|
removePoint()
|
||||||
}
|
}
|
||||||
}}>
|
}}>
|
||||||
<div className={clsx('button', { active: o.id===200?(view===207||view===203||view===205||view===206||view===200):view === o.id })}>
|
<div className={clsx('button', { active: o.id===200?(view===207||view===203||view===205||view===206||view===200):view === o.id })}>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue