Commit edf9b6f5 authored by 张博's avatar 张博

bug

parent eadab9c0
...@@ -23,8 +23,7 @@ import { ...@@ -23,8 +23,7 @@ import {
tirggerTransTopic, tirggerTransTopic,
cacheObjsSave, cacheObjsSave,
flyToSubView, flyToSubView,
convertMarkerType, convertMarkerType
showSelectMarkerPoint
} from './dataProcessor'; } from './dataProcessor';
import { import {
dealTroubleMarkers, dealTroubleMarkers,
...@@ -261,6 +260,7 @@ class View3D extends Component { ...@@ -261,6 +260,7 @@ class View3D extends Component {
} }
_registerEvents = () => { _registerEvents = () => {
this.r3d.on('dbclick', evt => { this.r3d.on('dbclick', evt => {
if (evt.button !== 0) { if (evt.button !== 0) {
return; return;
...@@ -305,6 +305,7 @@ class View3D extends Component { ...@@ -305,6 +305,7 @@ class View3D extends Component {
if (isControllerEvent(topic)) { if (isControllerEvent(topic)) {
executeView3dCMD(this, topic, data); executeView3dCMD(this, topic, data);
} else if (isManualOperate(topic)) { } else if (isManualOperate(topic)) {
parseManual(this, topic, data); parseManual(this, topic, data);
} else if (topic === eventTopics.show_fire_equip) { } else if (topic === eventTopics.show_fire_equip) {
this.asyncLoadMarkerData('fireResource'); this.asyncLoadMarkerData('fireResource');
...@@ -312,8 +313,6 @@ class View3D extends Component { ...@@ -312,8 +313,6 @@ class View3D extends Component {
this.viewFreshInit(); this.viewFreshInit();
} else if (topic === eventTopics.exceptionAreas_fresh) { } else if (topic === eventTopics.exceptionAreas_fresh) {
this.initExceptionAreasData(); this.initExceptionAreasData();
} else if (topic === eventTopics.safety_db_select) {
showSelectMarkerPoint(this,data.target);
} }
}); });
}; };
...@@ -1645,6 +1644,7 @@ class View3D extends Component { ...@@ -1645,6 +1644,7 @@ 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, //隐藏工具栏
...@@ -1890,13 +1890,13 @@ class View3D extends Component { ...@@ -1890,13 +1890,13 @@ class View3D extends Component {
> >
{startAsyncLoad && this.multLoadWorkerObjContent(asyncModels)} {startAsyncLoad && this.multLoadWorkerObjContent(asyncModels)}
{isEditMode && pageType === 'region' ? '' : {isEditMode && pageType === 'region' ? '' :
isOutterView && <PointsPool showRightPanelOnclick={this.showRightPanelOnclick} markers={markers} isEditMode={isEditMode} selectPoints={selectPoints} updateMarker={this.updateMarker} planStarted={alarmStarted} stagePilot={this.stagePilot} positionCtl={this.positionCtl} addMarker={this.addMarker} focusObject={this.focusObject} />} isOutterView && <PointsPool showRightPanelOnclick={this.showRightPanelOnclick} markers={markers} isEditMode={isEditMode} selectPoints={selectPoints} updateMarker={this.updateMarker} planStarted={alarmStarted} stagePilot={this.stagePilot} positionCtl={this.positionCtl} addMarker={this.addMarker} ref={node => this.pointsPool = node} />}
{fireTruckRoute && <FatLine {...lineData.fatLineConf} linePath={JSON.parse(fireTruckRoute)} visible={showFireTruckRoute} />} {fireTruckRoute && <FatLine {...lineData.fatLineConf} linePath={JSON.parse(fireTruckRoute)} visible={showFireTruckRoute} />}
<FlameFire position={firePosition} width={10} height={20} depth={8} sliceSpacing={1} visible={planStarted} /> <FlameFire position={firePosition} width={10} height={20} depth={8} sliceSpacing={1} visible={planStarted} />
{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} getErrorAreaPoint={this.getErrorAreaPoint} />} {isOutterView && startLoadExceptionArea && <ExceptionArea markers={exceptionMarkers} handleExceptModel={this.handleExceptModel} focusObject={this.focusObject} />}
</A3DDesigner> </A3DDesigner>
</div> </div>
{ isEditMode && { isEditMode &&
......
...@@ -45,9 +45,11 @@ class ExceptionArea extends Component { ...@@ -45,9 +45,11 @@ class ExceptionArea extends Component {
onMarkerClick = (marker) => { onMarkerClick = (marker) => {
const { extData, node } = marker; const { extData, node } = marker;
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);
} }
......
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