Commit 623735d3 authored by suhuiguang's avatar suhuiguang

1.修改缺陷757

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