Commit 3d5d149c authored by 张博's avatar 张博

getErrorarea

parent edf9b6f5
...@@ -575,7 +575,7 @@ class View3D extends Component { ...@@ -575,7 +575,7 @@ class View3D extends Component {
}); });
} }
}; };
getErrorAreaPoint(riskSourceId){ getErrorAreaPoint=(riskSourceId)=>{
const { markers } = this.state; const { markers } = this.state;
let arrays = ['riskSource','patrol','impEquipment','monitorEquipment']; let arrays = ['riskSource','patrol','impEquipment','monitorEquipment'];
initView3DAction('',riskSourceId,true).then(d => { initView3DAction('',riskSourceId,true).then(d => {
...@@ -1644,7 +1644,6 @@ class View3D extends Component { ...@@ -1644,7 +1644,6 @@ class View3D extends Component {
const { isPointSave,isAreaSave } = this.state; const { isPointSave,isAreaSave } = this.state;
if (type === 'into_except_model'){//进入耳朵模式 if (type === 'into_except_model'){//进入耳朵模式
this.props.editModelChange(true);//隐藏全景统计 this.props.editModelChange(true);//隐藏全景统计
this.getErrorAreaPoint(areaId);
this.setState({ this.setState({
sideControlShow: true, //显示耳朵 sideControlShow: true, //显示耳朵
isShowActionBar: false, //隐藏工具栏 isShowActionBar: false, //隐藏工具栏
...@@ -1896,7 +1895,7 @@ class View3D extends Component { ...@@ -1896,7 +1895,7 @@ class View3D extends Component {
{isEditMode && this.renderAreas()} {isEditMode && this.renderAreas()}
{this.renderPolygonRegion(exceptionAreas)} {this.renderPolygonRegion(exceptionAreas)}
{errorAreaId && this.selectPolygonRegion(exceptionAreas,errorAreaId)} {errorAreaId && this.selectPolygonRegion(exceptionAreas,errorAreaId)}
{isOutterView && startLoadExceptionArea && <ExceptionArea markers={exceptionMarkers} handleExceptModel={this.handleExceptModel} focusObject={this.focusObject} />} {isOutterView && startLoadExceptionArea && <ExceptionArea markers={exceptionMarkers} handleExceptModel={this.handleExceptModel} focusObject={this.focusObject} getErrorAreaPoint={this.getErrorAreaPoint} />}
</A3DDesigner> </A3DDesigner>
</div> </div>
{ isEditMode && { isEditMode &&
......
...@@ -48,7 +48,7 @@ class ExceptionArea extends Component { ...@@ -48,7 +48,7 @@ class ExceptionArea extends Component {
this.props.handleExceptModel && this.props.handleExceptModel('into_except_model',extData.id); this.props.handleExceptModel && this.props.handleExceptModel('into_except_model',extData.id);
this.props.focusObject && this.props.focusObject(node); this.props.focusObject && this.props.focusObject(node);
//this.props.getErrorAreaPoint && this.props.getErrorAreaPoint(extData.id); this.props.getErrorAreaPoint && this.props.getErrorAreaPoint(extData.id);
} }
...@@ -102,7 +102,8 @@ class ExceptionArea extends Component { ...@@ -102,7 +102,8 @@ class ExceptionArea extends Component {
ExceptionArea.propTypes = { ExceptionArea.propTypes = {
markers: PropTypes.array, markers: PropTypes.array,
handleExceptModel: PropTypes.func, handleExceptModel: PropTypes.func,
focusObject: PropTypes.func focusObject: PropTypes.func,
getErrorAreaPoint: PropTypes.func
}; };
export default ExceptionArea; export default ExceptionArea;
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