Commit 623735d3 authored by suhuiguang's avatar suhuiguang

1.修改缺陷757

parent 876bde88
...@@ -796,13 +796,10 @@ class View3D extends Component { ...@@ -796,13 +796,10 @@ class View3D extends Component {
//选中区域变化 //选中区域变化
selectItemChange = (selectArea) => { selectItemChange = (selectArea) => {
this.a3dRef.changeDrawState(PEN_STATE.CLEARED);//清除当前路径 this.a3dRef.changeDrawState(PEN_STATE.CLEARED);//清除当前路径
// 结束绘制
this.setState({
drawing: false
});
this.setState({ this.setState({
selectArea, selectArea: { ...selectArea },
rightHeight: JSON.parse(selectArea.routePath).regionHeigth, drawing: false,// 结束绘制
rightHeight: selectArea.routePath ? JSON.parse(selectArea.routePath).regionHeigth : 10,
showRightPanel: true showRightPanel: true
}); });
} }
...@@ -848,7 +845,6 @@ class View3D extends Component { ...@@ -848,7 +845,6 @@ class View3D extends Component {
this.areas.push(<PolygonRegion {...this.areaStyles.normal} points={item.routePath ? JSON.parse(item.routePath).routePath : ''} onCreated={(e) => {this.onRegionCreated(e,item);}} />); this.areas.push(<PolygonRegion {...this.areaStyles.normal} points={item.routePath ? JSON.parse(item.routePath).routePath : ''} onCreated={(e) => {this.onRegionCreated(e,item);}} />);
{this.getAreas(item.children);} {this.getAreas(item.children);}
} }
} else { } else {
if (dragItem) { if (dragItem) {
if ( dragItem && dragItem.parentId && dragItem.parentId === item.id) { if ( dragItem && dragItem.parentId && dragItem.parentId === item.id) {
...@@ -862,7 +858,6 @@ class View3D extends Component { ...@@ -862,7 +858,6 @@ class View3D extends Component {
} }
} }
} else { } else {
if (item.children && item.children.length > 0) { if (item.children && item.children.length > 0) {
this.getAreas(item.children); this.getAreas(item.children);
......
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