Commit 507d3024 authored by shanqiyun's avatar shanqiyun

a

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