Commit a61696da by zhaochengxiang

增加数据地图跳转

parent ace79f59
...@@ -14,6 +14,10 @@ const relationTypes = [ ...@@ -14,6 +14,10 @@ const relationTypes = [
{ {
title: '热力图', title: '热力图',
key: 'thermodynamic' key: 'thermodynamic'
},
{
title: '数据地图',
key: 'map',
} }
] ]
...@@ -258,8 +262,12 @@ const RelationContainer = (props) => { ...@@ -258,8 +262,12 @@ const RelationContainer = (props) => {
} }
const onTypeChange = (e) => { const onTypeChange = (e) => {
if (e.target.value === 'map') {
window?.open('/center-home/menu/asset-map');
} else {
setType(e.target.value); setType(e.target.value);
} }
}
return ( return (
<div style={{ width: '100%', height: '100%', position: 'relative' }}> <div style={{ width: '100%', height: '100%', position: 'relative' }}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment