Commit 507d3024 authored by shanqiyun's avatar shanqiyun

a

parent d4c4410c
...@@ -646,30 +646,34 @@ class View3D extends Component { ...@@ -646,30 +646,34 @@ class View3D extends Component {
onActionItemClick = (actionType) => { onActionItemClick = (actionType) => {
console.log('onActionItemClick'); console.log('onActionItemClick');
this.clearMarkers(); this.clearMarkers();
this.asyncLoadImpEquipment(actionType); if(actionType === "impEquipment"){
this.asyncLoadImpEquipment(actionType);
}else if(actionType === "editMode"){
}
} }
asyncLoadImpEquipment = (actionType) => { asyncLoadImpEquipment = (actionType) => {
const { markers } = this.state;
pointModelistAction(actionType).then(d =>{ pointModelistAction(actionType).then(d =>{
if (markerType === 'fireResource') { // if (markerType === 'fireResource') {
markers['hydrant'] = d['hydrant']; markers['hydrant'] = d['hydrant'];
markers['monitorEquipment'] = d['monitorEquipment']; markers['monitorEquipment'] = d['monitorEquipment'];
markers['fireCar'] = d['fireCar']; markers['fireCar'] = d['fireCar'];
markers['impEquipment'] = d['impEquipment']; markers['impEquipment'] = d['impEquipment'];
markers['fireChamber'] = d['fireChamber']; markers['fireChamber'] = d['fireChamber'];
markers['pool'] = d['pool']; markers['pool'] = d['pool'];
markers[markerType] = d; // markers[markerType] = d;
this.setState({ this.setState({
markers markers
}); });
return; return;
} // }
markers[markerType] = d; // markers[markerType] = d;
this.setState({ // this.setState({
markers, // markers,
markerType // markerType
}); // });
}); });
} }
......
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